Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
새 문서: 이 자바스크립트 설정은 모든 문서, 모든 사용자에게 적용됩니다.: $(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 안에 사이트맵...
(No difference)

Revision as of 15:22, 25 June 2025

/* 이 자바스크립트 설정은 모든 문서, 모든 사용자에게 적용됩니다. */
$(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);
});