Advertisement
Mark2020H

Python basic security using HTML 5 (Part 2)

Jan 21st, 2022
1,037
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <head>
  2.     <link rel="stylesheet" href="timerpage.css">
  3.     <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>  
  4.     <script>
  5.  
  6.         $( document ).ready(function() {
  7.                
  8.            
  9.                 setInterval(function () {
  10.                 var d = new Date();
  11.                     $("#myimg").attr("src", "img.jpg?"+d.getTime());
  12.                 }, 1000);
  13.        
  14.             });
  15.        
  16.     </script>
  17.  
  18. </head>
  19. <body>
  20.      <div class = "container " id = "container">
  21.      <img class="switch" id ="myimg" src="img.jpg"  />
  22.    
  23.    </div>
  24. </body>
  25.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement