js:wrap_lazy-videos

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
js:wrap_lazy-videos [2026/07/27 10:09] avillepreuxjs:wrap_lazy-videos [2026/07/27 10:10] (Version actuelle) avillepreux
Ligne 89: Ligne 89:
   document.querySelectorAll(".wrap_lazy-videos .wrap_lazy-video").forEach(function(wrap_video) {   document.querySelectorAll(".wrap_lazy-videos .wrap_lazy-video").forEach(function(wrap_video) {
  
-          var video_path = wrap_video.textContent;+          var video_path = wrap_video.textContent.trim();
           var dokuwiki_path = video_path.replaceAll("/", ":").replaceAll("\\", ":");           var dokuwiki_path = video_path.replaceAll("/", ":").replaceAll("\\", ":");
           var src_path = ("/_media/" + video_path).replaceAll(":", "/").replaceAll("\\", "/");           var src_path = ("/_media/" + video_path).replaceAll(":", "/").replaceAll("\\", "/");
  • js/wrap_lazy-videos.1785139748.txt.gz
  • Dernière modification : 2026/07/27 10:09
  • de avillepreux