From 8331cf543dff7f67d8a5280d762251ec3d1c30bd Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 28 Nov 2020 10:39:41 +0100 Subject: [PATCH] test ipad 06 --- vcm/templates/custom.js | 6 +++--- vcm/templates/story/virtualcitystory.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vcm/templates/custom.js b/vcm/templates/custom.js index 5cab0b35f..4394f1e5d 100644 --- a/vcm/templates/custom.js +++ b/vcm/templates/custom.js @@ -5,9 +5,9 @@ // // document.body.style.msTransform = scale; // IE 9 // // document.body.style.transform = scale; // General $("#tour-button").hide(); -// console.log("checkagent: " + checkagent() + " istouchdevice: " + is_touch_device() + " isipad:" + checkIpad()); -// document.getElementById("redtext").innerHTML = "checkagent: " + checkagent() + " istouchdevice: " + is_touch_device() + " isipad:" + checkIpad(); -// checkagent(); +console.log("checkagent: " + checkagent() + " istouchdevice: " + is_touch_device() + " isipad:" + checkIpad()); +document.getElementById("redtext").innerHTML = "checkagent: " + checkagent() + " istouchdevice: " + is_touch_device() + " isipad:" + checkIpad(); +checkagent(); // removebuildings(); diff --git a/vcm/templates/story/virtualcitystory.js b/vcm/templates/story/virtualcitystory.js index 08d7b833e..6a23d5e70 100644 --- a/vcm/templates/story/virtualcitystory.js +++ b/vcm/templates/story/virtualcitystory.js @@ -133,7 +133,7 @@ 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_ipad.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 -- GitLab