Created
July 29, 2014 13:34
-
-
Save rsslldnphy/8f5d4a6f8ada95101397 to your computer and use it in GitHub Desktop.
Living the Jenn Schiffer dream!
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
(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