-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
108 lines (100 loc) · 3.36 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
<!doctype html>
<html ng-app="ui.scanimage.web">
<head>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-animate/angular-animate.js"></script>
<script src="bower_components/angular-bootstrap/ui-bootstrap.js"></script>
<script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.js"></script>
<script src="bower_components/socket.io-client/socket.io.js"></script>
<script src="bower_components/angular-socket-io/socket.js"></script>
<script src="scanimage-client.js"></script>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css"
rel="stylesheet">
<link href="scanimage.css" rel="stylesheet">
</head>
<body>
<div ng-controller="ScanImageCtrl" role="main" class="container">
<!-- parameter input form -->
<div class="panel panel-default form-container" collapse="inProgress || scanFinished">
<div class="panel-body">
<form>
<div class="form-group">
<label for="inputFilename">Filename</label>
<input type="text"
class="form-control" id="inputFilename" ng-model="fileName"
placeholder="e.g. document1.jpeg">
</div>
<div class="form-group">
<label for="inputResolution">Resolution (dpi)</label>
<select
class="form-control" id="inputResolution"
ng-model="resolution">
<option>75</option>
<option>150</option>
<option>300</option>
<option>600</option>
<option>1200</option>
</select>
</div>
<div class="form-group">
<label for="inputColor">Color</label>
<select
class="form-control" id="inputColor"
ng-model="colorMode">
<option>Color</option>
<option>Grayscale</option>
</select>
</div>
<div class="form-group">
<div class="col-md-offset-4 col-md-4">
<button type="submit" class="btn btn-lg btn-block btn-success"
ng-click="startScanning()">Scan</button>
</div>
</div>
</form>
</div>
</div>
<!-- progressbar while scanning -->
<div class="panel panel-default progress-container"
collapse="!inProgress">
<div class="panel-body">
<h1 class="text-center">Scan in progress</h1>
<br />
<div class="progress">
<progressbar animate="true" value="currentProgress" max="100.0"><b>{{currentProgress}}%</b></progressbar>
<!-- <div class="progress-bar progress-bar-striped active"
role="progressbar" aria-valuenow="11.3" aria-valuemin="0.0"
aria-valuemax="100.0" style="min-width: 2em; width: 60%;">
<span class="sr-only">60%</span>
</div>-->
</div>
<br />
<div class="row">
<div class="col-md-4"></div>
<div class="col-md-4">
<a class="btn btn-lg btn-block btn-danger" href="#" role="button"
ng-click="stopScan()">Stop</a>
</div>
<div class="col-md-4"></div>
</div>
</div>
</div>
<!-- finished scanning dialog -->
<div class="panel panel-default progress-container"
collapse="!scanFinished || inProgress">
<div class="panel-body">
<h1 class="text-center">Scan finished</h1>
<br />
<div class="row">
<div class="col-md-4"></div>
<div class="col-md-4">
<a class="btn btn-lg btn-block btn-primary" href="#" role="button"
ng-click="inProgress=false; scanFinished=false">Scan something else</a>
</div>
<div class="col-md-4"></div>
</div>
</div>
</div>
</div>
</body>
</html>