In svg graph, shorten data-message to data-msg, file size reduced 11.9KB to 11.8KB
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user