mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Implement BIMTester web app mockup
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
/* Hacky mockup */
|
||||
let elements = document.getElementsByTagName('input');
|
||||
for (let i=0; i<elements.length; i++) {
|
||||
console.log(elements[i]);
|
||||
elements[i].addEventListener('click', function() {
|
||||
let input = this;
|
||||
console.log(input);
|
||||
let li = input.parentNode.parentNode.parentNode.parentNode;
|
||||
if (input.checked) {
|
||||
li.classList.remove('excluded');
|
||||
} else {
|
||||
li.classList.add('excluded');
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user