|
|
(36 intermediate revisions not shown) |
Line 1: |
Line 1: |
- | {{Team:Sheffield}} | + | {{Team:Sheffield/NavigationBar}} |
- | <!DOCTYPE HTML>
| + | |
| <html> | | <html> |
- | <head>
| + | <head> |
- | <title></title>
| + | <title></title> |
- | <link href="./css/style.css" rel='stylesheet' type='text/css' />
| + | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
- | <meta name="viewport" content="width=device-width, initial-scale=1">
| + | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
- | <link rel="shortcut icon" type="image/x-icon" href="./images/fav-icon.png" />
| + | <link rel="stylesheet" href="https://2014.igem.org/Team:Sheffield/Template:Style.css?action=raw&ctype=text/css" type="text/css" media="all" /> |
- | <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
| + | <script src="https://2014.igem.org/Team:Sheffield/Template:jquery-1.10.1.min.js?action=raw&ctype=text/javascript"></script> |
- | </script>
| + | <script src="https://2014.igem.org/Team:Sheffield/Template:modernizr.custom.js?action=raw&ctype=text/javascript"></script> |
- | <!----webfonts---->
| + | <script src="https://2014.igem.org/Team:Sheffield/Template:script.js?action=raw&ctype=text/javascript"></script> |
- | <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
| + | <link href='http://fonts.googleapis.com/css?family=Damion' rel='stylesheet' type='text/css'> |
- | <!----//webfonts---->
| + | </head> |
- | <!-- Global CSS for the page and tiles -->
| + | <body> |
- | <link rel="stylesheet" href="./css/main.css">
| + | <div class="container"> |
- | <!-- //Global CSS for the page and tiles -->
| + | <header class="clearfix"> |
- | <!---start-click-drop-down-menu----->
| + | <div class="header"> |
- | <script src="./js/jquery.min.js"></script>
| + | <div class="wrap"> |
- | <!----start-dropdown--->
| + | <div class="logo"> |
- | <script type="text/javascript">
| + | <a href="index.html"><h1>Team Sheffield</h1></a> |
- | var $ = jQuery.noConflict();
| + | </div> |
- | $(function() {
| + | <div class="header_top"> |
- | $('#activator').click(function(){
| + | |
- | $('#box').animate({'top':'0px'},500);
| + | <div class="search_box"> |
- | });
| + | <form> |
- | $('#boxclose').click(function(){
| + | <input type="text" class="text-box" placeholder="Search..."><input type="submit" value=""> |
- | $('#box').animate({'top':'-700px'},500);
| + | </form> |
- | });
| + | </div> |
- | });
| + | </div> |
- | $(document).ready(function(){
| + | <div class="clear"></div> |
- | //Hide (Collapse) the toggle containers on load
| + | </div> |
- | $(".toggle_container").hide();
| + | |
- | //Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
| + | |
- | $(".trigger").click(function(){
| + | |
- | $(this).toggleClass("active").next().slideToggle("slow");
| + | |
- | return false; //Prevent the browser jump to the link anchor
| + | |
- | });
| + | |
- |
| + | |
- | });
| + | |
- | </script>
| + | |
- | <!----//End-dropdown--->
| + | |
- | <!---//End-click-drop-down-menu----->
| + | |
- | </head>
| + | |
- | <body>
| + | |
- | | + | |
- | | + | |
- |
| + | |
- | <div class="clear"> </div>
| + | |
| </div> | | </div> |
- | </div>
| + | </header> |
- | <!---//End-header---->
| + | <div class="main"> |
- | <!---start-content---->
| + | <ul id="og-grid" class="og-grid"> |
- | <div class="content">
| + | <li> |
- | <div class="wrap"> | + | <a href="#" data-largesrc="https://static.igem.org/mediawiki/2014/b/b5/Jay1.JPG" data-title="Jianxing" data-description="Automatic Control and Systems Engineering third year student."> |
- | <div id="main" role="main">
| + | <img src="https://static.igem.org/mediawiki/2014/c/cc/Jay.JPG" width="500px alt="img01"/> |
- | <ul id="tiles">
| + | </a> |
- | <!-- These are our grid blocks -->
| + | |
- | <li onclick="location.href='single-page.html';">
| + | |
- | <img src="./images/img1.jpg" width="200" height="200">
| + | |
- | <div class="post-info">
| + | |
- | <div class="post-basic-info">
| + | |
- | <h3><a href="#">name</a></h3>
| + | |
- | <span><a href="#"><label> </label>student</a></span>
| + | |
- | <p>-----------</p>
| + | |
- | </div>
| + | |
- | <div class="post-info-rate-share">
| + | |
- | <div class="rateit">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="post-share">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="clear"> </div>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | </li>
| + | |
- | <li onclick="location.href='single-page.html';">
| + | |
- | <img src="./images/img2.jpg" width="200" height="299">
| + | |
- | <div class="post-info">
| + | |
- | <div class="post-basic-info">
| + | |
- | <h3><a href="#">name</a></h3>
| + | |
- | <span><a href="#"><label> </label>student</a></span>
| + | |
- | <p>L------------------</p>
| + | |
- | </div>
| + | |
- | <div class="post-info-rate-share">
| + | |
- | <div class="rateit">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="post-share">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="clear"> </div>
| + | |
- | </div>
| + | |
- | </div>
| + | |
| </li> | | </li> |
- | <li onclick="location.href='single-page.html';">
| + | |
- | <img src="./images/img3.jpg" width="200" height="214">
| + | </ul> |
- | <div class="post-info">
| + | |
- | <div class="post-basic-info">
| + | |
- | <h3><a href="#">name</a></h3>
| + | |
- | <span><a href="#"><label> </label>student</a></span>
| + | |
- | <p>-----------------------</p>
| + | |
- | </div>
| + | |
- | <div class="post-info-rate-share">
| + | |
- | <div class="rateit">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="post-share">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="clear"> </div>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | </li>
| + | |
- | <li onclick="location.href='single-page.html';">
| + | |
- | <img src="./images/img4.jpg" width="200" height="333">
| + | |
- | <div class="post-info">
| + | |
- | <div class="post-basic-info">
| + | |
- | <h3><a href="#">name</a></h3>
| + | |
- | <span><a href="#"><label> </label>student</a></span>
| + | |
- | <p>-------------------------------</p>
| + | |
- | </div>
| + | |
- | <div class="post-info-rate-share">
| + | |
- | <div class="rateit">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="post-share">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="clear"> </div>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | </li>
| + | |
- | <!----//--->
| + | |
- | <li onclick="location.href='single-page.html';">
| + | |
- | <img src="./images/img4.jpg" width="200" height="333">
| + | |
- | <div class="post-info">
| + | |
- | <div class="post-basic-info">
| + | |
- | <h3><a href="#">name</a></h3>
| + | |
- | <span><a href="#"><label> </label>student</a></span>
| + | |
- | <p>-----------------------</p>
| + | |
- | </div>
| + | |
- | <div class="post-info-rate-share">
| + | |
- | <div class="rateit">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="post-share">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="clear"> </div>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | </li>
| + | |
- | <li onclick="location.href='single-page.html';">
| + | |
- | <img src="./images/img3.jpg" width="200" height="214">
| + | |
- | <div class="post-info">
| + | |
- | <div class="post-basic-info">
| + | |
- | <h3><a href="#">name</a></h3>
| + | |
- | <span><a href="#"><label> </label>advisor</a></span>
| + | |
- | <p>--------------------------------</p>
| + | |
- | </div>
| + | |
- | <div class="post-info-rate-share">
| + | |
- | <div class="rateit">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="post-share">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="clear"> </div>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | </li>
| + | |
- | <li onclick="location.href='single-page.html';">
| + | |
- | <img src="./images/img2.jpg" width="200" height="299">
| + | |
- | <div class="post-info">
| + | |
- | <div class="post-basic-info">
| + | |
- | <h3><a href="#">name</a></h3>
| + | |
- | <span><a href="#"><label> </label>advisor</a></span>
| + | |
- | <p>----------------------------</p>
| + | |
- | </div>
| + | |
- | <div class="post-info-rate-share">
| + | |
- | <div class="rateit">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="post-share">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="clear"> </div>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | </li>
| + | |
- | <li onclick="location.href='single-page.html';">
| + | |
- | <img src="./images/img1.jpg" width="200" height="200">
| + | |
- | <div class="post-info">
| + | |
- | <div class="post-basic-info">
| + | |
- | <h3><a href="#">name</a></h3>
| + | |
- | <span><a href="#"><label> </label>advisor</a></span>
| + | |
- | <p>----------------------------------------</p>
| + | |
- | </div>
| + | |
- | <div class="post-info-rate-share">
| + | |
- | <div class="rateit">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="post-share">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="clear"> </div>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | </li>
| + | |
- | <!----//--->
| + | |
- | <li onclick="location.href='single-page.html';">
| + | |
- | <img src="./images/img1.jpg" width="200" height="200">
| + | |
- | <div class="post-info">
| + | |
- | <div class="post-basic-info">
| + | |
- | <h3><a href="#">name</a></h3>
| + | |
- | <span><a href="#"><label> </label>advisor</a></span>
| + | |
- | <p>---------------------------------------</p>
| + | |
- | </div>
| + | |
- | <div class="post-info-rate-share">
| + | |
- | <div class="rateit">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="post-share">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="clear"> </div>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | </li>
| + | |
- | <li onclick="location.href='single-page.html';">
| + | |
- | <img src="./images/img2.jpg" width="200" height="299">
| + | |
- | <div class="post-info">
| + | |
- | <div class="post-basic-info">
| + | |
- | <h3><a href="#">name</a></h3>
| + | |
- | <span><a href="#"><label> </label>advisor</a></span>
| + | |
- | <p>--------------------------------------</p>
| + | |
- | </div>
| + | |
- | <div class="post-info-rate-share">
| + | |
- | <div class="rateit">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="post-share">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="clear"> </div>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | </li>
| + | |
- | <li onclick="location.href='single-page.html';">
| + | |
- | <img src="./images/img3.jpg" width="200" height="214">
| + | |
- | <div class="post-info">
| + | |
- | <div class="post-basic-info">
| + | |
- | <h3><a href="#">name</a></h3>
| + | |
- | <span><a href="#"><label> </label>advisor</a></span>
| + | |
- | <p>-----------------------------</p>
| + | |
- | </div>
| + | |
- | <div class="post-info-rate-share">
| + | |
- | <div class="rateit">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="post-share">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="clear"> </div>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | </li>
| + | |
- | <li onclick="location.href='single-page.html';">
| + | |
- | <img src="./images/img4.jpg" width="200" height="333">
| + | |
- | <div class="post-info">
| + | |
- | <div class="post-basic-info">
| + | |
- | <h3><a href="#">name</a></h3>
| + | |
- | <span><a href="#"><label> </label>advisor</a></span>
| + | |
- | <p>-------------------------------</p>
| + | |
- | </div>
| + | |
- | <div class="post-info-rate-share">
| + | |
- | <div class="rateit">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="post-share">
| + | |
- | <span> </span>
| + | |
- | </div>
| + | |
- | <div class="clear"> </div>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | </li>
| + | |
- | <!-- End of grid blocks -->
| + | |
- | </ul>
| + | |
- | </div>
| + | |
| </div> | | </div> |
- | </div> | + | </div><!-- /container --> |
- | <!---//End-content---->
| + | <script src="https://2014.igem.org/Team:Sheffield/Template:grid.js?action=raw&ctype=text/javascript"></script> |
- | <!----wookmark-scripts----> | + | <script> |
- | <script src="./js/jquery.imagesloaded.js"></script>
| + | $(function() { |
- | <script src="./js/jquery.wookmark.js"></script>
| + | Grid.init(); |
- | <script type="text/javascript">
| + | }); |
- | (function ($){
| + | </script> |
- | var $tiles = $('#tiles'),
| + | </body> |
- | $handler = $('li', $tiles),
| + | |
- | $main = $('#main'),
| + | |
- | $window = $(window),
| + | |
- | $document = $(document),
| + | |
- | options = {
| + | |
- | autoResize: true, // This will auto-update the layout when the browser window is resized.
| + | |
- | container: $main, // Optional, used for some extra CSS styling
| + | |
- | offset: 20, // Optional, the distance between grid items
| + | |
- | itemWidth:280 // Optional, the width of a grid item
| + | |
- | };
| + | |
- | /**
| + | |
- | * Reinitializes the wookmark handler after all images have loaded
| + | |
- | */
| + | |
- | function applyLayout() {
| + | |
- | $tiles.imagesLoaded(function() {
| + | |
- | // Destroy the old handler
| + | |
- | if ($handler.wookmarkInstance) {
| + | |
- | $handler.wookmarkInstance.clear();
| + | |
- | }
| + | |
- |
| + | |
- | // Create a new layout handler.
| + | |
- | $handler = $('li', $tiles);
| + | |
- | $handler.wookmark(options);
| + | |
- | });
| + | |
- | }
| + | |
- | /**
| + | |
- | * When scrolled all the way to the bottom, add more tiles
| + | |
- | */
| + | |
- | function onScroll() {
| + | |
- | // Check if we're within 100 pixels of the bottom edge of the broser window.
| + | |
- | var winHeight = window.innerHeight ? window.innerHeight : $window.height(), // iphone fix
| + | |
- | closeToBottom = ($window.scrollTop() + winHeight > $document.height() - 100);
| + | |
- | | + | |
- | if (closeToBottom) {
| + | |
- | // Get the first then items from the grid, clone them, and add them to the bottom of the grid
| + | |
- | var $items = $('li', $tiles),
| + | |
- | $firstTen = $items.slice(0, 10);
| + | |
- | $tiles.append($firstTen.clone());
| + | |
- |
| + | |
- | applyLayout();
| + | |
- | }
| + | |
- | };
| + | |
- |
| + | |
- | // Call the layout function for the first time
| + | |
- | applyLayout();
| + | |
- |
| + | |
- | // Capture scroll event.
| + | |
- | $window.bind('scroll.wookmark', onScroll);
| + | |
- | })(jQuery);
| + | |
- | </script>
| + | |
- | | + | |
- | </body>
| + | |
| </html> | | </html> |