-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
107 lines (105 loc) · 4.3 KB
/
Copy pathindex.html
File metadata and controls
107 lines (105 loc) · 4.3 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Alpaca Picker</title>
<meta name="author" content="Mike Irving, Dot Net North 2020 - 2023">
<link rel="stylesheet" type="text/css" href="css/stylesheet.css" />
<!--
Sound Credits:
"amazing game award sound effect" - http://freesoundeffect.net/sound/amazing-game-award-sound-effect
"bonus award sound effect" - http://freesoundeffect.net/sites/default/files/bonus-award-sound-effect-52630616.mp3
-->
</head>
<body>
<section id="sectionInput">
<h1>The Amazing '<span>Alpaca Picker</span>'.</h1>
<div>
<textarea id="txtInput" placeholder="Paste names here..."></textarea>
</div>
<h2>Options...</h2>
<div>
<label class="title">Rotations:</label>
<input type="radio" name="radioRotation" id="radioRotation1" value="1">
<label for="radioRotation1">1</label>
<input type="radio" name="radioRotation" id="radioRotation2" value="2">
<label for="radioRotation2">2</label>
<input type="radio" name="radioRotation" id="radioRotation3" value="3" checked>
<label for="radioRotation3">3</label>
<input type="radio" name="radioRotation" id="radioRotation4" value="4">
<label for="radioRotation4">4</label>
<input type="radio" name="radioRotation" id="radioRotation5" value="5">
<label for="radioRotation5">5</label>
<input type="radio" name="radioRotation" id="radioRotation6" value="6">
<label for="radioRotation6">6</label>
<input type="radio" name="radioRotation" id="radioRotation7" value="7">
<label for="radioRotation7">7</label>
</div>
<div>
<label class="title">Change colour every:</label>
<input type="radio" name="radioColourChange" id="radioColourChange100" value="100" checked>
<label for="radioColourChange100">100ms</label>
<input type="radio" name="radioColourChange" id="radioColourChange200" value="200">
<label for="radioColourChange200">200ms</label>
<input type="radio" name="radioColourChange" id="radioColourChange500" value="500">
<label for="radioColourChange500">500ms</label>
</div>
<div>
<label class="title">Add number range:</label>
<label for="rangeFrom">from</label>
<input type="number" id="rangeFrom" value="0" min="0" step="1" />
<label for="rangeTo">to</label>
<input type="number" id="rangeTo" value="10" min="0" step="1" />
<button onclick="AddNumberRange();">></button>
</div>
<div class="buttons">
<div class="left">
<label class="title">..:: HTML5 Local Storage ::..</label>
<div>
<button type="button" onclick="LoadFromLocalStorage();">Load</button>
<button type="button" onclick="SaveToLocalStorage();">Save</button>
<button type="button" onclick="DeleteFromLocalStorage();" class="delete">Delete</button>
</div>
</div>
<div class="right">
<label class="title">..:: Picker ::..</label>
<div>
<button type="button" onclick="ClearInput();">Empty</button>
<button type="button" onclick="LoadInput();" class="start">Start</button>
</div>
</div>
</div>
<div class="footer">
<p>
<strong>Action Keys (only in picker view):</strong><br>
Main: 1 = Spin the picker, 0 = Return to input screen,<br>
Sound Check: 5 = Spin sound, 6 = Announce sound,<br>
Misc: U = Show / Hide URL.
</p>
<p>v1.1 Written by Mike Irving. © Dot Net North 2020 - 2023.</p>
<p>Source Code available on <a href="https://github.com/mikeirvingweb/DotNetNorth-AlpacaPicker">GitHub</a>.</p>
</div>
</section>
<section id="sectionPicker">
<div class="divImageHolder">
<img src="dnn-logo-picker-hollow-1200.png" onclick="PickWinner();">
</div>
<div id="divWinner">
<label id="lblWinnerTitle">the winner is</label>
<label id="lblWinner">ABC</label>
</div>
<div id="divUrl"></div>
</section>
<section id="sectionHidden">
<audio id="audioSpin">
<source src="audio/amazing-game-award-sound-effect-82714844.mp3">
</audio>
<audio id="audioAnnounce">
<source src="audio/bonus-award-sound-effect-52630616.mp3">
</audio>
</section>
</body>
<script src="js/jquery-3.7.1.min.js"></script>
<script src="js/scripts.js"></script>
</html>