cus_Menu.js 1016 Bytes
Newer Older
Patrick's avatar
Patrick committed
1
2
3
4
5
6
7
8
9
10
11
12
var acc = document.getElementsByClassName("accordion");
            var i; 
            for (i = 0; i < acc.length; i++) {
              acc[i].addEventListener("click", function() {
                this.classList.toggle("active");
                var subMenu = this.nextElementSibling;
                if (subMenu.style.maxHeight) {
                    subMenu.style.maxHeight = null;
                } else {
                    subMenu.style.maxHeight = subMenu.scrollHeight + "px";
                } 
              });
Patrick's avatar
Patrick committed
13
14
15
16
17
            }

function nordbahnview(){
  var viewp = vcs.vcm.Framework.getInstance().viewpoints.NordBView
  vcs.vcm.Framework.getInstance().getActiveMap().gotoViewPoint(viewp);
Patrick's avatar
updates    
Patrick committed
18
19
20
21
22
23
24
25
26
27
28
29
30
31
}

var expstate = false;
function onoff(){

  if(expstate == false){
    var element = document.getElementById("menustuff");
    element.classList.remove("hidden");
    expstate = true;
  }else{
    var element = document.getElementById("menustuff");
    element.classList.add("hidden");
    expstate = false;
  }
Patrick's avatar
Patrick committed
32
}