friendica-addons-sekb/fancybox/test/imagetest.html
Grischa Brockhaus ae28f6ef01 AddOn Fancybox
This addon loads all media attachments of a post into a "fancybox" instead of linking directly to the media.
Each post gets its own attachment library, when there are more than one media attached you can scroll through them.
2022-11-24 23:48:08 +01:00

21 lines
1.3 KiB
HTML

<html>
<head>
<!-- https://github.com/friendica/friendica/tree/stable/doc -->
<!-- https://github.com/friendica/friendica/blob/stable/doc/Addons.md -->
<!-- https://stackoverflow.com/questions/44409223/show-image-in-a-popup-when-i-click-button -->
<!-- https://github.com/fancyapps/fancybox -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.2.0/jquery.fancybox.min.css" rel="stylesheet" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.2.0/jquery.fancybox.min.js"></script>
</head>
<body>
<div class="body-attach"><a data-fancybox="gallery" href="https://social.beachcom.org/system/media_attachments/files/109/395/536/026/043/860/original/cb17a73a2a5cd86f.jpeg"><img src="https://friends.brockha.us/photo/preview/600/3734" alt="" title=""></a>
<br>
<div class="clear"></div></div>
<div class="body-attach"><a data-fancybox="gallery" href="https://media.troet.cafe/troet.cafe/media_attachments/files/109/393/109/756/233/529/original/4290ef9eb5d7b799.jpeg"><img src="https://friends.brockha.us/photo/preview/1024/3729" alt="Tardis cookie jar and Tardis book, like River Songs diary." title="Tardis cookie jar and Tardis book, like River Songs diary."></a>
<br>
<div class="clear"></div></div>
</body>
</html>