Jokr97 / twoclickprivacy

This Joomla!-Plugin hides embedded videos and reveales them only on click. This prevents the loading of third-party cookies to protect the users privacy.
GNU General Public License v3.0
1 stars 0 forks source link

Surround iframes automatically with a div #14

Closed Babalion closed 3 years ago

Babalion commented 3 years ago

Currently the iframe is not automatically responsive? It would be nice if corresponding iframes were automatically framed with a <div class="video-container"></div>.

Users who don't use this regularly wouldn't have to think about anything and just copy and paste the iframe code from Youtube or whatever.

The video-container-class should have the following attributes:

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 0;
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}