This repository was archived by the owner on Jun 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathv2.php
More file actions
225 lines (212 loc) · 8.24 KB
/
v2.php
File metadata and controls
225 lines (212 loc) · 8.24 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
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bootstrap, from Twitter</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link href="css/bootstrap/bootstrap/css/bootstrap.css" rel="stylesheet">
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
</style>
<link href="css/bootstrap/bootstrap/bootstrap-responsive.css" rel="stylesheet">
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">CSH Drink</a>
<div class="nav-collapse">
<ul class="nav">
<li class="active"><a href="#">Machines</a></li>
<li><a href="#about">Your Drops</a></li>
<li><a href="#contact">User Admin</a></li>
<li><a href="#contact">Manage Items</a></li>
<li><a href="#contact">Logs</a></li>
<li><a href="#contact">Temps</a></li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<div class="modal fade" id="edit_modal">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h3>Modal header</h3>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer">
<a href="#" class="btn btn-primary">Save changes</a>
<a href="#" class="btn">Close</a>
</div>
</div>
<div class="modal fade" id="drop_modal">
<div class="modal-header">
<h3>Dropping Your Drink</h3>
</div>
<div class="modal-body">
<p>Dropping in 10s...</p>
</div>
</div>
<div class="alert">
<a class="close">×</a>
<strong>Warning!</strong> Web socket not connected!
</div>
<!-- Example row of columns -->
<div class="row">
<div class="span12">
<h2>Big Drink</h2>
<table class="table table-condensed table-striped">
<thead>
<tr>
<th>Slot</th>
<th>Name</th>
<th>Price</th>
<th>Available</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Coke</td>
<td>40</td>
<td>10</td>
<td>
<input type="button" class="btn btn-primary" btn-action="drop" value="Drop">
<input type="button" class="btn btn-info" value="Edit">
</td>
</tr>
<tr>
<td>1</td>
<td>Coke</td>
<td>40</td>
<td>10</td>
<td>
<input type="button" class="btn btn-primary" btn-action="drop" value="Drop">
<input type="button" class="btn btn-info" value="Edit">
</td>
</tr>
<tr>
<td>1</td>
<td>Coke</td>
<td>40</td>
<td>10</td>
<td>
<input type="button" class="btn btn-primary" btn-action="drop" value="Drop">
<input type="button" class="btn btn-info" value="Edit">
</td>
</tr>
</tbody>
</table>
</div>
</div>
<hr>
<div class="row">
<div class="span12">
<h2>Little Drink</h2>
<table class="table table-condensed table-striped">
<thead>
<tr>
<th>Slot</th>
<th>Name</th>
<th>Price</th>
<th>Available</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Coke</td>
<td>40</td>
<td>10</td>
<td>
<input type="button" class="btn btn-primary" value="Drop">
<input type="button" class="btn btn-info" value="Edit">
</td>
</tr>
<tr>
<td>1</td>
<td>Coke</td>
<td>40</td>
<td>10</td>
<td>
<input type="button" class="btn btn-primary" value="Drop">
<input type="button" class="btn btn-info" value="Edit">
</td>
</tr>
<tr>
<td>1</td>
<td>Coke</td>
<td>40</td>
<td>10</td>
<td>
<input type="button" class="btn btn-primary" value="Drop">
<input type="button" class="btn btn-info" value="Edit">
</td>
</tr>
</tbody>
</table>
</div>
</div>
<hr>
<footer>
<a href="https://github.com/ComputerScienceHouse/Drink-JS">Github Page</a>
</footer>
</div>
<!-- /container -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="css/bootstrap/js/bootstrap-transition.js" type="text/javascript"></script>
<script src="css/bootstrap/js/bootstrap-alert.js" type="text/javascript"></script>
<script src="css/bootstrap/js/bootstrap-modal.js" type="text/javascript"></script>
<script src="css/bootstrap/js/bootstrap-dropdown.js" type="text/javascript"></script>
<script src="css/bootstrap/js/bootstrap-scrollspy.js" type="text/javascript"></script>
<script src="css/bootstrap/js/bootstrap-tab.js" type="text/javascript"></script>
<script src="css/bootstrap/js/bootstrap-tooltip.js" type="text/javascript"></script>
<script src="css/bootstrap/js/bootstrap-popover.js" type="text/javascript"></script>
<script src="css/bootstrap/js/bootstrap-button.js" type="text/javascript"></script>
<script src="css/bootstrap/js/bootstrap-collapse.js" type="text/javascript"></script>
<script src="css/bootstrap/js/bootstrap-carousel.js" type="text/javascript"></script>
<script src="css/bootstrap/js/bootstrap-typeahead.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$('input:button[btn-action="drop"]').on('click', function(){
console.log('dropping');
$('#drop_modal').modal({
backdrop: true,
keyboard: false
});
});
$('#drop_modal').on('hide', function(){
console.log('drop modal hidden');
});
});
</script>
</body>
</html>