-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
54 lines (46 loc) · 1.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Counter</title>
<style>
.screen {
height: 100vh;
width: 100vw;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
button {
margin: 32px;
}
body {
padding: 0;
margin: 0;
box-sizing: border-box;
}
</style>
<link href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css" rel="stylesheet">
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
<script src="index.js"></script>
</head>
<body class="mdc-typography">
<div class="screen">
<h1 id="counter" style="margin-bottom: 32px; font-size: 128px; color: #FBC02D; font-weight: 400;">0</h1>
<div>
<button class="mdc-button mdc-button--raised" onclick="decrease()">
<span class="mdc-button__label">Decrease</span>
</button>
<button class="mdc-button mdc-button--raised" onclick="reset()">
<span class="mdc-button__label">Reset</span>
</button>
<button class="mdc-button mdc-button--raised" onclick="increase()">
<span class="mdc-button__label">Increase</span>
</button>
</div>
</div>
</body>
</html>