-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (31 loc) · 1.29 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Teorema de Pitágora</title>
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script async defer src="main.js"></script>
</head>
<body>
<h1 id="title">Teorema de Pitágoras</h1>
<blockquote>
<p><i>"A soma dos quadrados dos catetos é igual ao quadrado da hipotenusa."</i></p>
</blockquote>
<div class="math"> \[ a^2 + b^2 = c^2 \]</div>
<div class="flex-center">
<input type="number" min="1" id="cat-a" class="number-input">
<input type="number" min="1" id="cat-b" class="number-input">
<input type="number" min="1" id="hip-c" class="number-input">
</div>
<div id=result></div>
<div class="flex-center">
<div class="math">\[ a = \sqrt{c^2 - b^2} \]</div>
<div class="math">\[ b = \sqrt{c^2 - a^2} \]</div>
<div class="math">\[ c = \sqrt{a^2 + b^2} \]</div>
</div>
</body>
</html>