|
|
|
@ -24,7 +24,7 @@ function save() {
|
|
|
|
|
authCode += 1;
|
|
|
|
|
if ($('#tools').is(':checked'))
|
|
|
|
|
authCode += 2;
|
|
|
|
|
$.getJSON('http://127.0.0.1:5000/addcard/' + cardID + '/' + name + '/' + authCode, function(data) {
|
|
|
|
|
$.getJSON('http://130.237.3.207/addcard/' + cardID + '/' + name + '/' + authCode, function(data) {
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
overlay_out();
|
|
|
|
@ -32,7 +32,7 @@ function save() {
|
|
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
jQuery.ajaxSetup({ cache: false });
|
|
|
|
|
$.getJSON('http://127.0.0.1:5000/gethistory', function(data) {
|
|
|
|
|
$.getJSON('http://130.237.3.207/gethistory', function(data) {
|
|
|
|
|
eventHistory = data.reverse();
|
|
|
|
|
|
|
|
|
|
var newHistory = '<div class="event-wrapper">';
|
|
|
|
@ -57,7 +57,7 @@ $(document).ready(function() {
|
|
|
|
|
$('.recent').on('click', '.event', function() {
|
|
|
|
|
var cardID = $(this).attr('card-id');
|
|
|
|
|
$('.card-id').text(cardID);
|
|
|
|
|
$.getJSON('http://127.0.0.1:5000/getcardinfo/' + cardID, function(data) {
|
|
|
|
|
$.getJSON('http://130.237.3.207/getcardinfo/' + cardID, function(data) {
|
|
|
|
|
$('#name').val(data.name);
|
|
|
|
|
if (data.fridge)
|
|
|
|
|
$('#fridge').prop('checked', true);
|
|
|
|
|