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
9a0bbbe4
Commit
9a0bbbe4
authored
Nov 26, 2020
by
Patrick
Browse files
new ipad test
parent
b0eef9ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
vcm/templates/checkmobile.js
View file @
9a0bbbe4
...
@@ -27,6 +27,12 @@ checkagent = function(){
...
@@ -27,6 +27,12 @@ checkagent = function(){
}
}
function
is_touch_device
()
{
return
!!
(
'
ontouchstart
'
in
window
// works on most browsers
||
navigator
.
maxTouchPoints
);
// works on IE10/11 and Surface
};
checkIpad
=
function
(){
checkIpad
=
function
(){
let
ipad
=
false
;
let
ipad
=
false
;
if
(
checkagent
()
&&
navigator
.
maxTouchPoints
&&
navigator
.
maxTouchPoints
>
2
)
{
if
(
checkagent
()
&&
navigator
.
maxTouchPoints
&&
navigator
.
maxTouchPoints
>
2
)
{
...
...
vcm/templates/story/virtualcitystory.js
View file @
9a0bbbe4
...
@@ -134,7 +134,7 @@ vcs.vcm.Framework.getInstance().subscribe("MAP_LOADED", function() {
...
@@ -134,7 +134,7 @@ 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
&&
framework
.
isMobile
()
==
false
){
vcs
.
vcm
.
Framework
.
loadConfig
(
"
config_safari.json
"
)
vcs
.
vcm
.
Framework
.
loadConfig
(
"
config_safari.json
"
)
}
else
if
(
check
Ipad
()
==
true
)
{
}
else
if
(
check
agent
()
==
true
&&
is_touch_device
()
==
true
)
{
vcs
.
vcm
.
Framework
.
loadConfig
(
"
config_mobile.json
"
)
vcs
.
vcm
.
Framework
.
loadConfig
(
"
config_mobile.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