mirror of
https://github.com/fruworg/themu.git
synced 2025-07-02 01:33:59 +03:00
CSS updates
This commit is contained in:
13
static/js/feather.min.js
vendored
13
static/js/feather.min.js
vendored
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();
|
||||
}
|
||||
})();
|
||||
}
|
Reference in New Issue
Block a user