Skip to content

Instantly share code, notes, and snippets.

@Tolia
Created September 1, 2015 05:51
Show Gist options
  • Save Tolia/692fe64ce505bb4a3233 to your computer and use it in GitHub Desktop.
Save Tolia/692fe64ce505bb4a3233 to your computer and use it in GitHub Desktop.
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);
}
@Anonymous-User-cf64e
Copy link

hi

@Anonymous-User-cf64e
Copy link

hello

@Anonymous-User-cf64e
Copy link

hallowen season is great work for binance users

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment