|
|
|
@ -11,11 +11,18 @@ window.onpopstate = history.onpushstate = function(e) { |
|
|
|
history.pushState("#main-page", "", "") |
|
|
|
|
|
|
|
function show_page(id, historyPush) { |
|
|
|
//si le z-index de la nouvelle page est inférieur on fait un transi 'forward' sinon 'backward'
|
|
|
|
for(i in page) { |
|
|
|
$(page[i]).hide(); |
|
|
|
$(page[i]).hide().removeClass("away"); |
|
|
|
} |
|
|
|
$(id).show(); |
|
|
|
if (!historyPush) { |
|
|
|
|
|
|
|
$hs = $(history.state).show(); |
|
|
|
if(!historyPush) |
|
|
|
$hs.addClass('away'); |
|
|
|
$id = $(id).show(); |
|
|
|
|
|
|
|
|
|
|
|
if(!historyPush) { |
|
|
|
history.pushState(id, "", "") |
|
|
|
} |
|
|
|
} |
|
|
|
@ -498,7 +505,7 @@ $(window).on("load", function() { |
|
|
|
} |
|
|
|
|
|
|
|
for(i in page) { |
|
|
|
$(page[i]).css('z-index', i); |
|
|
|
$(page[i]).css('z-index', page.length - i); |
|
|
|
} |
|
|
|
|
|
|
|
/* load timer */ |
|
|
|
|