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.

17 lines
746 B

6 years ago
6 years ago
  1. <if(state.text != null && state.text != "")>
  2. <div class=["chapter-meta", input.kind, state.color, input.weak ? "weak" : null] title=state.tooltip>
  3. <a if(state.href != null) href=state.href>${state.text}</a>
  4. <span else class="tooltip">
  5. <span>${state.text}</span>
  6. <div if(input.character != null) class="tooltip-content color-highlight-dark color-primary">
  7. <h1>${input.character.name}</h1>
  8. <h2>${input.character.author}</h2>
  9. <markdown source=input.character.description />
  10. </div>
  11. <div else-if(input.ukAuthor != null) class="tooltip-content color-highlight-dark color-primary">
  12. <h1>(Unknown Character)</h1>
  13. <h2>${input.ukAuthor}</h2>
  14. </div>
  15. </span>
  16. </div>
  17. </if>