Skip to content
Snippets Groups Projects
Commit be9504b9 authored by Moritz Warning's avatar Moritz Warning
Browse files

small style fixes

parent 48fb31cb
No related branches found
No related tags found
No related merge requests found
...@@ -17,21 +17,20 @@ function $(s) { ...@@ -17,21 +17,20 @@ function $(s) {
return document.getElementById(s.substring(1)); return document.getElementById(s.substring(1));
} }
function toggleClass(id, cssClass) { function toggleClass(s, cssClass) {
var e = $(id); $(s).classList.toggle(cssClass);
e.classList.toggle(cssClass);
} }
function show_inline(e) { function show_inline(s) {
$(e).style.display = 'inline-block'; $(s).style.display = 'inline-block';
} }
function show_block(e) { function show_block(s) {
$(e).style.display = 'block'; $(s).style.display = 'block';
} }
function hide(e) { function hide(s) {
$(e).style.display = 'none'; $(s).style.display = 'none';
} }
// Object.values() replacement // Object.values() replacement
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment