7 changed files with 115 additions and 9 deletions
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 207 KiB |
|
After Width: | Height: | Size: 40 KiB |
@ -1,10 +1,14 @@ |
|||
$(window).on("load", function() { |
|||
|
|||
let type = new TypeIt("#typed-data", { |
|||
/*let type = new TypeIt("#typed-data", { |
|||
speed: 10, |
|||
startDelay: 0, |
|||
cursor: true |
|||
}) |
|||
.go(); |
|||
|
|||
$(document).on("click", function() { |
|||
type.options({speed: 1}); |
|||
});*/ |
|||
|
|||
}); |
|||
@ -0,0 +1,23 @@ |
|||
$(window).on("load", function() { |
|||
|
|||
/* load timer */ |
|||
window.setInterval(function() { |
|||
var time = $("#timer").text(); |
|||
var t = time.split(":").map(t => parseInt(t)); |
|||
t[2] -= 1; |
|||
if (t[2] < 0) { |
|||
t[2] = 59; |
|||
t[1] -= 1; |
|||
} |
|||
if (t[1] < 0) { |
|||
t[1] = 59; |
|||
t[0] -= 1; |
|||
} |
|||
if (t[0] < 0) { |
|||
t[0] = 0; |
|||
t[1] = 0; |
|||
t[2] = 0; |
|||
} |
|||
$("#timer").text(t.join(":")); |
|||
}, 1000); |
|||
}); |
|||
Loading…
Reference in new issue