Difference between revisions of "Template:Reading2"

Line 18: Line 18:
 
pagenames.push(["Lab Work", "Protocols", "Experiments"]);
 
pagenames.push(["Lab Work", "Protocols", "Experiments"]);
 
pagenames.push(["Human Practices", "Human Practices", "Public Engagement", "Collaborations"]);
 
pagenames.push(["Human Practices", "Human Practices", "Public Engagement", "Collaborations"]);
pagenames.push(["Modelling"]);
 
 
pagenames.push(["Application"]);
 
pagenames.push(["Application"]);
 
pagenames.push(["Attributions"]);
 
pagenames.push(["Attributions"]);
Line 30: Line 29:
 
address.push(["/Protocols", "/Experiments"]);
 
address.push(["/Protocols", "/Experiments"]);
 
address.push(["/Practices", "/PublicEngagement", "/Collaborations"]);
 
address.push(["/Practices", "/PublicEngagement", "/Collaborations"]);
address.push(["/Modelling"]);
 
 
address.push(["/Application"]);
 
address.push(["/Application"]);
 
address.push(["/Attributions"]);
 
address.push(["/Attributions"]);
Line 60: Line 58:
 
for(i1 = 0; i1 < pagenames.length; i1++){
 
for(i1 = 0; i1 < pagenames.length; i1++){
 
if(pagenames[i1].length <= 1){
 
if(pagenames[i1].length <= 1){
menuHTML += '<div onclick="gotopage(address['+i1+'][0])" onmouseout="dullMenu(this)"onmouseover="lightUpMenu(this, ' + i1 + ')" style = "border-radius:1em; height:100%; width:10%; float:left; text-align:center;"><text  style = "line-height: 40px; font-size: 12px; color: #ffffff;text-decoration:none;">' + pagenames[i1][0] + '</text ></div>';
+
menuHTML += '<div onclick="gotopage(address['+i1+'][0])" onmouseout="dullMenu(this)"onmouseover="lightUpMenu(this, ' + i1 + ')" style = "border-radius:1em; height:100%; width:11.1%; float:left; text-align:center;"><text  style = "line-height: 40px; font-size: 12px; color: #ffffff;text-decoration:none;">' + pagenames[i1][0] + '</text ></div>';
 
}else{
 
}else{
menuHTML += '<div onmouseout="dullMenu(this)"onmouseover="lightUpMenu(this, ' + i1 + ')" style = "border-radius:1em; height:100%; width:10%; float:left; text-align:center;"><text  style = "line-height: 40px; font-size: 12px; color: #ffffff;text-decoration:none;">' + pagenames[i1][0] + '</text ></div>';
+
menuHTML += '<div onmouseout="dullMenu(this)"onmouseover="lightUpMenu(this, ' + i1 + ')" style = "border-radius:1em; height:100%; width:11.1%; float:left; text-align:center;"><text  style = "line-height: 40px; font-size: 12px; color: #ffffff;text-decoration:none;">' + pagenames[i1][0] + '</text ></div>';
 
}
 
}
 
}
 
}
Line 282: Line 280:
 
</div>
 
</div>
 
 
<div id = "SubMenu" style="border-bottom-left-radius: 1em; border-bottom-right-radius: 1em; font-size: 15px; visibility:hidden; position:absolute; font-size:10px; width:8.5%; background-Color:#d8131d; color:#ffffff;">
+
<div id = "SubMenu" style="border-bottom-left-radius: 1em; border-bottom-right-radius: 1em; font-size: 15px; visibility:hidden; position:absolute; font-size:10px; width:7.6%; background-Color:#d8131d; color:#ffffff;">
 
</div>
 
</div>
 
</body>
 
</body>
 
</html>
 
</html>

Revision as of 14:15, 17 September 2015