├── konami.jpg ├── bw-ajax-loader.gif ├── readme.md ├── style.css ├── index.html └── lib ├── getimagedata.js ├── konami-code.js ├── greyscale.js └── jquery.js /konami.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/konami-code/master/konami.jpg -------------------------------------------------------------------------------- /bw-ajax-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/konami-code/master/bw-ajax-loader.gif -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # Konami Code 2 | 3 | ## Post 4 | 5 | - [https://f90.co.uk/labs/konami-code/](https://f90.co.uk/labs/konami-code/) 6 | 7 | ## Example 8 | 9 | - [https://orangespaceman.github.io/konami-code](https://orangespaceman.github.io/konami-code) 10 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | html, 2 | body { 3 | margin:0; 4 | padding:0; 5 | background: #fff; 6 | } 7 | 8 | .image-wrap { 9 | position: relative; 10 | margin: 2em; 11 | } 12 | 13 | /* BW image container */ 14 | .bw-wrap { 15 | display:block; 16 | position:relative; 17 | } 18 | 19 | .bw-wrap img { 20 | position:absolute; 21 | left:0; 22 | top:0; 23 | } 24 | 25 | .bw-wrap img.bw { 26 | z-index:2; 27 | } 28 | 29 | .bw-wrap img.original { 30 | z-index:1; 31 | } 32 | 33 | .bw-wrap span.loader { 34 | display:block; 35 | position:absolute; 36 | left:0; 37 | top:0; 38 | width:100%; 39 | height:100%; 40 | background:url(./bw-ajax-loader.gif) no-repeat 10px 10px; 41 | background-color:rgba(200, 200, 200, 0.3); 42 | z-index:10; 43 | } -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
11 | | t |