-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (35 loc) · 857 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title>here is yr answer ^.^</title>
<style>
body {
min-height: 100vh;
background: linear-gradient(aquamarine, white);
font-size: 300px;
font-family: Helvetica;
font-weight: lighter;
}
#userQ {
margin: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
</style>
<script>
const userInput = document.createElement('textarea');
userInput.type = 'input';
alert("wld you like yr answer ^.^?");
const yesNo = ["Yes", "No"]
let randomYesNo = yesNo[Math.floor(Math.random()*yesNo.length)];
window.onload = () => document.getElementById("userQ").innerHTML = randomYesNo;
</script>
</head>
<body>
<div id="userQ">
<pre>Enable JavaScript to receive an answer. ^.^</pre>
</div>
</body>
</html>