File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
- 0101001101101001011001010010000001110011011010010110111001100100001000000110010001101001011001010010000001001110011001010111010101100101011100100111010001100101001000000110100101101110001000000110011101100001011011000110000101111010011001010010000001110011011101000110010101101000011001010110111000101110
1
+ 01001101011000010111100100100000011101000110100001100101001000000110011001101111011100100110001101100101001000000110001001100101001000000111011101101001011101000110100000100000011110010110111101110101
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ function handleFileSelect(event) {
9
9
// Gib die Ergebnisse aus oder tue etwas anderes damit
10
10
console . log ( 'ASCII: ' + asciiString ) ;
11
11
console . log ( 'Unicode: ' + unicodeString ) ;
12
+ const output = document . getElementById ( 'output' ) ;
13
+ output . innerHTML = `ASCII: ${ asciiString } <br>Unicode: ${ unicodeString } ` ;
12
14
} ;
13
15
}
14
16
Original file line number Diff line number Diff line change 2
2
< html lang ="en ">
3
3
< head >
4
4
< 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 >
7
6
</ head >
8
7
< 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 >
15
14
</ body >
16
15
</ html >
You can’t perform that action at this time.
0 commit comments