| | |
| | | * die nachfolgenden Funktionen steuern das ein- und |
| | | * ausblenden des menues |
| | | */ |
| | | function app_menu_init(url_prefix, mdesc, mtpl, mselector) { |
| | | function app_menu_init(url_prefix, mdesc, mtpl, mselector, mbreite) { |
| | | _app_menu_selector = mselector; |
| | | _app_menu_mbreite = mbreite; |
| | | document.querySelector( "#nav-toggle" ).addEventListener("click", function() { |
| | | app_menu_toggle(); |
| | | }); |
| | |
| | | $(westDiv).css("flex-basis", "0em"); |
| | | } else { |
| | | $(westDiv).addClass('app-menu-open'); |
| | | $(westDiv).css("flex-basis", "16em"); |
| | | $(westDiv).css("flex-basis", _app_menu_mbreite); // z.B. "16em" |
| | | } |
| | | } |
| | | |
| | |
| | | var _app_menu_url_prefix = ""; |
| | | var _app_menu_template; |
| | | var _app_menu_selector; |
| | | var _app_menu_mbreite; |
| | | |
| | | /* |
| | | * mdesc: der URL einer JSON-Datei mit einer Menuebeschreibung |