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 -->
|
<!-- 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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue