Site Notice

hello, world

Difference between revisions of "Do not press the button"

From Project-EPB Commons
([InPageEdit] 没有编辑摘要)
([InPageEdit] 没有编辑摘要)
Line 23: Line 23:
 
         $('#joke').remove();
 
         $('#joke').remove();
 
         $('#final').show(150);
 
         $('#final').show(150);
 +
        $('#new').hide(150);
 
         setTimeout(function(){
 
         setTimeout(function(){
 
           $('#final').html('死吧!!!');
 
           $('#final').html('死吧!!!');

Revision as of 17:13, 21 November 2019

<html> <b style="color:#b00">警告:网页可能会崩溃</b><br/> <button onclick="showNew()">绝对不要点我</button> <p id="joke" style="display:none">呵呵,你以为我会让你看到吗?</p> <p id="new" style="display:none">好好好,给你点面子好了!</p> <p id="final" style="display:none">切,你以为我会放过你吗?准备接受最后的审判吧!(警告:网页可能会崩溃)</p> <style>

 button {
   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('死吧!!!');
         setInterval(function(){
           $('#final').html(function(){
             var $this = $(this);
             var before = $this.text();
             var final = before + before;
             return final;
           });
         },100);
       },3000);
     }, 3000);
   }, 3000);
 }

</script> </html>