HANSONGTSENG (Talk | contribs) |
HANSONGTSENG (Talk | contribs) |
||
Line 251: | Line 251: | ||
<!-- Team --> | <!-- Team --> | ||
<div class="dropdown"> | <div class="dropdown"> | ||
− | <div id=" | + | <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=" | + | <div id="2d" onclick="closeintro(event),openintro(event)"> |
PROJECT | PROJECT | ||
</div> | </div> | ||
Line 339: | Line 339: | ||
<div class="dropdown"> | <div class="dropdown"> | ||
− | <div id=" | + | <div id="3d" onclick="closeintro(event),openintro(event)"> |
PARTS | PARTS | ||
</div> | </div> | ||
Line 385: | Line 385: | ||
<div class="dropdown"> | <div class="dropdown"> | ||
− | <div id=" | + | <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=" | + | <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(' | + | 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