diff --git a/journal/templates/mark.html b/journal/templates/mark.html index 659ffd00..2e6db982 100644 --- a/journal/templates/mark.html +++ b/journal/templates/mark.html @@ -47,123 +47,121 @@
in me set star_input to the in me set star_div.style.width to (current_value * 10) + '%' set @data-tooltip to current_value or '{% trans "not rated" %}' set star_input.value to current_value end on mouseleave(currentTarget) set star_div to the
in me set star_input to the in me set current_value to star_input.value set star_div.style.width to (current_value * 10) + '%' set @data-tooltip to current_value or '{% trans "not rated" %}' end" - {# djlint:on #} - id="rating_editor"> - {{ mark.rating_grade|rating_star }} - - -
+ _="on mousemove(currentTarget, offsetX) set current_value to Math.round((10 * offsetX) / currentTarget.offsetWidth) if current_value <=10 then set star_div to the
in me set star_div.style.width to (current_value * 10) + '%' set @data-tooltip to current_value or '{% trans "not rated" %}' add .yellow to star_div end on click(currentTarget, offsetX) set current_value to Math.round((10 * offsetX) / currentTarget.offsetWidth) if current_value <=10 then set star_div to the
in me set star_input to the in me set star_div.style.width to (current_value * 10) + '%' set @data-tooltip to current_value or '{% trans "not rated" %}' set star_input.value to current_value end on mouseleave(currentTarget) set star_div to the
in me set star_input to the in me set current_value to star_input.value set star_div.style.width to (current_value * 10) + '%' set @data-tooltip to current_value or '{% trans "not rated" %}' end" + id="rating_editor"> + {{ mark.rating_grade|rating_star }} + +
- {% endif %} +
+ {% endif %} +
+
+ +
+
+
+
+ +
+
+
- + + + + + +
-
- -
+
+ {% if request.user.mastodon or request.user.threads or request.user.bluesky %} + + {% endif %} +
-
-
-
- - - - - - -
-
-
-
- {% if request.user.mastodon or request.user.threads or request.user.bluesky %} - - {% endif %} -
-
-
-
-
-
- - - -
-
-
-
- -
-
-
- -
- {% if mark.id %} -
- {% csrf_token %} - - - - -
- {% endif %}
+
+
+
+ + + +
+
+
+
+ +
+
+
+ +
+ {% if mark.id %} +
+ {% csrf_token %} + + + + +
+ {% endif %}
- +
+ - + +