ARBITER.init('COMMON', ['util', 'layerpopup'], function(dom, arbi) { var publicObj, view; /** * ¿ÜºÎ¿¡¼­ ÂüÁ¶ ÇØ¾ß ÇÒ ÇÔ¼ö°¡ ÀÖ´Â °æ¿ì À̰÷¿¡ Á¤ÀÇ ÇϽʽÿÀ. * ex) arbi.get('COMMON').test(); */ publicObj = { } function initialize() { initView(); attachEventHandler(); } function initView() { } function attachEventHandler() { // scroll animate $(window).scroll(function() { var showlist = $("section"); var windowBottom = $(window).height() + $(window).scrollTop(); var scrZero = ''; for (var num = 0; num < showlist.length; num++) { var listBottom = $(showlist[num]).height() / 3 - scrZero + $(showlist[num]).offset().top; if (windowBottom >= listBottom) { $(showlist[num]).addClass("act"); } else { $(showlist[num]).removeClass("act"); } } // sub01 chungchy section03 scroll animation if ($(".sub01_chungchy .section02").hasClass("act")){ $(".sub01_chungchy .section03").addClass("act"); } if($(window).scrollTop() <= 100){ $(".sub01_chungchy .section03").removeClass("act"); } }); } // ÃʱâÈ­ ÇÔ¼ö ½ÇÇà initialize(); return publicObj; });