Files
mhapi/web/templates/resistance.ejs
Bryce Allen 6329e7028b add html/jsonapi armor builder
- make decoration calculator use 1-slot decorations multiple times
2015-04-29 02:16:01 -05:00

22 lines
562 B
Plaintext

<table id="resist_table" cellpadding="2" border="0">
<tr>
<th>&nbsp;</th>
<th>Total</th>
<th>Head</th>
<th>Body</th>
<th>Arms</th>
<th>Waist</th>
<th>Legs</th>
</tr>
<% for(var i=0; i<ELEMENTS.length; i++) { %>
<tr>
<th><%= ELEMENTS[i] %></th>
<td class="num"><%= element_resist[ELEMENTS[i]] %></td>
<% for(var j=0; j<TYPES.length; j++) { %>
<td class="num">
<%= armors[TYPES[j]]
? armors[TYPES[j]][ELEMENTS[i] + "_res"] : "&nbsp;" %></td>
<% } %>
<% } %>
</table>