Responsive video
Posted: 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:
It works perfect!!
Maybe somebody is able to create a plugin for it, or deliver the jquery file as standard in the cmsimple package?
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>
Maybe somebody is able to create a plugin for it, or deliver the jquery file as standard in the cmsimple package?