• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

HTML Server save in

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
Hello everyone, I'm trying use this server save http://stackoverflow.com/questions/24335145/jquery-countdown-resets-itself script.. But I don't know understand what I suppost edit to the change the server save be at 6 a.m

Actually I have this in my layout.php - but I don't know for sure about it:
Code:
<script>var secondsToServerSave = 65420;</script>

I'm not familiar with jQuery and JS so sorry.

Thanks.
 
Code:
60 = 1 minute -- 60 seconds
60 * 60 = 1 hour -- 3600 seconds
60 * 60 * 24 = 24 hours -- 86400 seconds
Hypothetically speaking if secondsToServerSave were equivalent to 65420, the remaining time would be 10 hours and 20 minutes.
Code:
str +=Math.floor((secondsToServerSave %3600)/60)+" min and "+(secondsToServerSave %60)+" sec.";
 
Back
Top