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

 
(3 intermediate revisions by the same user not shown)
Line 170: Line 170:
 
text-align:center;
 
text-align:center;
 
color:#4B727B;
 
color:#4B727B;
font-size: 15px;
+
font-size: 17px;
 
}
 
}
  
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>  
<div class="dropdown-content" id="1i">
+
<div class="dropdown-content" id="1c">
 
 
 
<a href="https://2018.igem.org/Team:NYMU-Taipei/Team">
 
<a href="https://2018.igem.org/Team:NYMU-Taipei/Team">
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>  
<div class="dropdown-content" id="2i">
+
<div class="dropdown-content" id="2c">
 
 
 
<a href="https://2018.igem.org/Team:NYMU-Taipei/Description">
 
<a href="https://2018.igem.org/Team:NYMU-Taipei/Description">
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>
<div class="dropdown-content" id="3i">
+
<div class="dropdown-content" id="3c">
 
 
 
<a href="https://2018.igem.org/Team:NYMU-Taipei/Parts">
 
<a href="https://2018.igem.org/Team:NYMU-Taipei/Parts">
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>  
  
<div class="dropdown-content"id="4i">
+
<div class="dropdown-content"id="4c">
  
 
<a href="https://2018.igem.org/Team:NYMU-Taipei/Human_Practices">
 
<a href="https://2018.igem.org/Team:NYMU-Taipei/Human_Practices">
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>  
  
<div class="dropdown-content" id="5i">
+
<div class="dropdown-content" id="5c">
  
 
<a href="https://2018.igem.org/Team:NYMU-Taipei/Applied_Design">
 
<a href="https://2018.igem.org/Team:NYMU-Taipei/Applied_Design">
Line 465: Line 465:
 
function closeintro(x){
 
function closeintro(x){
 
var intros = $('.intro');
 
var intros = $('.intro');
var targetintro = x.target.id.replace('d','i');
+
var targetintro = x.target.id.replace('d','c');
 
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) {
Line 474: Line 474:
  
 
function openintro(x){
 
function openintro(x){
var targetintro = x.target.id.replace('d','i');
+
var targetintro = x.target.id.replace('r','c');
 
document.getElementById(targetintro).show();;
 
document.getElementById(targetintro).show();;
 
}
 
}

Latest revision as of 19:37, 17 October 2018