PageSourceSearch

https://www.gsp.or.kr/common/2023/js/main.js

js gsp.or.kr collected 2026-10-05 23:24:13 UTC 11,402 bytes, 430 lines download raw bytes

1    ///  숫자 카운트
2    $(function () {
3      $('.num').counterUp({ delay: 10, time: 1500 });
4    });
5
6$(document).ready(function() {
7	/* 20251121 */
8	  // 배너 슬라이드
9	  $('.banner_slide ul').slick({
10	autoplay: true,
11	autoplaySpeed: 3000,
12	speed: 2000,
13	dots: true,
14	pauseOnHover: true,
15	pauseOnFocus: true,
16	arrows: true,
17	prevArrow: $('.arrows .slick-prev'),
18	nextArrow: $('.arrows .slick-next'),
19	    slidesToShow: 1,
20	    slidesToScroll: 1,
21		customPaging: function(slider, i) {
22			return (i + 1);
23		},
24	  });
25
26		$('.banner_slide .total').text($(".banner_slide ul .slick-slide:not(.slick-cloned)").length);
27	$('.banner_slide ul').on("afterChange", function(){
28	$('.banner_slide .current').text($(".banner_slide .slick-dots .slick-active").text());
29	$('.banner_slide .total').text($(".banner_slide ul .slick-slide:not(.slick-cloned)").length);
30	});
31
32	/* //20251121 */
33
34  $('.banner_slide .arrows button.slide_stop').on('click', function () {
35    $(this).hide()
36    $(this).siblings('.slide_play').show();
37    $('.banner_slide ul').slick('slickPause');
38  });
39  $('.banner_slide .arrows button.slide_play').on('click', function () {
40    $(this).hide()
41    $(this).siblings('.slide_stop').show();
42    $('.banner_slide ul').slick('slickPlay');
43  });
44
45  // 투자사 정보 슬라이드
46  $('.invest_slide > ul').slick({
47    autoplay: true,
48    autoplaySpeed: 3000,
49    fade: true,
50    speed: 800,
51    dots: false,
52    pauseOnHover: true,
53    pauseOnFocus: true,
54    arrows: true,
55    prevArrow: $('.invest_slide .arrow_wrap .slick-prev'),
56    nextArrow: $('.invest_slide .arrow_wrap .slick-next'),
57    slidesToShow: 1,
58    slidesToScroll: 1,
59  });
60
61  $('.invest_wrap .arrow_wrap button.stop').on('click', function () {
62    $(this).hide()
63    $(this).siblings('.play').show();
64    $('.invest_slide > ul').slick('slickPause');
65  });
66  $('.invest_wrap .arrow_wrap button.play').on('click', function () {
67    $(this).hide()
68    $(this).siblings('.stop').show();
69    $('.invest_slide > ul').slick('slickPlay');
70  });
71
72  // 탭
73  $('.tab_wrap').each(function(){
74    $(this).find('.tab_cont').not(':first-of-type').hide();
75    $('.tab_btn').on('click', function(){
76      let current_tab = $(this).parents().index();
77      $(this).addClass('on');
78      $('.tab_btn').not($(this)).removeClass('on');
79      let target_cont = $(this).parents('.tab_wrap').find('.tab_cont').eq(current_tab).addClass('show');
80      $('.tab_cont').not($(target_cont)).hide().removeClass('show');
81      target_cont.show();
82      $('.current_biz_slide > ul').slick('setPosition');
83      $('.tab_btn').removeAttr("title");
84      $(this).attr("title", "현재 선택된 탭");
85    });
86  });
87  $('.tab_btn.on').attr("title", "현재 선택된 탭");
88
89  // 지원사업현황 슬라이드
90  $('.current_biz_slide.tab01 > ul').slick({
91    autoplay: true,
92    autoplaySpeed: 3000,
93    speed: 2000,
94    dots: false,
95    pauseOnHover: true,
96    pauseOnFocus: true,
97    arrows: true,
98    prevArrow: $('.current_biz_slide.tab01 .arrow_wrap .slick-prev'),
99    nextArrow: $('.current_biz_slide.tab01 .arrow_wrap .slick-next'),
100    slidesToShow: 3,
101    slidesToScroll: 1,
102    responsive: [
103			{
104				breakpoint: 1250,
105				settings: {
106					slidesToShow: 2,
107				}
108			},
109      {
110				breakpoint: 1024,
111				settings: {
112					slidesToShow: 3,
113				}
114			},
115      {
116				breakpoint: 768,
117				settings: {
118					slidesToShow: 2,
119				}
120			}
121		]
122  });
123
124  $('.current_biz_slide.tab01 .arrow_wrap button.stop').on('click', function () {
125    $(this).hide()
126    $(this).siblings('.play').show();
127    $('.current_biz_slide.tab01 > ul').slick('slickPause');
128  });
129  $('.current_biz_slide.tab01 .arrow_wrap button.play').on('click', function () {
130    $(this).hide()
131    $(this).siblings('.stop').show();
132    $('.current_biz_slide.tab01 > ul').slick('slickPlay');
133  });
134
135  $('.current_biz_slide.tab02 > ul').slick({
136    autoplay: true,
137    autoplaySpeed: 3000,
138    speed: 2000,
139    dots: false,
140    pauseOnHover: true,
141    pauseOnFocus: true,
142    arrows: true,
143    prevArrow: $('.current_biz_slide.tab02 .arrow_wrap .slick-prev'),
144    nextArrow: $('.current_biz_slide.tab02 .arrow_wrap .slick-next'),
145    slidesToShow: 3,
146    slidesToScroll: 1,
147    responsive: [
148			{
149				breakpoint: 1250,
150				settings: {
151					slidesToShow: 2,
152				}
153			},
154      {
155				breakpoint: 1024,
156				settings: {
157					slidesToShow: 3,
158				}
159			},
160      {
161				breakpoint: 768,
162				settings: {
163					slidesToShow: 2,
164				}
165			}
166		]
167  });
168
169  $('.current_biz_slide.tab02 .arrow_wrap button.stop').on('click', function () {
170    $(this).hide()
171    $(this).siblings('.play').show();
172    $('.current_biz_slide.tab02 > ul').slick('slickPause');
173  });
174  $('.current_biz_slide.tab02 .arrow_wrap button.play').on('click', function () {
175    $(this).hide()
176    $(this).siblings('.stop').show();
177    $('.current_biz_slide.tab02 > ul').slick('slickPlay');
178  });
179
180  $('.current_biz_slide.tab03 > ul').slick({
181    autoplay: true,
182    autoplaySpeed: 3000,
183    speed: 2000,
184    dots: false,
185    pauseOnHover: true,
186    pauseOnFocus: true,
187    arrows: true,
188    prevArrow: $('.current_biz_slide.tab03 .arrow_wrap .slick-prev'),
189    nextArrow: $('.current_biz_slide.tab03 .arrow_wrap .slick-next'),
190    slidesToShow: 3,
191    slidesToScroll: 1,
192    responsive: [
193			{
194				breakpoint: 1250,
195				settings: {
196					slidesToShow: 2,
197				}
198			},
199      {
200				breakpoint: 1024,
201				settings: {
202					slidesToShow: 3,
203				}
204			},
205      {
206				breakpoint: 768,
207				settings: {
208					slidesToShow: 2,
209				}
210			}
211		]
212  });
213
214  $('.current_biz_slide.tab03 .arrow_wrap button.stop').on('click', function () {
215    $(this).hide()
216    $(this).siblings('.play').show();
217    $('.current_biz_slide.tab03 > ul').slick('slickPause');
218  });
219  $('.current_biz_slide.tab03 .arrow_wrap button.play').on('click', function () {
220    $(this).hide()
221    $(this).siblings('.stop').show();
222    $('.current_biz_slide.tab03 > ul').slick('slickPlay');
223  });
224
225  $('.current_biz_slide.tab04 > ul').slick({
226    autoplay: true,
227    autoplaySpeed: 3000,
228    speed: 2000,
229    dots: false,
230    pauseOnHover: true,
231    pauseOnFocus: true,
232    arrows: true,
233    prevArrow: $('.current_biz_slide.tab04 .arrow_wrap .slick-prev'),
234    nextArrow: $('.current_biz_slide.tab04 .arrow_wrap .slick-next'),
235    slidesToShow: 3,
236    slidesToScroll: 1,
237    responsive: [
238			{
239				breakpoint: 1250,
240				settings: {
241					slidesToShow: 2,
242				}
243			},
244      {
245				breakpoint: 1024,
246				settings: {
247					slidesToShow: 3,
248				}
249			},
250      {
251				breakpoint: 768,
252				settings: {
253					slidesToShow: 2,
254				}
255			}
256		]
257  });
258
259  $('.current_biz_slide.tab04 .arrow_wrap button.stop').on('click', function () {
260    $(this).hide()
261    $(this).siblings('.play').show();
262    $('.current_biz_slide.tab04 > ul').slick('slickPause');
263  });
264  $('.current_biz_slide.tab04 .arrow_wrap button.play').on('click', function () {
265    $(this).hide()
266    $(this).siblings('.stop').show();
267    $('.current_biz_slide.tab04 > ul').slick('slickPlay');
268  });
269
270  $('.current_biz_slide.tab05 > ul').slick({
271    autoplay: true,
272    autoplaySpeed: 3000,
273    speed: 2000,
274    dots: false,
275    pauseOnHover: true,
276    pauseOnFocus: true,
277    arrows: true,
278    prevArrow: $('.current_biz_slide.tab05 .arrow_wrap .slick-prev'),
279    nextArrow: $('.current_biz_slide.tab05 .arrow_wrap .slick-next'),
280    slidesToShow: 3,
281    slidesToScroll: 1,
282    responsive: [
283			{
284				breakpoint: 1250,
285				settings: {
286					slidesToShow: 2,
287				}
288			},
289      {
290				breakpoint: 1024,
291				settings: {
292					slidesToShow: 3,
293				}
294			},
295      {
296				breakpoint: 768,
297				settings: {
298					slidesToShow: 2,
299				}
300			}
301		]
302  });
303
304  $('.current_biz_slide.tab05 .arrow_wrap button.stop').on('click', function () {
305    $(this).hide()
306    $(this).siblings('.play').show();
307    $('.current_biz_slide.tab05 > ul').slick('slickPause');
308  });
309  $('.current_biz_slide.tab05 .arrow_wrap button.play').on('click', function () {
310    $(this).hide()
311    $(this).siblings('.stop').show();
312    $('.current_biz_slide.tab05 > ul').slick('slickPlay');
313  });
314
315	/* 20251121 */
316  // 투자사 현황 슬라이드
317  $('.invest_company_wrap .slide_wrap > ul').slick({
318    autoplay: true,
319    autoplaySpeed: 3000,
320    speed: 2000,
321    dots: true,
322    pauseOnHover: true,
323    pauseOnFocus: true,
324    arrows: true,
325    prevArrow: $('.invest_company_wrap .slide_wrap .arrow_wrap .slick-prev'),
326    nextArrow: $('.invest_company_wrap .slide_wrap .arrow_wrap .slick-next'),
327    slidesToShow: 4,
328    slidesToScroll: 1,
329    responsive: [
330			{
331				breakpoint: 1250,
332				settings: {
333					slidesToShow: 3,
334				}
335			},
336      {
337				breakpoint: 1024,
338				settings: {
339					slidesToShow: 3,
340				}
341			},
342      {
343				breakpoint: 768,
344				settings: {
345					slidesToShow: 2,
346				}
347			}
348		],
349
350 	customPaging: function(slider, i) {
351		return (i + 1);
352	},
353  });
354
355	$('.invest_company_wrap .total').text($(".invest_company_wrap .slide_wrap > ul .slick-slide:not(.slick-cloned)").length);
356	$('.invest_company_wrap .slide_wrap > ul').on("afterChange", function(){
357		$('.invest_company_wrap .current').text($(".invest_company_wrap .slick-dots .slick-active").text());
358		$('.invest_company_wrap .total').text($(".invest_company_wrap .slide_wrap > ul .slick-slide:not(.slick-cloned)").length);
359	});
360	/* //20251121 */
361
362  $('.invest_company_wrap .arrow_wrap button.stop').on('click', function () {
363    $(this).hide()
364    $(this).siblings('.play').show();
365    $('.invest_company_wrap .slide_wrap > ul').slick('slickPause');
366  });
367  $('.invest_company_wrap .arrow_wrap button.play').on('click', function () {
368    $(this).hide()
369    $(this).siblings('.stop').show();
370    $('.invest_company_wrap .slide_wrap > ul').slick('slickPlay');
371  });
372
373
374  /* 20251121 */
375  $('.mini-banner ul').slick({
376    autoplay: true,
377    autoplaySpeed: 3000,
378    speed: 2000,
379    dots: true,
380    pauseOnHover: true,
381    pauseOnFocus: true,
382    arrows: true,
383    prevArrow: $('.mini-banner .arrows .slick-prev'),
384    nextArrow: $('.mini-banner .arrows .slick-next'),
385    slidesToShow: 1,
386    slidesToScroll: 1,
387	customPaging: function(slider, i) {
388		return (i + 1);
389	},
390  });
391
392	$('.mini-banner .total').text($(".mini-banner ul .slick-slide:not(.slick-cloned)").length);
393	$('.mini-banner ul').on("afterChange", function(){
394		$('.mini-banner .current').text($(".mini-banner .slick-dots .slick-active").text());
395		$('.mini-banner .total').text($(".mini-banner ul .slick-slide:not(.slick-cloned)").length);
396	});
397	/* //20251121 */
398
399  $('.mini-banner .arrows button.slide_stop').on('click', function () {
400    $(this).hide()
401    $(this).siblings('.slide_play').show();
402    $('.mini-banner ul').slick('slickPause');
403  });
404  $('.mini-banner .arrows button.slide_play').on('click', function () {
405    $(this).hide()
406    $(this).siblings('.slide_stop').show();
407    $('.mini-banner ul').slick('slickPlay');
408  });
409  /* //20251110 */
410
411  /* 20260121 */
412
413	$(".list_wrap .relt > li").on("click",function(e){
414		e.preventDefault();
415		var ridx = $(this).index();
416
417		$(this).addClass('on').siblings().removeClass('on');
418		$(this).children("a").attr('aria-expanded', 'true').prop('title', "선택됨").end().siblings().children("a").attr('aria-expanded', 'false').removeAttr('title');
419
420		$(".map_inner .map .map_img .vsc-img").removeClass("show");
421		if($(this).children().hasClass("vsct1")){
422			$(".map_inner .map .map_img .vg1").addClass("show");
423		}else{
424			$(".map_inner .map .map_img .vg2").addClass("show");
425		}
426
427	});
428/* //20260121 */
429
430});

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.