-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
184 lines (163 loc) · 6.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="Besoin de créer un personnage pour Brigandyne v2 ? Utilisez notre générateur de personnages prétirés pour vous lancer rapidement dans l'aventure ! Bienvenue sur Brigandyne, le jeu de rôle fantastique médiéval qui vous transportera dans un univers épique et plein de rebondissements.">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- bulma -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma-tooltip/1.2.0/bulma-tooltip.min.css"
integrity="sha512-eQONsEIU2JzPniggWsgCyYoASC8x8nS0w6+e5LQZbdvWzDUVfUh+vQZFmB2Ykj5uqGDIsY7tSUCdTxImWBShYg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css" />
<!-- material design icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css">
<link rel="stylesheet" href="./style.css">
<link rel="icon" type="image/x-icon" href="./medias/dice.png" />
<title>Générateur de personnage brigandyne v2</title>
<script>
// Vérifier si on n'est pas en local
if (location.hostname !== 'localhost' && location.hostname !== '127.0.0.1') {
// Charger Umami uniquement si l'hôte n'est pas local
const umamiScript = document.createElement('script');
umamiScript.defer = true;
umamiScript.src = "https://analytics.eu.umami.is/script.js";
umamiScript.setAttribute('data-website-id', 'a65aa44b-cfc3-4c43-84e2-7ba632b28e75');
document.head.appendChild(umamiScript);
}
</script>
</head>
<body class="container is-max-desktop">
<div class="columns box" id="primary_box">
<!-- Column button -->
<div class="column is-one-fifth" >
<div style="text-align: center;">
<button class="button is-warning">Générer</button><br><br>
</div>
<label>
<input type="checkbox" checked> Humain</input><br>
</label>
<label>
<input type="checkbox" checked> Nain</input><br>
</label>
<label>
<input type="checkbox" checked> Elfe</input><br>
</label>
<label>
<input type="checkbox" checked> Halfelin</input><br>
</label>
<br><br>
<div hidden id="displayArchetype">
<div class="select is-small" >
<select id="selectedArchetype">
<option value="aigle">Aigle</option>
<option value="ane">Âne</option>
<option value="cerf">Cerf</option>
<option value="chat">Chat</option>
<option value="chien">Chien</option>
<option value="coq">Coq</option>
<option value="corbeau">Corbeau</option>
<option value="fourmi">Fourmi</option>
<option value="hibou">Hibou</option>
<option value="hyene">Hyène</option>
<option value="lapin">Lapin</option>
<option value="lion">Lion</option>
<option value="loup">Loup</option>
<option value="mouton">Mouton</option>
<option value="ours">Ours</option>
<option value="paon">Paon</option>
<option value="porc">Porc</option>
<option value="rat">Rat</option>
<option value="renard">Renard</option>
<option value="serpent">Serpent</option>
<option value="singe">Singe</option>
<option value="souris">Souris</option>
<option value="taureau">Taureau</option>
<option value="vautour">Vautour</option>
</select>
</div>
<!-- lock archetype -->
<button id="lockArchetype" class="button is-default is-warning is-small">Lock</button>
</div>
<br><br>
<div style="text-align: center;">
<button id="printBtn" class="button is-default is-primary" disabled>Sauvegarder</button>
</div>
</div>
<div class="column">
<div class="field has-addons">
<div class="control ">
<a class="button" id="generateName"><span class="mdi mdi-dice-multiple-outline custom-icon"></span></a>
</div>
<div class="has-icons-left">
<input id="charName" type="text" class="input is-info" placeholder="Nom du personnage">
</div>
</div>
<div id="capture">
<div>
<p id="lockedName" style="display: inline-block;"></p>
<p id="race" style="display: inline-block"></p>
</div>
<div class="columns">
<!-- Column primary stats -->
<div class="column is-two-thirds is-align-content-space-between" style="display: grid">
<table class="table is-striped">
<thead>
<tr>
<th id="competences">Compétences</th>
<th id="modif">Abréviations</th>
<th id="score">Score</th>
<th></th>
</tr>
</thead>
<tbody id="tBodyPrimary"></tbody>
</table>
</div>
<!-- Column secondary stats -->
<div class="column">
<table class="table is-striped" style="margin: auto">
<thead>
<tr>
<th>Attributs</th>
<th>Score</th>
</tr>
</thead>
<tbody>
<tr>
<td>Initiative</td>
<td id="initiative">
</tr>
</tr>
<tr>
<td>Vitalité</td>
<td id="vitalite">
</tr>
</tr>
<tr>
<td>Sang-froid</td>
<td id="sangfroid">
</tr>
</tr>
<tr>
<td>Destin</td>
<td id="destin">
</tr>
</tr>
</tbody>
</table>
<div class="column has-text-centered" style="margin-top: 25px">
<img id="archetypeImg" src="" style="width: 150px">
<p id="archetypeName"></p>
<br>
<p id="archetypeDescription"></p>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.min.js"></script>
<script src="https://superal.github.io/canvas2image/canvas2image.js"></script>
<script type="module" src="./index.js"></script>
</body>
</html>