Files
crater/resources/views/vendor/media-library/responsiveImageWithPlaceholder.blade.php
Mohit Panjwani 89ee58590c build version 400
2020-12-02 17:54:08 +05:30

1 line
323 B
PHP

<img{!! $attributeString !!} loading="{{ $loadingAttributeValue }}" srcset="{{ $media->getSrcset($conversion) }}" onload="if(!(width=this.getBoundingClientRect().width))return;this.onload=null;this.sizes=Math.ceil(width/window.innerWidth*100)+'vw';" sizes="1px" src="{{ $media->getUrl($conversion) }}" width="{{ $width }}">