PageSourceSearch

https://fcms1st.com/thema/Miso-Basic4/assets/js/custom.js

js fcms1st.com collected 2026-10-08 11:49:45 UTC 5,031 bytes, 206 lines download raw bytes

1/*
2 *  Amina App 1.0
3 *
4 *  Copyright (c) 2015 Amina
5 *  http://amina.co.kr
6 *
7 */
8
9(function($) {
10	$.fn.amina_menu = function(option) {
11        var cfg = { name: '.sub', show: '', hide: '' };
12
13		if(typeof option == "object")
14            cfg = $.extend(cfg, option);
15
16		var subname = cfg.name;
17		var submenu = $(this).find(subname).parent();
18
19		submenu.each(function(i){
20			$(this).hover(
21				function(e){
22					var targetmenu = $(this).children(subname + ":eq(0)");
23					if (targetmenu.queue().length <= 1) {
24						switch(cfg.show) {
25							case 'show'  : targetmenu.show(); break;
26							case 'fade'  : targetmenu.fadeIn(300, 'swing'); break;
27							default		 : targetmenu.slideDown(300, 'swing'); break;
28						}
29					}
30				},
31				function(e){
32					var targetmenu = $(this).children(subname + ":eq(0)");
33					switch(cfg.hide) {
34						case 'hide' : targetmenu.hide(); break;
35						case 'fade' : targetmenu.fadeOut(100, 'swing'); break;
36						default		: targetmenu.slideUp(100, 'swing'); break;
37					}
38				}
39			) //end hover
40			$(this).click(function(){
41				$(this).children(subname + ":eq(0)").hide();
42			})
43		}); //end submenu.each()
44
45		$(this).find(subname).css({display:"none", visibility:"visible"});
46	}
47}(jQuery));
48
49function go_page(url) {
50	document.location.href = decodeURIComponent(url);
51	return false;
52}
53
54function tsearch_submit(f) {
55
56	if (f.stx.value.length < 2) {
57		alert("검색어는 두글자 이상 입력하십시오.");
58		f.stx.select();
59		f.stx.focus();
60		return false;
61	}
62
63	f.action = f.url.value;
64
65	return true;
66}
67
68$(document).ready(function() {
69
70    $('#favorite').on('click', function(e) {
71        var bookmarkURL = window.location.href;
72        var bookmarkTitle = document.title;
73        var triggerDefault = false;
74
75        if (window.sidebar && window.sidebar.addPanel) {
76            // Firefox version < 23
77            window.sidebar.addPanel(bookmarkTitle, bookmarkURL, '');
78        } else if ((window.sidebar && (navigator.userAgent.toLowerCase().indexOf('firefox') > -1)) || (window.opera && window.print)) {
79            // Firefox version >= 23 and Opera Hotlist
80            var $this = $(this);
81            $this.attr('href', bookmarkURL);
82            $this.attr('title', bookmarkTitle);
83            $this.attr('rel', 'sidebar');
84            $this.off(e);
85            triggerDefault = true;
86        } else if (window.external && ('AddFavorite' in window.external)) {
87            // IE Favorite
88            window.external.AddFavorite(bookmarkURL, bookmarkTitle);
89        } else {
90            // WebKit - Safari/Chrome
91            alert((navigator.userAgent.toLowerCase().indexOf('mac') != -1 ? 'Cmd' : 'Ctrl') + '+D 키를 눌러 즐겨찾기에 등록하실 수 있습니다.');
92        }
93
94        return triggerDefault;
95    });
96
97	// Tooltip
98    $('body').tooltip({
99		selector: "[data-toggle='tooltip']"
100    });
101
102	// Mobile Menu
103    $('#mobile_nav').sly({
104		horizontal: 1,
105		itemNav: 'centered', //basic
106		smart: 1,
107		mouseDragging: 1,
108		touchDragging: 1,
109		releaseSwing: 1,
110		startAt: menu_startAt,
111		speed: 300,
112		elasticBounds: 1,
113		dragHandle: 1,
114		dynamicHandle: 1
115    });
116
117	if(menu_sub) {
118		$('#mobile_nav_sub').sly({
119			horizontal: 1,
120			itemNav: 'centered', //basic
121			smart: 1,
122			mouseDragging: 1,
123			touchDragging: 1,
124			releaseSwing: 1,
125			startAt: menu_subAt,
126			speed: 300,
127			elasticBounds: 1,
128			dragHandle: 1,
129			dynamicHandle: 1
130		});
131	}
132
133	$(window).resize(function(e) {
134		$('#mobile_nav').sly('reload');
135		if(menu_sub) {
136			$('#mobile_nav_sub').sly('reload');
137		}
138	});
139
140	// Amina Menu
141	$('.nav-slide').amina_menu({name:'.sub-slide', show: sub_show, hide: sub_hide});
142	$('.nav-shows').amina_menu({name:'.sub-shows', show:'show', hide:'hide'});
143
144	// Nav-Pull Menu
145	$("#nav_full .menu-ul").on({
146		mouseenter:function(){
147			$("#nav_full").addClass("on");
148		},
149		mouseleave:function(){
150			$("#nav_full").removeClass("on");
151		}
152	});
153
154	// Tab Swipe
155	$(".swipe-tab").swiperight(function(e) {
156		e.preventDefault();
157		var tab_id = $(this).attr("id");
158		var $tab = $('#' + tab_id + ' .nav .active').prev();
159		if ($tab.length > 0) {
160			e.preventDefault()
161			$tab.find('a').tab('show');
162		}
163		return false;
164	});
165
166	$(".swipe-tab").swipeleft(function(e) {
167		e.preventDefault();
168		var tab_id = $(this).attr("id");
169		var $tab = $('#' + tab_id + ' .nav .active').next();
170		if ($tab.length > 0) {
171			$tab.find('a').tab('show');
172		}
173		return false;
174	});
175
176	// Carousel Swipe
177	$(".swipe-carousel").swiperight(function(e) {
178		e.preventDefault();
179		$(this).carousel('prev');
180	});
181	
182	$(".swipe-carousel").swipeleft(function(e) {  
183		e.preventDefault();
184		$(this).carousel('next');
185	});
186
187	// Top & Bottom Button
188	$(window).scroll(function(){
189		if ($(this).scrollTop() > 250) {
190			$('#go-btn').fadeIn();
191		} else {
192			$('#go-btn').fadeOut();
193		}
194	});
195
196	$('.go-top').on('click', function () {
197		$('html, body').animate({ scrollTop: '0px' }, 500);
198		return false;
199	});
200
201	$('.go-bottom').on('click', function () {
202		$('html, body').animate({ scrollTop: $(document).height() }, 500);
203		return false;
204	});
205
206});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.