Site Notice

hello, world

Difference between revisions of "Do not press the button"

From Project-EPB Commons
m (机智的小鱼君 moved page Joke to Do not press the button without leaving a redirect)
Line 4: Line 4:
 
<p id="new" style="display:none">呵呵,你以为我会让你看到吗?</p>
 
<p id="new" style="display:none">呵呵,你以为我会让你看到吗?</p>
 
<style>
 
<style>
 +
/*
 
   button#clickMe {
 
   button#clickMe {
 
     padding: 0.5em 0.7em;
 
     padding: 0.5em 0.7em;
Line 11: Line 12:
 
     border: 1px solid #3380ff;
 
     border: 1px solid #3380ff;
 
   }
 
   }
 +
*/
 
</style>
 
</style>
 
<script>
 
<script>

Revision as of 17:22, 21 November 2019

<html> <b style="color:#b00">警告:网页可能会崩溃</b><br/> <button onclick="showNew()" id="clickMe">绝对不要点我</button> <p id="new" 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() {
   $('#new').show(50);
   setTimeout(function () {
     $('#new').html('算了算了,给你点面子好了。');
     setTimeout(function () {
       $('#new').html('呵呵,你以为我会这样放过你?(<b style="color:#b00">警告:网页可能会崩溃,建议刷新网页</b>)');
       setTimeout(function(){
         $('#new').html('死吧!!!');
         var limit = setInterval(function(){
           $('#new').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>