forked from alvinltlo/IA-RAIV-MissionHelper-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
147 lines (136 loc) · 7.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Mission Helper</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/animate.min.css">
<link rel="stylesheet" type="text/css" href="css/select2.min.css">
<link rel="stylesheet" type="text/css" href="css/mission.css">
</head>
<body>
<div id="title" class="d-flex flex-row justify-content-center my-2">
<h4 class="animated zoomIn">Imperial Assault RAIVER - Mission Helper (unfinished)</h4>
</div>
<div class="d-flex justify-content-around align-items-center">
<div class="d-flex">
<button type="button" class="btn btn-dark btn-block btn-m m-1" id="manual"
onclick="window.open('https://drive.google.com/file/d/1F1ydf984dHRnGsVqZpfl_UrnMNbsTOv6/view?usp=sharing',
'_blank')">View Manual</button>
</div>
<div class="d-flex">
<button type="button" class="btn btn-dark btn-block btn-m m-1" id="rules"
onclick="window.open('https://drive.google.com/file/d/102oP6Fledpu_SeAcpeOO8OaRpJXltnl2/view?usp=sharing',
'_blank')">View Rules</button>
</div>
</div>
<div class="d-flex justify-content-around align-items-center">
<div class="d-flex">
<button type="button" class="btn btn-dark btn-block btn-m m-1" id="build" onclick="loadAll()">Load
all Missions and AI Cards</button>
</div>
<!--<div class="d-flex">
<button type="button" class="btn btn-dark btn-block btn-m m-1" id="attentionBtn"
onclick="toogleAttention()">Enable Attention Card</button>
</div>-->
</div>
<div class="d-flex flex-row justify-content-around m-2 p-2 flex-wrap boarder align-items-center">
<!-- <div class="d-flex">
<button type="button" class="btn btn-dark btn-block btn-m m-1" id="build" onclick="createCollection()"
data-toggle="modal" data-target="#collectionModal">Create and Save
Collection</button>
</div>
<div class="d-flex boarder align-items-center">
<div class="d-flex flex-fill my-1 m-1">
<h6>Load Saved Collection</h6>
</div>
<div class="d-flex"><input type="file" id="loadDeckInput" onchange="loadCollection(this)">
</div>
</div> -->
<div class="d-flex flex-column justify-content-around m-2 p-2 flex-wrap boarder align-items-center">
<h5 id="selectMissionLabel">Select Mission</h5>
<select id="missionSearch" style="width: 300px" disabled></select>
<div class="d-flex m-3" id="missionCard"></div>
</div>
<div class="d-flex flex-column align-items-center flex-wrap m-2 p-2" id="attentionArea">
</div>
<div class="d-flex flex-column justify-content-around m-2 p-2 flex-wrap boarder align-items-center">
<h5 id="selectAICardLabel">Select AI Card</h5>
<select id="aiSearch" style="width: 300px" disabled></select>
<div class="d-flex">
<button type="button" class="btn btn-dark btn-block btn-m m-1" id="addBtn" onclick="add()" disabled>
Add</button>
<button type="button" class="btn btn-dark btn-block btn-m m-1" id="removeBtn" onclick="remove()"
disabled>
Remove</button>
<!-- <button type="button" class="btn btn-dark btn-block btn-m m-1 animateButton" id="rollD6Btn"
onclick="rollD6()">
Roll D6 [x]</button>-->
</div>
<div class="d-flex flex-wrap" id="aiCard"></div>
</div>
</div>
<div class="modal fade" id="collectionModal" tabindex="-1" role="dialog" aria-labelledby="collectionModalTitle"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="collectionModalTitle">Your Collection</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="d-flex flex-row justify-content-around">
<button type="button" class="btn btn-dark btn-m" id="selectAll" onclick="selectAll(true)">Select
All</button>
<button type="button" class="btn btn-dark btn-m" id="UnselectAll"
onclick="selectAll(false)">Unselect
All</button>
</div>
<div class="modal-body" id="collectionModalBody">
<h6>Core and Expansions</h6>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="twinShadowsCB" value="Twin Shadows">
<label class="form-check-label" for="twinShadowsCB">Twin Shadows</label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="hothCB" value="Hoth">
<label class="form-check-label" for="hothCB">Return to Hoth</label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="bespinCB" value="Bespin Gambit">
<label class="form-check-label" for="bespinCB">Bespin Gambit</label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="jabbaCB" value="Jabba">
<label class="form-check-label" for="jabbaCB">Jabba's Realm</label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="hoteCB" value="Heart of the Empire">
<label class="form-check-label" for="hoteCB">Heart of the Empire</label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="lothalCB" value="Lothal">
<label class="form-check-label" for="lothalCB">Tyrants of Lothal</label>
</div>
<hr />
<h6>Ally and Villain Packs</h6>
<div id="collectionWaveBody"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" onclick="saveCollection()">Save changes</button>
</div>
</div>
</div>
</div>
<!-- JS files: jQuery first, then Popper.js, then Bootstrap JS -->
<script src="js/jquery-3.5.0.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/FileSaver.min.js"></script>
<script src="js/select2.min.js"></script>
<script src="js/mission.js"></script>
</body>
</html>