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

Line 251: Line 251:
 
<!-- Team -->
 
<!-- Team -->
 
<div class="dropdown">
 
<div class="dropdown">
<div id="1h" onclick="closeintro(event),openintro(event)">
+
<div id="1d" onclick="closeintro(event),openintro(event)">
 
TEAM
 
TEAM
 
</div>  
 
</div>  
Line 273: Line 273:
 
<div class="dropdown">
 
<div class="dropdown">
 
<!-- Project -->
 
<!-- Project -->
<div id="2h" onclick="closeintro(event),openintro(event)">
+
<div id="2d" onclick="closeintro(event),openintro(event)">
 
PROJECT
 
PROJECT
 
</div>  
 
</div>  
Line 339: Line 339:
  
 
<div class="dropdown">
 
<div class="dropdown">
<div id="3h" onclick="closeintro(event),openintro(event)">
+
<div id="3d" onclick="closeintro(event),openintro(event)">
 
PARTS
 
PARTS
 
</div>
 
</div>
Line 385: Line 385:
  
 
<div class="dropdown">
 
<div class="dropdown">
<div id="4h" onclick="closeintro(event),openintro(event)">
+
<div id="4d" onclick="closeintro(event),openintro(event)">
 
HUMAN PRACTICES  
 
HUMAN PRACTICES  
 
</div>  
 
</div>  
Line 410: Line 410:
  
 
<div class="dropdown">
 
<div class="dropdown">
<div id="5h" onclick="closeintro(event),openintro(event)">
+
<div id="5d" onclick="closeintro(event),openintro(event)">
 
AWARDS
 
AWARDS
 
</div>  
 
</div>  
Line 465: Line 465:
 
function closeintro(x){
 
function closeintro(x){
 
var intros = $('.intro');
 
var intros = $('.intro');
var targetintro = x.target.id.replace('h','i');
+
var targetintro = x.target.id.replace('d','i');
 
for (var i = intros.length - 1; i >= 0; i--) {
 
for (var i = intros.length - 1; i >= 0; i--) {
 
if (intros[i].id != targetintro) {
 
if (intros[i].id != targetintro) {

Revision as of 08:24, 17 October 2018