코드 규칙에 맞게 고침

This commit is contained in:
BJRambo 2016-05-29 03:00:12 +09:00
parent 70aea72af3
commit ea8c5d24f0

View file

@ -127,18 +127,19 @@
});
<block cond="!Mobile::isFromMobilePhone()">
function sc(){
var wh = $(window).height();
var l = $('#nc_container .list');
if(l.height()+100 >= wh) {
l.height(wh-98).addClass('listscroll');
} else {
l.height('auto').removeClass('listscroll');
}
setTimeout(sc, 100);
}
sc();
function sc() {
var wh = $(window).height();
var l = $('#nc_container .list');
if (l.height() + 100 >= wh) {
l.height(wh - 98).addClass('listscroll');
} else {
l.height('auto').removeClass('listscroll');
}
setTimeout(sc, 100);
}
</block>
sc();
})(jQuery);
//]]>
</script>