Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| js:wrap_autoplay [2026/06/12 12:07] – créée avillepreux | js: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) === ' |
| - | | + | |
| - | + | ||
| - | | + | video.setAttribute(" |
| - | video.play(); | + | video.setAttribute(" |
| + | video.setAttribute(" | ||
| + | video.setAttribute(" | ||
| + | video.setAttribute(" | ||
| + | |||
| + | video.muted | ||
| + | video.volume = 0; | ||
| + | |||
| + | video.play(); | ||
| }); | }); | ||
| | | ||
| - | }); | + | } }); |
| </JS> | </JS> | ||