Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CS375_TriviaGame
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Team7
CS375_TriviaGame
Commits
f545cc7c
Commit
f545cc7c
authored
6 months ago
by
ea654
Browse files
Options
Downloads
Patches
Plain Diff
Replace index.html
parent
28343643
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/index.html
+26
-1
26 additions, 1 deletion
public/index.html
with
26 additions
and
1 deletion
public/index.html
+
26
−
1
View file @
f545cc7c
...
...
@@ -21,6 +21,26 @@
<div
class=
"home-content"
>
<h1>
Trivia Game
</h1>
<p>
Select your options and click Play
</p>
<div
id=
"gameSettings"
>
<label
for=
"numQuestions"
>
Number of Questions:
</label>
<input
type=
"number"
id=
"numQuestions"
min=
"1"
max=
"50"
value=
"10"
>
<label
for=
"category"
>
Category:
</label>
<select
id=
"category"
>
<option
value=
"9"
>
General Knowledge
</option>
<option
value=
"17"
>
Science
&
Nature
</option>
<option
value=
"23"
>
History
</option>
</select>
<label
for=
"difficulty"
>
Difficulty:
</label>
<select
id=
"difficulty"
>
<option
value=
"easy"
>
Easy
</option>
<option
value=
"medium"
>
Medium
</option>
<option
value=
"hard"
>
Hard
</option>
</select>
</div>
<button
class=
"start-button"
id=
"startGame"
>
Play
</button>
</div>
</section>
...
...
@@ -29,7 +49,12 @@
<h2
id=
"question"
>
Question will appear here
</h2>
<div
id=
"options"
>
Options will appear here
</div>
<p
id=
"score"
>
Score: 0
</p>
<button
id=
"nextQuestion"
style=
"display:none;"
>
Next Question
</button>
</section>
<section
id=
"endGameArea"
style=
"display:none;"
>
<h2>
Game Over!
</h2>
<p
id=
"winner"
>
The winner is...
</p>
<button
id=
"resetGame"
>
Play Again
</button>
</section>
</main>
<script
src=
"/socket.io/socket.io.js"
></script>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment