js:wrap_autoplay

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_autoplay [2026/06/12 12:13] avillepreuxjs:wrap_autoplay [2026/06/12 12:19] (Version actuelle) avillepreux
Ligne 1: Ligne 1:
 <JS> <JS>
  
-jQuery(function() {+jQuery(document).ready(function() { if (typeof(wrap_autoplay) === 'undefined') { wrap_autoplay = true;
  
   document.querySelectorAll(".plugin_wrap.wrap_autoplay video").forEach(function(video) {   document.querySelectorAll(".plugin_wrap.wrap_autoplay video").forEach(function(video) {
  
- video.setAttribute("muted",    ""); + video.setAttribute("muted",     ""); 
- video.setAttribute("autoplay", "");+ video.setAttribute("autoplay",  ""); 
 + video.setAttribute("loop",      ""); 
 + video.setAttribute("playsinline", ""); 
 + video.setAttribute("preload", "auto"); 
 + 
 + video.muted  = true; 
 +  video.volume = 0; 
  video.play();  video.play();
   });   });
      
-});+});
  
 </JS> </JS>
  
  • js/wrap_autoplay.1781259198.txt.gz
  • Dernière modification : 2026/06/12 12:13
  • de avillepreux