(function( w ){ "use strict"; // rel=preload support test if( !w.loadCSS ){ w.loadCSS = function(){}; } // define on the loadCSS obj var rp = loadCSS.relpreload = {}; // rel=preload feature support test // runs once and returns a function for compat purposes rp.support = (function(){ var ret; try { ret = w.document.createElement( "link" ).relList.supports( "preload" ); } catch (e) { ret = false; } return function(){ return ret; }; })(); // if preload isn't supported, get an asynchronous load by using a non-matching media attribute // then change that media back to its intended value on load rp.bindMediaToggle = function( link ){ // remember existing media attr for ultimate state, or default to 'all' var finalMedia = link.media || "all"; function enableStylesheet(){ // unbind listeners if( link.addEventListener ){ link.removeEventListener( "load", enableStylesheet ); } else if( link.attachEvent ){ link.detachEvent( "onload", enableStylesheet ); } link.setAttribute( "onload", null ); link.media = finalMedia; } // bind load handlers to enable media if( link.addEventListener ){ link.addEventListener( "load", enableStylesheet ); } else if( link.attachEvent ){ link.attachEvent( "onload", enableStylesheet ); } // Set rel and non-applicable media type to start an async request // note: timeout allows this to happen async to let rendering continue in IE setTimeout(function(){ link.rel = "stylesheet"; link.media = "only x"; }); // also enable media after 3 seconds, // which will catch very old browsers (android 2.x, old firefox) that don't support onload on link setTimeout( enableStylesheet, 5000 ); }; // loop through link elements in DOM rp.poly = function(){ // double check this to prevent external calls from running if( rp.support() ){ return; } var links = w.document.getElementsByTagName( "link" ); for( var i = 0; i < links.length; i++ ){ var link = links[ i ]; // qualify links to those with rel=preload and as=style attrs if( link.rel === "preload" && link.getAttribute( "as" ) === "style" && !link.getAttribute( "data-loadcss" ) ){ // prevent rerunning on link link.setAttribute( "data-loadcss", true ); // bind listeners to toggle media back rp.bindMediaToggle( link ); } } }; // if unsupported, run the polyfill if( !rp.support() ){ // run once at least rp.poly(); // rerun poly on an interval until onload var run = w.setInterval( rp.poly, 500 ); if( w.addEventListener ){ w.addEventListener( "load", function(){ rp.poly(); w.clearInterval( run ); } ); } else if( w.attachEvent ){ w.attachEvent( "onload", function(){ rp.poly(); w.clearInterval( run ); } ); } } // commonjs if( typeof exports !== "undefined" ){ exports.loadCSS = loadCSS; } else { w.loadCSS = loadCSS; } }( typeof global !== "undefined" ? global : this ) ); $(function() { setTimeout( function(){ lazyload(); }, 2000); // delay 500 ms }); function thisimg(id,recordid) { var newid = "addlink_"+id; var countid = "count_"+id; var url = passuc; //pass value of update file $.post(url,{dbid:recordid},function(data) { document.getElementById(countid).innerHTML ++; }); var url =document.getElementById(newid).value; window.open (url,"myWindow","height=600,width=800,toolbar=yes,scrollbars=yes,resizable=yes"); } var oldval =0; var flag="1"; var win=null; var lk = []; var recordid = []; var selectlist =[]; function bonus(a) { var field = document.getElementsByName('list'); var len = field.length; var j=0; if(a) { if(a=="10") { for (i = 0; i < 10; i++) { field[i].checked = true; lk[j] =document.getElementById('addlink_'+i).value; recordid[j] =document.getElementById('recoredid_'+i).value; selectlist[j] = i; j++; } win = window.open("","myWindow","height=600,width=800,toolbar=yes,scrollbars=yes,resizable=yes"); var oldval=0; process(oldval,lk,j); oldval=1; if(oldvalĐăng xuất'; } }); document.getElementById("loadi").style.display="none"; }); } function checkLoginState() { document.getElementById("loadi").style.display="block"; FB.login(function(response) { if (response.authResponse) { var id_token= response.authResponse.accessToken; testAPI(id_token); window.location.href=location.href; } else{ alert("Login Failed!"); } }, {scope: "public_profile,email"}); document.getElementById("loadi").style.display="none"; } function logoutFacebook() { FB.getLoginStatus(function(response) { if (response.status === 'connected') { var uid = response.authResponse.userID; var accessToken = response.authResponse.accessToken; FB.api('/me/permissions', 'delete', function(response) { $.ajax( { url: "../../account/logout.php", data: {id:"succ",lang:"vi"}, success: function(data) { alert("Thoát khỏi thành công"); document.getElementById('fb-login').innerHTML = 'Thoát khỏi thành công!
Đăng nhập với Facebook
'; window.location.href=location.href; } }); }); } else if (response.status === 'not_authorized') { document.getElementById('fb-login').innerHTML = '
Đăng nhập với Facebook
'; } else { document.getElementById('fb-login').innerHTML = '
Đăng nhập với Facebook
'; } }); } $(function() { setTimeout( function(){ $.ajaxSetup({ cache: true }); $.getScript('https://connect.facebook.net/en_GB/sdk.js', function(){ FB.init({ xfbml: 'true', cookie: 'true', appId: '1881828828705959', version: 'v20.0' // or v2.1, v2.2, v2.3, ... }); FB.getLoginStatus(function(response) { statusChangeCallback(response); }); }); }, 10); // delay 500 ms }); $(function() { setTimeout( function(){ $.ajaxSetup({ cache: true }); $.getScript('https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js', function(){ window.cookieconsent.initialise({ "palette": { "popup": { "background": "#237afc" }, "button": { "background": "transparent", "text": "#fff", "border": "#fff" } }, "content": { "href": "https://gameskip.com/cookies.html" } }); }); }, 14000); // delay 500 ms }); /* Medium Quality: http://img.youtube.com/vi/{video-id}/mqdefault.jpg (320×180 pixels) High Quality: http://img.youtube.com/vi/G0wGs3useV8/hqdefault.jpg (480×360 pixels) Standard Definition (SD): http://img.youtube.com/vi/G0wGs3useV8/sddefault.jpg (640×480 pixels) Maximum Resolution: http://img.youtube.com/vi/G0wGs3useV8/maxresdefault.jpg (1920×1080 pixels) */ $(function() { setTimeout( function(){ var youtube = document.querySelectorAll( ".youtube" ); for (var i = 0; i < youtube.length; i++) { var source = "https://img.youtube.com/vi/"+ youtube[i].dataset.embed +"/mqdefault.jpg"; var alterimg = "video youtube để tìm hiểu cách thu thập quà tặng"; var image = new Image(); image.src = source; image.alt = alterimg; image.addEventListener( "load", function() { youtube[ i ].appendChild( image ); }( i ) ); youtube[i].addEventListener( "click", function() { var iframe = document.createElement( "iframe" ); iframe.setAttribute( "frameborder", "0" ); iframe.setAttribute( "allowfullscreen", "" ); iframe.setAttribute( "src", "https://www.youtube.com/embed/"+ this.dataset.embed +"?rel=0&showinfo=0&autoplay=1" ); this.innerHTML = ""; this.appendChild( iframe ); } ); } }, 10000); // delay 500 ms }); $(function() { setTimeout( function(){ $.ajaxSetup({ cache: true }); $.getScript('//platform-api.sharethis.com/js/sharethis.js#property=5a7222cc344b890012fe7af0&product=sticky-share-buttons', function(){ }); }, 15000); // delay 500 ms }); $(function() { setTimeout( function(){ $.ajaxSetup({ cache: true }); $.getScript('//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit', function(){ }); document.getElementById("loadingtranslate").style.display = "none"; }, 5000); // delay 500 ms }); function submitemail(appid) { if($("#esubscribe").val()!=null) { var esubscribe = $("#esubscribe").val(); $.post("../../inc/subscribe.php",{email1:esubscribe,app_id:appid,lang:"vi"},function(data) { document.getElementById("subs").innerHTML = data+"

Bạn sẽ nhận được một email kích hoạt với một liên kết để kích hoạt và chỉnh sửa chi tiết đăng ký. Đảm bảo kiểm tra thư mục Rác và Thư rác trong Email của bạn

"; }); } else { alert("vui lòng cung cấp email hợp lệ;"); } }