-
Notifications
You must be signed in to change notification settings - Fork 0
/
searchmonster.html
73 lines (63 loc) · 2.28 KB
/
searchmonster.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Game Rookie - Search Monster</title>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="topbar">
<div class="sidebarClose" onclick="closeNav()">×</div>
<div class="sidebarOpen" onclick="openNav()">☰</div>
<div class="topbarTitle">Search Monster</div>
</div>
<div id="mySidebar" class="sidebar">
<a href="index.html">Overview</a>
<a href="encounter.html">Encounter</a>
<a class="currentPage">Search Monsters</a>
<a href="searchitem.html">Search Items</a>
</div>
<div id="main">
<h2>How It Works</h2>
<p>Make search selections and click the "Search" button to return a list of matching creatures.</p>
<h2>Search</h2>
<div class="searchInputs">
<div>
<label>Name</label>
<br>
<input type="text" id="monsterName">
</div>
<div>
<label>AC <i>(min-max)</i></label>
<br>
<input type="text" id="monsterACmin" style="width:3em;"> -
<input type="text" id="monsterACmax" style="width:3em;overflow:hidden;">
</div>
<div>
<label>CR <i>(min-max)</i></label>
<br>
<input type="text" id="monsterCRmin" style="width:3em;"> -
<input type="text" id="monsterCRmax" style="width:3em;overflow:hidden;">
</div>
</div>
<div style="padding:0em 1em;">
<button onclick="search()">Click to Search</button>
<button onclick="clearResults()">Clear Results</button>
</div>
<h2>Results</h2>
<div class="searchHeaders">
<div style="flex-grow:2;">Name</div>
<div>Size</div>
<div>Type</div>
<div>AC</div>
<div>HP</div>
<div>CR</div>
</div>
<div class="searchResultContainer" id="searchResultContainer">
<!--JS will add search results here-->
</div>
</div>
</body>
<script src="js/main.js"></script>
</html>