Difference between revisions of "Template:SJTU-BioX-Shanghai/Alpha/Header"

Line 3: Line 3:
 
<script>
 
<script>
 
function hide_nav_click(this) {
 
function hide_nav_click(this) {
 +
  alert("hide")
 
   var nav = this.parentElement
 
   var nav = this.parentElement
 
   nav.classList.add('nav-hided')
 
   nav.classList.add('nav-hided')
Line 9: Line 10:
 
}
 
}
 
function show_nav_click(this) {
 
function show_nav_click(this) {
 +
  alert("show")
 
   var nav = this.parentElement
 
   var nav = this.parentElement
 
   nav.classList.remove('nav-hided')
 
   nav.classList.remove('nav-hided')
Line 110: Line 112:
 
   overflow: visible;
 
   overflow: visible;
 
}
 
}
 
+
nav #hide-var {
 +
  position: fixed;
 +
  top: 0px;
 +
  left: 0px;
 +
  width: 1em;
 +
  height: 100%;
 +
  background-color: black; 
 +
}
 
nav #hide-nav svg{
 
nav #hide-nav svg{
 
   poiner-events: none;
 
   poiner-events: none;

Revision as of 00:50, 11 August 2015