1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02:00

domRectTest: hide detail data

This commit is contained in:
kkapsner 2020-07-29 14:14:13 +02:00
parent 3ab6366994
commit 3eea8fe7c4
3 changed files with 17 additions and 1 deletions

View file

@ -145,5 +145,11 @@
return range.getBoundingClientRect();
}, useIframe);
});
document.querySelectorAll(".content-hidable").forEach(function(parentNode){
parentNode.querySelector(".toggle").addEventListener("click", function(){
parentNode.classList.toggle("content-hidden");
});
});
});
}());