Verwendung und damit die Abhaengigkeit von jQuery wurde entfernt
| | |
| | | Fußzeile |
| | | </div> |
| | | <!-- Skripte --> |
| | | <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> |
| | | <script src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/2.3.0/mustache.min.js"></script> |
| | | <script src="jslib/app-menu/app-menu.js"></script> |
| | | <script src="jslib/vorlagen.js"></script> |
| | |
| | | }; |
| | | |
| | | this.app_menu_klick_herunter = function() { |
| | | self.app_menu_laden($(this).attr('data-verweis'), 'herunter'); |
| | | self.app_menu_laden(this.getAttribute('data-verweis'), 'herunter'); |
| | | }; |
| | | |
| | | this.app_menu_klick_herauf = function() { |
| | | self.app_menu_laden($(this).attr('data-verweis'), 'herauf'); |
| | | self.app_menu_laden(this.getAttribute('data-verweis'), 'herauf'); |
| | | }; |
| | | |
| | | this.app_menu_ausfuehren = function() { |
| | | var functionName = $(this).attr('data-verweis'); |
| | | var functionName = this.getAttribute('data-verweis'); |
| | | eval(functionName + "(this)"); |
| | | }; |
| | | |
| | |
| | | Inhalt gefüllt ist |
| | | */ |
| | | this.vorlage_laden_und_fuellen = function(vurl, inhalt, cb) { |
| | | /* |
| | | $.ajax({ |
| | | url: vurl, |
| | | type: "GET", |
| | |
| | | self.cache[vurl] = vorlage; |
| | | self.vorlage_fuellen(vurl, inhalt, cb); |
| | | }); |
| | | */ |
| | | var xmlhttp = new XMLHttpRequest(); |
| | | xmlhttp.onreadystatechange = function() { |
| | | if (this.readyState == 4 && this.status == 200) { |
| | | self.cache[vurl] = this.responseText; |
| | | self.vorlage_fuellen(vurl, inhalt, cb); |
| | | } |
| | | }; |
| | | xmlhttp.open("GET", vurl, true); |
| | | xmlhttp.send(); |
| | | }; |
| | | |
| | | } |