Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Commit 7430a85

Browse files
committed
added Node.js server script for different themes
1 parent 45da078 commit 7430a85

File tree

325 files changed

+51529
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

325 files changed

+51529
-13
lines changed

config.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"port": "8080"
3+
}

index.css

+9
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ td {
5656
color: tomato;
5757
}
5858

59+
#theme_div {
60+
position: fixed;
61+
left: 25px;
62+
bottom: 25px;
63+
background-color: rgba(255, 255, 255, 0.75);
64+
border-left: 1.5px solid dimgray;
65+
border-radius: 2.5px;
66+
}
5967

6068
#algorithm_settings {
6169
border-left: 1.5px solid dimgray;
@@ -75,6 +83,7 @@ input {
7583
padding: 2.5px 7.5px;
7684
border: 1px solid #cecece;
7785
border-radius: 1px;
86+
background-color: rgba(0,0,0,0);
7887
}
7988

8089
select:focus,

index.html

+20-1
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,27 @@
66
<meta charset="utf-8" />
77

88
<link rel="stylesheet" type="text/css" href="./index.css" />
9-
<link rel="stylesheet" type="text/css" href="themes/dark.css" />
9+
<link rel="stylesheet" type="text/css" href="themes/light.css" />
1010
</head>
1111

1212
<body>
13+
<style>
14+
</style>
15+
1316
<h1><span class='important_letter'>S</span>orting <span class='important_letter'>A</span>lgorithms</h1>
1417

18+
<div id="theme_div">
19+
<table>
20+
<tr>
21+
<td><label for="theme_in">Theme: </label></td>
22+
<td><select id="theme_in">
23+
<option value="light">Light</option>
24+
<option value="dark">Dark</option>
25+
</select></td>
26+
</tr>
27+
</table>
28+
</div>
29+
1530
<div id="score_div">
1631
<table>
1732
<tr>
@@ -159,6 +174,10 @@ <h1><span class='important_letter'>S</span>orting <span class='important_letter'
159174
height: document.getElementById('main').height
160175
};
161176

177+
document.getElementById('theme_in').onchange = e => {
178+
changeTheme(e.target.value);
179+
};
180+
162181
document.getElementById('submit_start').onclick = e => {
163182
let algo = document.getElementById('algorithm_input').value,
164183
amount = document.getElementById('amount_input').value,

node_modules/.bin/mime

+15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/mime.cmd

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/accepts/HISTORY.md

+224
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/accepts/LICENSE

+23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)