-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (39 loc) · 1.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="8 Ball to decide on your behalf">
<title>Magic 8-Ball</title>
<link rel="icon" href="8ball.png" type="image/png">
<link rel="stylesheet" href="styles.css">
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&family=Oswald:wght@400;700&family=Poppins:wght@400;700&display=swap" rel="stylesheet">
<!--defer is used to make sure the js loads AFTER the html loads, ensuring proper load-->
<script src="main.js" defer></script>
</head>
<body>
<div id="container">
<header>
<figure id="logo">
<img src="8ball.png" alt="8-Ball" width="100" height="100">
</figure>
<h1>Magic 8-Ball</h1>
</header>
<main>
<form method="post" autocomplete="off" action="https://httpbin.org/post">
<label for="question">
<p id="question_P">What's the question you want to ask 8-Ball?</p>
<input type="text" name="question" placeholder="Daunting Questions Go Here.">
</label>
<br/><br/>
<button type="submit">Get Your Fate Chosen</button>
</form>
<div id= "answerBox">
<p id="answer_P" class="hidden">8-Ball says... </p>
<div id="answer" class="answer hidden"><!-- JAVASCRIPT IS INSERTED HERE --></div>
</div>
</main>
</div>
<footer><div id="copyright">H.PAWL_ 2025©</div></footer>
</body>
</html>