Skip to content

Instantly share code, notes, and snippets.

@rsslldnphy
Created July 29, 2014 13:34
Show Gist options
  • Save rsslldnphy/8f5d4a6f8ada95101397 to your computer and use it in GitHub Desktop.
Save rsslldnphy/8f5d4a6f8ada95101397 to your computer and use it in GitHub Desktop.
Living the Jenn Schiffer dream!
(function() {
var d = document, body = d.querySelector('body'), popup = d.createElement('div');
popup.className = 'call-centre-help';
popup.style.visibility = 'hidden';
popup.style.position = 'fixed';
popup.style["z-index"] = 100000;
popup.style["background-color"] = "blue";
popup.style.color = "white";
popup.innerHTML = 'Stuck? Confused? Our call-centre can HELP!';
body.insertBefore(popup, body.firstChild);
var on, off;
on = function () {
popup.style.visibility = 'visible';
setTimeout(off, 500);
};
off = function () {
popup.style.visibility = 'hidden';
setTimeout(on, 500);
};
on();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment