I want to include a simple button that controls certain css aspects. For example, when the button is clicked, all elements with a specific css class should be made invisible or visble. How is this possible in TiddlyWiki?
Using standard JavaScript I would add a html button:
<button onclick="toggleelements()">Toggle Elements</button>
and then use a function like
function toggleelements() {
var x = document.getElementsByClassName("flaggedelements");
if (x.style.display === "block") {
x.style.display = "none";
} else {
x.style.display = "block";
}
}