Commit babb7a1d authored by Patrick's avatar Patrick
Browse files

history test more

parent de15a286
......@@ -17,18 +17,21 @@
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
window.addEventListener("load", function(event) {
// window.addEventListener("load", function(event) {
var stateObj = {info: "start01"};
history.pushState(stateObj, "neuerChronikEintrag", "http://localhost:8083/");
history.replaceState(stateObj, "neuerChronikEintrag", "http://localhost:8083/");
console.log("start01")
// document.body.style.backgroundColor = "yellow";
});
// });
function historyP2(){
var stateObj = {info: "start02"};
history.pushState(stateObj, "neuerChronikEintrag", "http://localhost:8083/");
console.log("start02")
}
function historyMap(){
var stateObj = {info: "map01"};
history.pushState(stateObj, "neuerChronikEintrag", "http://localhost:8083/");
console.log("map01")
}
// function menu3(){
// var stateObj = {info: "menu03"};
......@@ -100,6 +103,8 @@ var $ = jQuery;
activateStoryFrame("2")
} else if (event.state.info == "map01"){
activateStoryFrame("3")
} else {
activateStoryFrame("1")
}
}
});
......@@ -203,6 +208,11 @@ function activateStoryFrame(pageN){
$("#navi").attr('style',"display:'none'!important");
document.getElementById("einlP01").style.display = "none";
document.getElementById("einlP02").style.display = "block";
document.getElementById("tourstart-btn").style.display = "block";
document.getElementById("iconlist").style.display = "block";
document.getElementById("detAnleitung").style.display = "block";
document.getElementById("einlP02").scrollIntoView();
document.getElementById("back-btn").style.display = "block";
} else if(pageN == "3"){
showMap();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment