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

update more mobile things

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