Team:Tianjin/Safety
From 2013.igem.org
Line 103: | Line 103: | ||
var closetimer = 0; | var closetimer = 0; | ||
var ddmenuitem = 0; | var ddmenuitem = 0; | ||
- | |||
- | |||
function mopen(id) | function mopen(id) | ||
- | { | + | { mcancelclosetime(); |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden'; | if(ddmenuitem) ddmenuitem.style.visibility = 'hidden'; | ||
- | |||
- | |||
ddmenuitem = document.getElementById(id); | ddmenuitem = document.getElementById(id); | ||
ddmenuitem.style.visibility = 'visible'; | ddmenuitem.style.visibility = 'visible'; | ||
- | |||
} | } | ||
- | |||
function mclose() | function mclose() | ||
- | { | + | { if(ddmenuitem) ddmenuitem.style.visibility = 'hidden'; |
- | + | ||
} | } | ||
- | |||
- | |||
function mclosetime() | function mclosetime() | ||
- | { | + | { closetimer = window.setTimeout(mclose, timeout); |
- | + | ||
} | } | ||
- | |||
- | |||
function mcancelclosetime() | function mcancelclosetime() | ||
- | { | + | { if(closetimer) |
- | + | { window.clearTimeout(closetimer); | |
- | { | + | |
- | + | ||
closetimer = null; | closetimer = null; | ||
} | } | ||
} | } | ||
- | |||
- | |||
document.onclick = mclose; | document.onclick = mclose; | ||
- | |||
</script> | </script> | ||
Line 292: | Line 271: | ||
<br/> | <br/> | ||
- | <div style="background-color:#fafafa;width: | + | <div style="background-color:#fafafa;width:700px;padding-left:5px;"> |
<br/> | <br/> | ||
<p>April 16 2013, a postgraduate student named Huang Yang from Fudan University died of poisoning in Shanghai Zhongshan Hospital. Accord-<br/>ing to the report of the police's investigation, a toxic chemical compound was found in the drinking water dispenser in Huang's dormitory room, and this toxic chemical compoud is taken out of a laboratory.</p> | <p>April 16 2013, a postgraduate student named Huang Yang from Fudan University died of poisoning in Shanghai Zhongshan Hospital. Accord-<br/>ing to the report of the police's investigation, a toxic chemical compound was found in the drinking water dispenser in Huang's dormitory room, and this toxic chemical compoud is taken out of a laboratory.</p> | ||
Line 306: | Line 285: | ||
<a href="#" ><img src="https://static.igem.org/mediawiki/2013/a/a2/Lab_safety.jpg" width="400px" height="266px";/></a> | <a href="#" ><img src="https://static.igem.org/mediawiki/2013/a/a2/Lab_safety.jpg" width="400px" height="266px";/></a> | ||
<div id="Enlarge"> | <div id="Enlarge"> | ||
- | <a href="#" title="Enlarge"><img src="https://static.igem.org/mediawiki/2013/9/90/Enlarge.jpg" width=" | + | <a href="#" title="Enlarge"><img src="https://static.igem.org/mediawiki/2013/9/90/Enlarge.jpg" width="20" height="20" alt="" align="right"/></a> |
<b>Figure 1.</b> The "Lab-Safety Month of Tianjin University"</div> | <b>Figure 1.</b> The "Lab-Safety Month of Tianjin University"</div> | ||
</div></div> | </div></div> |
Revision as of 12:46, 21 September 2013