-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
90 lines (86 loc) · 4.5 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
<html>
<head>
<title>Casting Tool</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<link rel="stylesheet" href="./css/app.css">
</head>
<body>
<div class="container">
<div class="jumbotron">
<h1 class="display-4" id="header">{Loading}</h1>
<hr>
<p>Please drag your character choices into the right container and order them based on your preference (1 = highest preference).</p>
<p>Leaving characters in the left container means you do not want to play these characters under any circumstances.</p>
<p>In order to continue, you will need to:
<ol>
<li>drag at least <span id="howmanycharacters">{loading}</span> characters into the right container</li>
<li>fill out your name</p>
</ol>
</p>
</div>
<div class="row">
<div class="col-12">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Your name:</span>
</div>
<input type="text" id="name" class="form-control" placeholder="Your name, please" aria-label="Username">
</div>
</div>
</div>
<div class="row">
<div class="col-6">
<h2>Won't play</h2>
</div>
<div class="col-6">
<h2>Will play (in order of preference)</h2>
</div>
</div>
<div class="row">
<div class="col-6">
<ul id="casting-options" class="list-group">
<!-- This is where the sortable list will go -->
</ul>
</div>
<div class="col-6">
<ol id="casting-selections" class="list-group">
<!-- This is where you drag options to opt into them -->
</ol>
</div>
</div>
<div class="row extra-margin">
<div class="col-12">
<button id="prepareSubmit" data-toggle="modal" data-target="#summaryModal" class="btn btn-primary float-right" disabled="true">Done</button>
</div>
</div>
</div>
<div class="modal" tabindex="-1" id="summaryModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Please verify before submission</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h6>Your name:</h6>
<p id="nameGiven" class="indented"></p>
<h6>Your selected characters, in order of preference:</h6>
<ol id="selectedPreferences"></ol>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="submit" id="submit" class="btn btn-primary">Continue to Google Form</button>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
<script src="js/drag-drop-touch.js"></script>
<script src="js/casting-tool-config.js"></script>
<script type="module" src="js/app.js"></script>
</body>
</html>