MediaWiki:Common.js
MediaWiki interface page
More actions
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* 이 자바스크립트 설정은 모든 문서, 모든 사용자에게 적용됩니다. */
$(function () {
// 오른쪽 고정 트리 박스 생성
var $treeBox = $('<div id="treeNavBox"></div>').css({
position: 'fixed',
top: '70px',
right: '0px',
width: '250px',
height: '85%',
overflow: 'auto',
background: '#1c1c1c',
borderLeft: '2px solid #333',
padding: '5px',
color: '#fff',
zIndex: 9999
});
// iframe 안에 사이트맵 페이지 로드
var $iframe = $('<iframe>', {
src: '/wiki/사이트맵트리',
width: '100%',
height: '100%',
frameborder: 0,
style: 'background: #1c1c1c; color: white;'
});
$treeBox.append($iframe);
$('body').append($treeBox);
});