This commit is contained in:
johan 2022-12-21 22:58:48 +01:00
parent 73a55a95f0
commit e1cad5a33c

View file

@ -1,10 +1,11 @@
const base_url = "https://oss110metz.rezo-rm.fr/"
var page = ['#main-page', '#admin-page', '#login-page', '#demande-page'];
function show_page(id) {
$('#main-page').hide();
$('#admin-page').hide();
$('#login-page').hide();
$('#demande-page').hide();
for(i in page) {
$(page[i]).hide();
}
$(id).show();
}
@ -51,6 +52,10 @@ $(window).on("load", function() {
navigator.serviceWorker.register('./js/sw.js');
}
for(i in page) {
$(page[i]).css('z-index', i);
}
/* load timer */
window.setInterval(function() {
var time = $("#timer").text();