-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
56 lines (47 loc) · 1.78 KB
/
popup.html
File metadata and controls
56 lines (47 loc) · 1.78 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Pascal Base Converter</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
<h2>Pascal Base Converter</h2>
<div class="input-group">
<label>Numbers (one per line):</label>
<textarea id="inputNumbers" rows="3" placeholder="e.g. 152"></textarea>
</div>
<div class="row">
<div class="col">
<label>Source Base:</label>
<input type="number" id="sourceBase" value="10" min="-62" max="62">
</div>
<button id="swapBtn" title="Swap Source and Target">⇄</button>
<div class="col">
<label>Target Base:</label>
<input type="number" id="targetBase" value="9" min="-62" max="62">
</div>
</div>
<div class="input-group">
<label>Method:</label>
<select id="methodSelect">
<option value="offset">Offset (Pascal Matrix)</option>
<option value="multiple">Multiples (Source = N * Target)</option>
</select>
<div id="methodHint" class="hint"></div>
</div>
<button id="convertBtn">Convert & Visualize</button>
<div id="resultsArea"></div>
<div class="input-group" style="margin-top: 20px; border-top: 2px solid #ddd; padding-top: 10px;">
<label>Batch Output for Copying:</label>
<textarea id="batchOutput" rows="3" readonly></textarea>
</div>
<div style="margin-top: 15px; text-align: center; font-size: 12px;">
<a href="https://github.com/remlaps/PascalTriangleBaseConversions" target="_blank" style="color: #2c3e50;">GitHub Repo</a> |
<a href="https://steemit.com/@remlaps/posts" target="_blank" style="color: #2c3e50;">Author's Blog</a>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>