FIXED random reload link to work behind static cache.
UPDATED padding on random card. UPDATED to v0.2.2.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<% if (typeof card !== 'undefined') { %>
|
||||
<% if (typeof card !== 'undefined' && typeof random_num !== 'undefined') { %>
|
||||
<a href="/cards/<%= card.num.toLowerCase() %>"
|
||||
class="card-randomLink" title="Tap or click to learn about <%= card.name %>'s card!">
|
||||
<figure>
|
||||
@@ -16,6 +16,6 @@
|
||||
</a>
|
||||
<p class="card-randomWrapper">
|
||||
or
|
||||
<a href="/">↻ reload the page for a different card.</a>
|
||||
<a href="/?r<%=random_num%>">↻ reload the page for a different card.</a>
|
||||
</p>
|
||||
<% } %>
|
||||
|
Reference in New Issue
Block a user