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
33075d8a
Commit
33075d8a
authored
Nov 26, 2020
by
Patrick
Browse files
test more ipad stuff
parent
e22af9e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
vcm/templates/checkmobile.js
View file @
33075d8a
...
...
@@ -28,7 +28,9 @@ checkagent = function(){
}
checkIpad
=
function
(){
let
ipad
=
false
;
if
(
navigator
.
userAgent
.
match
(
/Mac/
)
&&
navigator
.
maxTouchPoints
&&
navigator
.
maxTouchPoints
>
2
)
{
alert
(
"
ipad
"
)
ipad
=
true
;
}
return
ipad
}
\ No newline at end of file
vcm/templates/custom.js
View file @
33075d8a
...
...
@@ -9,7 +9,7 @@ $("#tour-button").hide();
// removebuildings();
// document.getElementById("SLayerChange").checked = true;
checkIpad
();
};
...
...
vcm/templates/story/virtualcitystory.js
View file @
33075d8a
...
...
@@ -134,6 +134,8 @@ vcs.vcm.Framework.getInstance().subscribe("MAP_LOADED", function() {
var
framework
=
vcs
.
vcm
.
Framework
.
getInstance
();
if
(
checkagent
()
==
true
&&
framework
.
isMobile
()
==
false
){
vcs
.
vcm
.
Framework
.
loadConfig
(
"
config_safari.json
"
)
}
else
if
(
checkIpad
()
==
true
)
{
vcs
.
vcm
.
Framework
.
loadConfig
(
"
config_mobile.json
"
)
}
else
{
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