Template:TcImagineIt nav dev

From wiki
Jump to navigation Jump to search

<html> <nav class="navbar fixed-top navbar-expand-lg navbar-light"> <a class="navbar-brand" href="http://www.gcpedia.gc.ca/wiki/Transport_Canada%E2%80%99s_Transformation_Strategy"> <img src-en="http://www.gcpedia.gc.ca/gcwiki/images/0/03/TC_Transformation_Name_EN.png" src-fr="http://www.gcpedia.gc.ca/gcwiki/images/a/aa/TC_Transformation_Name_FR.png" alt="GCPedia" style="width:30%"> </a>

   <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent1" aria-controls="navbarSupportedContent1" aria-expanded="false" aria-label="Toggle navigation">  </button>

</nav> <script>

   $(function(){
           'use strict';
           $('nav.navbar a[href="' + this.location.href + '"]').parents('li,ul').addClass('active');
       });

</script>

</html>