Created
April 11, 2014 11:56
-
-
Save TheGP/10462140 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <div align="center" id="promo_active"><script language="JavaScript"><!-- | |
| var pref = ''; | |
| var p = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; | |
| for (var i=0;i<5;i++) | |
| pref+=p.charAt(Math.floor(Math.random()*p.length)); | |
| var url = location.href; | |
| if (url.indexOf('#')!=-1) | |
| url = location.href.substr(0, location.href.indexOf('#')); | |
| var src = 'http://shinylife.justclick.ru/order_form/?goods=utroenie-sily&color=ffffff&kupon=luna50&required=show_kupon,phone&font=14&image=http://shinylife.justclick.ru/media/content/shinylife/oformit_zakaz.png&__pref='+pref+'&__parent='+encodeURIComponent(url); | |
| var delay = Math.round(Math.random()*20)+30; | |
| if (typeof UpdateFormHeight != 'function') { | |
| function UpdateFormHeight(pref, frame) { | |
| var h=null; | |
| if (!h) { | |
| var re = new RegExp("^#"+pref+"(\\d+)"); | |
| if (location.hash.match(re)) { | |
| h=RegExp.$1; | |
| location.hash = ''; | |
| } | |
| } | |
| if (!h) | |
| for (var i=0; i<2000; i+=10) | |
| if (top.frames[pref+i]) { | |
| h=i; | |
| break; | |
| } | |
| if (h) | |
| frame.style.height=h+'px'; | |
| setTimeout(function(){ UpdateFormHeight(pref, frame); }, delay*4); | |
| } | |
| } | |
| var html = '<iframe src="'+src+ '" frameborder="0" scrolling="no" style="width:360px;height:250px !important;overflow:hidden;" onload="var th=this; setTimeout(function(){ UpdateFormHeight(pref, th); }, '+delay+')"></iframe>'; | |
| document.write(html); | |
| //--></script></div> | |
| <div align="center" id="promo_inactive" style="display: none"><script language="JavaScript"><!-- | |
| var pref = ''; | |
| var p = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; | |
| for (var i=0;i<5;i++) | |
| pref+=p.charAt(Math.floor(Math.random()*p.length)); | |
| var url = location.href; | |
| if (url.indexOf('#')!=-1) | |
| url = location.href.substr(0, location.href.indexOf('#')); | |
| var src = 'http://shinylife.justclick.ru/order_form/?goods=utroenie-sily&color=ffffff&required=phone&font=14&image=http://shinylife.justclick.ru/media/content/shinylife/oformit_zakaz.png&__pref='+pref+'&__parent='+encodeURIComponent(url); | |
| var delay = Math.round(Math.random()*20)+30; | |
| if (typeof UpdateFormHeight != 'function') { | |
| function UpdateFormHeight(pref, frame) { | |
| var h=null; | |
| if (!h) { | |
| var re = new RegExp("^#"+pref+"(\\d+)"); | |
| if (location.hash.match(re)) { | |
| h=RegExp.$1; | |
| location.hash = ''; | |
| } | |
| } | |
| if (!h) | |
| for (var i=0; i<2000; i+=10) | |
| if (top.frames[pref+i]) { | |
| h=i; | |
| break; | |
| } | |
| if (h) | |
| frame.style.height=h+'px'; | |
| setTimeout(function(){ UpdateFormHeight(pref, frame); }, delay*4); | |
| } | |
| } | |
| var html = '<iframe src="'+src+ '" frameborder="0" scrolling="no" style="width:360px;height:240px;overflow:hidden;" onload="var th=this; setTimeout(function(){ UpdateFormHeight(pref, th); }, '+delay+')"></iframe>'; | |
| document.write(html); | |
| //--></script></div> | |
| <script> | |
| function countdown_callback(is_promotion) { | |
| if (true == is_promotion) { | |
| document.getElementById("promo_active").style.display = "block"; | |
| document.getElementById("promo_inactive").style.display = "none"; | |
| } else { | |
| document.getElementById("promo_active").style.display = "none"; | |
| document.getElementById("promo_inactive").style.display = "block"; | |
| } | |
| } | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment