-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjs6.html
More file actions
188 lines (165 loc) · 5.23 KB
/
js6.html
File metadata and controls
188 lines (165 loc) · 5.23 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="Free Web tutorials">
<meta name="keywords" content="Seattle Mariners,Baseball,Trade Deadline">
<title>Settlers of Catan Score Keeper</title>
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<style>
html {}
* {
font-family: 'Open Sans', sans-serif;
background-color: white;
}
h1 {
font-size: 43px;
margin: 0px;
}
h2 {
font-size: 35px;
text-align: center;
}
#yourscore {
font-size: 200px;
margin: 0px;
text-align: center;
}
label {
font-size: 20px;
}
body {
margin: 0 auto;
width: 50%;
background-color: white;
}
form {
float: left;
width: 40%;
}
option {
font-size: 18px;
}
fieldset {
border: none;
margin: 20px 0px;
padding: 0px;
}
select {
width: 75px;
font-size: 15px;
}
#finalscore {
width: 60%;
float: right;
}
#cities {}
#settlements {}
#longestroad {}
#largestarmy {}
#victorypoints {}
input[type="submit"] {
border-radius: 5px;
background-color: #D82739;
color: white;
border-bottom: 5px solid #C12739;
border-right: 3px solid #C12739;
margin-top: 10px;
width: 175px;
font-size: 20px;
padding: 5px;
text-transform: uppercase;
}
input[type="submit"]:hover {
background: #8A2739;
border-bottom: 3px solid #832739;
border-right: 2px solid #832739;
margin-top: 12px;
text-transform: uppercase;
}
input[type="submit"]:active {
background: #8A2739;
border-bottom: 0px;
border-right: 0px;
margin-top: 15px;
text-transform: uppercase;
}
*:focus {
outline: 0;
}
</style>
</head>
<body>
<h1>Settlers of Catan Score Keeper</h1>
<form id="score">
<fieldset id="cities">
<label for="cities">Number of Cities</label>
<br>
<select name="cities">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</fieldset>
<fieldset id="settlements">
<label for="settlements">Number of Settlements</label>
<br>
<select name="settlements">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</fieldset>
<fieldset id="victorypoints">
<label for="victorypoints">Victory Point Cards</label>
<br>
<select name="victorypoints">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</fieldset>
<fieldset id="longestroad">
<label for="longestroad">Longest Road</label>
<br>
<input type="radio" name="longestroad" value="yes" id="longestroadyes">
<label for="longestroadyes">Yes</label>
<br>
<input type="radio" name="longestroad" value="no" id="longestroadno" checked>
<label for="longestroadno">No</label>
<br>
</fieldset>
<fieldset id="largestarmy">
<label for="largestarmy">Largest Army</label>
<br>
<input type="radio" name="largestarmy" value="yes" id="largestarmyes">
<label for="largestarmyes">Yes</label>
<br>
<input type="radio" name="largestarmy" value="no" id="largestarmyno" checked>
<label for="largestarmyno">No</label>
<br>
</fieldset>
<input type="submit" value="Submit" onclick="getFormData()">
</form>
<div id="finalscore">
<h2>Final Score</h2>
<h3 id="yourscore"></h3>
</div>
<script>
var citiesScore = document.getElementById('cities').value;
var settlementsScore = document.getElementById('settlements').value;
var longestroadScore = document.getElementById('longestroad').value;
var largestarmyScore = document.getElementById('largestarmy').value;
var victorypointsScore = document.getElementById('victorypoints').value;
</script>
</body>
</html>