Skycade Reset Counter

Developer
Size
3,124 Kb
Views
10,120

How do I make an skycade reset counter?

What is a skycade reset counter? How do you make a skycade reset counter? This script and codes were developed by Leo on 05 January 2023, Thursday.

Skycade Reset Counter Previews

Skycade Reset Counter - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Skycade Reset Counter</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <span id="container"><a href="javascript:requestNotifications()">Get notifications in this browser?</a></span><br> Skycade will reset in
<div id="countdown">Loading...</div>
<div id="pc">You need JavaScript for this BTW</div><div id="players"></div>
<img id="icon"></img><div id="purge"></div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Skycade Reset Counter - Script Codes CSS Codes

@import url('https://fonts.googleapis.com/css?family=Varela+Round');
body { text-align: center; color: #fff; background-color: #000; font-family: "Varela Round","Product Sans","Roboto","Caviar Dreams","Alsina","Open Sans","Futura","Segoe UI", "Century Gothic", "Arial", sans-serif;
}
a { color: #fff; text-decoration: none;
}
#pc { font-size: 200%;
}
#countdown { font-size: 500%;
}
#icon { position: absolute; width: 100vw; height: 100vw; top: -25vw; left: 0; z-index: 1; filter: blur(2vw); opacity: 0.2;
}
body { overflow: hidden;
}
#purge { opacity: 0.4; background: #f00; width: 100%; height: 100%; position: fixed; left: 0; top: 0;
}
#container * { z-index: 5;
}

Skycade Reset Counter - Script Codes JS Codes

var countDownDate = new Date("Sep 16, 2017 15: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("countdown").innerHTML = days + "d " + hours + "h " + minutes + "m " + seconds + "s "; if (hours < 19) { document.getElementById("purge").style.display = "inline-block"; } else { document.getElementById("purge").style.display = "none"; } if (minutes == 0) { if (seconds == 0) { var notification = new Notification(hours + " hours until Skycade resets."); } } // If the count down is over, write some text if (distance < 0) { clearInterval(x); document.getElementById("counddown").innerHTML = "Reset!"; }
}, 1000);
function requestNotifications() { // Let's check if the browser supports notifications if (!("Notification" in window)) { alert("This browser does not support system notifications"); } // Let's check whether notification permissions have already been granted else if (Notification.permission === "granted") { // If it's okay let's create a notification var notification = new Notification("Hello again! Notifications are on but, you still need to keep the site open in a tab."); } // Otherwise, we need to ask the user for permission else if (Notification.permission !== 'denied') { Notification.requestPermission(function (permission) { // If the user accepts, let's create a notification if (permission === "granted") { var notification = new Notification("Hello! Thanks for turning on notifications. You still need to keep the site open in a tab though."); } else { alert("You didn't allow notifications"); } }); } // Finally, if the user has denied notifications and you // want to be respectful there is no need to bother them any more.
}
function ping() { $.getJSON("https://api.minetools.eu/ping/play.skycade.net/25565", function(json){ document.getElementById("pc").innerHTML = "There's " + (json.players.online) + " people on Skycade right now!"; document.getElementById("icon").src = json.favicon });
}
ping();
setInterval(ping, 5000);
Skycade Reset Counter - Script Codes
Skycade Reset Counter - Script Codes
Home Page Home
Developer Leo
Username theLMGN
Uploaded January 05, 2023
Rating 3
Size 3,124 Kb
Views 10,120
Do you need developer help for Skycade Reset Counter?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Leo (theLMGN) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!