1
0
mirror of https://github.com/fruworg/themu.git synced 2025-07-02 01:33:59 +03:00

CSS updates

This commit is contained in:
athul
2020-04-09 12:06:48 +05:30
parent 3c737553b6
commit 58d02550f1
8 changed files with 26 additions and 46 deletions

File diff suppressed because one or more lines are too long

@ -1,17 +0,0 @@
var expanders = document.getElementsByClassName('expander');
for (var i = 0; i < expanders.length; i++) {
(function() {
var expander = expanders[i];
var content = expander.children[0];
var button = document.createElement('button');
button.appendChild(document.createTextNode('expand'));
expander.appendChild(button);
content.style.height = expander.dataset.height || '12.5em';
button.onclick = function() {
content.style.height = 'auto';
button.remove();
}
})();
}