Difference between revisions of "Template:Waterloo"

Line 34: Line 34:
  
 
     <ul id="cd-navigation">
 
     <ul id="cd-navigation">
       <li><a href="#" ng-click="clickety=true" ng-mouseover="subnav='project'; ">PROJECT</a></li>
+
       <li><a href="#" ng-click="clickety=true" ng-mouseover="subnav='project'; ">PROJECT</a>
 +
      <ul class="secondary-nav"><li><a href="#">Blah</a></li></ul>
 +
      </li>
 
       <li><a href="#" ng-click="clickety=true" ng-mouseover="subnav='design';">BLUEPRINT</a></li>
 
       <li><a href="#" ng-click="clickety=true" ng-mouseover="subnav='design';">BLUEPRINT</a></li>
 
       <li><a href="#" ng-click="clickety=true" ng-mouseover="subnav='results';">RESULTS</a></li>
 
       <li><a href="#" ng-click="clickety=true" ng-mouseover="subnav='results';">RESULTS</a></li>
Line 111: Line 113:
 
</div>
 
</div>
 
<!-- .cd-auto-hide-header -->
 
<!-- .cd-auto-hide-header -->
<script>
+
 
$(window).on('resize', function() {
+
    if($(window).width() < 1024) {
+
        $('#cd-navigation').addClass('mobile-menu');
+
    }
+
});
+
</script>
+
 
</header>
 
</header>
  
 
</html>
 
</html>

Revision as of 16:01, 19 October 2016