-
Notifications
You must be signed in to change notification settings - Fork 0
/
imageInput.html
162 lines (122 loc) · 5.94 KB
/
imageInput.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>images embedded</title>
<script src="Scripts/jquery-3.0.0.js"></script>
<script src="Scripts/bootstrap.js"></script>
<script src="Scripts/BootBox/bootbox.js"></script>
<link href="Content/bootstrap.css" rel="stylesheet" />
<link rel="stylesheet" href="node_modules/bootstrap-icons/font/bootstrap-icons.css">
<link rel="stylesheet" href="Content/local/imageInput.css">
</head>
<body>
<div class="alert alert-warning alert-dismissible fade show" role="alert">
Embed icons <i class="bi bi-bootstrap"></i>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="main">
<div class="form-group">
<span class="bi bi-chat-text form-control-icon"></span>
<input type="text" class="form-control" placeholder="Start chatting">
</div>
</div>
<div class="container-fluid">
<div>
<div class="row p-2 mt-2 text-left">
<div class="col-6">
<div class="container">
<div class="row">
<div class="col-lg-6">
<div class="form-group">
<label for="parameterValue1">Search something</label>
<span class="bi bi-search form-control-icon"></span>
<input type="text" class="form-control" placeholder="Search">
</div>
<div class="form-group">
<label for="parameterValue2">Filter</label>
<span class="bi bi-filter form-control-icon"></span>
<input id="parameterValue1" type="text" class="form-control" placeholder="Filter">
</div>
<div class="form-group">
<label for="parameterValue2">Name</label>
<span class="bi bi-person form-control-icon"></span>
<input id="parameterValue2" type="text" class="form-control" placeholder="User name">
</div>
<div class="form-group">
<label for="parameterValue3">PIN</label>
<span class="bi bi-eye form-control-icon"></span>
<input id="parameterValue3" type="password" class="form-control" placeholder="Enter pin">
</div>
</div>
</div>
<div class="row">
<div class="col-lg-6">
<label>Search right</label>
<div class="input-group">
<input class="form-control border-right-0" placeholder="Search" id="searchRight">
<span class="input-group-append bg-white">
<button class="btn border border-left-0" type="button" id="searchRightButton"><i class="bi-search"></i></button>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="ml-4">
<button class="btn btn-success btn-block" id="updateButton">
Update <i id="updateImage" class="bi bi-check"></i>
</button>
</span>
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="ml-4">
<button id="brightnessButton" class="btn btn-success btn-block">
Toggle me <i id="brightness" class="bi bi-brightness-low"></i>
</button>
</span>
</div>
</div>
</div>
<script>
$(document).ready(function () {
/*
* Same size buttons
*/
var max = Math.max($("#updateButton").width(), $("#brightnessButton").width());
$("#updateButton").width(max);
$("#brightnessButton").width(max);
/*
* Toggle icon
*/
$('#brightnessButton').click(function (event) {
$('#brightness').toggleClass('bi-brightness-high').toggleClass('bi-brightness-low')
});
/*
* Toggle icon
*/
$('#updateButton').click(function (event) {
$('#updateImage').toggleClass('bi-check').toggleClass('bi-check-circle')
});
/*
* Show what was selected
*/
$('#searchRightButton').click(function (event) {
var value = $('#searchRight').val();
if (value === '') {
value = "(nothing to search for!!!)";
}
bootbox.alert({ message: value, centerVertical: true });
});
});
</script>
</body>
</html>