코드 규칙에 맞게 고침

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