rebuilding site Thu Sep 24 09:59:25 AM CST 2020

This commit is contained in:
James Feng Cao 2020-09-24 09:59:25 +08:00
parent 954aad99dd
commit 7503bf0dae

View file

@ -38,7 +38,8 @@ function is_same_size_position(ele1, ele2) {
}
}
function find_top_wrap_ele(ele) {
function find_top_wrap_ele(ele) {
let origE = ele;
let wrap = ele;
while (ele.tagName !== 'BODY') {
ele = ele.parentElement;
@ -46,8 +47,9 @@ function find_top_wrap_ele(ele) {
wrap = ele;
}
}
if(wrap == origE) wrap = origE.parentElement;
return wrap;
}
}
function is_parent(ele, parent) {
while (ele.tagName !== 'BODY' &&