New favico
- Updated favico - Proper formatting for a couple of files
This commit is contained in:
parent
74b1a28e1c
commit
042dcb5018
@ -20,4 +20,4 @@ p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
|
|||||||
|
|
||||||
#root, #__next { isolation: isolate; }
|
#root, #__next { isolation: isolate; }
|
||||||
|
|
||||||
[hidden] { display: none; }
|
[hidden] { display: none; }
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.9 KiB |
BIN
favicon.ico
BIN
favicon.ico
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@ -21,7 +21,10 @@ var konamiCode = [
|
|||||||
var currentKey = 0
|
var currentKey = 0
|
||||||
var keyHandler = function (event) {
|
var keyHandler = function (event) {
|
||||||
// If the key isn't in the pattern, or isn't the current key in the pattern, reset
|
// If the key isn't in the pattern, or isn't the current key in the pattern, reset
|
||||||
if (konamiCode.indexOf(event.key) < 0 || event.key !== konamiCode[currentKey]) {
|
if (
|
||||||
|
konamiCode.indexOf(event.key) < 0 ||
|
||||||
|
event.key !== konamiCode[currentKey]
|
||||||
|
) {
|
||||||
currentKey = 0
|
currentKey = 0
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -29,13 +32,13 @@ var keyHandler = function (event) {
|
|||||||
// Update how much of the pattern is complete
|
// Update how much of the pattern is complete
|
||||||
currentKey++
|
currentKey++
|
||||||
|
|
||||||
// If complete, alert and reset
|
// If complete, add animation class and reset
|
||||||
if (konamiCode.length === currentKey) {
|
if (konamiCode.length === currentKey) {
|
||||||
currentKey = 0
|
currentKey = 0
|
||||||
document.getElementById('traichu-running').classList.add('slide')
|
document.getElementById('traichu-running').classList.add('slide')
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
document.getElementById('traichu-running').classList.remove('slide')
|
document.getElementById('traichu-running').classList.remove('slide')
|
||||||
}, 4250);
|
}, 4250)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user