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
df4d4f88
Commit
df4d4f88
authored
Nov 26, 2020
by
Patrick
Browse files
test ipad stuff
parent
498b7be8
Changes
2
Hide whitespace changes
Inline
Side-by-side
vcm/templates/custom.js
View file @
df4d4f88
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
// // document.body.style.msTransform = scale; // IE 9
// // document.body.style.msTransform = scale; // IE 9
// // document.body.style.transform = scale; // General
// // document.body.style.transform = scale; // General
$
(
"
#tour-button
"
).
hide
();
$
(
"
#tour-button
"
).
hide
();
console
.
log
(
"
checkagent:
"
+
checkagent
()
+
"
istouchdevice:
"
+
is_touch_device
()
+
"
isipad:
"
+
checkIpad
());
//
console.log("checkagent: " + checkagent() + " istouchdevice: " + is_touch_device() + " isipad:" + checkIpad());
document
.
getElementById
(
"
redtext
"
).
innerHTML
=
"
checkagent:
"
+
checkagent
()
+
"
istouchdevice:
"
+
is_touch_device
()
+
"
isipad:
"
+
checkIpad
();
//
document.getElementById("redtext").innerHTML = "checkagent: " + checkagent() + " istouchdevice: " + is_touch_device() + " isipad:" + checkIpad();
checkagent
();
//
checkagent();
// removebuildings();
// removebuildings();
...
...
vcm/templates/story/virtualcitystory.js
View file @
df4d4f88
...
@@ -132,10 +132,13 @@ vcs.vcm.Framework.getInstance().subscribe("MAP_LOADED", function() {
...
@@ -132,10 +132,13 @@ vcs.vcm.Framework.getInstance().subscribe("MAP_LOADED", function() {
});
});
var
framework
=
vcs
.
vcm
.
Framework
.
getInstance
();
var
framework
=
vcs
.
vcm
.
Framework
.
getInstance
();
if
(
checkagent
()
==
true
&&
framework
.
isMobile
()
==
false
){
if
(
checkagent
()
==
true
&&
is_touch_device
()
==
true
&&
checkIpad
()
==
true
){
vcs
.
vcm
.
Framework
.
loadConfig
(
"
config_safari.json
"
)
}
else
if
(
checkagent
()
==
true
&&
is_touch_device
()
==
true
)
{
vcs
.
vcm
.
Framework
.
loadConfig
(
"
config_mobile.json
"
)
vcs
.
vcm
.
Framework
.
loadConfig
(
"
config_mobile.json
"
)
var
drop
=
document
.
getElementById
(
"
dropdownMain
"
)
drop
.
classList
.
add
(
'
can-touch
'
)
drop
.
style
.
display
=
"
none
"
;
// add "can-touch" class to document root using classList API
}
else
if
(
checkagent
()
==
true
&&
framework
.
isMobile
()
==
false
)
{
vcs
.
vcm
.
Framework
.
loadConfig
(
"
config_safari.json
"
)
}
else
{
}
else
{
framework
.
isMobile
()
?
vcs
.
vcm
.
Framework
.
loadConfig
(
"
config_mobile.json
"
)
:
vcs
.
vcm
.
Framework
.
loadConfig
(
"
config.json
"
)
framework
.
isMobile
()
?
vcs
.
vcm
.
Framework
.
loadConfig
(
"
config_mobile.json
"
)
:
vcs
.
vcm
.
Framework
.
loadConfig
(
"
config.json
"
)
}
}
...
...
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