Changes for page 学校ページ テンプレート
Last modified by Super Admin on 2026/04/05 18:59
From version
71.1
edited by Super Admin
on 2026/03/18 20:48
on 2026/03/18 20:48
Change comment:
There is no comment for this version
To version
70.1
edited by Super Admin
on 2026/03/18 18:54
on 2026/03/18 18:54
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Content
-
... ... @@ -1066,27 +1066,6 @@ 1066 1066 } 1067 1067 // ページ読み込み時の初期化 1068 1068 document.addEventListener('DOMContentLoaded', function() { 1069 - // 年度タブを降順にソート(「全期間」タブは末尾に固定) 1070 - var tabContainer = document.querySelector('.activity-fy-tabs'); 1071 - if (tabContainer) { 1072 - var tabs = Array.from(tabContainer.querySelectorAll('.activity-fy-tab')); 1073 - var allTab = null; 1074 - var fyTabs = []; 1075 - tabs.forEach(function(t) { 1076 - var onclickStr = t.getAttribute('onclick') || ''; 1077 - if (onclickStr.indexOf("'all'") !== -1) { allTab = t; } 1078 - else { fyTabs.push(t); } 1079 - }); 1080 - // 年度タブを数値の降順でソート 1081 - fyTabs.sort(function(a, b) { 1082 - var aYear = parseInt(a.textContent) || 0; 1083 - var bYear = parseInt(b.textContent) || 0; 1084 - return bYear - aYear; 1085 - }); 1086 - // DOM再配置 1087 - fyTabs.forEach(function(t) { tabContainer.appendChild(t); }); 1088 - if (allTab) { tabContainer.appendChild(allTab); } 1089 - } 1090 1090 // デフォルトで現在の年度を表示 1091 1091 var defaultTab = document.querySelector('.activity-fy-tab.active'); 1092 1092 if (defaultTab) { defaultTab.click(); }