Commit 45a1320c authored by Patrick's avatar Patrick
Browse files

update more mobile things

parent 12bcab9d
......@@ -125,12 +125,6 @@
}
},
"maps": [
{
"name": "Cesium Map",
"startingmap": false,
"type": "vcs.vcm.maps.Cesium",
"webGLaa": false
},
{
"name": "Openlayers Map",
"startingmap": true,
......@@ -2002,7 +1996,7 @@
"style": {
"image": {
"icon": {
"src": "./icons/Umfrage_Button_transpHintergrund_türkis.png",
"src": "./icons/Umfrage_Button_neon.png",
"scale": 0.3
}
}
......
......@@ -211,16 +211,22 @@ img.scale {
.Cesium .featured-company{
float: left;
background-size: contain;
background-position: left bottom, center top, right bottom;
background-repeat: no-repeat, no-repeat, no-repeat;
background-position: 0%, 15%, 35%, 53%, 72%, 100%;
background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
/* background-image: url("../images/cesium-logo.png"); */
background-image: url(../icons/Türkis_Info.png), url(../icons/Türkis_multiplikatoren.png), url(../icons/Umfrage_Button_transpHintergrund_türkis.png);
width: 220px;
background-image: url(../icons/Türkis_Info.png),url(../legend/01_Legend.png), url(../icons/Türkis_multiplikatoren.png),url(../legend/02_Legend.png), url(../icons/Umfrage_Button_transpHintergrund_türkis.png),url(../legend/03_Legend.png);
width: 35rem;
height: 50px;
display: inline-block;
vertical-align: top;
margin: 0 1rem .5rem .5rem;
}
.footer-txt{
display: none;
}
.footer_container_wrap{
display: none;
}
.company-logo3 {
/* background-image: url(../images/logo_kleiner.svg); */
......
......@@ -732,20 +732,20 @@
<!-- <script src="templates/checkmobile.js"></script> -->
<script>
var startVCM = function() {
if(document.getElementById("check").checked === true){
if (window.mobilecheck == true) {
vcs.vcm.Framework.activateLogging();
vcs.vcm.Framework.loadConfig('config_mobile.json');
} else{
vcs.vcm.Framework.activateLogging();
vcs.vcm.Framework.loadConfig('config_mobile.json');
}
} else {
alert("Bitte bestätigen Sie die Nutzungsbedingungen.");
}
}
// var startVCM = function() {
// if(document.getElementById("check").checked === true){
// if (window.mobilecheck == true) {
// vcs.vcm.Framework.activateLogging();
// vcs.vcm.Framework.loadConfig('config_mobile.json');
// } else{
// vcs.vcm.Framework.activateLogging();
// vcs.vcm.Framework.loadConfig('config_mobile.json');
// }
// } else {
// alert("Bitte bestätigen Sie die Nutzungsbedingungen.");
// }
// }
</script>
<!--script>
......
......@@ -17,14 +17,14 @@ function nordbahnview(){
vcs.vcm.Framework.getInstance().getActiveMap().gotoViewPoint(viewp);
}
document.addEventListener('touchstart', function addtouchclass(e){ // first time user touches the screen
var drop = document.getElementById("dropdownMain")
drop.classList.add('can-touch')
drop.style.display = "none"; // add "can-touch" class to document root using classList API
// document.getElementsByClassName("vcm-btn-map-OpenLayers").click();
// document.addEventListener('touchstart', function addtouchclass(e){ // first time user touches the screen
// var drop = document.getElementById("dropdownMain")
// drop.classList.add('can-touch')
// drop.style.display = "none"; // add "can-touch" class to document root using classList API
// // document.getElementsByClassName("vcm-btn-map-OpenLayers").click();
document.removeEventListener('touchstart', addtouchclass, false) // de-register touchstart event
}, false)
// document.removeEventListener('touchstart', addtouchclass, false) // de-register touchstart event
// }, false)
// var dropD = document.getElementById("dropdownMain")
// var dropM = document.getElementById("dropdownMenu")
......
......@@ -67,7 +67,8 @@
}
.company-box {
/* height: 2.5rem; */
height: 4rem;
margin-bottom:0;
}
/* use this for map below header */
......
......@@ -133,6 +133,11 @@ vcs.vcm.Framework.getInstance().subscribe("MAP_LOADED", function() {
var framework = vcs.vcm.Framework.getInstance();
framework.isMobile() ? vcs.vcm.Framework.loadConfig("config_mobile.json") : vcs.vcm.Framework.loadConfig("config.json")
if (framework.isMobile() == 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
}
// vcs.vcm.Framework.loadConfig("config.json");
loadStoryConfig("templates/items.json", function(data) {
console.log(data);
......
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