Difference between revisions of "Template:NYMU-Taipei/newtemplate1"

Line 251: Line 251:
 
<!-- Team -->
 
<!-- Team -->
 
<div class="dropdown">
 
<div class="dropdown">
<div id="1d" onclick="closeintro(event),openintro(event)">
+
<div id="1r" onclick="closeintro(event),openintro(event)">
 
TEAM
 
TEAM
 
</div>  
 
</div>  
Line 273: Line 273:
 
<div class="dropdown">
 
<div class="dropdown">
 
<!-- Project -->
 
<!-- Project -->
<div id="2d" onclick="closeintro(event),openintro(event)">
+
<div id="2r" onclick="closeintro(event),openintro(event)">
 
PROJECT
 
PROJECT
 
</div>  
 
</div>  
Line 339: Line 339:
  
 
<div class="dropdown">
 
<div class="dropdown">
<div id="3d" onclick="closeintro(event),openintro(event)">
+
<div id="3r" onclick="closeintro(event),openintro(event)">
 
PARTS
 
PARTS
 
</div>
 
</div>
Line 385: Line 385:
  
 
<div class="dropdown">
 
<div class="dropdown">
<div id="4d" onclick="closeintro(event),openintro(event)">
+
<div id="4r" onclick="closeintro(event),openintro(event)">
 
HUMAN PRACTICES  
 
HUMAN PRACTICES  
 
</div>  
 
</div>  
Line 410: Line 410:
  
 
<div class="dropdown">
 
<div class="dropdown">
<div id="5d" onclick="closeintro(event),openintro(event)">
+
<div id="5r" onclick="closeintro(event),openintro(event)">
 
AWARDS
 
AWARDS
 
</div>  
 
</div>  
Line 474: Line 474:
  
 
function openintro(x){
 
function openintro(x){
var targetintro = x.target.id.replace('d','c');
+
var targetintro = x.target.id.replace('r','c');
 
document.getElementById(targetintro).show();;
 
document.getElementById(targetintro).show();;
 
}
 
}

Revision as of 09:51, 17 October 2018