Added system lock feature

This commit is contained in:
Jared
2017-04-01 20:19:53 +00:00
parent d99f70433a
commit b726139474
6 changed files with 54 additions and 9 deletions
+10 -1
View File
@@ -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) {
});
}
+12
View File
@@ -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;