-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
121 lines (112 loc) · 4.87 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<link href="style.css" rel="stylesheet">
</head>
<body>
<div id = "welcomediv" style = "display:inline">
<h1>Welcome to the Object Defect Classification Form</h1>
<h2>Please click the button below to submit an object for classification</h2>
<input type="button" class="button" id="formStart" value="Classify Object" onclick="startClassification();" />
</div>
<div id = "formdiv" style = "display:none" class="container">
<form id = "form" action="/action_page.php" method="POST">
<h1>Object Defect Classification Form</h1>
<p>Required fields are followed by an <strong><abbr title="required">*</abbr></strong></p>
<section>
<h2>General information</h2>
<div class="row">
<div class="col-25">
<label for="name">First Name <strong><abbr title="required">*</abbr></strong></label>
</div>
<div class="col-75">
<input type="text" id="name" name="username" placeholder="Your name..">
</div>
</div>
<div class="row">
<div class="col-25">
<label for="datetime">Date and Time <strong><abbr title="required">*</abbr></strong></label>
</div>
<div class="col-75">
<input type="datetime-local" name="datetime" id="datetime">
</div>
</div>
</section>
<section>
<h2>Object Information</h2>
<div class="row">
<div class="col-25">
<label for="object description">Object Description <strong><abbr title="required">*</abbr></strong></label>
</div>
<div class="col-75">
<textarea id="objectdescription" name="objectdescription" placeholder="Please enter a description of the object" style="height:200px"></textarea>
</div>
</div>
<div class="row">
<div class="col-25">
<label for="object colour">Object Colour <strong><abbr title="required">*</abbr></strong></label>
</div>
<div class="col-75">
<input type="text" id="objectcolour" name="objectcolour">
</div>
</div>
<div class="row">
<div class="col-25">
<label for="object colour">Object Number <strong><abbr title="required">*</abbr></strong></label>
</div>
<div class="col-75">
<input type="number" id="objectnumber" name="objectnumber" >
</div>
</div>
</section>
<section>
<h2>Defect Information</h2>
<div class="row">
<div class="col-25">
<label for="visible defect">Is there a visible Defect <strong><abbr title="required">*</abbr></strong></label>
</div>
<div class="col-75">
<input type="radio" id="visibledefect_1" name="visibledefect" value="K">
<label for="visible defect">Yes</label>
<input type="radio" id="visibledefect_2" name="visibledefect" value="Q">
<label for="visible defect"> No</label>
</div>
</div>
<div class="row">
<div class="col-25">
<label for="object condition">Object Condition report <strong><abbr title="required">*</abbr></strong></label>
</div>
<div class="col-75">
<textarea id="objectcondition" name="objectcondition" placeholder="Please enter a brief summary of the objects condition. Are there any scratches, marks, or other issues?" style="height:200px"></textarea>
</div>
</div>
<div class="row">
<div class="col-25">
<label for="object colour">Upload Photo of Object <strong><abbr title="required">*</abbr></strong></label>
</div>
<div class="col-75">
<input type="file" name"file" id="file" accept="image/*;capture=camera">
</div>
</div>
</section>
<br>
<section>
<input type="button" class="button" id="submit" value="Submit" onclick="onSubmission();" />
<input type="button" class="button" id="reset" value="Reset" onclick="resetForm();" />
</section>
</form>
</div>
<div id = "waitdiv" style = "display:none">
<section class = "loader"></section>
</div>
<div id = "objectclassificationdiv" style = "display:none" class= "animate-bottom">
<h2>The object has been successfully classified. The objects classification is:</h2>
<h2></h2>
<h1 id="objectclassificationtext"></h1>
<h2></h2>
<h2>Please put it in the appropriate box</h2>
<input type="button" class=button id="formStart1" value="Classify New Object" onclick="startClassification();" />
</div>
</body>
<script type="text/javascript" src="script.js"></script>
</html>