crotte
This commit is contained in:
parent
73a55a95f0
commit
e1cad5a33c
1 changed files with 9 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue