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
Prochaine révision
Révision précédente
js:wrap_lazy-videos [2026/07/21 09:24] avillepreuxjs:wrap_lazy-videos [2026/07/27 10:10] (Version actuelle) avillepreux
Ligne 22: Ligne 22:
                         &.lazy-waiting { opacity: 0 }                         &.lazy-waiting { opacity: 0 }
                         opacity: 1;                         opacity: 1;
 +                        
 +                        &:hover {
 +                        cursor: pointer;
 +                        }
                 }                 }
                 }                 }
Ligne 85: 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; +          var dokuwiki_path = video_path.replaceAll("/", ":").replaceAll("\\", ":")
-          var src_path = ("/_media/" + video_path).replaceAll(":", "/");+          var src_path = ("/_media/" + video_path).replaceAll(":", "/").replaceAll("\\", "/");
           var basename = src_path.split('/').reverse()[0];           var basename = src_path.split('/').reverse()[0];
  
  • js/wrap_lazy-videos.1784618674.txt.gz
  • Dernière modification : 2026/07/21 09:24
  • de avillepreux