- )
-}
-
-PageProfile.prototype.chargerLogin = function()
-{
- var thisPage = this
-
- $("#page form#profile button").click(
- function()
- {
- if(thisPage.client.connexionLogin($("form#profile input.login").val(), thisPage.util.md5($("form#profile input.password").val())))
- {\r
- // TODO afficher un message "ok"
- thisPage.pages.afficherPage("minichat")
- }
- }
- )
-}
-
-PageProfile.prototype.getHTML = function()
-{
-return '\
-<form action="" id="profile" >\
- <table>\
- <tr>\
- <td>login</td>\
- <td><input class="login" type="text" size="20" maxlength="20" ' + (this.client.authentifie() ? 'readonly="readonly"' : '') + ' /></td>\
- </tr>\
- <tr>\
- <td>password</td>\
- <td><input class="password" type="password" size="20" maxlength="20"/></td>\
- </tr>' +
- (this.client.authentifie() ? '\
- <tr>\
- <td>password re</td>\
- <td><input class="passwordRe" type="password" size="20" maxlength="20"/></td>\
- </tr>\
- <tr>\
- <td>pseudo</td>\
- <td><input class="pseudo" type="text" size="40" maxlength="20"/></td>\
- </tr>\
- <tr>\
- <td>e-mail</td>\
- <td><input class="email" type="text" size="40" maxlength="100"/></td>\
- </tr>\
- <tr>\
- <td>Affichage des identifiants</td>\
- <td>\
- <select id="affichagePseudo">\
- <option value="nick">Pseudo</option>\
- <option value="login">Login</option>\
- <option value="nick_login">Pseudo(Login)</option>\
- </select>\
- </td>\
- </tr>\
- <tr>\
- <td>Afficher les infos bulles</td>\
- <td><input type="checkbox" id="viewTooltips" /></td>\
- </tr>\
- <tr>\
- <td>Afficher les dates</td>\
- <td><input type="checkbox" id="viewTimes" /></td>\
- </tr>' : '') + '\
- <tr>\
- <td></td>\
- <td><button>Valider</button>\
- </tr>\
- </table>\
-</form>'
-}
-
+ );\r
+};\r
+\r
+euphorik.PageProfile.prototype.getHTML = function() {\r
+ return '<form action="" id="profile" >' +\r
+ ' <table>' +\r
+ ' <tr>' +\r
+ ' <td>login</td>' +\r
+ ' <td><input class="login" type="text" size="20" maxlength="20" ' + (this.client.authentifie() ? 'readonly="readonly"' : '') + ' /></td>' +\r
+ (this.client.authentifie() ? '' : ' <td>(sensible à la <a href="http://fr.wikipedia.org/wiki/Casse_(informatique)">casse</a>)</td>') +\r
+ ' </tr>' +\r
+ ' <tr>' +\r
+ ' <td>password</td>' +\r
+ ' <td><input class="password" type="password" size="20" maxlength="20"/></td>' +\r
+ ' </tr>' + \r
+ (this.client.authentifie() ? '' +\r
+ ' <tr>' +\r
+ ' <td>password re</td>' +\r
+ ' <td><input class="passwordRe" type="password" size="20" maxlength="20"/></td>' +\r
+ ' </tr>' +\r
+ ' <tr>' +\r
+ ' <td>pseudo</td>' +\r
+ ' <td><input class="pseudo" type="text" size="40" maxlength="20"/></td>' +\r
+ ' </tr>' +\r
+ ' <tr>' +\r
+ ' <td>e-mail</td>' +\r
+ ' <td><input class="email" type="text" size="40" maxlength="100"/></td>' +\r
+ ' </tr>' +\r
+ ' <tr>' +\r
+ ' <td>Ordre des messages</td>' +\r
+ ' <td>' +\r
+ ' <select id="chatOrder">' +\r
+ ' <option value="chrono">Chronologique</option>' +\r
+ ' <option value="reverse">Anti-chronologique</option>' +\r
+ ' </select>' +\r
+ ' </td>' +\r
+ ' </tr>' +\r
+ ' <tr>' +\r
+ (this.client.ekMaster ? '' +\r
+ ' <td>Degrée d\'ostentation</td>' +\r
+ ' <td>' +\r
+ ' <select id="degreeOstentatoire">' +\r
+ ' <option value="invisible">Nul</option>' +\r
+ ' <option value="light">Faible</option>' +\r
+ ' <option value="heavy">Élevé</option>' +\r
+ ' </select>' +\r
+ ' </td>' : '') +\r
+ ' </tr>' +\r
+ ' <tr>' +\r
+ ' <td>Affichage des identifiants</td>' +\r
+ ' <td>' +\r
+ ' <select id="affichagePseudo">' +\r
+ ' <option value="nick">Pseudo</option>' +\r
+ ' <option value="login">Login</option>' +\r
+ ' <option value="nick_login">Pseudo(Login)</option>' +\r
+ ' </select>' +\r
+ ' </td>' +\r
+ ' </tr>' +\r
+ ' <tr>' +\r
+ ' <td>Afficher les infos bulles</td>' +\r
+ ' <td><input type="checkbox" id="viewTooltips" /></td>' +\r
+ ' </tr>' +\r
+ ' <tr>' +\r
+ ' <td>Afficher les dates</td>' +\r
+ ' <td><input type="checkbox" id="viewTimes" /></td>' +\r
+ ' </tr>' : '') +\r
+ ' <tr>' +\r
+ ' <td></td>' +\r
+ ' <td><button>Valider</button></td>' +\r
+ ' </tr>' +\r
+ ' </table>' +\r
+ '</form>';\r
+};\r