mirror of
https://github.com/ae-utbm/sith.git
synced 2026-08-15 01:39:16 +00:00
change sas picture on picture click
This commit is contained in:
@@ -88,6 +88,7 @@
|
|||||||
:alt="currentPicture.name"
|
:alt="currentPicture.name"
|
||||||
id="main-picture"
|
id="main-picture"
|
||||||
x-ref="mainPicture"
|
x-ref="mainPicture"
|
||||||
|
@click="currentPicture = (($event.offsetX > $el.offsetWidth / 2) ? nextPicture : previousPicture) ?? currentPicture"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -95,13 +96,11 @@
|
|||||||
<div class="infos">
|
<div class="infos">
|
||||||
<h5>{% trans %}Infos{% endtrans %}</h5>
|
<h5>{% trans %}Infos{% endtrans %}</h5>
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div
|
||||||
|
x-data="{formatter: Intl.DateTimeFormat('{{ LANGUAGE_CODE }}', {dateStyle: 'long'})}"
|
||||||
|
>
|
||||||
<span>{% trans %}Date: {% endtrans %}</span>
|
<span>{% trans %}Date: {% endtrans %}</span>
|
||||||
<span
|
<span x-text="formatter.format(new Date(currentPicture.date))">
|
||||||
x-text="Intl.DateTimeFormat(
|
|
||||||
'{{ LANGUAGE_CODE }}', {dateStyle: 'long'}
|
|
||||||
).format(Date.parse(currentPicture.date))"
|
|
||||||
>
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user