跳至內容
卷首
卷首
移至側邊欄
藏
導
卷首
總集
校覽
江蘇省天一中學
校史
校園文化
校事年表
地與館舍
校園建築
校園之地
校園景物
教室館舍
課與教
課程
學科
教學之制
AP課程
組織與社團
校中組織
學生組織
學生社團
校園媒體
人物
師
校友
諸人物
活動與賽
校園活動
學科競賽
體育競賽
藝文活動
文物與資料
校刊
校園作品
史料
圖
校園食饌
校園食饌
校園趣談
校園趣談
共筆
待肇之頁
短頁
孤頁
未類之頁
編輯之規
可信之源
隱私之策
沙盒
工具與覽
諸頁
諸類
新頁
近易
隨機條目
上傳檔案
殊頁
共筆臺說明
語言
中文
English
Français
日本語
한국어
文言
尋
尋
觀
登簿
籍記
家私
登簿
籍記
查MediaWiki:Common.js之案
增語
中文
English
Français
日本語
한국어
訊
議
English
閱
覽源
覽誌
多寶
多寶
移至側邊欄
藏
操
閱
覽源
覽誌
常
取佐
繫編
進獻
詳情
觀
移至側邊欄
藏
←
MediaWiki:Common.js
不得纂此頁,緣由若下:
子所欲,唯
簿
可爲。
此頁司版。片言之易,皆波及全局之觀瞻。故乃封緘,免致隳壞。 若欲助譯,宜赴
翻譯共筆
,是專司共筆臺各語迻譯之所也。
您沒有權限來編輯此 JavaScript 頁面,因為這會影響到所有的網站訪客。
爾可視及複本頁之碼。
/* Keep Vector's native sidebar and add accessible disclosure behaviour to custom groups. */ ( function () { 'use strict'; var excludedPortlets = [ 'p-navigation', 'p-tb', 'p-lang', 'p-search' ]; function isCurrentPortlet( content ) { var current = new URL( window.location.href ); if ( content.querySelector( '.mw-list-item.selected, .mw-list-item.active, a[aria-current="page"]' ) ) { return true; } return Array.prototype.some.call( content.querySelectorAll( 'a[href]' ), function ( link ) { var target = new URL( link.href, window.location.href ); return target.origin === current.origin && target.pathname === current.pathname && target.search === current.search; } ); } function enhancePortlet( portlet ) { var heading; var content; var button; var icon; var label; var contentId; if ( excludedPortlets.indexOf( portlet.id ) !== -1 || portlet.dataset.tyzxCollapsible === '1' ) { return; } heading = portlet.querySelector( ':scope > .vector-menu-heading' ); content = portlet.querySelector( ':scope > .vector-menu-content' ); if ( !heading || !content || !content.querySelector( 'li' ) ) { return; } label = heading.textContent.trim(); if ( !label ) { return; } contentId = content.id || portlet.id + '-content'; content.id = contentId; button = document.createElement( 'button' ); button.type = 'button'; button.className = 'tyzx-sidebar-toggle'; button.setAttribute( 'aria-controls', contentId ); icon = document.createElement( 'span' ); icon.className = 'tyzx-sidebar-toggle__icon'; icon.setAttribute( 'aria-hidden', 'true' ); button.appendChild( icon ); button.appendChild( document.createTextNode( label ) ); heading.textContent = ''; heading.appendChild( button ); portlet.classList.add( 'tyzx-sidebar-collapsible' ); portlet.dataset.tyzxCollapsible = '1'; function setOpen( open ) { button.setAttribute( 'aria-expanded', open ? 'true' : 'false' ); content.hidden = !open; portlet.classList.toggle( 'is-open', open ); } setOpen( isCurrentPortlet( content ) ); button.addEventListener( 'click', function () { setOpen( button.getAttribute( 'aria-expanded' ) !== 'true' ); } ); button.addEventListener( 'keydown', function ( event ) { if ( event.key === 'Escape' ) { setOpen( false ); button.focus(); } } ); } function initSidebar() { Array.prototype.forEach.call( document.querySelectorAll( '#vector-main-menu .mw-portlet' ), enhancePortlet ); } if ( document.readyState === 'loading' ) { document.addEventListener( 'DOMContentLoaded', initSidebar ); } else { initSidebar(); } }() );
返
MediaWiki:Common.js
。
尋
尋
查MediaWiki:Common.js之案
增語
入題