<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">var images = new Array();

function preload() {
	for (i = 0; i &lt; preload.arguments.length; i++) {
		images[i] = new Image();
		images[i].src = preload.arguments[i];
	}
}

function tsearch_submit(f) {
	if (f.stx.value.length &lt; 2) {
		alert("ê²€ìƒ‰ì–´ëŠ” ë‘ê¸€ìž ì´ìƒ ìž…ë&nbsp;¥í•˜ì‹­ì‹œì˜¤.");
		f.stx.focus();
		return false;
	}
	return true;
}

$(document).on("mouseover", '[data-toggle="popover-hover"]', function () {
	var e = $(this);
	e.off('hover');
	e.popover({
	  html: true,
	  trigger: 'hover',
	  placement: 'left',
	  content: function () { return '&lt;img src="' + e.data('img') + '" class="w-100 na-r1"/&gt;'; }
	}).popover('show');
});

$(document).ready(function() {

	// ì¦ê²¨ì°¾ê¸°
    $(document).on('click', '#favorite', function(e) {
        var bookmarkURL = window.location.href;
        var bookmarkTitle = document.title;
        var triggerDefault = false;

        if (window.sidebar &amp;&amp; window.sidebar.addPanel) {
            // Firefox version &lt; 23
            window.sidebar.addPanel(bookmarkTitle, bookmarkURL, '');
        } else if ((window.sidebar &amp;&amp; (navigator.userAgent.toLowerCase().indexOf('firefox') &gt; -1)) || (window.opera &amp;&amp; window.print)) {
            // Firefox version &gt;= 23 and Opera Hotlist
            var $this = $(this);
            $this.attr('href', bookmarkURL);
            $this.attr('title', bookmarkTitle);
            $this.attr('rel', 'sidebar');
            $this.off(e);
            triggerDefault = true;
        } else if (window.external &amp;&amp; ('AddFavorite' in window.external)) {
            // IE Favorite
            window.external.AddFavorite(bookmarkURL, bookmarkTitle);
        } else {
            // WebKit - Safari/Chrome
            alert((navigator.userAgent.toLowerCase().indexOf('mac') != -1 ? 'Cmd' : 'Ctrl') + '+D í‚¤ë¥¼ ëˆŒëŸ¬ ì¦ê²¨ì°¾ê¸°ì— ë“±ë¡í•˜ì‹¤ ìˆ˜ ìžˆìŠµë‹ˆë‹¤.');
        }

        return triggerDefault;
    });

	// íˆ´íŒ
    $('body').tooltip({
		selector: "[data-toggle='tooltip']"
    });
	
	// ìœ„ì&nbsp;¯ íƒ­ ì&nbsp;„í™˜ - ë§ˆìš°ìŠ¤ì˜¤ë²„
	$(".wg_head_tab").hover(function(){
		console.log($(this).parent().parent());
		const wg_wrapper = $(this).attr('data-parent');
		const target_id = $(this).attr("data-target");
		const more_href = $(this).attr("data-url");

		$("#"+wg_wrapper+" .wg_head_tab").removeClass('active');
		$("#"+wg_wrapper+" .wg_head_tab").each(function(){
			if ($(this).attr("data-target") == target_id) {
				$(this).addClass('active');
			}
			else {
				$(this).removeClass('active');
			}
		});

		if (more_href) {
			$("#"+wg_wrapper+" .wg_head_more a").attr("href", more_href);
			//$("#"+wg_wrapper+" .wg_head_more_m a").attr("href", more_href);
		}

		$("#"+wg_wrapper+" .wg_content_wrap").each(function(){
			if ($(this).attr("id") == target_id) {
				$(this).addClass('active');
			}
			else {
				$(this).removeClass('active');
			}
		});
	});
	
	// ìœ„ì&nbsp;¯ íƒ­ ì&nbsp;„í™˜ - í´ë¦­
	$(".wg_head_tab").click(function(){
		const wg_wrapper = $(this).attr('data-parent');
		const target_id = $(this).attr("data-target");
		const more_href = $(this).attr("data-url");

		$("#"+wg_wrapper+" .wg_head_tab").removeClass('active');
		$("#"+wg_wrapper+" .wg_head_tab").each(function(){
			if ($(this).attr("data-target") == target_id) {
				$(this).addClass('active');
				if (more_href) {
					if ($(this).parent().parent().attr('id') == 'wg_main_board_head_m') {
						$(this).attr("onclick", "location.href='"+more_href+"'");
					}
				}
			}
			else {
				$(this).removeClass('active');
				if ($(this).parent().parent().attr('id') == 'wg_main_board_head_m') {
					$(this).removeAttr('onclick');
				}
			}
		});
	
		if (more_href) {
			$("#"+wg_wrapper+" .wg_head_more a").attr("href", more_href);
			//$("#"+wg_wrapper+" .wg_head_more_m a").attr("href", more_href);
		}

		$("#"+wg_wrapper+" .wg_content_wrap").each(function(){
			if ($(this).attr("id") == target_id) {
				$(this).addClass('active');
			}
			else {
				$(this).removeClass('active');
			}
		});
	});
	
	// ë‹‰ë„¤ìž„ ë³µì‚¬
	$(document).on('click', '.btn_mb_nick_copy', function(){
		const copyTextarea = document.createElement("textarea");
		copyTextarea.style.position = "fixed";
		copyTextarea.style.opacity = "0";
		copyTextarea.textContent = $(this).attr("data-value");

		document.body.appendChild(copyTextarea);
		copyTextarea.select();
		document.execCommand("copy");
		document.body.removeChild(copyTextarea);

		const toast_msg = $(".toast_msg", this);

		toast_msg.fadeIn();
		setTimeout(function(){
			toast_msg.fadeOut();
		}, 2000);
	});

	// ìŠ¤í¬ëž©ì‹œ ëŒ“ê¸€ ë‚´ìš© ì‚­ì&nbsp;œ
	// ëŒ“ê¸€ ìž…ë&nbsp;¥ì°½ì„ ì£¼ì„ì²˜ë¦¬ í•´ë†“ì•˜ì§€ë§Œ, í˜¹ì‹œ ëª¨ë¥¼ ì•…ìš©ì„ ìœ„í•´..
	$("form[name='f_scrap_popin']").submit(function(){
		$("#wr_content", this).val("");
	});
});</pre></body></html>