Created
July 27, 2012 18:41
-
-
Save boertel/3189702 to your computer and use it in GitHub Desktop.
Invisible mode for specific pages
This file contains 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 pages = []; | |
var noLoad = false; | |
for (var i = 0; i < pages.length; i++) { | |
if (document.location.pathname === pages[i]) { | |
noLoad = true; | |
break; | |
} | |
} | |
if (noLoad) { | |
_punchtab_settings.display = "invisible"; | |
} | |
var pt = document.createElement('script'); pt.type = 'text/javascript'; pt.async = true; | |
pt.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + dde.env.settings.domain + ':8000/static/js/' + dde.env.settings.ptdotjs; | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(pt, s); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alternative for url patterns: