LLWiki正在建設中,歡迎加入我們!
「Widget:目錄摺疊」修訂間的差異
跳至導覽
跳至搜尋
小 標籤:行動版網頁編輯 行動版編輯 |
小 標籤:行動版網頁編輯 行動版編輯 |
||
第3行: | 第3行: | ||
window.addEventListener('load', function() { |
window.addEventListener('load', function() { |
||
if(mw.config.get('skin') == 'vector') { document.querySelector( '#toctogglecheckbox' ).checked = true; } |
if(mw.config.get('skin') == 'vector') { document.querySelector( '#toctogglecheckbox' ).checked = true; } |
||
else { document.querySelector( '#toctogglecheckbox:checked' ).click(); } |
|||
}); |
}); |
||
//</pre> |
//</pre> |
於 2020年10月8日 (四) 09:41 的修訂
JavaScript腳本:
window.addEventListener('load', function() {
if(mw.config.get('skin') == 'vector') { document.querySelector( '#toctogglecheckbox' ).checked = true; }
else { document.querySelector( '#toctogglecheckbox:checked' ).click(); }
});
//