-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
61 lines (56 loc) · 2.07 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AzerothCore Flag Checker</title>
<link rel="stylesheet" href="styles.css">
<link rel="icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<div class="container">
<img src="logo.png" width="173" height="114">
<h1>AzerothCore Flag Checker</h1>
<!-- Dropdown to select main category -->
<label for="mainCategory">Choose Category:</label>
<select id="mainCategory" onchange="updateFlagOptions()">
<option value="unit">Unit</option>
<option value="gameobject">GameObject</option>
<option value="spell">Spell</option>
<option value="quest">Quest</option>
<option value="item">Item</option>
<!--<option value="other">Other</option>-->
</select>
<br>
<!-- Dropdown to select specific flag category -->
<label for="flagOptions">Choose a Specific Flag:</label>
<select id="flagOptions">
<!-- Options will be dynamically populated based on the main category selection -->
</select>
<br>
<!-- Input to enter the bitwise flag -->
<label for="flagInput">Enter a bitmask value:</label>
<input type="number" id="flagInput" placeholder="Enter a number" min="0" />
<button onclick="checkFlags()">Check Flags</button>
<script>
document.addEventListener("keydown", function(event) {
if (event.key === "Enter") {
checkFlags();
}
});
</script>
<!-- Output from script.js -->
<div class="output">
<h4 id="inputValueDisplay"></h4>
<ul id="flagList"></ul>
</div>
<div class="addremove">
<ul id="combinedList"></ul>
</div>
</div>
<!-- Load JS scripts -->
<script src="flagcategory.js"></script>
<script src="flags.js"></script>
<script src="script.js"></script>
</body>
</html>