Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| js:wrap_lazy-videos [2026/07/21 09:24] – avillepreux | js:wrap_lazy-videos [2026/07/27 10:10] (Version actuelle) – avillepreux | ||
|---|---|---|---|
| Ligne 22: | Ligne 22: | ||
| & | & | ||
| opacity: 1; | opacity: 1; | ||
| + | | ||
| + | &: | ||
| + | cursor: pointer; | ||
| + | } | ||
| } | } | ||
| } | } | ||
| Ligne 85: | Ligne 89: | ||
| document.querySelectorAll(" | document.querySelectorAll(" | ||
| - | var video_path = wrap_video.textContent; | + | var video_path = wrap_video.textContent.trim(); |
| - | var dokuwiki_path = video_path; | + | var dokuwiki_path = video_path.replaceAll("/", |
| - | var src_path = ("/ | + | var src_path = ("/ |
| var basename = src_path.split('/' | var basename = src_path.split('/' | ||