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

Line 516: Line 516:
  
 
function closeintro(x){
 
function closeintro(x){
var intros = document.getElementsByClassName('intro');
+
var intros = $('.intro');
 
var targetintro = x.target.id.replace('h','i');
 
var targetintro = x.target.id.replace('h','i');
 
for (var i = intros.length - 1; i >= 0; i--) {
 
for (var i = intros.length - 1; i >= 0; i--) {

Revision as of 04:52, 21 August 2018