1/** 2 * jquery.fade-in.js 3 * ì ì : ë² ì (com1.kr) 4 * 5 * 본 ì½ë ì¬ì©ì ì´ ì£¼ìì ì ì§í´ì£¼ì기 ë°ëëë¤. 6 * ì´ì¸ìë ì ì½ ìì´ ì¬ì© ê°ë¥í©ëë¤. 7 */ 8 9/* 101. jquery.fade-in.js 를 head.sub.phpì ë£ìµëë¤. 112. ì¤í¬ë¡¤ì fadeIn í기를 ìíë ìì classì fade-in ì ë£ìµëë¤. 123. (ì í) fadeIn ìë를 ì§ì í©ëë¤. (ì´ ê³¼ì ì ìëµí ê²½ì° ê¸°ë³¸ 500msë¡ ìëí©ëë¤.) 13ìëë data-fade-in-speed ì´í¸ë¦¬ë·°í¸ë¥¼ íµí´ ì§ì í©ëë¤ 14(ìì ) 15<div class="fade-in" data-fade-in-speed="800">fade-inì ìíë div</div> 16*/ 17 18$(document).ready(function() { 19 $('.fade-in').css({"opacity":"0","position":"relative","top":"100px"}); 20 triggerJqueryFadeIn() 21 $(window).scroll(triggerJqueryFadeIn); 22}); 23var animateQueue = new Array(); 24var ready = true; 25function triggerJqueryFadeIn() { 26 $('.fade-in').each( function(){ 27 var object_top = $(this).offset().top; 28 var window_bottom = $(window).scrollTop() + $(window).height(); 29 if( window_bottom > object_top ){ 30 if($(this).css("opacity") == "0") animateQueue.push(this); 31 } 32 }); 33 triggerJqueryFadeInQueue(); 34} 35function triggerJqueryFadeInQueue() { 36 if(animateQueue.length != 0 && ready) { 37 ready = false; 38 $this = animateQueue.shift(); 39 var speed = ($($this).attr("data-fade-in-speed") != undefined ? parseInt($($this).attr("data-fade-in-speed")) : 500); 40 $($this).animate({"opacity":"1", "top":"0px"}, speed, function() { 41 $($this).css("position","static"); 42 ready = true; 43 triggerJqueryFadeInQueue(); 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.