m |
|||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
− | ' | + | <!-- Footer |
+ | ============================================= --> | ||
+ | <footer> | ||
+ | <div class="container"> | ||
+ | <div class="social"> | ||
+ | <a href="https://www.facebook.com/igemepfl/?fref=ts"><i class="fa fa-facebook fa-2x"></i></a> | ||
+ | <a href="https://twitter.com/EPFL_iGEM"><i class="fa fa-twitter fa-2x"></i></a> | ||
+ | <a href="http://igem.today"><i class="fa fa-newspaper-o fa-2x"></i></a> | ||
+ | </div> | ||
+ | </div> | ||
+ | </footer> | ||
+ | <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> | ||
+ | <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | ||
+ | <!-- Include all compiled plugins (below), or include individual files as needed --> | ||
+ | <!-- start bootstrap.js --> | ||
+ | <script src="https://static.igem.org/mediawiki/2016/2/25/T--EPFL--bootstrap.min.txt"></script> | ||
+ | <!-- end bootstrap.js --> | ||
+ | <!-- ############ JS PLUGINS ############ --> | ||
+ | <script src="https://static.igem.org/mediawiki/2016/d/d0/T--EPFL--jquery.waypoints.min.txt"></script> | ||
+ | <script src="https://static.igem.org/mediawiki/2016/1/1b/Jquery.countTo.txt"></script> | ||
+ | <script src="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.8.2/js/lightbox.min.js"></script> | ||
+ | <!--start wow--> | ||
+ | <script src="https://static.igem.org/mediawiki/2016/3/3b/T--EPFL--wow.min.txt"></script> | ||
+ | <!--end wow--> | ||
+ | <script src="https://static.igem.org/mediawiki/2016/d/da/T--EPFL--jquery.qtip.min.txt"></script> | ||
+ | |||
+ | <!-- start custom.js --> | ||
+ | <script src="https://static.igem.org/mediawiki/2016/b/b8/T--EPFL--rise-template-custom.txt"></script> | ||
+ | <!--end custom--> | ||
+ | |||
+ | |||
+ | <script type="text/javascript"> | ||
+ | |||
+ | // This is the jquery part of your template. Try not modify any of this code since it makes your menu work. | ||
+ | |||
+ | $(document).ready(function () { | ||
+ | |||
+ | $("#HQ_page").attr('id', ''); | ||
+ | if (wgPageName.substring(0, 8) == "Template") { // if the page is a template it displays the full name in a single line | ||
+ | $("#team_name").html(wgPageName); | ||
+ | } else if (((wgPageName.match(/\//g) || []).length) == 0) { // if it is the home page , just print the team's name | ||
+ | $("#team_name").html(wgPageName.substring(5, wgPageName.length)); | ||
+ | } else { | ||
+ | // this adds the team's name as an h1 | ||
+ | $("#team_name").html(wgPageName.substring(5, wgPageName.indexOf("/"))); | ||
+ | // this adds the page's title as an h4 | ||
+ | $("#page_name").html((wgPageName.substring(wgPageName.indexOf("/") + 1, wgPageName.length)).replace(/\/|_/g, " ")); | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | $('#accordion').find('.menu_item').click(function () { | ||
+ | |||
+ | //Expand or collapse this panel | ||
+ | submenu = $(this).find('.submenu'); | ||
+ | submenu.toggle(); | ||
+ | icon = $(this).find('.icon'); | ||
+ | if (!$(submenu).is(':visible')) { | ||
+ | icon.removeClass("less").addClass("plus"); | ||
+ | } else { | ||
+ | icon.removeClass("plus").addClass("less"); | ||
+ | } | ||
+ | |||
+ | //Hide the other panels | ||
+ | $(".submenu").not(submenu).hide(); | ||
+ | $(".icon").not(icon).removeClass("less").addClass("plus"); | ||
+ | }); | ||
+ | $(".collapsable_menu_control").click(function () { | ||
+ | $(".menu_item").toggle(); | ||
+ | }); | ||
+ | $(window).resize(function () { | ||
+ | $(".menu_item").show(); | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | </script> | ||
+ | |||
+ | |||
+ | </body> | ||
+ | |||
+ | |||
+ | |||
+ | |||
</html> | </html> |
Latest revision as of 03:24, 20 October 2016