From 15f678b67b123f668007f2e56be750a0ee0d000e Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 24 Nov 2008 23:40:47 +0000 Subject: [PATCH] =?UTF-8?q?-=20LSdefault=20:=20Fonctionnalit=C3=A9=20pour?= =?UTF-8?q?=20le=20divertissement=20de=20l'utilisateur.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trunk/includes/js/LSdefault.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/trunk/includes/js/LSdefault.js b/trunk/includes/js/LSdefault.js index 265c9cba..da02513f 100644 --- a/trunk/includes/js/LSdefault.js +++ b/trunk/includes/js/LSdefault.js @@ -47,6 +47,23 @@ var LSdefault = new Class({ 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'); },