Changeset 5e4cb73 for src/common/js


Ignore:
Timestamp:
Apr 14, 2019, 5:15:26 PM (8 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
be25db1
Parents:
3a89adb
Message:

Refactored mapservice

  • mapservice is a connexion python webservice with openapi defined api
  • mapservice-webclient is a angular app, consuming the openapi webservice mapservice
File:
1 moved

Legend:

Unmodified
Added
Removed
  • src/common/js/GnuBoat.js

    r3a89adb r5e4cb73  
    3232        location.hash = "#messages";
    3333}
     34
     35GnuBoat.menuSetup = function()
     36{
     37        var active = 'active';
     38        var layout = null;
     39        var menu = null;
     40        var menuLink = null;
     41        var content = null;
     42
     43        function toggleAll() {
     44                layout.toggleClass(active);
     45                menu.toggleClass(active);
     46                menuLink.toggleClass(active);
     47        }
     48
     49        $(document).ready(function () {
     50                layout   = $("#layout");
     51                menu     = $("#menu");
     52                menuLink = $("#menuLink");
     53                content  = $("#main");
     54
     55                menuLink.click(function () {
     56                        toggleAll();
     57                });
     58
     59                content.click(function() {
     60                        if (menu.hasClass(active)) {
     61                                toggleAll();
     62                        }
     63                });
     64        });
     65}
Note: See TracChangeset for help on using the changeset viewer.