PageSourceSearch

https://www.sookmyung.ac.kr/_res/sookmyung/kr/js/main-content-07.content.js?21679

js sookmyung.ac.kr collected 2026-10-01 11:27:23 UTC 1,098 bytes, 46 lines download raw bytes

1$(function(){
2
3	if($(document).has('.counter-box').length > 0) {
4		var counterOuterTop = $('.counter-box').parents('.main-content-box').offset().top;
5
6		$(document).scroll(function(){
7			var winScrollTop = $(window).scrollTop();
8			var winH = $(window).outerHeight();
9
10			if(counterOuterTop < winScrollTop + (winH / 2)){
11				if(!$('.counter-box').parents('.main-content-box').hasClass('animate')){
12					$('.counter-box').parents('.main-content-box').addClass('animate');
13					$('.counter-box').find('.counter').each(function(){
14						var counter = $(this);
15						var countMaxNum = $(this).html();
16						counter.html(0);
17
18						counterAnimate(counter, countMaxNum);
19					});
20				}
21			}
22
23		});
24
25		function counterAnimate(counter, countMaxNum){
26			var now = countMaxNum;
27
28			var handle = setInterval(function() {
29				if(!counter.hasClass('year')){
30					counter.html(Math.ceil(countMaxNum - now).toLocaleString());
31				}else{
32					counter.html(Math.ceil(countMaxNum - now));
33				}
34
35				if (now < 1) {
36					clearInterval(handle);
37				}
38
39				var step = now / 10;
40
41				now -= step;
42
43			}, 30);
44		};
45	}
46});

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.