get computed style of ad containers
by hellosze
JavaScript
var l = document.querySelectorAll(".dfp-tag-wrapper").length;
var table = Array();
for(var i = 0; i < l; i++){
el = document.querySelectorAll(".dfp-tag-wrapper")[i];
z = getComputedStyle(el)["zIndex"];
w = getComputedStyle(el)["width"];
h = getComputedStyle(el)["height"];
obj = { "width": w, "height":h,"z-index":z};
table.push(obj);
}
console.table(table);
var l = document.querySelectorAll(".dfp-container").length;
var table = Array();
for(var i = 0; i < l; i++){
el = document.querySelectorAll(".dfp-container")[i];
z = getComputedStyle(el)["zIndex"];
w = getComputedStyle(el)["width"];
h = getComputedStyle(el)["height"];
obj = { "width": w, "height":h,"z-index":z};
table.push(obj);
}
console.table(table);