Created
September 1, 2015 05:51
-
-
Save Tolia/692fe64ce505bb4a3233 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (true) { | |
var iframeContEl = document.getElementById('tgme_frame_cont') || document.body; | |
var iframeEl = document.createElement('iframe'); | |
iframeContEl.appendChild(iframeEl); | |
var pageHidden = false; | |
window.addEventListener('pagehide', function () { | |
pageHidden = true; | |
}, false); | |
window.addEventListener('blur', function () { | |
pageHidden = true; | |
}, false); | |
if (iframeEl !== null) { | |
iframeEl.src = "tg:\/\/resolve?domain=GitHubBot"; | |
} | |
setTimeout(function() { | |
if (!pageHidden) { | |
window.location = "tg:\/\/resolve?domain=GitHubBot"; | |
} | |
}, 2000); | |
} else { | |
setTimeout(function() { | |
window.location = "tg:\/\/resolve?domain=GitHubBot"; | |
}, 100); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hallowen season is great work for binance users