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.
43 lines
1.7 KiB
43 lines
1.7 KiB
<div
|
|
class="chapterButtonWrapper chapterButton_<%= (new String(chapter.num)).replaceAll('.', '_') %><%= shortCut?'shortCut':'' %>"
|
|
>
|
|
<div class="hitbox">
|
|
|
|
<% if(!chapter.Read){%>
|
|
<span
|
|
hx-post="/chapterRead/<%= scanlator %>/<%= encodeURIComponent(chapter.mangaLink) %>/<%= title %>/<%= chapter.num %>/"
|
|
hx-target=".chapterButton_<%= (new String(chapter.num)).replaceAll('.', '_') %>"
|
|
hx-swap="outerHTML"
|
|
class="material-symbols-outlined markAsRead"
|
|
>
|
|
new_label
|
|
</span>
|
|
<%} else { %>
|
|
<span
|
|
class="material-symbols-outlined readMarker <%= chapter.completely?'readMarkerComplete fill':'' %> "
|
|
hx-get="/removeChapter/<%= chapter._id %>"
|
|
hx-trigger="click"
|
|
hx-target=".chapterButton_<%= (new String(chapter.num)).replaceAll('.', '_') %>"
|
|
hx-swap="outerHTML"
|
|
>
|
|
beenhere
|
|
</span>
|
|
<% }%>
|
|
</div>
|
|
<div class="chapterButton" >
|
|
<a href="/chapter/<%=scanlator %>/<%=encodeURIComponent(chapter.link)%>/<%= title %>/<%= chapter.num %>" >
|
|
<div class="buttonWrapper">
|
|
<div class="chapterSpacer readMarker_<%= scanlator.concat(title) %>"></div>
|
|
<div>
|
|
<h4 class="chapterNum">
|
|
Chapter <%= chapter.num %>
|
|
</h4>
|
|
<h5 class="date">
|
|
<%= chapter.date %>
|
|
</h5>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|