Commit babb7a1d authored by Patrick's avatar Patrick
Browse files

history test more

parent de15a286
...@@ -17,18 +17,21 @@ ...@@ -17,18 +17,21 @@
* *
* This copyright notice MUST APPEAR in all copies of the script! * 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"}; 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"; // document.body.style.backgroundColor = "yellow";
}); // });
function historyP2(){ function historyP2(){
var stateObj = {info: "start02"}; var stateObj = {info: "start02"};
history.pushState(stateObj, "neuerChronikEintrag", "http://localhost:8083/"); history.pushState(stateObj, "neuerChronikEintrag", "http://localhost:8083/");
console.log("start02")
} }
function historyMap(){ function historyMap(){
var stateObj = {info: "map01"}; var stateObj = {info: "map01"};
history.pushState(stateObj, "neuerChronikEintrag", "http://localhost:8083/"); history.pushState(stateObj, "neuerChronikEintrag", "http://localhost:8083/");
console.log("map01")
} }
// function menu3(){ // function menu3(){
// var stateObj = {info: "menu03"}; // var stateObj = {info: "menu03"};
...@@ -100,7 +103,9 @@ var $ = jQuery; ...@@ -100,7 +103,9 @@ var $ = jQuery;
activateStoryFrame("2") activateStoryFrame("2")
} else if (event.state.info == "map01"){ } else if (event.state.info == "map01"){
activateStoryFrame("3") activateStoryFrame("3")
} } else {
activateStoryFrame("1")
}
} }
}); });
...@@ -203,6 +208,11 @@ function activateStoryFrame(pageN){ ...@@ -203,6 +208,11 @@ function activateStoryFrame(pageN){
$("#navi").attr('style',"display:'none'!important"); $("#navi").attr('style',"display:'none'!important");
document.getElementById("einlP01").style.display = "none"; document.getElementById("einlP01").style.display = "none";
document.getElementById("einlP02").style.display = "block"; 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"){ } else if(pageN == "3"){
showMap(); 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