-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
75 lines (75 loc) · 3.2 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/icon.png" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Row Reduce MAT-350</title>
</head>
<body>
<header>
<nav>
<input type="checkbox" id="show-steps">
<label for="show-steps" style="margin-right: 10px">Show Steps</label>
<button id="export-md" class="nav-item">Export as Markdown</button>
<button id="export-pdf" class="nav-item">Export as PDF</button>
<a id="github" class="nav-item" href="https://github.com/jonathanforhan/Row-Reducer-MAT-350" target="_blank">
<i class="fa-brands fa-github"></i>
</a>
</nav>
</header>
<div id="app">
<h1>Row Reducer MAT-350</h1>
<div class="selector-container">
<div class="selector">
<input type="button" id="row-sub" class="sub-btn" value="-">
<span id="row-number">1</span>
<span id="row-text">Row</span>
<input type="button" id="row-add" class="add-btn" value="+">
</div>
<div class="selector">
<input type="button" id="column-sub" class="sub-btn" value="-">
<span id="column-number">1</span>
<span id="column-text">Column</span>
<input type="button" id="column-add" class="add-btn" value="+">
</div>
<div class="selector">
<button id="undo-btn" class="util-btn">undo</button>
</div>
<div class="selector">
<button id="reset-btn" class="util-btn">reset</button>
</div>
</div>
<div>
<math-field read-only id="matrix"></math-field>
</div>
<div style="margin-bottom: 8rem">
<div class="tabs" style="justify-content: center">
<!-- Addition tab -->
<input type="radio" class="tabs__radio" name="operation-tabs" id="tab-add" checked>
<label for="tab-add" class="tabs__label">Add</label>
<div class="tabs__content">
<math-field read-only id="input-add" class="input"></math-field>
</div>
<!-- Scaling tab -->
<input type="radio" class="tabs__radio" name="operation-tabs" id="tab-scale">
<label for="tab-scale" class="tabs__label">Scale</label>
<div class="tabs__content">
<math-field read-only id="input-scale" class="input"></math-field>
</div>
<!-- Swapping tab -->
<input type="radio" class="tabs__radio" name="operation-tabs" id="tab-swap">
<label for="tab-swap" class="tabs__label">Swap</label>
<div class="tabs__content">
<math-field read-only id="input-swap" class="input"></math-field>
</div>
</div>
<button id="evaluate">Evaluate</button>
</div>
</div>
<div id="display" style="display: grid; text-align: center; margin: 2rem 0"></div>
<script type="module" src="/src/main.ts"></script>
<script defer src="//unpkg.com/mathlive@0.95.0"></script>
</body>
</html>