Ken2812221(留言墙 | 貢獻) 小无编辑摘要 标签:sourceedit |
Ken2812221(留言墙 | 貢獻) 小无编辑摘要 标签:sourceedit |
||
第1行: | 第1行: | ||
− | <script> |
+ | <script> |
function getCookie(cname) { |
function getCookie(cname) { |
||
var name = cname + "="; |
var name = cname + "="; |
||
第28行: | 第28行: | ||
} |
} |
||
− | + | (function Fools(){ |
|
+ | if(typeof jQuery == 'undefined') { |
||
⚫ | |||
+ | setTimeout(Fools, 100); |
||
⚫ | |||
+ | return; |
||
+ | } |
||
+ | |||
+ | $('.mobileHide').find('a').click(function () { |
||
⚫ | |||
+ | }); |
||
⚫ | |||
</script> |
</script> |
2015年3月31日 (二) 17:13的最新版本
<script> function getCookie(cname) { var name = cname + "="; var ca = document.cookie.split(';'); for(var i=0; i<ca.length; i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1); if (c.indexOf(name) == 0) return c.substring(name.length,c.length); } return ""; }
function setCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); var expires = "expires="+d.toUTCString(); document.cookie = cname + "=" + cvalue + "; " + expires + "; path=/"; }
if(getCookie('fools_played')) {} else { if(stop){ stop(); } else document.execCommand('Stop');
window.location.href = 'http://zh.tos.wikia.com/'; }
(function Fools(){ if(typeof jQuery == 'undefined') { setTimeout(Fools, 100); return; }
$('.mobileHide').find('a').click(function () { setCookie('fools_played', , -1); }); })(); </script>