This repo contains the code for The Codex Mythica, a database of all of the cards released for the Mythic Wars card game, written in NodeJS (using the Express 4 library). https://codex.mythicwarsgame.com/
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.

22 lines
755 B

<% if (typeof card !== 'undefined' && typeof random_num !== 'undefined') { %>
<a href="/cards/<%= card.num.toLowerCase() %>"
class="randomLink" title="Tap or click to learn about <%= card.name %>'s card!">
<figure>
<h3 class="randomLink-title">Random&nbsp;Card: <%=card.name%></h3>
<img
src="/images/thumb/<%= card.num.toLowerCase() %>_<%= card.name_ang %>.jpg"
alt="Card image for <%=card.name%>"
class="card-image" />
<figcaption>
<span class="randomLink-wrapper">
Tap or click to learn more
</span>
</figcaption>
</figure>
</a>
<p class="randomWrapper">
or
<a href="/?r<%=random_num%>">&#x21bb; reload the page for a different card.</a>
</p>
<% } %>