Outils pour utilisateurs

Outils du site


brouillon10

Ceci est une ancienne révision du document !


<!DOCTYPE html> <html lang=“fr”> <head> <meta charset=“utf-8”>

<style> body { font-family: Arial; }

table { border-collapse: collapse; width: 100%; font-size: 13px; } td, th { border: 1px solid #ccc; padding: 5px; } th { background: #f2f2f2; }

.controls { margin-bottom:10px; } </style> </head>

<body>

Points : 0 / 15

<br><br>

Recherche : <input type=“text” id=“search” placeholder=“Nom, effet…”>

Filtre type : <select id=“filterType”> <option value=“all”>Tous</option> <option value=“DIS”>Distance</option> <option value=“P”>Passif</option> </select>

<table id=“skills”>

<thead> <tr> <th></th> <th>Race</th> <th>Nom</th> <th>Coût</th> <th>Type</th> <th>Effet</th> <th>Portée</th> <th>Niv</th> </tr> </thead>

<tbody>

<!– ===== NIVEAU 1 ===== –>

<tr data-type=“DIS”> <td><input type=“checkbox” class=“skill”></td> <td>Communs</td><td>Arme improvisée</td><td>2 MP</td><td>Jet</td><td>-2</td><td>min 2</td><td>1</td> </tr>

<tr data-type=“DIS”> <td><input type=“checkbox” class=“skill”></td> <td>Communs</td><td>Bout portant</td><td>2 MP</td><td>Jet</td><td>/</td><td>max 1</td><td>1</td> </tr>

<tr data-type=“DIS”> <td><input type=“checkbox” class=“skill”></td> <td>Communs</td><td>Tir ajusté</td><td>2 MP</td><td>Distance</td><td>Avantage</td><td>min 2</td><td>1</td> </tr>

<tr data-type=“DIS”> <td><input type=“checkbox” class=“skill”></td> <td>Communs</td><td>Tir épuisant</td><td>/</td><td>Tir munitions</td><td>Essoufflement (X/3)</td><td>min 2</td><td>1</td> </tr>

<tr data-type=“DIS”> <td><input type=“checkbox” class=“skill”></td> <td>Communs</td><td>Tir précis</td><td>2 MP</td><td>Distance</td><td>+4 toucher -3 dégâts</td><td>min 2</td><td>1</td> </tr>

<tr data-type=“DIS”> <td><input type=“checkbox” class=“skill”></td> <td>Communs</td><td>Tir violent</td><td>2 MP</td><td>Distance</td><td>-6 toucher +2 dégâts</td><td>min 2</td><td>1</td> </tr>

<!– ===== NIVEAU 2 ===== –>

<tr data-type=“DIS”> <td><input type=“checkbox” class=“skill”></td> <td>Communs</td><td>Jet de sable</td><td>4 MP, 1 Mvt</td><td>Distance</td><td>0</td><td>max 1</td><td>2</td> </tr>

<tr data-type=“DIS”> <td><input type=“checkbox” class=“skill”></td> <td>Communs</td><td>Tir à la cheville</td><td>6 MP</td><td>Tir munitions</td><td>Ralentissement(x1D2)</td><td>min 2</td><td>2</td> </tr>

<tr data-type=“DIS”> <td><input type=“checkbox” class=“skill”></td> <td>Communs</td><td>Tir handicapant</td><td>4 MP</td><td>Distance</td><td>Vulnérabilité (xX)</td><td>min 2</td><td>2</td> </tr>

<!– ===== NIVEAU 3 ===== –>

<tr data-type=“DIS”> <td><input type=“checkbox” class=“skill”></td> <td>Communs</td><td>Jet infusé</td><td>10 MP</td><td>Jet</td><td>M/3</td><td>min 2</td><td>3</td> </tr>

<!– ===== NIVEAU 4 ===== –>

<tr data-type=“P”> <td><input type=“checkbox” class=“skill”></td> <td>Communs</td><td>Escarmoucheur</td><td>/</td><td>Passif</td><td>/</td><td>/</td><td>4</td> </tr>

<tr data-type=“P”> <td><input type=“checkbox” class=“skill”></td> <td>Communs</td><td>Lanceur</td><td>/</td><td>Passif</td><td>/</td><td>/</td><td>4</td> </tr>

<tr data-type=“P”> <td><input type=“checkbox” class=“skill”></td> <td>Communs</td><td>Tireur d'élite</td><td>/</td><td>Passif</td><td>/</td><td>/</td><td>4</td> </tr>

</tbody> </table>

<script>

let max = 15;

document.querySelectorAll(“.skill”).forEach(cb⇒{ cb.addEventListener(“change”, ()⇒{ let total = document.querySelectorAll(“.skill:checked”).length; if(total > max){ cb.checked = false; return; } points.innerText = total; }); });

function filter(){ let t = filterType.value; let s = search.value.toLowerCase();

document.querySelectorAll(“#skills tbody tr”).forEach(r⇒{ let txt = r.innerText.toLowerCase(); let ok = (t==“all”||r.dataset.type==t) && txt.includes(s); r.style.display = ok ? “” : “none”; }); }

filterType.onchange = filter; search.oninput = filter;

</script>

</body> </html>

brouillon10.1776937133.txt.gz · Dernière modification : 2026/04/23 11:38 de nanaki