Skip to content

Commit 1e89498

Browse files
author
Stefan Koch
committed
Move puzzles and libs into separate folders
1 parent 2eddac4 commit 1e89498

26 files changed

+3
-2
lines changed

01.js renamed to 01/01.js

File renamed without changes.

01.log renamed to 01/01.log

File renamed without changes.

01.txt renamed to 01/01.txt

File renamed without changes.

02.js renamed to 02/02.js

File renamed without changes.

02.log renamed to 02/02.log

File renamed without changes.

02.txt renamed to 02/02.txt

File renamed without changes.

03.js renamed to 03/03.js

File renamed without changes.

03.log renamed to 03/03.log

File renamed without changes.

03.txt renamed to 03/03.txt

File renamed without changes.

04.js renamed to 04/04.js

File renamed without changes.

04.log renamed to 04/04.log

File renamed without changes.

04.txt renamed to 04/04.txt

File renamed without changes.

05.js renamed to 05/05.js

File renamed without changes.

05.log renamed to 05/05.log

File renamed without changes.

05.txt renamed to 05/05.txt

File renamed without changes.

06.js renamed to 06/06.js

File renamed without changes.

06.log renamed to 06/06.log

File renamed without changes.

06.txt renamed to 06/06.txt

File renamed without changes.

07.js renamed to 07/07.js

File renamed without changes.

07.log renamed to 07/07.log

File renamed without changes.

07.txt renamed to 07/07.txt

File renamed without changes.

08.js renamed to 08/08.js

File renamed without changes.

08.log renamed to 08/08.log

File renamed without changes.

08.txt renamed to 08/08.txt

File renamed without changes.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8">
55
<title>Advent of code</title>
66
<script type="text/javascript" src="lib/md5.min.js"></script>
7-
<script type="text/javascript" src="input.js"></script>
7+
<script type="text/javascript" src="lib/input.js"></script>
88
</head>
99
<body>
1010
<input type="file" id="file-input" />

input.js renamed to lib/input.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ function displayContents(content) {
1919

2020
function loadScript(name, content) {
2121
var script = document.createElement('script');
22-
script.src = name.substr(0, name.lastIndexOf(".")) + ".js";
22+
base = name.substr(0, name.lastIndexOf("."));
23+
script.src = base + "/" + base + ".js";
2324
script.onload = function() {
2425
calc(content);
2526
};

0 commit comments

Comments
 (0)