Skip to content

Instantly share code, notes, and snippets.

@doublejosh
Created January 17, 2015 01:43
Show Gist options
  • Select an option

  • Save doublejosh/092bfb1b71df44e78214 to your computer and use it in GitHub Desktop.

Select an option

Save doublejosh/092bfb1b71df44e78214 to your computer and use it in GitHub Desktop.
temporary_css_from_staging.html
<style>
.page { display:none; }
</style>
<script>
function addEvent(elem, event, fn) {
if (elem.addEventListener) {
elem.addEventListener(event, fn, false);
} else {
elem.attachEvent('on' + event, function() {
// set the this pointer same as addEventListener when fn is called
return(fn.call(elem, window.event));
});
}
}
addEvent(document, 'DOMContentLoaded', function () {
jQuery('link[href*="discover_panes.css"]').remove();
jQuery('head').append(jQuery('<link>')
.attr('rel', 'stylesheet')
.attr('type', 'text/css')
.attr('href', 'http://discover-tableau.gotpantheon.com/sites/all/themes/tableaumega/css/discover_panes.css')
);
jQuery('.page').fadeIn(800);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment