Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alfakhori
M4labplatform
Commits
ebac5122
Commit
ebac5122
authored
Nov 28, 2020
by
Patrick
Browse files
Check more ipad stuff
parent
90171077
Changes
2
Show whitespace changes
Inline
Side-by-side
vcm/templates/custom.js
View file @
ebac5122
...
...
@@ -10,6 +10,15 @@ $("#tour-button").hide();
// checkagent();
// removebuildings();
if
(
checkagent
()
==
true
&&
is_touch_device
()
==
true
&&
checkIpad
()
==
true
){
var
drop
=
document
.
getElementById
(
"
dropdownMain
"
)
drop
.
classList
.
add
(
'
can-touch
'
)
drop
.
style
.
display
=
"
none
"
;
// add "can-touch" class to document root using classList API
switchArea
(
true
);
changeColor
(
true
);
}
};
...
...
vcm/templates/story/virtualcitystory.js
View file @
ebac5122
...
...
@@ -132,12 +132,8 @@ vcs.vcm.Framework.getInstance().subscribe("MAP_LOADED", function() {
});
var
framework
=
vcs
.
vcm
.
Framework
.
getInstance
();
if
(
checkagent
()
==
true
&&
is_touch_device
()
==
true
&&
checkIpad
()
==
true
){
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
)
{
if
(
checkagent
()
==
true
&&
framework
.
isMobile
()
==
false
)
{
vcs
.
vcm
.
Framework
.
loadConfig
(
"
config_safari.json
"
)
}
else
{
framework
.
isMobile
()
?
vcs
.
vcm
.
Framework
.
loadConfig
(
"
config_mobile.json
"
)
:
vcs
.
vcm
.
Framework
.
loadConfig
(
"
config.json
"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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