window.onload = function() { // div height 설정 setDivHeight('work'); } function setDivHeight(objSet, objTar) { var objSet = document.getElementById(objSet); var objTarHeight= document.getElementById(objTar).offsetHeight; objSet.style.height = objTarHeight + "px"; } $(document).ready(function() { var s = skrollr.init(); var $head = $( '#d3menu' ); $( '.menu_scroll' ).each( function(i) { var $el = $( this ), animClassDown = $el.data( 'animateDown' ), animClassUp = $el.data( 'animateUp' ); $el.waypoint( function( direction ) { if( direction === 'down' && animClassDown ) { $head.attr('class', ' ' + animClassDown); } else if( direction === 'up' && animClassUp ){ $head.attr('class', '' + animClassUp); } }, { offset: '0%' } ); } ); }); /*비주얼 영역 브라우저에 따른 리사이징*/ $(document).ready(function(){ $('.slider, .sectionMain').css('height', $(window).height() - 0 ); //$('.listBox').css({marginTop:"-"+$(".listBox").height()/2+"px"}); $(window).resize(function() { $('.slider, .sectionMain').css('height', $(window).height() - 0 ); // $('.listBox').css({marginTop:"-"+$(".listBox").height()/2+"px"}); }); });