<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.stephanschlegel.de/index.php?action=history&amp;feed=atom&amp;title=FitVids_jQuery_Plugin</id>
	<title>FitVids jQuery Plugin - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.stephanschlegel.de/index.php?action=history&amp;feed=atom&amp;title=FitVids_jQuery_Plugin"/>
	<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=FitVids_jQuery_Plugin&amp;action=history"/>
	<updated>2026-05-06T17:05:35Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Wikizone</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.stephanschlegel.de/index.php?title=FitVids_jQuery_Plugin&amp;diff=22198&amp;oldid=prev</id>
		<title>Steff am 24. April 2017 um 12:11 Uhr</title>
		<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=FitVids_jQuery_Plugin&amp;diff=22198&amp;oldid=prev"/>
		<updated>2017-04-24T12:11:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 24. April 2017, 12:11 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l24&quot; &gt;Zeile 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 24:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;!function(t){&amp;quot;use strict&amp;quot;;t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById(&amp;quot;fit-vids-style&amp;quot;)){var r=document.head||document.getElementsByTagName(&amp;quot;head&amp;quot;)[0],a=&amp;quot;.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}&amp;quot;,d=document.createElement(&amp;quot;div&amp;quot;);d.innerHTML=&amp;#039;&amp;lt;p&amp;gt;x&amp;lt;/p&amp;gt;&amp;lt;style id=&amp;quot;fit-vids-style&amp;quot;&amp;gt;&amp;#039;+a+&amp;quot;&amp;lt;/style&amp;gt;&amp;quot;,r.appendChild(d.childNodes[1])}return e&amp;amp;&amp;amp;t.extend(i,e),this.each(function(){var e=[&amp;#039;iframe[src*=&amp;quot;player.vimeo.com&amp;quot;]&amp;#039;,&amp;#039;iframe[src*=&amp;quot;youtube.com&amp;quot;]&amp;#039;,&amp;#039;iframe[src*=&amp;quot;youtube-nocookie.com&amp;quot;]&amp;#039;,&amp;#039;iframe[src*=&amp;quot;kickstarter.com&amp;quot;][src*=&amp;quot;video.html&amp;quot;]&amp;#039;,&amp;quot;object&amp;quot;,&amp;quot;embed&amp;quot;];i.customSelector&amp;amp;&amp;amp;e.push(i.customSelector);var r=&amp;quot;.fitvidsignore&amp;quot;;i.ignore&amp;amp;&amp;amp;(r=r+&amp;quot;, &amp;quot;+i.ignore);var a=t(this).find(e.join(&amp;quot;,&amp;quot;));a=a.not(&amp;quot;object object&amp;quot;),a=a.not(r),a.each(function(e){var i=t(this);if(!(i.parents(r).length&amp;gt;0||&amp;quot;embed&amp;quot;===this.tagName.toLowerCase()&amp;amp;&amp;amp;i.parent(&amp;quot;object&amp;quot;).length||i.parent(&amp;quot;.fluid-width-video-wrapper&amp;quot;).length)){i.css(&amp;quot;height&amp;quot;)||i.css(&amp;quot;width&amp;quot;)||!isNaN(i.attr(&amp;quot;height&amp;quot;))&amp;amp;&amp;amp;!isNaN(i.attr(&amp;quot;width&amp;quot;))||(i.attr(&amp;quot;height&amp;quot;,9),i.attr(&amp;quot;width&amp;quot;,16));var a=&amp;quot;object&amp;quot;===this.tagName.toLowerCase()||i.attr(&amp;quot;height&amp;quot;)&amp;amp;&amp;amp;!isNaN(parseInt(i.attr(&amp;quot;height&amp;quot;),10))?parseInt(i.attr(&amp;quot;height&amp;quot;),10):i.height(),d=isNaN(parseInt(i.attr(&amp;quot;width&amp;quot;),10))?i.width():parseInt(i.attr(&amp;quot;width&amp;quot;),10),o=a/d;if(!i.attr(&amp;quot;id&amp;quot;)){var h=&amp;quot;fitvid&amp;quot;+e;i.attr(&amp;quot;id&amp;quot;,h)}i.wrap(&amp;#039;&amp;lt;div class=&amp;quot;fluid-width-video-wrapper&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;#039;).parent(&amp;quot;.fluid-width-video-wrapper&amp;quot;).css(&amp;quot;padding-top&amp;quot;,100*o+&amp;quot;%&amp;quot;),i.removeAttr(&amp;quot;height&amp;quot;).removeAttr(&amp;quot;width&amp;quot;)}})})}}(window.jQuery||window.Zepto);&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;!function(t){&amp;quot;use strict&amp;quot;;t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById(&amp;quot;fit-vids-style&amp;quot;)){var r=document.head||document.getElementsByTagName(&amp;quot;head&amp;quot;)[0],a=&amp;quot;.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}&amp;quot;,d=document.createElement(&amp;quot;div&amp;quot;);d.innerHTML=&amp;#039;&amp;lt;p&amp;gt;x&amp;lt;/p&amp;gt;&amp;lt;style id=&amp;quot;fit-vids-style&amp;quot;&amp;gt;&amp;#039;+a+&amp;quot;&amp;lt;/style&amp;gt;&amp;quot;,r.appendChild(d.childNodes[1])}return e&amp;amp;&amp;amp;t.extend(i,e),this.each(function(){var e=[&amp;#039;iframe[src*=&amp;quot;player.vimeo.com&amp;quot;]&amp;#039;,&amp;#039;iframe[src*=&amp;quot;youtube.com&amp;quot;]&amp;#039;,&amp;#039;iframe[src*=&amp;quot;youtube-nocookie.com&amp;quot;]&amp;#039;,&amp;#039;iframe[src*=&amp;quot;kickstarter.com&amp;quot;][src*=&amp;quot;video.html&amp;quot;]&amp;#039;,&amp;quot;object&amp;quot;,&amp;quot;embed&amp;quot;];i.customSelector&amp;amp;&amp;amp;e.push(i.customSelector);var r=&amp;quot;.fitvidsignore&amp;quot;;i.ignore&amp;amp;&amp;amp;(r=r+&amp;quot;, &amp;quot;+i.ignore);var a=t(this).find(e.join(&amp;quot;,&amp;quot;));a=a.not(&amp;quot;object object&amp;quot;),a=a.not(r),a.each(function(e){var i=t(this);if(!(i.parents(r).length&amp;gt;0||&amp;quot;embed&amp;quot;===this.tagName.toLowerCase()&amp;amp;&amp;amp;i.parent(&amp;quot;object&amp;quot;).length||i.parent(&amp;quot;.fluid-width-video-wrapper&amp;quot;).length)){i.css(&amp;quot;height&amp;quot;)||i.css(&amp;quot;width&amp;quot;)||!isNaN(i.attr(&amp;quot;height&amp;quot;))&amp;amp;&amp;amp;!isNaN(i.attr(&amp;quot;width&amp;quot;))||(i.attr(&amp;quot;height&amp;quot;,9),i.attr(&amp;quot;width&amp;quot;,16));var a=&amp;quot;object&amp;quot;===this.tagName.toLowerCase()||i.attr(&amp;quot;height&amp;quot;)&amp;amp;&amp;amp;!isNaN(parseInt(i.attr(&amp;quot;height&amp;quot;),10))?parseInt(i.attr(&amp;quot;height&amp;quot;),10):i.height(),d=isNaN(parseInt(i.attr(&amp;quot;width&amp;quot;),10))?i.width():parseInt(i.attr(&amp;quot;width&amp;quot;),10),o=a/d;if(!i.attr(&amp;quot;id&amp;quot;)){var h=&amp;quot;fitvid&amp;quot;+e;i.attr(&amp;quot;id&amp;quot;,h)}i.wrap(&amp;#039;&amp;lt;div class=&amp;quot;fluid-width-video-wrapper&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;#039;).parent(&amp;quot;.fluid-width-video-wrapper&amp;quot;).css(&amp;quot;padding-top&amp;quot;,100*o+&amp;quot;%&amp;quot;),i.removeAttr(&amp;quot;height&amp;quot;).removeAttr(&amp;quot;width&amp;quot;)}})})}}(window.jQuery||window.Zepto);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Add Your Own Video Vendor&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Have a custom video player? We now have a customSelector option where you can add your own specific video vendor selector (mileage may vary depending on vendor and fluidity of player):&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  $(&amp;quot;#thing-with-videos&amp;quot;).fitVids({ customSelector: &amp;quot;iframe[src^=&amp;#039;http://mycoolvideosite.com&amp;#039;], iframe[src^=&amp;#039;http://myviiids.com&amp;#039;]&amp;quot;});&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  // Selectors are comma separated, just like CSS&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Note: This will be the quickest way to add your own custom vendor as well as test your player&amp;#039;s compatibility with FitVids.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Ignore With Class&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Have a video you want FitVids to ignore? You can slap a class of fitvidsignore on your object or container and your video will be displayed as it is defined.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;If you&amp;#039;d like to add a custom block to ignore FitVids, use the ignore option.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  $(&amp;quot;#thing-with-videos&amp;quot;).fitVids({ ignore: &amp;#039;.mycooldiv, #myviiid&amp;#039;});&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  // Selectors are comma separated, just like CSS&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Target Videos embedded without classes or containers&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Customers/clients will occasionally add a video to a general content area or article and this may be without a class or container that you&amp;#039;re targetting. A solution to this is to target the parent of videos, using something like the below;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  $(&amp;#039;iframe[src*=&amp;quot;youtube&amp;quot;]&amp;#039;).parent().fitVids();&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  // You can change the selector to suit potential video providers, or chain them if your customer is likely to use more than one provider&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;By targetting the iframe/embed parent you can then dynamically add in the fitVids special sauce on the fly without needing to know the container ahead of time.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Known issues&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    Vimeo Autoplay API is not compatible with FitVids in IE11. You must manually wrap videos you want to autoplay.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Steff</name></author>
	</entry>
	<entry>
		<id>https://wiki.stephanschlegel.de/index.php?title=FitVids_jQuery_Plugin&amp;diff=22197&amp;oldid=prev</id>
		<title>Steff: Die Seite wurde neu angelegt: „https://github.com/davatron5000/FitVids.js  &#039;&#039;&#039;How To:&#039;&#039;&#039; Include jQuery 1.7+ and FitVids.js in your layout and target your videos container with fitVids(). &lt;s…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=FitVids_jQuery_Plugin&amp;diff=22197&amp;oldid=prev"/>
		<updated>2017-04-24T12:10:34Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „https://github.com/davatron5000/FitVids.js  &amp;#039;&amp;#039;&amp;#039;How To:&amp;#039;&amp;#039;&amp;#039; Include jQuery 1.7+ and FitVids.js in your layout and target your videos container with fitVids(). &amp;lt;s…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;https://github.com/davatron5000/FitVids.js&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;How To:&amp;#039;&amp;#039;&amp;#039; Include jQuery 1.7+ and FitVids.js in your layout and target your videos container with fitVids().&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;script src=&amp;quot;path/to/jquery.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script src=&amp;quot;path/to/jquery.fitvids.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;&lt;br /&gt;
  $(document).ready(function(){&lt;br /&gt;
    // Target your .container, .wrapper, .post, etc.&lt;br /&gt;
    $(&amp;quot;#thing-with-videos&amp;quot;).fitVids();&lt;br /&gt;
  });&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
/*!&lt;br /&gt;
* FitVids 1.1&lt;br /&gt;
*&lt;br /&gt;
* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com&lt;br /&gt;
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/&lt;br /&gt;
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/&lt;br /&gt;
*&lt;br /&gt;
*/&lt;br /&gt;
!function(t){&amp;quot;use strict&amp;quot;;t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById(&amp;quot;fit-vids-style&amp;quot;)){var r=document.head||document.getElementsByTagName(&amp;quot;head&amp;quot;)[0],a=&amp;quot;.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}&amp;quot;,d=document.createElement(&amp;quot;div&amp;quot;);d.innerHTML=&amp;#039;&amp;lt;p&amp;gt;x&amp;lt;/p&amp;gt;&amp;lt;style id=&amp;quot;fit-vids-style&amp;quot;&amp;gt;&amp;#039;+a+&amp;quot;&amp;lt;/style&amp;gt;&amp;quot;,r.appendChild(d.childNodes[1])}return e&amp;amp;&amp;amp;t.extend(i,e),this.each(function(){var e=[&amp;#039;iframe[src*=&amp;quot;player.vimeo.com&amp;quot;]&amp;#039;,&amp;#039;iframe[src*=&amp;quot;youtube.com&amp;quot;]&amp;#039;,&amp;#039;iframe[src*=&amp;quot;youtube-nocookie.com&amp;quot;]&amp;#039;,&amp;#039;iframe[src*=&amp;quot;kickstarter.com&amp;quot;][src*=&amp;quot;video.html&amp;quot;]&amp;#039;,&amp;quot;object&amp;quot;,&amp;quot;embed&amp;quot;];i.customSelector&amp;amp;&amp;amp;e.push(i.customSelector);var r=&amp;quot;.fitvidsignore&amp;quot;;i.ignore&amp;amp;&amp;amp;(r=r+&amp;quot;, &amp;quot;+i.ignore);var a=t(this).find(e.join(&amp;quot;,&amp;quot;));a=a.not(&amp;quot;object object&amp;quot;),a=a.not(r),a.each(function(e){var i=t(this);if(!(i.parents(r).length&amp;gt;0||&amp;quot;embed&amp;quot;===this.tagName.toLowerCase()&amp;amp;&amp;amp;i.parent(&amp;quot;object&amp;quot;).length||i.parent(&amp;quot;.fluid-width-video-wrapper&amp;quot;).length)){i.css(&amp;quot;height&amp;quot;)||i.css(&amp;quot;width&amp;quot;)||!isNaN(i.attr(&amp;quot;height&amp;quot;))&amp;amp;&amp;amp;!isNaN(i.attr(&amp;quot;width&amp;quot;))||(i.attr(&amp;quot;height&amp;quot;,9),i.attr(&amp;quot;width&amp;quot;,16));var a=&amp;quot;object&amp;quot;===this.tagName.toLowerCase()||i.attr(&amp;quot;height&amp;quot;)&amp;amp;&amp;amp;!isNaN(parseInt(i.attr(&amp;quot;height&amp;quot;),10))?parseInt(i.attr(&amp;quot;height&amp;quot;),10):i.height(),d=isNaN(parseInt(i.attr(&amp;quot;width&amp;quot;),10))?i.width():parseInt(i.attr(&amp;quot;width&amp;quot;),10),o=a/d;if(!i.attr(&amp;quot;id&amp;quot;)){var h=&amp;quot;fitvid&amp;quot;+e;i.attr(&amp;quot;id&amp;quot;,h)}i.wrap(&amp;#039;&amp;lt;div class=&amp;quot;fluid-width-video-wrapper&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;#039;).parent(&amp;quot;.fluid-width-video-wrapper&amp;quot;).css(&amp;quot;padding-top&amp;quot;,100*o+&amp;quot;%&amp;quot;),i.removeAttr(&amp;quot;height&amp;quot;).removeAttr(&amp;quot;width&amp;quot;)}})})}}(window.jQuery||window.Zepto);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Steff</name></author>
	</entry>
</feed>