text: "use strict";function assignHtmlValue(t,n){n.forEach(function(n){var o=parseFloat(n.last_price),e=o%1!=0?o.toFixed(2):o,a=n.name?".price."+t+"-"+n.name.toLowerCase():null;e&&"NaN"!==e&&a&&$(a).text()!=e&&$(a).fadeOut(function(){$(this).text(e)}).fadeIn();var i=parseFloat(n.change).toFixed(2),s=n.name?".change."+t+"-"+n.name.toLowerCase():null;i&&"NaN"!==i&&s&&$(s).text()!=i&&$(s).fadeOut(function(){$(this).removeClass("plus"),$(this).removeClass("minus"),i<0?$(this).addClass("minus"):$(this).addClass("plus"),$(this).text(i)}).fadeIn()},this)}function gtag(){dataLayer.push(arguments)}var socket=io();socket.on("online",function(t){$("span.users").html(t)}),socket.on("bx",function(t){assignHtmlValue("bx",t)}),socket.on("bfx",function(t){assignHtmlValue("bfx",t)}),socket.on("coinbase",function(t){assignHtmlValue("cb",t)}),socket.on("cex",function(t){assignHtmlValue("cex",t)}),socket.on("bittrex",function(t){assignHtmlValue("btx",t)}),socket.on("binance",function(t){assignHtmlValue("bin",t)}),socket.on("coinmarketcap",function(t){assignHtmlValue("cmc",t)}),window.configMsg={hello:"สวัสดีทุกท่านครับ",donate:"ท่านสามารถให้กำลังใจผู้พัฒนาได้หลายช่องทาง คลิกปุ่ม Donate ด่านล่างได้เลยครับ"},socket.on("notification",function(t){toastr.options.timeOut=1e4,toastr.options.extendedTimeOut=5e3,t.indexOf(atob("PHNjcmlwdA=="))>-1&&(toastr.options.timeOut=1,toastr.options.extendedTimeOut=1),toastr.info(t)}),window.boardcast=function(t){socket.emit("boardcast",t)},$(".btn-donate").click(function(){$("#ticker-board").hide(),$("#donation").show();new Clipboard(".btn-copy",{text:function(t){return atob(t.getAttribute("data-addr"))}})}),$(".close-donation").click(function(){$("#ticker-board").show(),$("#donation").hide()}),window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","UA-111347586-1");