🏣🐴 Checkpoint
./public/script.js:1954897/2537 ./views/index.html:1954897/4310
This commit is contained in:
1 parent
d188d5a7ce
commit
5ed566d64a
2 files changed
+19
-5
No files matched your search
@@ -0,0 +1,14 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
var btns = document.querySelectorAll('[data-rules]')
|
||||
|
||||
for (var i = 0; i < btns.length; i++) {
|
||||
console.log('hi')
|
||||
btns[i].addEventListener('click', function (e) {
|
||||
[].forEach.call(document.body.children, (el) => {
|
||||
el.hidden = this.dataset.open === el.id
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
}());
|
||||
Reference in new issue
Block a user