-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
21 lines (21 loc) · 857 Bytes
/
index.html
File metadata and controls
21 lines (21 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html>
<head>
<title>File Parser</title>
<!-- Load the script to read the file and parse the text -->
<script src="scripts/read.js" type="text/javascript"></script>
</head>
<body>
<!-- File chooser input field -->
Select file to parse:
<input type="file" name="fileToUpload" id="inputfile">
<br>
<br>
<!-- parse string input field -->
String to parse: <input type="text" name="parseString" id="parseString">
<!-- submit button can only be used if the user chooses a file AND picks a string to parse for -->
<input type="button" name="submit" id="submit" value="Submit" onclick="parseFile()">
<!-- empty container to output to -->
<p id="testP"></p>
</body>
</html>