mirror of
https://github.com/fruworg/themu.git
synced 2025-06-12 17:50:25 +03:00
Init
This commit is contained in:
13
static/js/feather.min.js
vendored
Normal file
13
static/js/feather.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
17
static/js/main.js
Normal file
17
static/js/main.js
Normal file
@ -0,0 +1,17 @@
|
||||
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