-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
153 lines (145 loc) · 4.5 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./assets/favicon-32x32.png"
/>
<title>Calculator app</title>
<link rel="stylesheet" href="./styles/styles.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"
/>
</head>
<body>
<main id="app">
<div class="container">
<section class="calculator__top">
<div class="container row">
<h1 class="top__header">calc</h1>
<p class="top__info">Theme</p>
<div class="slider">
<div class="slider__numbers">
<strong> 1 </strong>
<strong> 2 </strong>
<strong> 3 </strong>
</div>
<div class="slider__item" v-on:click="toggleOpen">
<strong
class="slider__ball"
v-on:click="toggleOpen"
ref="slider"
>
</strong>
</div>
</div>
</div>
</section>
<section class="calculator__screen">
<div class="container row">
<div class="screen__item row" ref="screen">
<strong ref="screenText">399,981</strong>
</div>
</div>
</section>
<section class="calculator__bottom">
<div class="container row">
<div class="calculator__buttons grid">
<button class="button number" v-on:click="displayNumbers">
7
</button>
<button
value="8"
class="button number"
v-on:click="displayNumbers"
>
8
</button>
<button class="button number" v-on:click="displayNumbers">
9
</button>
<button
id="del"
type="button"
class="button special"
v-on:click="del"
>
DEL
</button>
<button class="button number" v-on:click="displayNumbers">
4
</button>
<button class="button number" v-on:click="displayNumbers">
5
</button>
<button class="button number" v-on:click="displayNumbers">
6
</button>
<button class="button symbol" v-on:click="displayNumbers">
+
</button>
<button class="button number" v-on:click="displayNumbers">
1
</button>
<button class="button number" v-on:click="displayNumbers">
2
</button>
<button class="button number" v-on:click="displayNumbers">
3
</button>
<button class="button symbol" v-on:click="displayNumbers">
-
</button>
<button class="button symbol" v-on:click="displayNumbers">
.
</button>
<button class="button symbol" v-on:click="displayNumbers">
0
</button>
<button class="button symbol" v-on:click="displayNumbers">
/
</button>
<button class="button symbol" v-on:click="displayNumbers">
*
</button>
<button
id="reset"
value="RESET"
ref="reset"
v-on:click="reset"
class="button special"
>
RESET
</button>
<button
id="sum"
type="button"
value="="
ref="sum"
@click="sum"
class="button special"
>
=
</button>
</div>
</div>
</section>
</div>
</main>
<div class="attribution">
Challenge by
<a href="https://www.frontendmentor.io?ref=challenge" target="_blank"
>Frontend Mentor</a
>. Coded by
<a href="https://frontendmentor.io/profile/purplehippo9">Purplehippo911</a
>.
</div>
<script src="https://unpkg.com/vue@3"></script>
<script src="main.js"></script>
</body>
</html>