Changeset 109959 in spip-zone


Ignore:
Timestamp:
Apr 20, 2018, 6:14:31 PM (15 months ago)
Author:
arno@…
Message:

Youtube caché, mais responsive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/plugins_seenthis/autoembed/autoembed.php

    r109958 r109959  
    179179                                if ($source == "YouTube") {
    180180                                        $embed = rawurlencode($embed);
    181                                         $embed = "<div onclick=\"this.innerHTML = (decodeURIComponent('$embed'));\" style='width: ".$w."px; height: ".$h."px; background: url($vignette) center center; cursor: pointer;'></div>";
     181                                        $embed = "<div onclick=\"this.innerHTML = (decodeURIComponent('$embed'));\" style='position: relative; width:100%; height:0; padding-bottom:56.3636363636%; background: url($vignette) center center; cursor: pointer;'></div>";
    182182                                }
    183183                                                               
Note: See TracChangeset for help on using the changeset viewer.