var cookiescript_exists = false; var scriptCheck = ''; var popupHtml = ''; // Check if jQuery is loaded if (typeof jQuery == 'undefined') { var script = document.createElement('script'); script.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"; document.getElementsByTagName('head')[0].appendChild(script); } // Check if jquery cookie script is loaded var scripts = document.getElementsByTagName("script"); for (var i=0; i< scripts.length; i++){ if (scripts[i].src == "//cdn.jsdelivr.net/jquery.cookie/1.4.0/jquery.cookie.min.js"){ // ... do not add header again cookiescript_exists = true; } } if (!cookiescript_exists) { var script2 = document.createElement('script'); script2.src = "//cdn.jsdelivr.net/jquery.cookie/1.4.0/jquery.cookie.min.js"; document.getElementsByTagName('head')[0].appendChild(script2); cookiescript_exists = true; } setTimeout(function() { if (cookiescript_exists) { var cookiename = '_warning_page'; if (!$.cookie(cookiename)) { jQuery('body').after('

Warning

ExitEnter
'); if(jQuery(window).width()>600){ var wwidth = jQuery(window).width()/2-250; var wheight = jQuery(window).height()/2-200; jQuery('#wiframecontainer').css({ 'left' : wwidth+'px', 'top' : wheight+'px' }); } jQuery('#wblock').fadeIn(); jQuery('#wiframecontainer').fadeIn(); } jQuery( "#warning-swank-enter" ).bind( "click", function( event ) { jQuery('#wiframecontainer').fadeOut(); jQuery('#wblock').fadeOut(); }); jQuery(window).on('resize', function(){ if(jQuery(window).width()>600){ var wwidth = jQuery(window).width()/2-250; var wheight = jQuery(window).height()/2-200; jQuery('#wiframecontainer').css({ 'left' : wwidth+'px', 'top' : wheight+'px' }); } else{ jQuery('#wiframecontainer').css({ 'left':'1%', 'top': '10%' }); } }); mysetCookie(cookiename, 1, 60, '/', null ); } }, 800); function findGetParameter(parameterName) { var result = null, tmp = []; location.search .substr(1) .split("&") .forEach(function (item) { tmp = item.split("="); if (tmp[0] === parameterName) result = decodeURIComponent(tmp[1]); }); return result; } function mysetCookie( name, value, expires, path, domain, secure ){ var today = new Date(); today.setTime( today.getTime() ); if ( expires ) { expires = expires * 60 * 1000; } var expires_date = new Date( today.getTime() + expires ); document.cookie = name + "=" +escape( value ) + ( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + ( ( path ) ? ";path=" + path : "" ) + ( ( domain ) ? ";domain=" + domain : "" ) + ( ( secure ) ? ";secure" : "" ); }