Site Notice
hello, world
Difference between revisions of "Do not press the button"
From Project-EPB Commons
([InPageEdit] 没有编辑摘要) |
([InPageEdit] 没有编辑摘要) |
||
Line 26: | Line 26: | ||
setTimeout(function(){ | setTimeout(function(){ | ||
$('#final').html('死吧!!!'); | $('#final').html('死吧!!!'); | ||
− | setInterval(function(){ | + | var limit = setInterval(function(){ |
$('#final').html(function(){ | $('#final').html(function(){ | ||
var $this = $(this); | var $this = $(this); | ||
Line 33: | Line 33: | ||
return final; | return final; | ||
}); | }); | ||
+ | if (!x) x = 1; | ||
+ | x++; | ||
+ | if ( x > 10) clearInterval(limit); | ||
},100); | },100); | ||
},3000); | },3000); |
Revision as of 17:16, 21 November 2019
<html> <b style="color:#b00">警告:网页可能会崩溃</b><br/> <button onclick="showNew()" id="clickMe">绝对不要点我</button> <p id="joke" style="display:none">呵呵,你以为我会让你看到吗?</p> <p id="new" style="display:none">好好好,给你点面子好了!</p> <p id="final" style="display:none">切,你以为我会放过你吗?准备接受最后的审判吧!(警告:网页可能会崩溃)</p> <style>
button#clickMe { padding: 0.5em 0.7em; background: #3380ff !important; color: white; font-weight: bold; border: 1px solid #3380ff; }
</style> <script>
function showNew() { $('#joke').show(50); setTimeout(function () { $('#new').show(150); $('#joke').hide(150); setTimeout(function () { $('#joke').remove(); $('#final').show(150); $('#new').hide(150); setTimeout(function(){ $('#final').html('死吧!!!'); var limit = setInterval(function(){ $('#final').html(function(){ var $this = $(this); var before = $this.text(); var final = before + before; return final; }); if (!x) x = 1; x++; if ( x > 10) clearInterval(limit); },100); },3000); }, 3000); }, 3000); }
</script> </html>