Test
Messages : 14
![Tests transformation fonctions Empty](https://2img.net/i/empty.gif) | Sujet: Tests transformation fonctions Mar 27 Oct - 8:46 | |
| - Nombre aléatoire (1,2) :
- 1
- Nombre aléatoire (1,3) :
- 1
- Nombre aléatoire (1,4) :
- 2
- Nombre aléatoire (1,6) :
- 4
- Nombre aléatoire (1,8) :
- 5
- Nombre aléatoire (1,10) :
- 4
- Nombre aléatoire (1,12) :
- 10
- Nombre aléatoire (1,100) :
- 77
- Nombre aléatoire (1,20) :
- 13
[HRP]- Spoiler:
Spoiler [/HRP]
- jet d'attaque:
- Nombre aléatoire (1,20) :
- 19
- Code:
-
du code - Citation :
- une quote
Dernière édition par Test le Mar 27 Oct - 10:42, édité 12 fois | |
|
Test
Messages : 14
![Tests transformation fonctions Empty](https://2img.net/i/empty.gif) | Sujet: Re: Tests transformation fonctions Mar 27 Oct - 10:35 | |
| - 3 attaques Bonus +5 contre le gobelin 2:
- Test a effectué 3 lancé(s) d'un D20 :
- 14 , 11 , 7
+5
| |
|
Test
Messages : 14
![Tests transformation fonctions Empty](https://2img.net/i/empty.gif) | Sujet: Re: Tests transformation fonctions Mar 27 Oct - 11:24 | |
| Mis en stand by. Je laisse le code ici pour pouvoir supprimer le script. - Code:
-
;$(function() { /* paramètres à régler */ var spoiler_text = "Cliquer pour afficher le contenu :"; var rand_text = "jet de dé"; var citation_text = "Ceci est une citation :"; var code_text = "Ceci est un code :"; var a_ecrit_text = " a écrit précédemment :"; /* fin des paramètres à régler */ $(".postbody").find("dl.spoiler dt, de.rand dt, dl.codebox dt, dl.codebox dt span.genmed b, blockquote cite").each(function() { if (!this.hasChildNodes() || this.firstChild.nodeType != 3) return; var c = this.firstChild, t = c.nodeValue.trim(); t == "Spoiler:" && (c.nodeValue = spoiler_text) || t == "Nombre aléatoire (1,20) :" && (c.nodeValue = rand_text) || t == "Nombre aléatoire (1,2) :" && (c.nodeValue = rand_text) || t == "Nombre aléatoire (1,3) :" && (c.nodeValue = rand_text) || t == "Nombre aléatoire (1,4) :" && (c.nodeValue = rand_text) || t == "Nombre aléatoire (1,6) :" && (c.nodeValue = rand_text) || t == "Nombre aléatoire (1,8) :" && (c.nodeValue = rand_text) || t == "Nombre aléatoire (1,10) :" && (c.nodeValue = rand_text) || t == "Nombre aléatoire (1,12) :" && (c.nodeValue = rand_text) || t == "Nombre aléatoire (1,100) :" && (c.nodeValue = rand_text) || t == "Citation :" && (c.nodeValue = citation_text) || t == "Code:" && (c.nodeValue = code_text) || t.substr(-9) == " a écrit:" && (c.nodeValue = t.substr(0, t.length - 9) + a_ecrit_text); }).filter('cite').find('a[rel][href^="/u"]').each(function(){ if($(this).text().substr(0,1)!="@")return; $(this.nextSibling).replaceWith(a_ecrit_text); }); }); | |
|
Contenu sponsorisé
![Tests transformation fonctions Empty](https://2img.net/i/empty.gif) | Sujet: Re: Tests transformation fonctions ![Tests transformation fonctions Icon_minitime](https://2img.net/i/fa/icon_minitime.gif) | |
| |
|