-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
103 lines (94 loc) · 3.96 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
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link href="css/bootstrap.min.css" rel="stylesheet"/>
<link rel="icon" type="image/png" sizes="64*64" href="favicon_64.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon_32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon.png">
<style>
.d-flex[hidden] {
display: none !important;
}
</style>
<title>Page-o-tron</title>
</head>
<body>
<header class="container">
<h1>Page-o-tron</h1>
</header>
<main>
<form action="#" class="container mb-4">
<div class="form-floating">
<select class="form-select" name="category" id="category">
<option value="achievements">Succès</option>
<option value="achievements_categories">Catégories de succès</option>
<option value="masteries">Maîtrises</option>
<option value="titles">Titres</option>
<option value="items" selected>Objets</option>
<option value="minis">Miniatures</option>
<option value="mounts">Montures</option>
<option value="quests">Quêtes</option>
<option value="recipes">Recettes</option>
<option value="skills">Compétences</option>
<option value="skins">Apparences</option>
</select>
<label for="category">Catégories</label>
</div>
<div class="input-group">
<div class="form-floating">
<input type="search" class="form-control" name="entry" id="entry" list="entries" autocomplete="off"/>
<label for="entry">ID</label>
<datalist id="entries"></datalist>
</div>
<button class="btn btn-primary" type="submit">Générer</button>
</div>
</form>
<div class="container">
<div class="d-inline-flex align-items-center">
<h2 id="pageTitle" class="me-2"></h2>
<button type="button" id="copy" class="btn btn-primary me-2" hidden>Copier le code</button>
</div>
<div id="wikiAlert" class="alert alert-success" hidden>
Vous pouvez copier le code et créer la page sur le wiki en suivant ce lien : <a href="http://" target="_blank" id="wiki" rel="noopener noreferrer"></a>
</div>
<div class="d-flex" id="icon-container" hidden>
<img id="icon">
<div class="form-floating flex-grow-1">
<input type="text" class="form-control" name="icon-url" id="icon-url"/>
<label for="entry">Icône</label>
</div>
</div>
<div class="d-flex">
<div class="form-floating flex-grow-1" style="position: relative;">
<textarea class="form-control" name="code" id="code" rows="25" style="height: 500px;"></textarea>
<label for="code">Page générée</label>
<button class="btn btn-primary" type="button" id="existing-button" data-bs-toggle="collapse" data-bs-target="#existing-page"
aria-expanded="false" aria-controls="existing-page" style="position: absolute;top: 0;right: 0;" hidden>Page<br>existante</button>
</div>
<div class="form-floating flex-grow-1 collapse collapse-horizontal" id="existing-page">
<textarea class="form-control" name="existing" id="existing" rows="25" style="height: 500px;"></textarea>
<label for="code">Page existante</label>
</div>
</div>
</div>
<div class="container">
<details>
<summary>Debug log</summary>
<div class="form-floating">
<textarea class="form-control" name="debug" id="debug" style="height: 250px;"></textarea>
<label for="debug">Debug</label>
</div>
</details>
</div>
</main>
<footer class="container">
<p>Créé par Pandraghon</p>
<p>Inspiré du <a href="http://karaknor.alwaysdata.net/" target="_blank">générateur de page de Karaknor</a></p>
<p>Le code de Page-o-tron est opensource et ouvert aux contributions sur <a href="https://github.com/Pandraghon/page-o-tron">Github</a></p>
</footer>
<script src="js/bootstrap.min.js"></script>
<script src="js/app.js"></script>
</body>
</html>