标签:int led on() efault ble ado prevent parse log
function doAccept() {
var div = $(‘#shadowbox .legal-gate-cont‘)
var con = $(‘#shadowbox .html‘)
var divH = div.height()
var conH = con.height()
var divPaddingTop = parseInt(div.css(‘padding-top‘).replace(‘px‘, ‘‘))
var divPaddingBottom = parseInt(div.css(‘padding-bottom‘).replace(‘px‘, ‘‘))
var sumHeight = divH + divPaddingTop + divPaddingBottom;
var sub = sumHeight - conH;
console.log(sub)
console.log(div)
con.scroll(function(e) {
//e.preventDefault()
console.log(div.position().top, sub)
if (div.position().top <= -sub) {
$(‘#shadowbox_toolbar_inner‘).find(‘a‘).eq(0).removeClass(‘disabled‘)
}
})
}
doAccept()
标签:int led on() efault ble ado prevent parse log
原文地址:http://www.cnblogs.com/sailingweb/p/6027460.html