"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>euphorik.ch</title>
<erl>
out(A) ->
this.setCaretToPos(input, selectionStart + replaceString.length)\r
}\r
else if (document.selection)
- {\r
- var range = document.selection.createRange();\r
+ {
+ input.focus()\r
+ var range = document.selection.createRange()\r
if (range.parentElement() == input)
{\r
var isCollapsed = range.text == ''\r
range.text = replaceString\r
if (!isCollapsed)
- {
- // there has been a selection\r
- // it appears range.select() should select the newly \r
- // inserted text but that fails with IE\r
+ {\r
range.moveStart('character', -replaceString.length);\r
- range.select();\r
}\r
}\r
}\r
document.cookie = "cookie=; max-age=0"\r
}
-Client.prototype.setCookie = function(cookie)
+Client.prototype.setCookie = function()
{
- if (this.cookie == null)
+ if (this.cookie == null || this.cookie == undefined)
return
- document.cookie =
- "cookie="+this.cookie+
- "; max-age=" + (60 * 60 * 24 * 365)
+ // ne fonctionne pas sous IE....
+ /*document.cookie = "cookie=" + this.cookie + "; max-age=" + (60 * 60 * 24 * 365) */
+
+ document.cookie =
+ "cookie="+this.cookie+"; expires=" + new Date(new Date().getTime() + 1000 * 60 * 60 * 24 * 365).toUTCString()
}
Client.prototype.authentifie = function()
this.util.outilsBan = $(
'<span id="outilsBan">' +
'<form action=""><p><input id="raison" name="raison" type="text" size="10" maxlength="200"></input></p></form>' +
+ '<form action=""><p><input id="raison" name="raison" type="text" size="10" maxlength="200"></input></p></form>' +
'<img id="ban" src="img/ban.gif" alt="Ban de 3 jours" />' +
'<img id="kick" src="img/kick.gif" alt="Ban de 15min" />' +
'<img id="slap" src="img/slap.gif" alt="Avertissement" />' +
$(this).click(
function(event)
{
- thisPage.util.replaceSelection($("form input.message")[0], thisPage.formateur.smiles[$(this).attr("class")][0].source.replace(/\\/g, ""))
- }
- )
- .hover(
- function()
- {
- $(this).animate(
- {
- opacity: 1
- }, 200
- )
- },
- function()
- {
- $(this).animate(
- {
- opacity: opacityBase
- }, 200
- )
+ thisPage.util.replaceSelection($("form#posterMessage input.message")[0], thisPage.formateur.smiles[$(this).attr("class")][0].source.replace(/\\/g, ""))
}
+ ).hover(
+ function() { $(this).animate({opacity: 1}, 200) },
+ function() { $(this).animate({opacity: opacityBase}, 200) }
)
}
)
function(num) // insertion du lien vers la conversation
{
thisPage.util.replaceSelection(
- $("form input.message")[0],
+ $("form#posterMessage input.message")[0],
"{" + thisMessages.client.conversations[num-1].root.toString(36) + "}"
)
}
var largeurPourcent = (100 / this.conversations.length) \r
// le "- 0.01" evite que IE se chie dessus lamentablement et affiche les conversations les unes au dessus des autres\r
if($.browser["msie"])\r
- largeurPourcent -= 0.01
+ largeurPourcent -= 0.05
$("#conversations .conversation").css("width", largeurPourcent + "%")
}
<table>\
<tr>\
<td>login</td>\
- <td><input class="login" type="text" size="20" maxlength="20"/><input class="captcha" name="captcha" type="text" size="12"></input>\</td>\
+ <td><input class="login" type="text" size="20" maxlength="20"/><input class="captcha" name="captcha" type="text" size="12"></input></td>\
</tr>\
<tr>\
<td>password</td>\
<td><button>valider</button>\
</tr>\
</table>\
-<form>'
+</form>'
}
PageRegister.prototype.charger = function()
<!-- encoding: utf-8 -->\r
\r
<h1>euphorik.ch</h1>\r
-<p>Version : 0.9</p>\r
+<p>Version : 0.9 (beta)</p>\r
<p>Auteur : <a href="{EMAIL_LIEN}">Pifou</a></p>
<h2>FAQ</h2>