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

  1. <% if (typeof card !== 'undefined' && typeof random_num !== 'undefined') { %>
  2. <a href="/cards/<%= card.num.toLowerCase() %>"
  3. class="randomLink" title="Tap or click to learn about <%= card.name %>'s card!">
  4. <figure>
  5. <h3 class="randomLink-title">Random&nbsp;Card: <%=card.name%></h3>
  6. <img
  7. src="/images/thumb/<%= card.num.toLowerCase() %>_<%= card.name_ang %>.jpg"
  8. alt="Card image for <%=card.name%>"
  9. class="card-image" />
  10. <figcaption>
  11. <span class="randomLink-wrapper">
  12. Tap or click to learn more
  13. </span>
  14. </figcaption>
  15. </figure>
  16. </a>
  17. <p class="randomWrapper">
  18. or
  19. <a href="/?r<%=random_num%>">&#x21bb; reload the page for a different card.</a>
  20. </p>
  21. <% } %>