Changes for page 学校ページ テンプレート
Last modified by Super Admin on 2026/04/05 18:59
From version
115.1
edited by Super Admin
on 2026/03/27 05:08
on 2026/03/27 05:08
Change comment:
There is no comment for this version
To version
116.1
edited by Super Admin
on 2026/03/27 15:41
on 2026/03/27 15:41
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Content
-
... ... @@ -1615,7 +1615,7 @@ 1615 1615 } 1616 1616 // ページ読み込み時の初期化 1617 1617 document.addEventListener('DOMContentLoaded', function() { 1618 - // 年度タブを降順にソート(「全期間」タブは 末尾に固定)1618 + // 年度タブを降順にソート(「全期間」タブは先頭に固定) 1619 1619 var tabContainer = document.querySelector('.activity-fy-tabs'); 1620 1620 if (tabContainer) { 1621 1621 var tabs = Array.from(tabContainer.querySelectorAll('.activity-fy-tab')); ... ... @@ -1632,9 +1632,9 @@ 1632 1632 var bYear = parseInt(b.textContent) || 0; 1633 1633 return bYear - aYear; 1634 1634 }); 1635 - // DOM再配置 1636 - fyTabs.forEach(function(t) { tabContainer.appendChild(t); }); 1635 + // DOM再配置(全期間を先頭、年度タブを降順で続ける) 1637 1637 if (allTab) { tabContainer.appendChild(allTab); } 1637 + fyTabs.forEach(function(t) { tabContainer.appendChild(t); }); 1638 1638 } 1639 1639 // デフォルトで全期間を表示 1640 1640 var defaultTab = document.querySelector('.activity-fy-tab.active');