text: var Socketizer=Socketizer||{};Socketizer.index=function(){var o={};return o.main=function(){o.poolInfo(),o.calculator()},o.poolInfo=function(){var o=new XMLHttpRequest;o.onreadystatechange=function(){if(4==o.readyState&&200==o.status){data=JSON.parse(o.responseText);var t=document.querySelector("#poolInfo");t.innerHTML="<span class='label bg-socketizer-opposite strong'><span class='blinkit'>LIVE NOW</span></span> Domains connected: <span class='label bg-socketizer-opposite strong'>"+data.DomainCount+"</span> Total clients: <span class='label bg-socketizer-opposite strong'>"+data.ClientSub+"</span> refresh page to check again."}},o.open("GET","cmd/pool-info/",!0),o.send()},o.calculator=function(){$("#concurrentVisitors").on("click change keyup",function(){var o=parseInt($(this).val());isNaN(o)&&(o=0),$("#users").text(o),$("#price").text((1+.1*o).toFixed(2))})},o}(),Socketizer.ui=function(){var o={};return o.main=function(){o.smoothScroll(),o.niceScroll(),o.bootstrapJs(),o.toTop()},o.sticky=function(){var o=function(o,t,e){var n=o.outerHeight(),s=t.offset().top;e.scrollTop()>=s?(t.height(n),o.addClass("is-sticky"),o.removeClass("socketizer-r-b"),o.addClass("socketizer-b-r")):(o.removeClass("is-sticky"),o.removeClass("socketizer-b-r"),o.addClass("socketizer-r-b"),t.height("auto"))};$('[data-toggle="sticky-onscroll"]').each(function(){var t=$(this),e=$("<div>").addClass("sticky-wrapper");t.before(e),t.addClass("sticky"),$(window).on("scroll.sticky-onscroll resize.sticky-onscroll",function(){o(t,e,$(this))}),o(t,e,$(window))})},o.bootstrapJs=function(){$('[data-toggle="tooltip"]').tooltip(),$('[data-toggle="popover"]').popover()},o.smoothScroll=function(){$('a[href*="#"]:not([href="#"])').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var o=$(this.hash);if(o=o.length?o:$("[name="+this.hash.slice(1)+"]"),o.length)return $("html, body").animate({scrollTop:o.offset().top-60},800),!1}})},o.niceScroll=function(){$("html").niceScroll({scrollspeed:60,mousescrollstep:120})},o.toTop=function(){$(window).scroll(function(){$(this).scrollTop()>700?$(".toTop").fadeIn():$(".toTop").fadeOut()}),$(".toTop").click(function(){return $("html, body").animate({scrollTop:0},800),!1})},o}(),Socketizer.base=function(){var o={};return o.init=function(){Socketizer.ui.main(),Socketizer.index.main()},o}(),$(document).ready(function(){Socketizer.base.init()});