Created
August 1, 2015 17:52
-
-
Save heyalexej/f2cc276af3e91dbd2de7 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
jQuery(document).ready(function() { | |
var originalTitle = document.getElementsByTagName("title")[0].innerHTML; | |
jQuery(window).on("blur", function() { | |
timerId = setTimeout(function() { | |
document.getElementsByTagName("title")[0].innerHTML = "(1) " + originalTitle; | |
} | |
, 2000); | |
} | |
); | |
jQuery(window).on("focus", function() { | |
document.getElementsByTagName("title")[0].innerHTML = originalTitle; | |
} | |
); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment