Laurasansc (Talk | contribs) (Blanked the page) |
Laurasansc (Talk | contribs) |
||
(44 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | <html> | ||
+ | <script> | ||
+ | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
+ | $(document).ready(function() { | ||
+ | |||
+ | $("#HQ_page").attr('id',''); | ||
+ | |||
+ | |||
+ | //highlight current page on the menu | ||
+ | highlight_current_page_menu(); | ||
+ | |||
+ | //accessing submenus | ||
+ | $(".menu_item").click(function(){ | ||
+ | $(".submenu_control_icon", this).toggleClass("open"); | ||
+ | $(this).next(".submenu").fadeToggle(400); | ||
+ | }); | ||
+ | |||
+ | //mobile menu access | ||
+ | $(".igem_2018_team_mobile_bar").click(function(){ | ||
+ | $(this).next().toggleClass("displaying_menu"); | ||
+ | }); | ||
+ | |||
+ | }); | ||
+ | |||
+ | |||
+ | function highlight_current_page_menu() { | ||
+ | |||
+ | var page_url="https://2018.igem.org/"; | ||
+ | page_url = page_url + wgPageName; | ||
+ | $("a[href$='"+ page_url +"']").children().addClass("current_page"); | ||
+ | |||
+ | //if the page is in a submenu, open the submenu and make the appropiate changes | ||
+ | if( $( ".current_page" ).hasClass( "submenu_item" )){ | ||
+ | |||
+ | $(".current_page").parent().parent().fadeToggle(400); | ||
+ | $(".current_page").parent().parent().prev().addClass("current_page"); | ||
+ | $(".menu_item.current_page > .submenu_control_icon").toggleClass("open"); | ||
+ | |||
+ | } | ||
+ | } | ||
+ | |||
+ | |||
+ | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
+ | </script> | ||
+ | |||
+ | |||
+ | <!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | ||
+ | <!--- THIS IS WHERE THE HTML BEGINS ---> | ||
+ | <!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | ||
+ | |||
+ | <head> | ||
+ | <meta charset="UTF-8"> | ||
+ | <meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
+ | <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=1, minimum-scale=1, maximum-scale=2.5" /> | ||
+ | <!-- Title, Description --> | ||
+ | <title>Wiki</title> | ||
+ | <meta name="description" content="UPF CRG Barcelona 2018"> | ||
+ | <!-- Open Graph Metadata --> | ||
+ | <meta property="og:url" content="" /> <!-- PAGE URL --> | ||
+ | <meta property="og:type" content="website" /> <!-- TYPE --> | ||
+ | <meta property="og:title" content="" /> <!-- TITLE --> | ||
+ | <meta property="og:description" content="" /> <!-- DESCRIPTION--> | ||
+ | <meta property="og:image" content="" /> <!-- IMAGE URL --> | ||
+ | |||
+ | </head> | ||
+ | |||
+ | <style> | ||
+ | .mw-body { | ||
+ | width: 100% !important; | ||
+ | padding: 0 !important; | ||
+ | margin: 0 !important; | ||
+ | } | ||
+ | #top_title { | ||
+ | display: none; | ||
+ | } | ||
+ | |||
+ | a { | ||
+ | text-decoration: none !important; | ||
+ | -webkit-tap-highlight-color: transparent; | ||
+ | p { | ||
+ | text-decoration: none !important; | ||
+ | } | ||
+ | } | ||
+ | :focus { | ||
+ | outline: none !important; | ||
+ | } | ||
+ | |||
+ | p, ol>li, .container>div>ul>li { | ||
+ | font-size: 1rem; | ||
+ | } | ||
+ | |||
+ | a:visited, a:hover, a:active, a:link { | ||
+ | color: inherit; | ||
+ | } | ||
+ | |||
+ | @media screen and (min-width: 400px) { | ||
+ | |||
+ | .container, | ||
+ | .container-centered, | ||
+ | main { | ||
+ | padding: 0; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | </style> | ||
+ | |||
+ | <!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | ||
+ | <!--- Content of the page ---> | ||
+ | <!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> |
Latest revision as of 13:28, 5 December 2018