Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alfakhori
M4labplatform
Commits
babb7a1d
Commit
babb7a1d
authored
Dec 08, 2020
by
Patrick
Browse files
history test more
parent
de15a286
Changes
1
Hide whitespace changes
Inline
Side-by-side
vcm/templates/history.js
View file @
babb7a1d
...
...
@@ -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,7 +103,9 @@ 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
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment