Difference between revisions of "Team:IIT Delhi/home"
Line 30: | Line 30: | ||
} | } | ||
− | . | + | .iconshome{ |
position:absolute; | position:absolute; | ||
width:7%; | width:7%; | ||
Line 47: | Line 47: | ||
margin-left:31.5%; | margin-left:31.5%; | ||
} | } | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ul.ldd_menu{ | ||
+ | margin-top:-10px; | ||
+ | margin-left:15px; | ||
+ | padding:0; | ||
+ | position:absolute; | ||
+ | height:70px; | ||
+ | width:190px; | ||
+ | list-style:none; | ||
+ | font-family:Verdana, Geneva, sans-serif; | ||
+ | font-size:100%; | ||
+ | text-align: center; | ||
+ | } | ||
+ | |||
+ | #spanimg{ | ||
+ | position:absolute; | ||
+ | margin-top:0%; | ||
+ | margin-left:87%; | ||
+ | height:15%; | ||
+ | width:13%; | ||
+ | z-index:999; | ||
+ | } | ||
+ | ul.ldd_menu a{ | ||
+ | text-decoration:none; | ||
+ | } | ||
+ | ul.ldd_menu > li{ | ||
+ | float:left; | ||
+ | position:fixed; | ||
+ | width: 100%; | ||
+ | z-index: 9999; | ||
+ | } | ||
+ | ul.ldd_menu > li > span{ | ||
+ | float:right; | ||
+ | z-index:-1000; | ||
+ | position:absolute; | ||
+ | margin-left:550px; | ||
+ | width:190px; | ||
+ | font-size:1px; | ||
+ | color:green; | ||
+ | opacity:0; | ||
+ | background-color:white; | ||
+ | height:190px; | ||
+ | |||
+ | line-height:50px; | ||
+ | cursor:default; | ||
+ | padding:0px 20px; | ||
+ | border-radius:0 0 0 190px; | ||
+ | text-shadow:0px 0px 1px #CCC; | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
</style> <!-- End of CSS --> | </style> <!-- End of CSS --> | ||
<body> | <body> | ||
+ | |||
+ | |||
+ | |||
+ | <!--------------------------------code for site map--------------------------------> | ||
+ | |||
+ | |||
+ | <!---------------TOUR CANCELLED-------------------------> | ||
+ | |||
+ | <div id="tour"> | ||
+ | <a href="https://2015.igem.org/Team:IIT_Delhi/tour"><img id="tourimg" src="https://static.igem.org/mediawiki/2015/1/11/IITDigem_tour.png"></a> | ||
+ | </div> | ||
+ | |||
+ | <!---------------TOUR CANCELLED-------------------------> | ||
+ | <!-------------Span sitemap image---------> | ||
+ | <img id="spanimg" src="https://static.igem.org/mediawiki/2015/1/1a/IITDsitemapfinal.png"> | ||
+ | <!------------Span sitemap image----------> | ||
+ | <div class="box"> | ||
+ | <ul id="ldd_menu" class="ldd_menu" style="position:absolute;"> | ||
+ | <li> | ||
+ | <span>SiteMap</span> | ||
+ | <!--- | ||
+ | <img id="spanimg" src="https://static.igem.org/mediawiki/2015/6/6b/IITDSitemap.png"> | ||
+ | --> | ||
+ | <div class="ldd_submenu"> | ||
+ | <ul> | ||
+ | <li class="ldd_heading"><a style="color:white;" href="https://2015.igem.org/Team:IIT_Delhi/abstract">ABSTRACT</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/abstract#ourproject">OUR PROJECT</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/abstract#categories">CATEGORIES</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/abstract#sponsors">SPONSORS</a></li> | ||
+ | <li><a href="#"></a></li> | ||
+ | <li><a href="#"></a></li> | ||
+ | </ul> | ||
+ | <ul> | ||
+ | <li class="ldd_heading"><a style="color:white;" href="https://2015.igem.org/Team:IIT_Delhi/project_background">PROJECT</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/project#research">BACKGROUND</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/project#prototype">SOLUTION</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/project#conclusion">RESEARCH</a></li> | ||
+ | </ul> | ||
+ | <ul> | ||
+ | <li class="ldd_heading"><a style="color:white;" href="https://2015.igem.org/Team:IIT_Delhi/notebook_summary">NOTEBOOK</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/notebook#summary/">SUMMARY</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/notebook#timeline">TIMELINE</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/notebook#album">ALBUM</a></li> | ||
+ | <li><a href=""></a></li> | ||
+ | <li><a href=""></a></li> | ||
+ | </ul> | ||
+ | <ul> | ||
+ | <li class="ldd_heading"><a style="color:white;" href="https://2015.igem.org/Team:IIT_Delhi/results_parts">RESULTS</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/result#parts">PARTS SUBMITTED</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/result#judging">JUDGING CRITERION</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/result#attributions">ATTRIBUTIONS</a></li> | ||
+ | <li><a href="#"></a></li> | ||
+ | <li><a href="#"></a></li> | ||
+ | </ul> | ||
+ | <ul> | ||
+ | <li class="ldd_heading"><a style="color:white;" href="https://2015.igem.org/Team:IIT_Delhi/modelling_introduction">MODELLING</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/modelling#introduction">INTRODUCTION</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/modelling#mathematical">MATHEMATICAL MODEL</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/modelling#simulation">SIMULATION</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/modelling#interpretation">INTERPRETATION</a></li> | ||
+ | <li><a href="#"></a></li> | ||
+ | </ul> | ||
+ | <ul> | ||
+ | <li class="ldd_heading"><a style="color:white;" href="https://2015.igem.org/Team:IIT_Delhi/team_ourstory">TEAM<a/></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/team#ourstory">OUR STORY</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/team#mentors">MENTORS</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/team#members">MEMBERS</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/team#carpediem">CARPE DIEM</a></li> | ||
+ | </ul> | ||
+ | <ul> | ||
+ | <li class="ldd_heading"><a style="color:white;" href="https://2015.igem.org/Team:IIT_Delhi/collaboration_iiser">COLLABORATION</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/collaboration_iiser">IISER</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/collaboration_enactus">ENACTUS</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/collaboration_outreach">OUTREACH</a></li> | ||
+ | <li><a href="#"></a></li> | ||
+ | <li><a href="#"></a></li> | ||
+ | </ul> | ||
+ | <ul> | ||
+ | <li class="ldd_heading"><a style="color:white;" href="https://2015.igem.org/Team:IIT_Delhi/ethics_orientation">ETHICS</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/ethic_orientation">ORIENATION</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/ethics_openhouse">OPEN HOUSE</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/ethics_tryst">TRYST</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:IIT_Delhi/ethics_surveys">SURVEYS</a></li> | ||
+ | <li><a href="#"></a></li> | ||
+ | </ul> | ||
+ | <a class="ldd_subfoot" href="">Click here for Site-Map image</a> | ||
+ | </div> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | |||
+ | |||
+ | |||
+ | <!----------------------------------------code for site map------------------------------> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
<img style="position:absolute;width:100%;height:100%;z-index:-5;" src="https://static.igem.org/mediawiki/2015/6/68/IITDwikihome_background1.jpg"> | <img style="position:absolute;width:100%;height:100%;z-index:-5;" src="https://static.igem.org/mediawiki/2015/6/68/IITDwikihome_background1.jpg"> | ||
<nav style="border:solid 1px black;"> | <nav style="border:solid 1px black;"> | ||
− | <a href="https://2015.igem.org/Team:IIT_Delhi/abstract"><img class=" | + | <a href="https://2015.igem.org/Team:IIT_Delhi/abstract"><img class="iconshome iconsl" id="icon1" style="margin-top:4%; margin-left:10%;" src="https://static.igem.org/mediawiki/2015/6/6a/IITDabstract.png"></a> |
− | <a href="https://2015.igem.org/Team:IIT_Delhi/modelling_introduction"><img class=" | + | <a href="https://2015.igem.org/Team:IIT_Delhi/modelling_introduction"><img class="iconshome" id="icon2" style="margin-top:4%; margin-left:83%;" src="https://static.igem.org/mediawiki/2015/b/b9/IITDmodelling1.png"></a> |
− | <a href="https://2015.igem.org/Team:IIT_Delhi/project_background"><img class=" | + | <a href="https://2015.igem.org/Team:IIT_Delhi/project_background"><img class="iconshome iconsl" id="icon3" style="margin-top:14%; margin-left:6%;" src="https://static.igem.org/mediawiki/2015/2/2f/IITDproject1.png"></a> |
− | <a href="https://2015.igem.org/Team:IIT_Delhi/team_ourstory"><img class=" | + | <a href="https://2015.igem.org/Team:IIT_Delhi/team_ourstory"><img class="iconshome" id="icon4" style="margin-top:14%; margin-left:87%;" src="https://static.igem.org/mediawiki/2015/0/01/Team1iitd.png"></a> |
− | <a href="https://2015.igem.org/Team:IIT_Delhi/notebook_summary"><img class=" | + | <a href="https://2015.igem.org/Team:IIT_Delhi/notebook_summary"><img class="iconshome iconsl" id="icon5" style="margin-top:25%; margin-left:6%;" src="https://static.igem.org/mediawiki/2015/e/ee/Notebook_iitd.png"></a> |
− | <a href="https://2015.igem.org/Team:IIT_Delhi/human_practices"><img class=" | + | <a href="https://2015.igem.org/Team:IIT_Delhi/human_practices"><img class="iconshome" id="icon6" style="margin-top:25%; margin-left:86.5%;" src="https://static.igem.org/mediawiki/2015/2/27/IITDhp.png"></a> |
− | <a href="https://2015.igem.org/Team:IIT_Delhi/results_parts"><img class=" | + | <a href="https://2015.igem.org/Team:IIT_Delhi/results_parts"><img class="iconshome iconsl" id="icon7" style="margin-top:36%; margin-left:10%;" src="https://static.igem.org/mediawiki/2015/0/0b/Results1_iitd.png"></a> |
− | <a href="https://2015.igem.org/Team:IIT_Delhi/ethics_orientation"><img class=" | + | <a href="https://2015.igem.org/Team:IIT_Delhi/ethics_orientation"><img class="iconshome" id="icon8" style="margin-top:36%; margin-left:82%;" src="https://static.igem.org/mediawiki/2015/5/51/Ethics1_iitd.png"></a> |
</nav> | </nav> | ||
Line 177: | Line 351: | ||
}); | }); | ||
</script> | </script> | ||
+ | <script> | ||
+ | $(document).ready(function(){ | ||
+ | console.log("hi2"); | ||
+ | /** | ||
+ | * the menu | ||
+ | */ | ||
+ | var $menu = $('#ldd_menu'); | ||
+ | |||
+ | /** | ||
+ | * for each list element, | ||
+ | * we show the submenu when hovering and | ||
+ | * expand the span element (title) to 510px | ||
+ | */ | ||
+ | $menu.children('li').each(function(){ | ||
+ | var $this = $(this); | ||
+ | var $span = $this.children('span'); | ||
+ | $span.data('width',$span.width()); | ||
+ | |||
+ | $this.bind('mouseenter',function(){ | ||
+ | $menu.find('.ldd_submenu').stop(true,true).hide(); | ||
+ | $span.stop().animate({'width':'10%'},200,function(){ | ||
+ | $this.find('.ldd_submenu').slideDown(400); | ||
+ | }); | ||
+ | }).bind('mouseleave',function(){ | ||
+ | /**$this.find('.ldd_submenu').stop(true,true).hide(); */ | ||
+ | $span.stop().animate({'width':$span.data('width')+'px'},300); | ||
+ | $this.find('.ldd_submenu').slideUp(400); | ||
+ | }); | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | //ipad and iphone fix | ||
+ | if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) { | ||
+ | $(" #ldd_menu li a").click(function(){ | ||
+ | //we just need to attach a click event listener to provoke iPhone/iPod/iPad's hover event | ||
+ | //strange | ||
+ | }); | ||
+ | } | ||
+ | </script> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 23:53, 16 September 2015