Skip to content

Instantly share code, notes, and snippets.

@fabrizim
Created October 16, 2014 01:40
Show Gist options
  • Save fabrizim/3eae06a65dd16e7c895a to your computer and use it in GitHub Desktop.
Save fabrizim/3eae06a65dd16e7c895a to your computer and use it in GitHub Desktop.
jQuery(function($){
if( $('body').hasClass('disable-scribd') ) return;
// check for a disable variable
var pairs = window.location.search.replace(/^\?/, '').split('&');
var disabled = false;
$.each(pairs, function(i, pair){
var keyval = pair.split('=');
if( keyval[0] == 'disable-scribd' ){
disabled = true;
return false;
}
return true;
});
if( !disabled ) $.scribd({
viewer: 'http://www.montgomeryplanning.org/viewer.shtm'
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment