diff --git a/static/script.js b/static/script.js
index 4275a77..d4a2b9a 100644
--- a/static/script.js
+++ b/static/script.js
@@ -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 = '
';
@@ -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()
});
}
diff --git a/templates/help.html b/templates/help.html
index b4873b0..43a9414 100755
--- a/templates/help.html
+++ b/templates/help.html
@@ -6,7 +6,7 @@
diff --git a/templates/home.html b/templates/home.html
index 9a22671..e14e672 100755
--- a/templates/home.html
+++ b/templates/home.html
@@ -6,7 +6,7 @@
diff --git a/templates/status.html b/templates/status.html
index 968059d..5673eda 100644
--- a/templates/status.html
+++ b/templates/status.html
@@ -6,7 +6,7 @@