The frontend/UI server, written in JS using the MarkoJS library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
430 B

  1. <div class="toggle">
  2. <div class="toggle-pill color-primary">
  3. <a on-click("set", false) class=["toggle-option", !input.value ? "color-highlight-primary" : "color-primary"]>${input.off}</a>
  4. <a on-click("set", true) class=["toggle-option", input.value ? "color-highlight-primary" : "color-primary"]>${input.on}</a>
  5. </div>
  6. <div class="toggle-content color-text">${input.value ? input.onDesc : input.offDesc}</div>
  7. </div>