Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html>
- <script type='text/javascript'>
- var isCtrl = false;
- document.onkeyup=function(e)
- {
- if(e.which == 17)
- isCtrl=false;
- }
- document.onkeydown=function(e)
- {
- if(e.which == 123)
- isCtrl=true;
- 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)
- {
- alert('This content is protected by Shaiya Love');
- return false;
- }
- }
- var isNS = (navigator.appName == "Netscape") ? 1 : 0;
- if(navigator.appName == "Netscape") document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
- function mischandler(){
- alert('This content is protected by Shaiya Love');
- return false;
- }
- function mousehandler(e){
- var myevent = (isNS) ? e : event;
- var eventbutton = (isNS) ? myevent.which : myevent.button;
- if((eventbutton==2)||(eventbutton==3)) return false;
- }
- document.oncontextmenu = mischandler;
- document.onmousedown = mousehandler;
- document.onmouseup = mousehandler;
- function killCopy(e){
- return false
- }
- function reEnable(){
- return true
- }
- document.onselectstart=new Function ("return false")
- if (window.sidebar){
- document.onmousedown=killCopy
- document.onclick=reEnable
- }
- </script>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style>
- p {
- text-align: center;
- color: #FF8C00;
- font-size: 30px;
- margin-top:13px;
- }
- </style>
- </head>
- <body>
- <p id="demo"></p>
- <script>
- // Set the date we're counting down to
- var countDownDate = new Date ("March 03, 2019 16:00:00").getTime();
- // Update the count down every 1 second
- var x = setInterval(function() {
- // Get todays date and time
- var now = new Date().getTime();
- // Find the distance between now an the count down date
- var distance = countDownDate - now;
- // Time calculations for days, hours, minutes and seconds
- var days = Math.floor(distance / (1000 * 60 * 60 * 24));
- var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
- var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
- var seconds = Math.floor((distance % (1000 * 60)) / 1000);
- // Output the result in an element with id="demo"
- document.getElementById("demo").innerHTML = days + "d " + hours + "h "
- + minutes + "m " + seconds + "s ";
- // If the count down is over, write some text
- if (distance < 0) {
- clearInterval(x);
- document.getElementById("demo").innerHTML = "OPEN";
- }
- }, 1000);
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement