Your ROOT_URL in app.ini is https://git.ondrovo.com/ but you are visiting http://159.69.29.240:49153/MightyPork/konami.js/commit/b596edf4d7b1b1fa2b017f6acfaebc8fba41b4a2?style=split&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
39 additions and
26 deletions
README.md
example.html
konami.js
konami.min.js
@ -16,3 +16,4 @@ It's super simple:
```
```
Tested to work in Chrome and Firefox.
Tested to work in Chrome and Firefox.
@ -3,7 +3,7 @@
< head >
< head >
< title > Konami code example< / title >
< title > Konami code example< / title >
< script src = "konami.js" > < / script >
< script src = "konami.min. js" > < / script >
< script >
< script >
konami(function () {
konami(function () {
@ -18,6 +18,8 @@
< p > You did not know that, did you? Well now you do. Also, ostrich is a fish.< / p >
< p > You did not know that, did you? Well now you do. Also, ostrich is a fish.< / p >
< p > Hint: the code is < code > ↑↑↓↓←→←→BA< / code > < / p >
< / body >
< / body >
< / html >
< / html >
@ -1,4 +1,8 @@
// https://github.com/MightyPork/konami.js | MIT License
/ * ! k o n a m i . j s
https : //github.com/MightyPork/konami.js
( c ) MightyPork 2015 , MIT License
Usage : konami ( callback ) ;
* /
( function ( window ) {
( function ( window ) {
"use strict" ;
"use strict" ;
@ -0,0 +1,6 @@
/ * ! k o n a m i . j s
https : //github.com/MightyPork/konami.js
( c ) MightyPork 2015 , MIT License
Usage : konami ( callback ) ;
* /
! function ( n ) { "use strict" ; var e = n . document , o = [ 38 , 38 , 40 , 40 , 37 , 39 , 37 , 39 , 66 , 65 ] , t = 0 ; n . konami = function ( n ) { var i = function ( e ) { e . keyCode == o [ t ] ? ++ t == o . length && ( console . log ( "コナミ" ) , "function" == typeof n && n ( ) , t = 0 ) : t = 0 } ; e . addEventListener ? e . addEventListener ( "keyup" , i ) : e . onkeyup = i } } ( window ) ;