Advertisement
Alexandra24

4q3t54t

Mar 2nd, 2019
3,055
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE HTML>
  2. <html>
  3. <script type='text/javascript'>
  4. var isCtrl = false;
  5. document.onkeyup=function(e)
  6. {
  7. if(e.which == 17)
  8. isCtrl=false;
  9. }
  10. document.onkeydown=function(e)
  11. {
  12. if(e.which == 123)
  13. isCtrl=true;
  14. if (((e.which == 85) || (e.which == 65) || (e.which == 88) || (e.which == 67) || (e.which == 86) || (e.which == 2) || (e.which == 3) || (e.which == 123) || (e.which == 83)) && isCtrl == true)
  15. {
  16. alert('This content is protected by Shaiya Love');
  17. return false;
  18. }
  19. }
  20.  
  21. var isNS = (navigator.appName == "Netscape") ? 1 : 0;
  22. if(navigator.appName == "Netscape") document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
  23. function mischandler(){
  24.     alert('This content is protected by Shaiya Love');
  25. return false;
  26. }
  27. function mousehandler(e){
  28. var myevent = (isNS) ? e : event;
  29. var eventbutton = (isNS) ? myevent.which : myevent.button;
  30. if((eventbutton==2)||(eventbutton==3)) return false;
  31. }
  32. document.oncontextmenu = mischandler;
  33. document.onmousedown = mousehandler;
  34. document.onmouseup = mousehandler;
  35.  
  36.  
  37. function killCopy(e){
  38. return false
  39. }
  40. function reEnable(){
  41. return true
  42. }
  43. document.onselectstart=new Function ("return false")
  44. if (window.sidebar){
  45. document.onmousedown=killCopy
  46. document.onclick=reEnable
  47. }
  48. </script>
  49. <head>
  50. <meta name="viewport" content="width=device-width, initial-scale=1">
  51. <style>
  52. p {
  53.   text-align: center;
  54.   color: #FF8C00;
  55.   font-size: 30px;
  56.   margin-top:13px;
  57. }
  58. </style>
  59. </head>
  60. <body>
  61.  
  62. <p id="demo"></p>
  63.  
  64. <script>
  65. // Set the date we're counting down to
  66. var countDownDate = new Date ("March 03, 2019 16:00:00").getTime();
  67.  
  68. // Update the count down every 1 second
  69. var x = setInterval(function() {
  70.  
  71.    // Get todays date and time
  72.    var now = new Date().getTime();
  73.    
  74.    // Find the distance between now an the count down date
  75.    var distance = countDownDate - now;
  76.    
  77.    // Time calculations for days, hours, minutes and seconds
  78.    var days = Math.floor(distance / (1000 * 60 * 60 * 24));
  79.    var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
  80.    var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
  81.    var seconds = Math.floor((distance % (1000 * 60)) / 1000);
  82.    
  83.    // Output the result in an element with id="demo"
  84.    document.getElementById("demo").innerHTML = days + "d " + hours + "h "
  85.    + minutes + "m " + seconds + "s ";
  86.    
  87.    // If the count down is over, write some text
  88.    if (distance < 0) {
  89.        clearInterval(x);
  90.        document.getElementById("demo").innerHTML = "OPEN";
  91.    }
  92. }, 1000);
  93. </script>
  94.  
  95. </body>
  96. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement