Commit 943e9b83 authored by Patrick's avatar Patrick
Browse files

ipad test 2

parent ebac5122
......@@ -10,15 +10,6 @@ $("#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);
}
};
......
......@@ -132,8 +132,15 @@ vcs.vcm.Framework.getInstance().subscribe("MAP_LOADED", function() {
});
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_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
switchArea(true);
changeColor(true);
} else 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")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment