Added system lock feature
This commit is contained in:
+10
-1
@@ -85,7 +85,7 @@ $(document).ready(function() {
|
||||
var toMatch = [-1,-1,-1];
|
||||
var nameToMatch = '';
|
||||
for (var j = 0; j < args.length; j++) {
|
||||
if(args[j].charAt(0) == '-') {
|
||||
if(args[j].charAt(0) == '-') {
|
||||
switch(args[j].charAt(1)) {
|
||||
case 'y':
|
||||
toMatch[0] = parseInt(args[j].substring(2));
|
||||
@@ -133,3 +133,12 @@ $(document).ready(function() {
|
||||
$('.event-wrapper').replaceWith(newHistory);
|
||||
});
|
||||
})
|
||||
|
||||
function lock_fridge() {
|
||||
var period = parseFloat($('#period').val())
|
||||
if (isNaN(period))
|
||||
return;
|
||||
$.getJSON('http://130.237.3.207/lock-fridge/' + period, function(data) {
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
@@ -165,6 +165,18 @@ input[type=text].search-bar {
|
||||
width: 75%;
|
||||
}
|
||||
|
||||
input[type=text].duration-input {
|
||||
width: 25%;
|
||||
margin-left: 15pt;
|
||||
}
|
||||
|
||||
.disable-lock {
|
||||
display: inline-block;
|
||||
border-radius: 3pt;
|
||||
background-color: #226666;
|
||||
margin: 5pt 30pt 5pt 30pt;
|
||||
}
|
||||
|
||||
.button {
|
||||
background-color: #013A3A;
|
||||
color: #5E9292;
|
||||
|
||||
Reference in New Issue
Block a user