Difference between revisions of "Template:Lund"

Line 19: Line 19:
 
<script type="text/javascript" src="/Team:Lund/scripts/jquery-scrollTo?action=raw&ctype=text/javascript"></script>
 
<script type="text/javascript" src="/Team:Lund/scripts/jquery-scrollTo?action=raw&ctype=text/javascript"></script>
 
<script type="text/javascript" src="/Team:Lund/scripts/featherlight?action=raw&ctype=text/javascript"></script>
 
<script type="text/javascript" src="/Team:Lund/scripts/featherlight?action=raw&ctype=text/javascript"></script>
 +
<script>
 +
  $(document).ready(function() {
 +
    // Setup ScrollTrigger
 +
    var trigger = new ScrollTrigger({
 +
      centerVertical: true,
 +
      once: true
 +
    });
 +
 +
    var pages = {
 +
      'Team:Lund':                                    '#li_home',
 +
      'Team:Lund/Team':                              '#li_team',
 +
      'Team:Lund/Collaborations':                    '#li_team',
 +
      'Team:Lund/Attributions':                      '#li_team',
 +
      'Team:Lund/Description':                        '#li_team',
 +
      'Team:Lund/Design':        i                    '#li_team',
 +
      'Team:Lund/Description':                        '#li_team',
 +
      'Team:Lund/Attributions':                      '#li_team',
 +
      'Team:Lund/Attributions/LundUniversity':        '#li_team',
 +
      'Team:Lund/Attributions/Team':                  '#li_team',
 +
      'Team:Lund/Attributions/Sponsors':              '#li_team',
 +
      'Team:Lund/Attributions/Inspiration':          '#li_team',
 +
      'Team:Lund/Attributions/ProjectDesign':        '#li_team',
 +
      'Team:Lund/Description':                        '#li_project',
 +
      'Team:Lund/Design':                            '#li_project',
 +
      'Team:Lund/Design/Animation':                  '#li_project',
 +
      'Team:Lund/Design/Theory':                      '#li_project',
 +
      'Team:Lund/Design/Design':                      '#li_project',
 +
      'Team:Lund/Design/Circuit':                    '#li_project',
 +
      'Team:Lund/Design/Experiments':                '#li_project',
 +
      'Team:Lund/Design/References':                  '#li_project',
 +
      'Team:Lund/Results':                            '#li_project',
 +
      'Team:Lund/InterLab':                          '#li_project',
 +
      'Team:Lund/Parts':                              '#li_project',
 +
      'Team:Lund/Experiments':                        '#li_project',
 +
      'Team:Lund/Notebook':                          '#li_project',
 +
      'Team:Lund/Model':                              '#li_model',
 +
      'Team:Lund/Modeling/ModelDerivation':          '#li_model',
 +
      'Team:Lund/Modeling/ParameterEstimation':      '#li_model',
 +
      'Team:Lund/Modeling/Implementation':            '#li_model',
 +
      'Team:Lund/Safety':                            '#li_safety',
 +
      'Team:Lund/HP/Silver':                          '#li_hp',
 +
      'Team:Lund/HP/Gold_Integrated':                '#li_hp',
 +
      'Team:Lund/Engagement':                        '#li_hp',
 +
      'Team:Lund/HP/Media':                          '#li_hp',
 +
      'Team:Lund/Communication':                      '#li_hp',
 +
    };
 +
 +
    var listItem = $(pages[wgPageName]);
 +
    listItem.addClass('active');
 +
  });
 +
</script>
  
 
<script>
 
<script>
Line 251: Line 302:
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
  
 +
 +
<nav id="navbar" class="navbar navbar-inverse navbar-static-top">
 +
  <div class="container">
 +
    <div class="navbar-header">
 +
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false">
 +
        <span class="sr-only">Toggle navigation</span>
 +
        <span class="icon-bar"></span>
 +
        <span class="icon-bar"></span>
 +
        <span class="icon-bar"></span>
 +
      </button>
 +
      <a class="navbar-brand" href="/Team:Lund">
 +
        <img alt="iGEM Lund" src="https://static.igem.org/mediawiki/2017/c/cb/T--Lund--logo-web.svg">
 +
      </a>
 +
    </div>
 +
 +
    <div class="collapse navbar-collapse" id="navbar-collapse">
 +
      <ul class="nav navbar-nav navbar-right">
 +
 +
        <li id="li_home"><a href="/Team:Lund">Home</a></li>
 +
 +
        <li id="li_team" class="dropdown">
 +
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Team <span class="caret"></span></a>
 +
          <ul class="dropdown-menu">
 +
            <li><a href="/Team:Lund/Team">Team</a></li>
 +
            <li><a href="/Team:Lund/Collaborations">Collaborations</a></li>
 +
            <li><a href="/Team:Lund/Attributions">Attributions</a></li>
 +
          </ul>
 +
        </li>
 +
 +
        <li id="li_project" class="dropdown">
 +
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Project <span class="caret"></span></a>
 +
          <ul class="dropdown-menu">
 +
            <li><a href="/Team:Lund/Description">Description</a></li>
 +
            <li><a href="/Team:Lund/Design">Design</a></li>
 +
            <li><a href="/Team:Lund/Results">Results</a></li>
 +
            <li><a href="/Team:Lund/InterLab">InterLab</a></li>
 +
            <li><a href="/Team:Lund/Parts">Parts</a></li>
 +
            <li><a href="/Team:Lund/Experiments">Protocols</a></li>
 +
            <li><a href="/Team:Lund/Notebook">Notebook</a></li>
 +
          </ul>
 +
        </li>
 +
 +
        <li id="li_model"><a href="/Team:Lund/Model">Model</a></li>
 +
        <li id="li_safety"><a href="/Team:Lund/Safety">Safety</a></li>
 +
        <li id="li_hp"><a href="/Team:Lund/HP/Silver">Practices</a></li>
 +
 +
      </ul>
 +
    </div><!-- /.navbar-collapse -->
 +
  </div><!-- /.container-fluid -->
 +
</nav>
  
  

Revision as of 15:23, 25 September 2018