This commit is contained in:
Kekskurse 2021-01-12 23:40:13 +01:00
parent e292fa8cc1
commit dbcaef9c65

View file

@ -10,7 +10,7 @@
<!-- Add photos --> <!-- Add photos -->
@foreach($images as $image) @foreach($images as $image)
<img src="/{{ $tenant->url }}/{{ $gallery->url }}/{{ $image->id }}/file?size=big" data-thumb="/{{ $tenant->url }}/{{ $gallery->url }}/{{ $image->id }}/file?size=small"> <img class="imageToReplace" src="/{{ $tenant->url }}/{{ $gallery->url }}/{{ $image->id }}/file?size=small" src-big="/{{ $tenant->url }}/{{ $gallery->url }}/{{ $image->id }}/file?size=big" data-thumb="/{{ $tenant->url }}/{{ $gallery->url }}/{{ $image->id }}/file?size=small">
@endforeach @endforeach
</div> </div>
@ -35,7 +35,11 @@
<script> <script>
$(document).ready(function() { $(document).ready(function() {
$(".imageToReplace").each(function () {
$(this).attr("src", $(this).attr("src-big"));
});
$('.photor').photor(); $('.photor').photor();
}); });
</script> </script>