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

Line 490: Line 490:
 
var dotslist = document.getElementsByClassName("sidebar-switch");
 
var dotslist = document.getElementsByClassName("sidebar-switch");
 
var sidebar = document.getElementsByClassName("sidebar-content");
 
var sidebar = document.getElementsByClassName("sidebar-content");
var subtitles = document.getElementsByClassName("subtitle");
+
var subtitles = document.getElementsByClassName("section");
 
var items = document.getElementsByClassName("sidebar-item");
 
var items = document.getElementsByClassName("sidebar-item");
 
     $(window).scroll(function(){
 
     $(window).scroll(function(){

Revision as of 05:08, 12 July 2018