-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform.html
More file actions
105 lines (93 loc) · 3.75 KB
/
Copy pathform.html
File metadata and controls
105 lines (93 loc) · 3.75 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"/>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous"></script>
<script id="config_json" src="config.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#image').on('change', function () {
readURL(this);
});
$('#manager-name').on('keyup', function () {
$('#manager-name-place').text($(this).val());
});
$('#manager-position').on('keyup', function () {
$('#manager-position-place').text($(this).val());
});
$('#position').on('keyup', function () {
$('#position-place').text($(this).val());
});
$('#tel').on('keyup', function () {
$('#tel-place').text($(this).val());
});
// Apply configuration values for text fields in the form
var conf = getConfiguration();
$('#manager-name-place').text(conf.manager_name);
$('#manager-position-place').text(conf.manager_position);
$('#position-place').text(conf.position);
$('#tel-place').text(conf.tel);
});
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
$('#image-place').attr('src', e.target.result);
};
reader.readAsDataURL(input.files[0]);
}
}
</script>
<style type="text/css">
.signature {
margin-top: 50px;
}
.signature-form {
margin: 10px 0;
}
</style>
</head>
<body>
<div class="container-fluid">
<form class="form-inline hidden-print text-center signature-form">
<div class="form-group">
<input type="file" id="image"/>
</div>
<div class="form-group">
<input type="text" class="form-control" id="manager-name" name="manager-name"
placeholder="Manager Name"/>
</div>
<div class="form-group">
<input type="text" class="form-control" id="manager-position" name="manager-position"
placeholder="Manager Position"/>
</div>
<div class="form-group">
<input type="text" class="form-control" id="position" name="position" placeholder="Position"/>
</div>
<div class="form-group">
<input type="text" class="form-control" id="tel" name="tel" placeholder="Mobile Number"/>
</div>
</form>
<div class="row">
<img id="image-place" class="img-responsive center-block"/>
</div>
<div class="row signature">
<div class="col-xs-6 text-center" id="signature-01">
<p>(___________________________)</p>
<p id="manager-name-place"></p>
<p>Position: <span id="manager-position-place"></span></p>
</div>
<div class="col-xs-6 text-center" id="signature-02">
<p>(___________________________)</p>
<p>Position: <span id="position-place"></span></p>
<p>Tel: <span id="tel-place"></span></p>
</div>
</div>
</div>
</body>
</html>