Hi people, I make a sheet for my coming RPG Energy City, and my tabs doesn't work! I've used this code on HTML: <button type="action" name="act_character" style="margin-top: 2px;" >Personnage</button> <button type="action" name="act_organization" >Organisation</button> <input type="hidden" class="sheet-tabstoggle" name="attr_sheetTab" value="character" /> <script type="text/worker">
const buttonlist = ["character","organization"];
buttonlist.forEach(button => {
on(`clicked:${button}`, function() {
setAttrs({
sheetTab: button
});
});
});
</script> And on the CSS file: /*Configure the tab buttons*/ .sheet-charactertab, .sheet-organizationtab { display: none; } /* show the selected tab */ .sheet-tabstoggle[value="character"] ~ div.sheet-charactertab, .sheet-tabstoggle[value="organization"] ~ div.sheet-organizationtab { display: block; } And I've use a <div class="sheet-charactertab"> for my sheet and all is hidden! Don't understand why. If you can help me, the source files are here: Onirim/Roll20-EnergySystem (github.com) Thanks! :)