Created
October 14, 2013 02:57
-
-
Save benck/6969995 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
if(location.href.indexOf('http://preorder.emome.net')!==0 && location.href.indexOf('http://preorder.emome.net')!==0){gEid('gw').parentElement.removeChild(gEid('gw'));}else{if(gEid('pageframe')){if(gEid('pageframe').parentElement){gEid('pageframe').parentElement.removeChild(gEid('pageframe'));}else{gEid('pageframe').parentNode.removeChild(gEid('pageframe'));}}var frameURL="<iframe id='pageframe' src='' style='width:100%;height:100%; border:none;' scrolling='no' frameborder='0' marginheight=0 marginwidth=0 allowtransparency onload='abc();'></iframe>";et= Math.round(new Date()/1000);var frameSrc="http://m9"+domainsuffix+"/Order/join?eid=iPhone5s&a=8&key=e430b262fbd0275a9437fb29fcf91927291b03ca&et="+et;gEid('chk').value="1";preg_busy_show('頁面載入中...請稍後.....');if(gEid('frame_content')){gEid('frame_content').style.overflow="hidden";gEid('frame_content').style.height=0;gEid('frame_content').innerHTML="";gEid('frame_content').innerHTML=frameURL;gEid('pageframe').src=frameSrc;}else{alert('該系統不支援您的瀏覽器');}}function abc(){var a=getCookie("frameOpen");if(a==1){setTimeout(delayShow,1000);}}function delayShow(){gEid('chk').value="2";gEid('frame_content').style.height="auto";closePage();}function heartframe(){now = new Date();et = Date.UTC(now.getFullYear(),now.getMonth(),now.getDate(),now.getHours(),now.getMinutes(),now.getSeconds());if((et - st) >= 40000){st = 0;var checkobj=gEid('chk');if(checkobj.value == 1){showPage('preg_busy');gEid('busy_msg').innerHTML="預約人數滿載中,請稍後再試";}}else{setTimeout("heartframe();",1000);}}heartframe();function getCookie(c_name){var i,x,y,ARRcookies=document.cookie.split(";");for (i=0;i<ARRcookies.length;i++){ x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("=")); y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1); x=x.replace(/^\s+|\s+$/g,""); if (x==c_name){return unescape(y);}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment