mirror of
https://github.com/ae-utbm/sith.git
synced 2026-08-02 19:52:43 +00:00
change sas picture on picture click
This commit is contained in:
@@ -82,7 +82,11 @@
|
||||
|
||||
<div class="container" id="pict">
|
||||
<div class="main">
|
||||
<div class="photo" :aria-busy="currentPicture.imageLoading">
|
||||
<div
|
||||
class="photo"
|
||||
:aria-busy="currentPicture.imageLoading"
|
||||
@click="currentPicture = (($event.offsetX > $el.offsetWidth / 2) ? nextPicture : previousPicture) ?? currentPicture"
|
||||
>
|
||||
<img
|
||||
:src="currentPicture.compressedUrl"
|
||||
:alt="currentPicture.name"
|
||||
@@ -95,13 +99,11 @@
|
||||
<div class="infos">
|
||||
<h5>{% trans %}Infos{% endtrans %}</h5>
|
||||
<div>
|
||||
<div>
|
||||
<div
|
||||
x-data="{formatter: Intl.DateTimeFormat('{{ LANGUAGE_CODE }}', {dateStyle: 'long'})}"
|
||||
>
|
||||
<span>{% trans %}Date: {% endtrans %}</span>
|
||||
<span
|
||||
x-text="Intl.DateTimeFormat(
|
||||
'{{ LANGUAGE_CODE }}', {dateStyle: 'long'}
|
||||
).format(Date.parse(currentPicture.date))"
|
||||
>
|
||||
<span x-text="formatter.format(new Date(currentPicture.date))">
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user