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:
parent
3ab6366994
commit
3eea8fe7c4
3 changed files with 17 additions and 1 deletions
|
@ -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");
|
||||
});
|
||||
});
|
||||
});
|
||||
}());
|
Loading…
Add table
Add a link
Reference in a new issue