-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
107 lines (91 loc) · 3.17 KB
/
Copy pathindex.html
File metadata and controls
107 lines (91 loc) · 3.17 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>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Library Films – First Movie Night Poll</title>
<!-- Optional: Fallback font from Google -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600&display=swap" />
<!-- Your main styles -->
<link rel="stylesheet" href="styles.css">
<!-- CSP: Adjust script-src sources as needed. -->
<meta
http-equiv="Content-Security-Policy"
content="
script-src
'self'
https://cdn.jsdelivr.net
https://apis.google.com
https://github.com
https://accounts.google.com;
object-src 'none';
"
>
</head>
<body>
<!-- HEADER -->
<div class="header">
<img
src="https://raw.githubusercontent.com/Reelback96/MoviePollGame/gh-pages/LIBRARY%20FILMS%201%20LINE%20v01_BLACK.png"
alt="Library Films"
/>
<h2>First Movie Night Poll</h2>
</div>
<!-- START PAGE CONTENT -->
<div id="startPage">
<h2>Welcome to the King of the Hill Movie Poll!</h2>
<img
id="instructionImage"
src="https://via.placeholder.com/520x320?text=Placeholder+Instructions"
alt="Instruction Placeholder"
/>
<p>
In this poll, you’ll see two movies face off. Click the one you prefer.<br/>
The winner remains champion, and a new challenger will appear next.<br/>
Continue until all challengers have faced the champion.
</p>
<button id="startButton">Start</button>
</div>
<!-- MATCH COUNTER -->
<div id="matchCounter"></div>
<!-- MOVIE CONTAINER FOR KOTH -->
<div class="movie-container">
<div class="movie" id="champion"></div>
<div class="movie" id="challenger"></div>
</div>
<!-- BUTTON TO SHOW SIDEBAR / RANKINGS -->
<button id="toggleSidebarBtn">Show Current Rankings</button>
<!-- SIDEBAR with current rankings -->
<div id="sidebar">
<button id="hideSidebarBtn">Hide</button>
<h3>Current Rankings</h3>
<ul id="rankingList"></ul>
</div>
<!-- OVERLAY for face-off / final top5 DnD popups -->
<div class="overlay" id="popupOverlay">
<div class="popup" id="popupContent"></div>
</div>
<!-- LOADING OVERLAY for CSV parsing, etc. -->
<div class="overlay" id="loadingPopupOverlay">
<div class="popup">
<p>Loading...</p>
</div>
</div>
<div id="userTopPick"></div>
<!-- OVERLAY for face-off / final top5 DnD popups -->
<div class="overlay" id="popupOverlay">
<div class="popup" id="popupContent">
<!-- Post-submission content will be injected here via JavaScript -->
</div>
</div>
<!-- SCRIPTS -->
<!-- 1) Google Identity Services (GIS) client -->
<script src="https://accounts.google.com/gsi/client"></script>
<!-- 2) Papa Parse for CSV -->
<script src="https://cdn.jsdelivr.net/npm/papaparse@5.3.0/papaparse.min.js"></script>
<!-- 3) Your main game logic -->
<script src="script.js"></script>
<!-- 4) Event handlers + Google Sheets logic -->
<script src="event-handlers.js"></script>
</body>
</html>