Stuff
This commit is contained in:
parent
e292fa8cc1
commit
dbcaef9c65
1 changed files with 5 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
|||
<!-- Add photos -->
|
||||
|
||||
@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
|
||||
|
||||
</div>
|
||||
|
@ -35,7 +35,11 @@
|
|||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(".imageToReplace").each(function () {
|
||||
$(this).attr("src", $(this).attr("src-big"));
|
||||
});
|
||||
$('.photor').photor();
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue