weaponlist: add sharpness popup for mobile
Tooltips don't work on mobile, since there isn't a 'mouse over'. This exposes the numeric sharpness data in a popup div if a user 'clicks' on one of the sharpness cells.
This commit is contained in:
1 parent
7b72f7e6d9
commit
fcc492b724
2 files changed
+23
-1
No files matched your search
@@ -30,7 +30,9 @@
|
||||
</td>
|
||||
<td><%= Array(num_slots + 1).join("o")
|
||||
%><%= Array(3 - num_slots + 1).join("-") %></td>
|
||||
<td>
|
||||
<td id="sharpness_td"
|
||||
data-sharpness="<%= sharpness_all_title %>"
|
||||
data-id="<%= id %>">
|
||||
<% if (sharpness) { %>
|
||||
<div class="sharpness-bar" title="<%= sharpness_all_title %>">
|
||||
<span style="width:<%= sharpness[0] %>px" class="red"></span>
|
||||
|
||||
Reference in new issue
Block a user