-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
72 lines (60 loc) · 1.49 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<title>Silly story generator</title>
<style>
body {
font-family: helvetica, sans-serif;
width: 984px;
margin: 0 auto;
}
h1 {
text-align: center;
}
div {
padding-bottom: 20px;
}
input[type="text"] {
padding:10px 5px;
width: 970px;
border-radius: 4px;
border-width: 1px solid grey;
}
p {
background: #FFC125;
color: #5E2612;
padding: 10px;
visibility: hidden;
}
.randomize {
width: 100%;
color: white;
padding: 10px 7px;
background: deepskyblue;
border-radius: 4px;
border-width: 0px;
}
</style>
</head>
<body>
<h1>
Victor's Silly Story Generator
</h1>
<div>
<input id="customname" type="text" placeholder="Enter custom name:">
</div>
<div>
<label for="us">US</label><input id="us" type="radio" name="ukus" value="us" checked>
<label for="uk">UK</label><input id="uk" type="radio" name="ukus" value="uk">
</div>
<div>
<button class="randomize">Generate random story</button>
</div>
<!-- Thanks a lot to Willy Aguirre for his help with the code for this assessment -->
<p class="story"></p>
<script type="text/javascript" src="main.js"></script>
</body>
</html>