In svg graph, shorten data-message to data-msg, file size reduced 11.9KB to 11.8KB

This commit is contained in:
Peter Stockings
2023-12-09 21:39:37 +11:00
parent 7ae7bda42d
commit 9145011819

View File

@@ -39,7 +39,7 @@
<div class="relative" id="svg-plot-{{ unique_id }}" _="
on mouseover from .plot_point
put event.target @data-message into #popover-{{ unique_id }}
put event.target @data-msg into #popover-{{ unique_id }}
then remove .hidden from #popover-{{ unique_id }}
on mouseout from .plot_point
add .hidden to #popover-{{ unique_id }}">
@@ -67,7 +67,7 @@
width="{{ width | int }}"
height="{{ height | int }}"
class="plot_point"
data-message="{{ message }}"></rect>
data-msg="{{ message }}"></rect>
{% endfor %}
</g>