Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/Divi/includes/builder/scripts/ext
File: jquery.fitvids.js
/*jshint browser:true */
[0] Fix | Delete
/*!
[1] Fix | Delete
* FitVids 1.1
[2] Fix | Delete
*
[3] Fix | Delete
* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
[4] Fix | Delete
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
[5] Fix | Delete
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
[6] Fix | Delete
*
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
;(function( $ ){
[10] Fix | Delete
[11] Fix | Delete
'use strict';
[12] Fix | Delete
[13] Fix | Delete
$.fn.fitVids = function( options ) {
[14] Fix | Delete
var settings = {
[15] Fix | Delete
customSelector: null,
[16] Fix | Delete
ignore: null
[17] Fix | Delete
};
[18] Fix | Delete
[19] Fix | Delete
if(!document.getElementById('fit-vids-style')) {
[20] Fix | Delete
// appendStyles: https://github.com/toddmotto/fluidvids/blob/master/dist/fluidvids.js
[21] Fix | Delete
var head = document.head || document.getElementsByTagName('head')[0];
[22] Fix | Delete
var css = '.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%;}';
[23] Fix | Delete
var div = document.createElement("div");
[24] Fix | Delete
div.innerHTML = '<p>x</p><style id="fit-vids-style">' + css + '</style>';
[25] Fix | Delete
head.appendChild(div.childNodes[1]);
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
if ( options ) {
[29] Fix | Delete
$.extend( settings, options );
[30] Fix | Delete
}
[31] Fix | Delete
[32] Fix | Delete
return this.each(function(){
[33] Fix | Delete
var selectors = [
[34] Fix | Delete
'iframe[src*="player.vimeo.com"]',
[35] Fix | Delete
'iframe[src*="youtube.com"]',
[36] Fix | Delete
'iframe[src*="youtube-nocookie.com"]',
[37] Fix | Delete
'iframe[src*="kickstarter.com"][src*="video.html"]',
[38] Fix | Delete
'object',
[39] Fix | Delete
'embed'
[40] Fix | Delete
];
[41] Fix | Delete
[42] Fix | Delete
if (settings.customSelector) {
[43] Fix | Delete
selectors.push(settings.customSelector);
[44] Fix | Delete
}
[45] Fix | Delete
[46] Fix | Delete
var ignoreList = '.fitvidsignore';
[47] Fix | Delete
[48] Fix | Delete
if(settings.ignore) {
[49] Fix | Delete
ignoreList = ignoreList + ', ' + settings.ignore;
[50] Fix | Delete
}
[51] Fix | Delete
[52] Fix | Delete
var $allVideos = $(this).find(selectors.join(','));
[53] Fix | Delete
$allVideos = $allVideos.not('object object'); // SwfObj conflict patch
[54] Fix | Delete
$allVideos = $allVideos.not(ignoreList); // Disable FitVids on this video.
[55] Fix | Delete
[56] Fix | Delete
$allVideos.each(function(){
[57] Fix | Delete
var $this = $(this);
[58] Fix | Delete
if($this.parents(ignoreList).length > 0) {
[59] Fix | Delete
return; // Disable FitVids on this video.
[60] Fix | Delete
}
[61] Fix | Delete
if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; }
[62] Fix | Delete
if ((!$this.css('height') && !$this.css('width')) && (isNaN($this.attr('height')) || isNaN($this.attr('width'))))
[63] Fix | Delete
{
[64] Fix | Delete
$this.attr('height', 9);
[65] Fix | Delete
$this.attr('width', 16);
[66] Fix | Delete
}
[67] Fix | Delete
var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(),
[68] Fix | Delete
width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(),
[69] Fix | Delete
aspectRatio = height / width;
[70] Fix | Delete
if(!$this.attr('name')){
[71] Fix | Delete
var videoName = 'fitvid' + $.fn.fitVids._count;
[72] Fix | Delete
$this.attr('name', videoName);
[73] Fix | Delete
$.fn.fitVids._count++;
[74] Fix | Delete
}
[75] Fix | Delete
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+'%');
[76] Fix | Delete
$this.removeAttr('height').removeAttr('width');
[77] Fix | Delete
});
[78] Fix | Delete
});
[79] Fix | Delete
};
[80] Fix | Delete
[81] Fix | Delete
// Internal counter for unique video names.
[82] Fix | Delete
$.fn.fitVids._count = 0;
[83] Fix | Delete
[84] Fix | Delete
// Works with either jQuery or Zepto
[85] Fix | Delete
})( window.jQuery || window.Zepto );
[86] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function