From: Greg Burri Date: Sat, 17 May 2008 17:39:39 +0000 (+0000) Subject: MOD légère amélioration de code HTML pour plus de respect des standards X-Git-Tag: 1.0.0^2~61 X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=commitdiff_plain;h=934ab32cd6fac44f6b3ebedef69ce1ccd0b8701b MOD légère amélioration de code HTML pour plus de respect des standards --- diff --git a/index.html b/index.html index a35a982..5b53b6a 100755 --- a/index.html +++ b/index.html @@ -4,8 +4,8 @@ euphorik.ch - - + + @@ -24,12 +24,14 @@ -
- + +

+ +

diff --git a/js/euphorik.js b/js/euphorik.js index 29e85ad..4210713 100755 --- a/js/euphorik.js +++ b/js/euphorik.js @@ -277,7 +277,7 @@ Formateur.prototype.getSmilesHTML = function() var XHTML = "" for (var sNom in this.smiles) { - XHTML += "" + XHTML += "\""" } return XHTML } @@ -311,7 +311,7 @@ Formateur.prototype.traiterLiensConv = function(M) /** * FIXME : Cette méthode est attrocement lourde ! A optimiser. - * moyenne su échantillon : 234ms + * moyenne sur échantillon : 234ms */ Formateur.prototype.traiterSmiles = function(M) { @@ -319,7 +319,7 @@ Formateur.prototype.traiterSmiles = function(M) { ss = this.smiles[sNom] for (var i = 0; i < ss.length; i++) - M = M.replace(ss[i], "") + M = M.replace(ss[i], "\""") } return M } diff --git a/js/pageAdmin.js b/js/pageAdmin.js index a0b8d68..6dc96de 100644 --- a/js/pageAdmin.js +++ b/js/pageAdmin.js @@ -13,7 +13,7 @@ PageAdmin.prototype.contenu = function() { return '

Trolls

\

Chaque semaine un troll est choisit au hasard parmis les trolls proposés et devient le troll de la semaine.

\ -

\ +

\ \ \

' diff --git a/js/pageMinichat.js b/js/pageMinichat.js index 217069d..541c980 100755 --- a/js/pageMinichat.js +++ b/js/pageMinichat.js @@ -46,7 +46,7 @@ PageMinichat.prototype.charger = function() { $("body").append( '
' + - '

' + + '

' + 'Ban de 3 jours' + 'Ban de 15min' + 'Avertissement' + @@ -505,7 +505,7 @@ Conversation.prototype.flush = function(funClickOuvrirConv) XHTMLrepondA = "" + XHTMLrepondA + "" XHTML += - "
" + "
>
" + "[" + message.date + "]" + - "" + identifiant + ":" + + "" + message.auteurId + "" + identifiant + ":" + XHTMLrepondA + "" + (message.systeme ? this.formateur.remplacerBalisesHTML(message.contenu) : this.formateur.traitementComplet(message.contenu, message.pseudo)) + "" + "
" @@ -531,7 +531,7 @@ Conversation.prototype.flush = function(funClickOuvrirConv) $("#conversations #" + this.getId() + " .message").slice(this.nbMessageMax, nbMessagesAffiche).empty() // ajoute les événements liés à chaque nouveau message - $("#conversations #" + this.getId() + " .message").filter(function(){return parseInt($(this).attr("id"), 36) > thisConversation.idDernierMessageAffiche}).each( + $("#conversations #" + this.getId() + " .message").filter(function(){return parseInt($(this).attr("id").substr(4), 36) > thisConversation.idDernierMessageAffiche}).each( function() { $(".lienConv", this).click( @@ -551,7 +551,7 @@ Conversation.prototype.flush = function(funClickOuvrirConv) $(".pseudo", this).hover( function(e) { - var userId = parseInt($(this).attr("id").substr(4)) + var userId = parseInt($(".id", this).text()) var element = $(this) var h = element.height() var offset = element.offset() @@ -588,7 +588,7 @@ Conversation.prototype.flush = function(funClickOuvrirConv) if ($(event.target).is("a")) return // l'id du message - var idMess = $(this).attr("id") + var idMess = $(this).attr("id").substr(4) // extraction d'une conversation if ($(event.target).is(".extraire")) @@ -632,7 +632,7 @@ Conversation.prototype.flush = function(funClickOuvrirConv) Conversation.prototype.afficherConversation = function(element) { // cherche le message selectionné - var id = parseInt($(element).attr("id"), 36) + var id = parseInt($(element).attr("id").substr(4), 36) var message = this.messagesParId[id] if (message == undefined) return @@ -644,7 +644,7 @@ Conversation.prototype.afficherConversation = function(element) function() { var jq = $(this) - if (!mess.hasOwnProperty(parseInt(jq.attr("id"), 36))) + if (!mess.hasOwnProperty(parseInt(jq.attr("id").substr(4), 36))) jq.addClass("cache") else jq.removeClass("cache") diff --git a/js/pageProfile.js b/js/pageProfile.js index 0641e7c..b8d210e 100755 --- a/js/pageProfile.js +++ b/js/pageProfile.js @@ -91,7 +91,7 @@ PageProfile.prototype.chargerLogin = function() PageProfile.prototype.getHTML = function() { return '\ -
\ +\ \ \ \ diff --git a/js/pageRegister.js b/js/pageRegister.js index ea9092d..42a9bec 100755 --- a/js/pageRegister.js +++ b/js/pageRegister.js @@ -12,7 +12,7 @@ function PageRegister(client, formateur, util) PageRegister.prototype.contenu = function() { return '\ -\ +\
login
\ \ \ diff --git a/modules/include/euphorik_defines.hrl b/modules/include/euphorik_defines.hrl index 03c7ff1..e9beafb 100755 --- a/modules/include/euphorik_defines.hrl +++ b/modules/include/euphorik_defines.hrl @@ -24,4 +24,4 @@ % Le jour ainsi que l'heure à laquelle est élu un nouveau troll (lundi à 3 heure du mat) -define(JOUR_ELECTION_TROLL, 1). % 1 = lundi --define(HEURE_ELECTION_TROLL, 3). % 3 heure du matin \ No newline at end of file +-define(HEURE_ELECTION_TROLL, 3). % 3 heure du matin
login