Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(document).ready(function (e) {
- var $worked = $("#worked");
- function update() {
- var myTime = $worked.html();
- var ss = myTime.split(":");
- var dt = new Date();
- dt.setHours(0);
- dt.setMinutes(ss[0]);
- dt.setSeconds(ss[1]);
- var dt2 = new Date(dt.valueOf() - 1000);
- var temp = dt2.toTimeString().split(" ");
- var ts = temp[0].split(":");
- $worked.html(ts[1]+":"+ts[2]);
- setTimeout(update, 1000);
- }
- setTimeout(update, 1000);
- });
- </script>
- <script>
- $(document).ready(function() {
- $('#bottombar').delay(4000).fadeIn(400);
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement