참고: 설정을 저장한 후에 바뀐 점을 확인하기 위해서는 브라우저의 캐시를 새로 고쳐야 합니다.

  • 파이어폭스 / 사파리: Shift 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5 또는 Ctrl-R을 입력 (Mac에서는 ⌘-R)
  • 구글 크롬: Ctrl-Shift-R키를 입력 (Mac에서는 ⌘-Shift-R)
  • 인터넷 익스플로러 / 엣지: Ctrl 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5를 입력.
  • 오페라: Ctrl-F5를 입력.
( function () {
	function tablewrap() {
		var z = document.getElementById( 'mw-content-text' ).clientWidth,
			x = document.querySelectorAll( '#mw-content-text table' ),
			i, y;
		for ( i = x.length; i--; ) {
			y = document.createElement( 'div' );
			y.className = 'liberty-table-wrapper';
			if ( x[ i ].clientWidth > z && x[ i ].parentNode.className !== 'liberty-table-wrapper' ) {
				x[ i ].parentNode.insertBefore( y, x[ i ] );
				y.appendChild( x[ i ] );
			} else if ( x[ i ].clientWidth < z && x[ i ].parentNode.className === 'liberty-table-wrapper' ) {
				x[ i ].parentNode.parentNode.insertBefore( x[ i ], x[ i ].parentNode );
				x[ i ].nextSibling.remove();
			}
		}
	}
	window.onresize = function () {
		tablewrap();
	};
	window.onload = function () {
		tablewrap();
	};
}() );


$( function () {
	'use strict';

	/* Dropdown fade in */
	$( '.dropdown' ).on( 'show.bs.dropdown', function () {
		$( this ).find( '.dropdown-menu' ).first().stop( true, true ).fadeToggle( 200 );
	} );

	$( '.dropdown' ).on( 'hide.bs.dropdown', function () {
		$( this ).find( '.dropdown-menu' ).first().stop( true, true ).fadeToggle( 200 );
	} );

	$( '.btn-group' ).on( 'show.bs.dropdown', function () {
		$( this ).find( '.dropdown-menu' ).first().stop( true, true ).fadeToggle( 200 );
	} );

	$( '.btn-group' ).on( 'hide.bs.dropdown', function () {
		$( this ).find( '.dropdown-menu' ).first().stop( true, true ).fadeToggle( 200 );
	} );
	/* Dropdown fade in End */

	/* Modal Focus */
	$( '#login-modal' ).on( 'shown.bs.modal', function () {
		$( '#wpName1' ).focus();
	} );
	/* Modal Focus End */
} );

/* Sub menu */
$( function () {
	var display;

	$( '.dropdown-toggle-sub' ).on( 'click', function ( element ) {
		display = $( this ).next( 'div.dropdown-menu' );
		display.toggle();
		element.stopPropagation();
		element.preventDefault();
	} );

	$( 'html' ).on( 'click', function () {
		if ( display !== undefined ) {
			display.hide();
		}
	} );
} );
/* Sub menu end */