Team:UCLA/sams extra css
From 2014.igem.org
(Difference between revisions)
Samichaels (Talk | contribs) |
Samichaels (Talk | contribs) |
||
Line 1: | Line 1: | ||
- | + | {{:Team:UCLA/Template/Javascript}} | |
- | + | {{:Team:UCLA/Template/CSS_test}} | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
+ | <html lang="en"> | ||
+ | <head> | ||
+ | <!-- META TAGS --> | ||
+ | <meta charset="utf-8"> | ||
+ | <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
+ | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
+ | <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> | ||
+ | <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> | ||
+ | <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> | ||
+ | <link href="css/bootstrap.min.css" rel="stylesheet"> | ||
+ | <link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'> | ||
+ | <title>iGEM UCLA</title> | ||
- | + | <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> | |
- | + | <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> | |
- | + | <!--[if lt IE 9]> | |
- | + | <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> | |
- | + | <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> | |
- | + | <![endif]--> | |
- | + | </head> | |
- | + | ||
- | + | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | + | <body> | |
+ | <!-- MAIN MENU BAR--> | ||
+ | <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> | ||
+ | <div class="container"> | ||
+ | <!-- Brand and toggle get grouped for better mobile display --> | ||
+ | <div class="navbar-header"> | ||
+ | <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> | ||
+ | <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="#">UCLA iGEM</a> | ||
+ | </div> | ||
- | + | <!-- Collect the nav links, forms, and other content for toggling --> | |
- | + | <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | <ul class="nav navbar-nav"> | |
+ | <li class="active"><a href="/Team:UCLA">Home</a></li> | ||
+ | <li class="dropdown"> | ||
+ | <a href="/Team:UCLA/Team" class="dropdown-toggle" data-toggle="dropdown">Team<span class="caret"></span></a> | ||
+ | <ul class="dropdown-menu" role="menu"> | ||
+ | <li><a href="/Team:UCLA/meet_the_team">Meet the Team</a></li> | ||
+ | <li><a href="https://igem.org/Team.cgi?year=2014&team_name=UCLA">Official Profile</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="dropdown"> | ||
+ | <a href="/Team:UCLA/Project" class="dropdown-toggle" data-toggle="dropdown">Project<span class="caret"></span></a> | ||
+ | <ul class="dropdown-menu" role="menu"> | ||
+ | <li><a href="/Team:UCLA/Project/Customizing Silk">Customizing Silk Properties</a></li> | ||
+ | <li><a href="/Team:UCLA/Project/Functionalizing Fibers">Functionalizing Fibers</a></li> | ||
+ | <li><a href="/Team:UCLA/Project/Spinning Silk">Spinning Silk</a></li> | ||
+ | <li><a href="#">Human Practices</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="dropdown"> | ||
+ | <a href="/Team:UCLA/Parts" class="dropdown-toggle" data-toggle="dropdown">Parts<span class="caret"></span></a> | ||
+ | <ul class="dropdown-menu" role="menu"> | ||
+ | <li><a href="#">Page1</a></li> | ||
+ | <li><a href="#">Page2</a></li> | ||
+ | <li><a href="#">Page3</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a href="/Team:UCLA/Modeling">Modeling</a></li> | ||
+ | <li class="dropdown"> | ||
+ | <a href="/Team:UCLA/Notebook" class="dropdown-toggle" data-toggle="dropdown">Notebook<span class="caret"></span></a> | ||
+ | <ul class="dropdown-menu" role="menu"> | ||
+ | <li><a href="/Team:UCLA/Notebook/Protocols">Protocols</a></li> | ||
+ | <li><a href="/Team:UCLA/Notebook/Calendar">Calendar</a></li> | ||
+ | <li><a href="/Team:UCLA/Notebook/Weekly Notes">Weekly Notes</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a href="/Team:UCLA/Safety">Safety</a></li> | ||
+ | <li><a href="/Team:UCLA/Attributions">Attributions</a></li> | ||
+ | </ul> | ||
- | + | <ul class="nav navbar-nav navbar-right"> | |
+ | <a href="https://2014.igem.org/Main_Page"><img src="https://static.igem.org/mediawiki/igem.org/6/60/Igemlogo_300px.png" width="55px"/> | ||
+ | </ul> | ||
+ | </div><!-- /.navbar-collapse --> | ||
+ | </div><!-- /.container-fluid --> | ||
+ | </nav><br> | ||
- | + | <!--SLIDING SIDE BAR--> | |
- | + | <div id="wrapper"> | |
- | + | ||
- | + | <!-- Sidebar --> | |
+ | <div id="sidebar-wrapper"> | ||
+ | <nav id="spy"> | ||
+ | <ul class="sidebar-nav nav"> | ||
+ | <li> | ||
+ | <a href="#home"><span class="fa fa-home solo">Home</span></a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#anch1" data-scroll> | ||
+ | <span class="fa fa-anchor solo">Anchor 1</span> | ||
+ | </a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#anch2" data-scroll> | ||
+ | <span class="fa fa-anchor solo">Anchor 2</span> | ||
+ | </a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#anch3" data-scroll> | ||
+ | <span class="fa fa-anchor solo">Anchor 3</span> | ||
+ | </a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#anch4" data-scroll> | ||
+ | <span class="fa fa-anchor solo">Anchor 4</span> | ||
+ | </a> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </nav> | ||
+ | </div> | ||
- | + | <!-- Page content --> | |
- | + | <div id="page-content-wrapper"> | |
- | + | <div class="content-header"> | |
- | + | <h1> | |
+ | <a id="menu-toggle" href="#" class="glyphicon glyphicon-hand-left btn-menu toggle"> | ||
+ | </a> | ||
+ | Guided Tour | ||
+ | </h1> | ||
+ | </div> | ||
+ | <div class="page-content inset" data-spy="scroll" data-target="#spy"> | ||
+ | <!-- BACK-TO-TOP BUTTON --> | ||
+ | <div class="scroll-top-wrapper "> | ||
+ | <span class="scroll-top-inner"> | ||
+ | <i class="fa fa-2x fa-chevron-circle-up"></i> | ||
+ | </span> | ||
+ | </div> | ||
+ | |||
- | + | </div> | |
- | + | </div> | |
+ | </body> | ||
- | + | <!--SLIDING SIDE BAR--> | |
+ | <script> | ||
+ | $("#menu-toggle").click(function(e) { | ||
+ | e.preventDefault(); | ||
+ | $("#wrapper").toggleClass("active"); | ||
+ | }); | ||
- | + | $('body').scrollspy({ target: '#spy', offset:80}); | |
- | + | ||
- | + | ||
- | + | $('a[href*=#]:not([href=#])').click(function() { | |
- | + | if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') || location.hostname == this.hostname) { | |
- | + | var target = $(this.hash); | |
- | + | target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); | |
- | + | if (target.length) { | |
- | + | $('html,body').animate({ | |
- | + | scrollTop: target.offset().top | |
- | + | }, 1000); | |
- | + | return false; | |
- | + | } | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | } | + | }); |
- | + | </script> | |
- | + | <!--MAIN NAVBAR--> | |
- | + | <script> | |
- | + | $('.dropdown').hover(function(){ | |
- | + | $('.dropdown-toggle', this).trigger('click'); | |
- | + | }); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | function | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</script> | </script> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</html> | </html> |
Revision as of 21:21, 11 August 2014