-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
165 lines (159 loc) · 8.06 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="description"
content="A free and easy way to allocate countries to any number of individuals wanting to take part.">
<meta name="author" content="Daniella McSorley">
<meta name="keywords" content="Eurovision, Sweepstake, music, competition, Eurovision party">
<title>Eurovision Sweepstake</title>
<link rel="stylesheet" href="styles.css">
<link rel="apple-touch-icon" sizes="180x180" href="resources/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="resources/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="resources/favicon-16x16.png">
<link rel="manifest" href="resources/site.webmanifest">
<link rel="mask-icon" href="resources/safari-pinned-tab.svg" color="#da40d6">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<!-- Facebook Open Graph Meta Tags -->
<meta property="og:title" content="Eurovision Sweepstake">
<meta property="og:description" content="A free and easy Eurovision sweepstake!">
<meta property="og:image" content="https://dannisteele.github.io/resources/facebook_graph.jpeg">
<meta property="og:url" content="https://dannisteele.github.io">
<!-- Twitter Cards Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Eurovision Sweepstake">
<meta name="twitter:description" content="A free and easy Eurovision sweepstake!">
<meta name="twitter:image" content="https://dannisteele.github.io/resources/twitter_graph.jpeg">
<meta name="twitter:url" content="https://dannisteele.github.io">
</head>
<body>
<main class="container">
<header>
<h1>Eurovision Sweepstake!</h1>
</header>
<section id="untilStartAllocation">
<section id="playersInput">
<label for="numOfPlayers">How many players?</label>
<input type="number" pattern="[0-9]*" id="numOfPlayers" min="1" required>
<label for="csvFileInput">Select year:</label>
<select id="csvFileInput" accept=".csv">
<option value="1956">1956</option>
<option value="1957">1957</option>
<option value="1958">1958</option>
<option value="1959">1959</option>
<option value="1960">1960</option>
<option value="1961">1961</option>
<option value="1962">1962</option>
<option value="1963">1963</option>
<option value="1964">1964</option>
<option value="1965">1965</option>
<option value="1966">1966</option>
<option value="1967">1967</option>
<option value="1968">1968</option>
<option value="1969">1969</option>
<option value="1970">1970</option>
<option value="1971">1971</option>
<option value="1972">1972</option>
<option value="1973">1973</option>
<option value="1974">1974</option>
<option value="1975">1975</option>
<option value="1976">1976</option>
<option value="1977">1977</option>
<option value="1978">1978</option>
<option value="1979">1979</option>
<option value="1980">1980</option>
<option value="1981">1981</option>
<option value="1982">1982</option>
<option value="1983">1983</option>
<option value="1984">1984</option>
<option value="1985">1985</option>
<option value="1986">1986</option>
<option value="1987">1987</option>
<option value="1988">1988</option>
<option value="1989">1989</option>
<option value="1990">1990</option>
<option value="1991">1991</option>
<option value="1992">1992</option>
<option value="1993">1993</option>
<option value="1994">1994</option>
<option value="1995">1995</option>
<option value="1996">1996</option>
<option value="1997">1997</option>
<option value="1998">1998</option>
<option value="1999">1999</option>
<option value="2000">2000</option>
<option value="2001">2001</option>
<option value="2002">2002</option>
<option value="2003">2003</option>
<option value="2004">2004</option>
<option value="2005">2005</option>
<option value="2006">2006</option>
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
<option value="2011">2011</option>
<option value="2012">2012</option>
<option value="2013">2013</option>
<option value="2014">2014</option>
<option value="2015">2015</option>
<option value="2016">2016</option>
<option value="2017">2017</option>
<option value="2018">2018</option>
<option value="2019">2019</option>
<option value="2020">2020</option>
<option value="2021">2021</option>
<option value="2022">2022</option>
<option value="2023">2023</option>
<option value="2024" selected>2024</option>
</select>
</section>
<section id="finalists" style="display: none;">
<label for="finalistsCheckbox">Include only the finalists?</label>
<input type="checkbox" id="finalistsCheckbox">
</section>
<button id="startAllocationButton" onclick="startAllocation()">Start Allocation</button>
</section>
<section id="untilAllocateCountries">
<section id="playerNames" style="display: none;">
<!-- Player names will be displayed here -->
</section>
<section id="allocate" style="display: none;">
<button id="allocateButton" onclick="allocateCountries()">Allocate Countries</button>
</section>
</section>
<section id="result" style="display: none;">
<!-- Allocation result will be displayed here -->
</section>
<section id="reset" style="display: none;">
<button onclick="resetApp()">Reset</button>
</section>
<section id="social" style="display: none;">
<a class="button" href="https://www.facebook.com/sharer/sharer.php?u=https://dannisteele.github.io"
target="_blank" rel="noopener noreferrer">
Share on Facebook
</a>
<br>
<a id="twitterLink" class="button" href="#" target="_blank" rel="noopener noreferrer">
Share on Twitter
</a>
<br>
<a id="whatsappLink" class="button" href="#" data-action="share/whatsapp/share" target="_blank"
rel="noopener noreferrer">
Share on WhatsApp
</a>
</section>
<section id="disclaimer">
<p>Any feedback is welcomed: <a
href="mailto:[email protected]?subject=Eurovision%20allocator">[email protected]</a></p>
</section>
</section>
</main>
<footer>
Created by Daniella McSorley - 2024
</footer>
<script src="script.js"></script>
</body>
</html>