textDecoration = "none";
cursor = "hand";
top = "-15px";
if (topLeft) {
left = "-15px";
} else {
right = "-15px";
}
}
elm.appendChild(document.createTextNode('×'));
elm.addEventListener("click", function(event) {
this.parentNode.style.display = "none";
return false;
});
return elm;
};
var fixeds = [
['.__isboostLowerLeft', false, false, {'left':'0px'}],
['.__isboostLowerCenter', false, true, {'left':'50%'}],
['.__isboostLowerRight', true, false, {'right':'0px'}]
];
for (var i = 0; i < fixeds.length; i++) {
var fixed = fixeds[i];
var elms = document.querySelectorAll(fixed[0]);
for (var ii = 0; ii < elms.length; ii++) {
var elm = elms[ii];
elm.appendChild(genCloseBtn(fixed[1]));
for (var k in fixed[3]) {
elm.style[k] = fixed[3][k];
}
// if (boostElm.getBoundingClientRect().width < parseInt(boostElm.getAttribute('data-isboost-ad-width'))) {
with (elm.style) {
bottom = "0px";
border ="4px solid #f99";
position = "fixed";
display = "inline-block";
zIndex = "2147483646";
}
if (fixed[2]) {
elm.style.marginLeft = "-" + parseInt(elm.getBoundingClientRect().width / 2) + "px";
}
if (elm.getBoundingClientRect().width < 50) {
elm.style.display = "none";
continue;
}
elm.querySelector('.__isboostCloseBtn').style.display = "inline-block";
}
}
});
})();