js:wrap_short

Différences

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

Lien vers cette vue comparative

js:wrap_short [2024/11/29 17:44] – créée avillepreuxjs:wrap_short [2024/12/02 10:19] (Version actuelle) avillepreux
Ligne 17: Ligne 17:
                                      
                   $short.detach().prependTo($grid_p);                   $short.detach().prependTo($grid_p);
 +          });
 +
 +        $grid.find(".wrap_pin").each(function() {
 +        
 +        var $pin = jQuery(this);
 +        
 +                console.log("FOUND PIN", $pin.text());
 +                  var pincode = $pin.text();
 +                  $pin.html('<div class="media"><iframe width="236" height="520" src="https://assets.pinterest.com/ext/embed.html?id='+pincode+'" frameborder="0" allow="autoplay" allowfullscreen></iframe></div>');
 +                  
 +                  $pin.detach().prependTo($grid_p);
           });           });
         });         });
  • js/wrap_short.1732898683.txt.gz
  • Dernière modification : 2024/11/29 17:44
  • de avillepreux