-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (61 loc) · 2.31 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Comprehensive Step-by-Step Shell Sort Visualization</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>Shell Sort Visualization</h1>
<div id="array-container"></div>
<div id="inputContainer">
<input type="text" id="arrayInput" size="25"
placeholder="Enter comma-separated numbers">
<button id="submit-btn">Submit</button>
</div>
<div style="text-align: center;">
<div id='arrayButtons'>
<button id="new-btn">Input Your Array</button>
<button id = "rand-btn">Random Array</button>
</div>
<div id="operateButtons">
<button id="start-btn">Start Shell Sort</button>
<button id="reset-btn">Reset Array</button>
</div>
</div>
<p id="info">Click 'Start Shell Sort' to begin the visualization.</p>
<div id = "variables-assignments-container">
<div id="variables">
<h3>Variables:</h3>
<p>gap: <span id="gap-value">N/A</span></p>
<p>i: <span id="i-value">N/A</span></p>
<p>j: <span id="j-value">N/A</span></p>
<p>temp: <span id="temp-value">N/A</span></p>
</div>
<div id="assignments">
<h3>Assignments:</h3>
<p>i = <span id="assignment-i">gap</span></p>
<p>j = <span id="assignment-j">i</span></p>
<p>temp = array[<span id="assignment-i-array">i</span>]</p>
</div>
</div>
<div id="refresh">
<button id="refresh-btn">Reset</button>
</div>
<p id="instructions">Press the right arrow key or tap to <br> proceed to the next step.</p>
<div class="footer">
<div>
Prompted by Hamza, Implemented by Claude
</div>
<div id='github'>
<a href="https://github.com/HamzaConcepts/Shell-Visual">
<img width = 30 src="github.png">
</a>
</div>
</div>
</div>
<script src="main.js"></script>
</body>
</html>