- LSdefault : Fonctionnalité pour le divertissement de l'utilisateur.

This commit is contained in:
Benjamin Renard 2008-11-24 23:40:47 +00:00
parent 03c6892e0f
commit 15f678b67b

View file

@ -47,6 +47,23 @@ var LSdefault = new Class({
this.displayInfosBox(); this.displayInfosBox();
} }
var getMoo = /moo$/;
if (getMoo.exec(window.location)) {
var mooTxt = " (__)\n (oo)\n /------\\\/\n / | ||\n * /\---/\\\n ~~ ~~";
var ulMoo = this.LSinfos.getElement('ul');
var preMoo = new Element('pre');
preMoo.set('html',mooTxt);
if ($type(ulMoo)) {
var liMoo = new Element('li');
liMoo.injectInside(ulMoo);
preMoo.injectInside(liMoo);
}
else {
preMoo.injectInside(this.LSinfos);
}
this.displayInfosBox();
}
this.LStips = new Tips('.LStips'); this.LStips = new Tips('.LStips');
}, },