mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Merge pull request #208 from YunoHost/nyancat
Replace pacman with nyancat 8)
This commit is contained in:
commit
98744a822d
3 changed files with 31 additions and 0 deletions
|
@ -352,6 +352,19 @@ div.br {
|
|||
right: 0;
|
||||
z-index: 2000;
|
||||
}
|
||||
|
||||
.with-nyancat {
|
||||
.loader{
|
||||
background: rgba(255, 255, 255, 0.5) url(../img/nyancat.gif) center 15% no-repeat;
|
||||
animation: pacmanlinearmove 6s linear infinite;
|
||||
}
|
||||
.loader-content {
|
||||
left: -20%;
|
||||
right: -20%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.loader-popup {
|
||||
margin: auto;
|
||||
height: 24px;
|
||||
|
|
BIN
src/img/nyancat.gif
Normal file
BIN
src/img/nyancat.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
|
@ -83,4 +83,22 @@
|
|||
app.bind('logout', function(e, data) {
|
||||
$('#yunohost-version').empty();
|
||||
});
|
||||
|
||||
|
||||
// Konamicode ;P up up down down left right left right b a
|
||||
var konami_code = [38, 38, 40, 40, 37, 39, 37, 39, 66, 65],
|
||||
konami_step = 0;
|
||||
$(document).keydown(function (e) {
|
||||
if (e.keyCode === konami_code[konami_step++]) {
|
||||
if (konami_step === konami_code.length) {
|
||||
konami_step = 0;
|
||||
$('#main').addClass("with-nyancat");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else {
|
||||
konami_step = 0;
|
||||
}
|
||||
});
|
||||
|
||||
})();
|
||||
|
|
Loading…
Reference in a new issue