Responsive video

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

Post Reply
bastingse
Posts: 272
Joined: Fri Jun 06, 2008 9:38 pm
Location: Netherlands
Contact:

Responsive video

Post by bastingse » Fri Mar 01, 2019 5:40 pm

Hi Folks,

Searching a lot these days to get youtube video's include responsive without result.
But today i find the solution to get this done on a easy way!

http://fitvidsjs.com/

You can download jquery.fitvids.js over there and then add this to your template:

Code: Select all

      <script src="jquery.fitvids.js"></script>
      <script>
        // Basic FitVids Test
        $(".container").fitVids();
        // Custom selector and No-Double-Wrapping Prevention Test
        $(".container").fitVids({ customSelector: "iframe[src^='http://socialcam.com']"});
      </script>
It works perfect!!
Maybe somebody is able to create a plugin for it, or deliver the jquery file as standard in the cmsimple package?

lck
Posts: 1735
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Responsive video

Post by lck » Sat Mar 02, 2019 11:31 am

bastingse wrote:
Fri Mar 01, 2019 5:40 pm
Maybe somebody is able to create a plugin for it, or deliver the jquery file as standard in the cmsimple package?
There is similar with privacy notice:
VideoPrivacy
YouTube_Privacy
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

Post Reply