-
Notifications
You must be signed in to change notification settings - Fork 0
/
formUpload.html
121 lines (107 loc) · 3.75 KB
/
formUpload.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html>
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'self'">
--> <link rel="stylesheet" href="./style.css" />
<link rel="stylesheet" href="./bootstrap.css" />
<title>Form Recognizer</title>
</head>
<body>
<div class="marginspace" style="padding-top: 30px;">
<p class="h1 marginspace " style="text-align: center;">Form Recognizer</p>
</div>
<!-- You can also require other files to run in this process -->
<script src="./renderer.js"></script>
<!-- <script src="./index.js"></script> -->
</body>
<body>
<div align="right"><BUTTON id="qc" onClick="openQC()" background-color="red" width="50px" class="btn btn-primary marginspace"> Quality Check </BUTTON></div>
<!--
<table width="100%" border = "1" cellpadding = "5" cellspacing = "5" style="text-align: justify;">
<tr>
<th class="row column-left">
All Forms
</th>
<th class="row column-centre"> Selected Image
</th>
<th class="row column-right">
Output Json Data
</th>
</tr>
<table> -->
<table width="95%" align="centre" class="marginspace" cellpadding = "5" cellspacing = "5" style="text-align: justify;float: right;">
<tr> <th>
</th>
<th class="rowSelf">
Output from Console
</th>
</tr>
<tr class="rowSelf" height= "600px">
<td>
<div >
<Form enctype="multipart/form-data">
<div class="marginspace inputLabel">
<div><label for="inputImage"><b>
Choose file to Upload :</b>
</label>
</div>
<div>
<input type="file" id="inputImage" onchange="setUploadedDirectoryPath(event)" webkitdirectory mozdirectory msdirectory odirectory directory multiple class="btn btn-light" value="Choose Folder"/>
</div>
</div>
<div class="marginspace form-group">
<div>
<label><b>
Select Form Type
</b></label>
</div>
<div>
<select id="FormType" class="form-control">
<option value="form1">Form1</option>
<option value="form2">Form2</option>
</select>
<input type="hidden" id="directoryFilePath" value="">
</div></div>
</Form>
</div>
<div class="marginspace"><button class="btn btn-info" onClick = "runPython()">Submit</button></div>
</td>
<td width= "80%" style="background-color:black;">
<div id="consoleOutput" style="overflow-y: scroll; scroll-behavior: auto;color:white; max-height: 600px;"></div>
<!-- <input type="textarea" id="consoleOutput" class="scrolling" style="overflow-y: scroll; scroll-behavior: auto;" value="" width="100%" height="400px"> -->
<!-- Codes by HTMLcodes.ws -->
<!-- <marquee behavior="scroll" id="consoleOutput" direction="down"></marquee> -->
</td>
</tr>
</table>
<!--
<div class="row column-left scrolling colrBack" >
<h2>All Forms</h2>
<div id="display-files">
</div>
</div>
<div class="row column-centre">
<h2>Selected Image</h2>
<div id="displaySelected">
</div>
</div>
<div class="row column-right">
<h2>Json Data</h2>
<p>Some text..</p>
</div>
-->
<!-- Insert this line above script imports -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<!-- normal script imports etc -->
<!-- Insert this line after script imports -->
<script>if (window.module) module = window.module;</script>
<script type="text/javascript">
<!-- insert the js scripts -->
</script>
</body>
</html>