-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (63 loc) · 3.16 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Uma calculadora da hello kitty!" />
<meta name="theme-color" content="rgb(248, 205, 225)"/>
<title>Calculadora da Ray :)</title>
<link rel="shortcut icon" type="image" href="./assets/favicon.svg"/>
<link rel="stylesheet" href="css/style-ray.css" /> <!--Link entre o html e css-->
<script src="logical.js"></script><!--Link entre o html e js-->
</head>
<body class="fundo">
<header class="header">
<h1>Calculadora da Ray : )</h1>
</header>
<main class="cenario">
<img src="./assets/hello-kitty.svg" alt="Hello Kitty" class="hello-kitty" />
<img src="./assets/frogs.svg" alt="Sapos" class="frogs" />
<img src="./assets/clouds.svg" alt="Nuvens fofinhas" class="clouds" />
<img src="./assets/clouds.svg" alt="Nuvens fofinhas" class="clouds-two" />
<div class="calculadora">
<h1>Calculadora</h1>
<p id="resultado"></p>
<table>
<tr>
<td><button class="key-action key" onclick="clean()">AC</button></td><!-- Comentario em HTML -->
<td><button class="key-action key" onclick="brackets('()')">( )</button></td>
<td><button class="key-action key" onclick="insert('%')" style="font-size: large">%</button></td>
<td><button class="key-operator key" onclick="insert('/')" style="font-size: x-large">÷</button></td>
</tr>
<tr>
<td><button class="key" onclick="insert('7')">7</button></td>
<td><button class="key" onclick="insert('8')">8</button></td>
<td><button class="key" onclick="insert('9')">9</button></td>
<td><button class="key-operator key" onclick="insert('*')">*</button></td>
</tr>
<tr>
<td><button class="key" onclick="insert('4')">4</button></td>
<td><button class="key" onclick="insert('5')">5</button></td>
<td><button class="key" onclick="insert('6')">6</button></td>
<td><button id="key-custom" class="key operator" onclick="insert('-')">-</button></td>
</tr>
<tr>
<td><button class="key" onclick="insert('1')">1</button></td>
<td><button class="key" onclick="insert('2')">2</button></td>
<td><button class="key" onclick="insert('3')">3</button></td>
<td><button id="key-custom" class="key-operator key" onclick="insert('+')">+</button></td><!-- rowspan significa "extensão de linha". -->
</tr>
<tr>
<td><button class="key-action key" onclick="back('')"><</button></td>
<td><button class="key" onclick="insert('0')">0</button></td>
<td><button id="key-custom" class="key" onclick="insert('.')">.</button></td>
<td><button class="key-operator key" onclick="result('')">=</button></td>
</tr>
</table>
</div>
</main>
</body>
<footer class="footer">
<div class="credit">Criação e Desenvolvimento:<a href="https://github.com/RayzaAnchayhua" title="Visite meu Github!" target="_blank">Rayza Luana®</a>2024</div>
</footer>
</html>