Skip to content

Commit 8bd24e5

Browse files
committed
Coding Puzzle
1 parent 9134c29 commit 8bd24e5

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

Coding Puzzle/01_Coding_Puzzle.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0101001101101001011001010010000001110011011010010110111001100100001000000110010001101001011001010010000001001110011001010111010101100101011100100111010001100101001000000110100101101110001000000110011101100001011011000110000101111010011001010010000001110011011101000110010101101000011001010110111000101110
1+
01001101011000010111100100100000011101000110100001100101001000000110011001101111011100100110001101100101001000000110001001100101001000000111011101101001011101000110100000100000011110010110111101110101

Coding Puzzle/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ function handleFileSelect(event) {
99
// Gib die Ergebnisse aus oder tue etwas anderes damit
1010
console.log('ASCII: ' + asciiString);
1111
console.log('Unicode: ' + unicodeString);
12+
const output = document.getElementById('output');
13+
output.innerHTML = `ASCII: ${asciiString}<br>Unicode: ${unicodeString}`;
1214
};
1315
}
1416

Coding Puzzle/upload.html

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8">
5-
<title>Upload</title>
6-
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
5+
<title>File Converter</title>
76
</head>
87
<body>
9-
<h1>Datei-Upload</h1>
10-
<form>
11-
<label for="fileInput">Wähle eine Datei aus:</label>
12-
<input type="file" id="fileInput" onchange="handleFileSelect()">
13-
</form>
14-
8+
<form id="fileForm">
9+
<input type="file" id="fileInput">
10+
<button type="submit" id="uploadButton">Upload</button>
11+
</form>
12+
<div id="output"></div>
13+
<script src="main.js"></script>
1514
</body>
1615
</html>

0 commit comments

Comments
 (0)