Skip to content

Instantly share code, notes, and snippets.

@PhilReinking
Last active August 29, 2015 14:20
Show Gist options
  • Save PhilReinking/1cf7bf47175e8a478cd7 to your computer and use it in GitHub Desktop.
Save PhilReinking/1cf7bf47175e8a478cd7 to your computer and use it in GitHub Desktop.
Celebration Test Snippet
(function(){
'use strict';
var celebrationHeight = jQuery(window).height() - 87;
var celebrationWidth = jQuery(window).width();
if(celebrationHeight < 800) {
return false;
}
jQuery('#main').append('<iframe id="dacia-celebration" src="http://localhost:9000" width="100%" height="' + celebrationHeight + 'px" style="position: absolute; top: 87px; left: 0; z-index: 998;" frameborder="0"></iframe>');
function removeCelebration(){
jQuery('#dacia-celebration').remove();
jQuery('#celebration-close').remove();
}
jQuery('#main').append('<a id="celebration-close" style="position: fixed; left: 0; bottom: 100px; width: 100%; text-align: center; z-index: 2000;font-size: 32px;font-weight: normal;font-family: \'Neo Tech Dacia\';text-decoration: none;" onclick="removeCelebration()" href="javascript:void(0)">Weiter zu Dacia</a>');
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment