Forked from antonydevanchi/tinkoff-builder-fancybox.js
Last active
July 21, 2021 20:36
-
-
Save nnoxnnox/93d13e4e985c84d7534ea62ef109a494 to your computer and use it in GitHub Desktop.
tb.ru snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script defer>document.addEventListener('DOMContentLoaded', ()=>{let images=document.querySelectorAll('.js-list .js-slide img.sb-image-crop');images.forEach(image=> image.setAttribute("data-fancybox", "gallery"));let scriptBlock=document.createElement('script');scriptBlock .setAttribute('src','https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.js');document.head.appendChild(scriptBlock );});</script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.css"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment