Die doppelten Vorschaubilder bei der Videogalerie entfernt
Changes to be committed: modified: homepage/redesign2018/markdownExperiment/phpLib/videoGallery/videoGallery.tmpl.php
This commit is contained in:
@@ -58,7 +58,7 @@ return $retVal;
|
|||||||
<!--https://github.com/aFarkas/lazysizes-->
|
<!--https://github.com/aFarkas/lazysizes-->
|
||||||
<script src="/ressourcen/jsLib/lazysizes.min.js" async=""></script>
|
<script src="/ressourcen/jsLib/lazysizes.min.js" async=""></script>
|
||||||
<style>
|
<style>
|
||||||
.no-js img.lazyload {
|
img.lazyload {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -128,6 +128,7 @@ return $retVal;
|
|||||||
flex: auto;
|
flex: auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 1vw 0;
|
padding: 1vw 0;
|
||||||
|
flex-grow: unset;
|
||||||
}
|
}
|
||||||
.galImgList div img{
|
.galImgList div img{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -162,7 +163,9 @@ return $retVal;
|
|||||||
foreach( $vidList as $vidKey => $vidEntry ){
|
foreach( $vidList as $vidKey => $vidEntry ){
|
||||||
echo( "<div>" );
|
echo( "<div>" );
|
||||||
echo "<img class=\"lazyload\" ".
|
echo "<img class=\"lazyload\" ".
|
||||||
"src=\"".$vidEntry['posterSrc']."\"".
|
// Wir haben unsere eigen noscript-Alternative (die kein img mehr
|
||||||
|
// ist!), deshalb brauchen wir diesen empfohlenen Fallback nicht!
|
||||||
|
// "src=\"".$vidEntry['posterSrc']."\"".
|
||||||
// "srcset=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\"".
|
// "srcset=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\"".
|
||||||
"id=\"Video".( $vidKey )."\" ".
|
"id=\"Video".( $vidKey )."\" ".
|
||||||
"data-src=\"".( $vidEntry['posterSrc'] )."\" ".
|
"data-src=\"".( $vidEntry['posterSrc'] )."\" ".
|
||||||
|
|||||||
Reference in New Issue
Block a user