🏣🐴 Checkpoint

./public/script.js:1954897/2537
./views/index.html:1954897/4310
This commit is contained in:
Glitch (hello-express) committed 2019-06-28 04:16:17 +00:00
1 parent d188d5a7ce
commit 5ed566d64a
2 files changed
+19 -5

No files matched your search

+14
View File
@@ -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
})
})
}
}());