Fixed https and correct domain name

This commit is contained in:
Jared
2017-12-22 02:02:52 +00:00
parent 0f499d3ae9
commit 905d6a9d80
4 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -24,7 +24,7 @@ function save() {
authCode += 1;
if ($('#tools').is(':checked'))
authCode += 2;
$.getJSON('http://130.237.3.207/addcard/' + cardID + '/' + name + '/' + authCode, function(data) {
$.getJSON('https://rfid.elab.kth.se/addcard/' + cardID + '/' + name + '/' + authCode, function(data) {
});
overlay_out();
@@ -32,7 +32,7 @@ function save() {
$(document).ready(function() {
jQuery.ajaxSetup({ cache: false });
$.getJSON('http://130.237.3.207/gethistory', function(data) {
$.getJSON('https://rfid.elab.kth.se/gethistory', function(data) {
eventHistory = data.reverse();
var newHistory = '<div class="event-wrapper">';
@@ -61,7 +61,7 @@ $(document).ready(function() {
$('.recent').on('click', '.event', function() {
var cardID = $(this).attr('card-id');
$('.card-id').text(cardID);
$.getJSON('http://130.237.3.207/getcardinfo/' + cardID, function(data) {
$.getJSON('https://rfid.elab.kth.se/getcardinfo/' + cardID, function(data) {
$('#name').val(data.name);
if (data.fridge)
$('#fridge').prop('checked', true);
@@ -138,7 +138,7 @@ function lock_fridge() {
var period = parseFloat($('#period').val())
if (isNaN(period))
return;
$.getJSON('http://130.237.3.207/lock-fridge/' + period, function(data) {
$.getJSON('https://rfid.elab.kth.se/lock-fridge/' + period, function(data) {
location.reload()
});
}