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.
|
|
<menu user=input.user> <if(input.story.chapters.length > 1)> <menu-header>${input.story.name}</menu-header> <for(chapter in input.story.chapters | status-var=loop)> <menu-link on-click("selectChapter", chapter.id) href=("#" + chapter.id) selected=(state.selectedChapter === chapter.id) icon=(loop.getIndex()+1)>${state.chapterTitles[chapter.id]}</menu-link> </for> <menu-gap /> </if> </menu>
|