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/wp-conte.../plugins/embedpre.../assets/js/vendor/bootstra...
File: bootstrap.js
/*!
[0] Fix | Delete
* Bootstrap v3.3.7 (http://getbootstrap.com)
[1] Fix | Delete
* Copyright 2011-2016 Twitter, Inc.
[2] Fix | Delete
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
[3] Fix | Delete
*/
[4] Fix | Delete
[5] Fix | Delete
/*!
[6] Fix | Delete
* Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=3388789be7b7c807ff47acdc21b4ef8f)
[7] Fix | Delete
* Config saved to config.json and https://gist.github.com/3388789be7b7c807ff47acdc21b4ef8f
[8] Fix | Delete
*/
[9] Fix | Delete
if (typeof jQuery === 'undefined') {
[10] Fix | Delete
throw new Error('Bootstrap\'s JavaScript requires jQuery');
[11] Fix | Delete
}
[12] Fix | Delete
+function ($) {
[13] Fix | Delete
'use strict';
[14] Fix | Delete
var version = $.fn.jquery.split(' ')[0].split('.');
[15] Fix | Delete
if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) {
[16] Fix | Delete
throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4');
[17] Fix | Delete
}
[18] Fix | Delete
}(jQuery);
[19] Fix | Delete
[20] Fix | Delete
/* ========================================================================
[21] Fix | Delete
* Bootstrap: modal.js v3.3.7
[22] Fix | Delete
* http://getbootstrap.com/javascript/#modals
[23] Fix | Delete
* ========================================================================
[24] Fix | Delete
* Copyright 2011-2016 Twitter, Inc.
[25] Fix | Delete
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
[26] Fix | Delete
* ======================================================================== */
[27] Fix | Delete
[28] Fix | Delete
+function ($) {
[29] Fix | Delete
'use strict';
[30] Fix | Delete
[31] Fix | Delete
// MODAL CLASS DEFINITION
[32] Fix | Delete
// ======================
[33] Fix | Delete
[34] Fix | Delete
var Modal = function (element, options) {
[35] Fix | Delete
this.options = options;
[36] Fix | Delete
this.$body = $(document.body);
[37] Fix | Delete
this.$element = $(element);
[38] Fix | Delete
this.$dialog = this.$element.find('.modal-dialog');
[39] Fix | Delete
this.$backdrop = null;
[40] Fix | Delete
this.isShown = null;
[41] Fix | Delete
this.originalBodyPad = null;
[42] Fix | Delete
this.scrollbarWidth = 0;
[43] Fix | Delete
this.ignoreBackdropClick = false;
[44] Fix | Delete
[45] Fix | Delete
if (this.options.remote) {
[46] Fix | Delete
this.$element
[47] Fix | Delete
.find('.modal-content')
[48] Fix | Delete
.load(this.options.remote, $.proxy(function () {
[49] Fix | Delete
this.$element.trigger('loaded.bs.modal');
[50] Fix | Delete
}, this));
[51] Fix | Delete
}
[52] Fix | Delete
};
[53] Fix | Delete
[54] Fix | Delete
Modal.VERSION = '3.3.7';
[55] Fix | Delete
[56] Fix | Delete
Modal.TRANSITION_DURATION = 300;
[57] Fix | Delete
Modal.BACKDROP_TRANSITION_DURATION = 150;
[58] Fix | Delete
[59] Fix | Delete
Modal.DEFAULTS = {
[60] Fix | Delete
backdrop: true,
[61] Fix | Delete
keyboard: true,
[62] Fix | Delete
show: true
[63] Fix | Delete
};
[64] Fix | Delete
[65] Fix | Delete
Modal.prototype.toggle = function (_relatedTarget) {
[66] Fix | Delete
return this.isShown ? this.hide() : this.show(_relatedTarget);
[67] Fix | Delete
};
[68] Fix | Delete
[69] Fix | Delete
Modal.prototype.show = function (_relatedTarget) {
[70] Fix | Delete
var that = this;
[71] Fix | Delete
var e = $.Event('show.bs.modal', {relatedTarget: _relatedTarget});
[72] Fix | Delete
[73] Fix | Delete
this.$element.trigger(e);
[74] Fix | Delete
[75] Fix | Delete
if (this.isShown || e.isDefaultPrevented()) return;
[76] Fix | Delete
[77] Fix | Delete
this.isShown = true;
[78] Fix | Delete
[79] Fix | Delete
this.checkScrollbar();
[80] Fix | Delete
this.setScrollbar();
[81] Fix | Delete
this.$body.addClass('modal-open');
[82] Fix | Delete
[83] Fix | Delete
this.escape();
[84] Fix | Delete
this.resize();
[85] Fix | Delete
[86] Fix | Delete
this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this));
[87] Fix | Delete
[88] Fix | Delete
this.$dialog.on('mousedown.dismiss.bs.modal', function () {
[89] Fix | Delete
that.$element.one('mouseup.dismiss.bs.modal', function (e) {
[90] Fix | Delete
if ($(e.target).is(that.$element)) that.ignoreBackdropClick = true;
[91] Fix | Delete
});
[92] Fix | Delete
});
[93] Fix | Delete
[94] Fix | Delete
this.backdrop(function () {
[95] Fix | Delete
var transition = $.support.transition && that.$element.hasClass('fade');
[96] Fix | Delete
[97] Fix | Delete
if (!that.$element.parent().length) {
[98] Fix | Delete
that.$element.appendTo(that.$body); // don't move modals dom position
[99] Fix | Delete
}
[100] Fix | Delete
[101] Fix | Delete
that.$element
[102] Fix | Delete
.show()
[103] Fix | Delete
.scrollTop(0);
[104] Fix | Delete
[105] Fix | Delete
that.adjustDialog();
[106] Fix | Delete
[107] Fix | Delete
if (transition) {
[108] Fix | Delete
that.$element[0].offsetWidth; // force reflow
[109] Fix | Delete
}
[110] Fix | Delete
[111] Fix | Delete
that.$element.addClass('in');
[112] Fix | Delete
[113] Fix | Delete
that.enforceFocus();
[114] Fix | Delete
[115] Fix | Delete
var e = $.Event('shown.bs.modal', {relatedTarget: _relatedTarget});
[116] Fix | Delete
[117] Fix | Delete
transition ?
[118] Fix | Delete
that.$dialog // wait for modal to slide in
[119] Fix | Delete
.one('bsTransitionEnd', function () {
[120] Fix | Delete
that.$element.trigger('focus').trigger(e);
[121] Fix | Delete
})
[122] Fix | Delete
.emulateTransitionEnd(Modal.TRANSITION_DURATION) :
[123] Fix | Delete
that.$element.trigger('focus').trigger(e);
[124] Fix | Delete
});
[125] Fix | Delete
};
[126] Fix | Delete
[127] Fix | Delete
Modal.prototype.hide = function (e) {
[128] Fix | Delete
if (e) e.preventDefault();
[129] Fix | Delete
[130] Fix | Delete
e = $.Event('hide.bs.modal');
[131] Fix | Delete
[132] Fix | Delete
this.$element.trigger(e);
[133] Fix | Delete
[134] Fix | Delete
if (!this.isShown || e.isDefaultPrevented()) return;
[135] Fix | Delete
[136] Fix | Delete
this.isShown = false;
[137] Fix | Delete
[138] Fix | Delete
this.escape();
[139] Fix | Delete
this.resize();
[140] Fix | Delete
[141] Fix | Delete
$(document).off('focusin.bs.modal');
[142] Fix | Delete
[143] Fix | Delete
this.$element
[144] Fix | Delete
.removeClass('in')
[145] Fix | Delete
.off('click.dismiss.bs.modal')
[146] Fix | Delete
.off('mouseup.dismiss.bs.modal');
[147] Fix | Delete
[148] Fix | Delete
this.$dialog.off('mousedown.dismiss.bs.modal');
[149] Fix | Delete
[150] Fix | Delete
$.support.transition && this.$element.hasClass('fade') ?
[151] Fix | Delete
this.$element
[152] Fix | Delete
.one('bsTransitionEnd', $.proxy(this.hideModal, this))
[153] Fix | Delete
.emulateTransitionEnd(Modal.TRANSITION_DURATION) :
[154] Fix | Delete
this.hideModal();
[155] Fix | Delete
};
[156] Fix | Delete
[157] Fix | Delete
Modal.prototype.enforceFocus = function () {
[158] Fix | Delete
$(document)
[159] Fix | Delete
.off('focusin.bs.modal') // guard against infinite focus loop
[160] Fix | Delete
.on('focusin.bs.modal', $.proxy(function (e) {
[161] Fix | Delete
if (document !== e.target &&
[162] Fix | Delete
this.$element[0] !== e.target &&
[163] Fix | Delete
!this.$element.has(e.target).length) {
[164] Fix | Delete
this.$element.trigger('focus');
[165] Fix | Delete
}
[166] Fix | Delete
}, this));
[167] Fix | Delete
};
[168] Fix | Delete
[169] Fix | Delete
Modal.prototype.escape = function () {
[170] Fix | Delete
if (this.isShown && this.options.keyboard) {
[171] Fix | Delete
this.$element.on('keydown.dismiss.bs.modal', $.proxy(function (e) {
[172] Fix | Delete
e.which == 27 && this.hide();
[173] Fix | Delete
}, this));
[174] Fix | Delete
} else if (!this.isShown) {
[175] Fix | Delete
this.$element.off('keydown.dismiss.bs.modal');
[176] Fix | Delete
}
[177] Fix | Delete
};
[178] Fix | Delete
[179] Fix | Delete
Modal.prototype.resize = function () {
[180] Fix | Delete
if (this.isShown) {
[181] Fix | Delete
$(window).on('resize.bs.modal', $.proxy(this.handleUpdate, this));
[182] Fix | Delete
} else {
[183] Fix | Delete
$(window).off('resize.bs.modal');
[184] Fix | Delete
}
[185] Fix | Delete
};
[186] Fix | Delete
[187] Fix | Delete
Modal.prototype.hideModal = function () {
[188] Fix | Delete
var that = this;
[189] Fix | Delete
this.$element.hide();
[190] Fix | Delete
this.backdrop(function () {
[191] Fix | Delete
that.$body.removeClass('modal-open');
[192] Fix | Delete
that.resetAdjustments();
[193] Fix | Delete
that.resetScrollbar();
[194] Fix | Delete
that.$element.trigger('hidden.bs.modal');
[195] Fix | Delete
});
[196] Fix | Delete
};
[197] Fix | Delete
[198] Fix | Delete
Modal.prototype.removeBackdrop = function () {
[199] Fix | Delete
this.$backdrop && this.$backdrop.remove();
[200] Fix | Delete
this.$backdrop = null;
[201] Fix | Delete
};
[202] Fix | Delete
[203] Fix | Delete
Modal.prototype.backdrop = function (callback) {
[204] Fix | Delete
var that = this;
[205] Fix | Delete
var animate = this.$element.hasClass('fade') ? 'fade' : '';
[206] Fix | Delete
[207] Fix | Delete
if (this.isShown && this.options.backdrop) {
[208] Fix | Delete
var doAnimate = $.support.transition && animate;
[209] Fix | Delete
[210] Fix | Delete
this.$backdrop = $(document.createElement('div'))
[211] Fix | Delete
.addClass('modal-backdrop ' + animate)
[212] Fix | Delete
.appendTo(this.$body);
[213] Fix | Delete
[214] Fix | Delete
this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) {
[215] Fix | Delete
if (this.ignoreBackdropClick) {
[216] Fix | Delete
this.ignoreBackdropClick = false;
[217] Fix | Delete
return;
[218] Fix | Delete
}
[219] Fix | Delete
if (e.target !== e.currentTarget) return;
[220] Fix | Delete
this.options.backdrop == 'static'
[221] Fix | Delete
? this.$element[0].focus()
[222] Fix | Delete
: this.hide();
[223] Fix | Delete
}, this));
[224] Fix | Delete
[225] Fix | Delete
if (doAnimate) this.$backdrop[0].offsetWidth; // force reflow
[226] Fix | Delete
[227] Fix | Delete
this.$backdrop.addClass('in');
[228] Fix | Delete
[229] Fix | Delete
if (!callback) return;
[230] Fix | Delete
[231] Fix | Delete
doAnimate ?
[232] Fix | Delete
this.$backdrop
[233] Fix | Delete
.one('bsTransitionEnd', callback)
[234] Fix | Delete
.emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
[235] Fix | Delete
callback();
[236] Fix | Delete
[237] Fix | Delete
} else if (!this.isShown && this.$backdrop) {
[238] Fix | Delete
this.$backdrop.removeClass('in');
[239] Fix | Delete
[240] Fix | Delete
var callbackRemove = function () {
[241] Fix | Delete
that.removeBackdrop();
[242] Fix | Delete
callback && callback();
[243] Fix | Delete
};
[244] Fix | Delete
$.support.transition && this.$element.hasClass('fade') ?
[245] Fix | Delete
this.$backdrop
[246] Fix | Delete
.one('bsTransitionEnd', callbackRemove)
[247] Fix | Delete
.emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
[248] Fix | Delete
callbackRemove();
[249] Fix | Delete
[250] Fix | Delete
} else if (callback) {
[251] Fix | Delete
callback();
[252] Fix | Delete
}
[253] Fix | Delete
};
[254] Fix | Delete
[255] Fix | Delete
// these following methods are used to handle overflowing modals
[256] Fix | Delete
[257] Fix | Delete
Modal.prototype.handleUpdate = function () {
[258] Fix | Delete
this.adjustDialog();
[259] Fix | Delete
};
[260] Fix | Delete
[261] Fix | Delete
Modal.prototype.adjustDialog = function () {
[262] Fix | Delete
var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight;
[263] Fix | Delete
[264] Fix | Delete
this.$element.css({
[265] Fix | Delete
paddingLeft: !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '',
[266] Fix | Delete
paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : ''
[267] Fix | Delete
});
[268] Fix | Delete
};
[269] Fix | Delete
[270] Fix | Delete
Modal.prototype.resetAdjustments = function () {
[271] Fix | Delete
this.$element.css({
[272] Fix | Delete
paddingLeft: '',
[273] Fix | Delete
paddingRight: ''
[274] Fix | Delete
});
[275] Fix | Delete
};
[276] Fix | Delete
[277] Fix | Delete
Modal.prototype.checkScrollbar = function () {
[278] Fix | Delete
var fullWindowWidth = window.innerWidth;
[279] Fix | Delete
if (!fullWindowWidth) { // workaround for missing window.innerWidth in IE8
[280] Fix | Delete
var documentElementRect = document.documentElement.getBoundingClientRect();
[281] Fix | Delete
fullWindowWidth = documentElementRect.right - Math.abs(documentElementRect.left);
[282] Fix | Delete
}
[283] Fix | Delete
this.bodyIsOverflowing = document.body.clientWidth < fullWindowWidth;
[284] Fix | Delete
this.scrollbarWidth = this.measureScrollbar();
[285] Fix | Delete
};
[286] Fix | Delete
[287] Fix | Delete
Modal.prototype.setScrollbar = function () {
[288] Fix | Delete
var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10);
[289] Fix | Delete
this.originalBodyPad = document.body.style.paddingRight || '';
[290] Fix | Delete
if (this.bodyIsOverflowing) this.$body.css('padding-right', bodyPad + this.scrollbarWidth);
[291] Fix | Delete
};
[292] Fix | Delete
[293] Fix | Delete
Modal.prototype.resetScrollbar = function () {
[294] Fix | Delete
this.$body.css('padding-right', this.originalBodyPad);
[295] Fix | Delete
};
[296] Fix | Delete
[297] Fix | Delete
Modal.prototype.measureScrollbar = function () { // thx walsh
[298] Fix | Delete
var scrollDiv = document.createElement('div');
[299] Fix | Delete
scrollDiv.className = 'modal-scrollbar-measure';
[300] Fix | Delete
this.$body.append(scrollDiv);
[301] Fix | Delete
var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
[302] Fix | Delete
this.$body[0].removeChild(scrollDiv);
[303] Fix | Delete
return scrollbarWidth;
[304] Fix | Delete
};
[305] Fix | Delete
[306] Fix | Delete
// MODAL PLUGIN DEFINITION
[307] Fix | Delete
// =======================
[308] Fix | Delete
[309] Fix | Delete
function Plugin (option, _relatedTarget) {
[310] Fix | Delete
return this.each(function () {
[311] Fix | Delete
var $this = $(this);
[312] Fix | Delete
var data = $this.data('bs.modal');
[313] Fix | Delete
var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option);
[314] Fix | Delete
[315] Fix | Delete
if (!data) $this.data('bs.modal', (data = new Modal(this, options)));
[316] Fix | Delete
if (typeof option == 'string') data[option](_relatedTarget);
[317] Fix | Delete
else if (options.show) data.show(_relatedTarget);
[318] Fix | Delete
});
[319] Fix | Delete
}
[320] Fix | Delete
[321] Fix | Delete
var old = $.fn.modal;
[322] Fix | Delete
[323] Fix | Delete
$.fn.modal = Plugin;
[324] Fix | Delete
$.fn.modal.Constructor = Modal;
[325] Fix | Delete
[326] Fix | Delete
// MODAL NO CONFLICT
[327] Fix | Delete
// =================
[328] Fix | Delete
[329] Fix | Delete
$.fn.modal.noConflict = function () {
[330] Fix | Delete
$.fn.modal = old;
[331] Fix | Delete
return this;
[332] Fix | Delete
};
[333] Fix | Delete
[334] Fix | Delete
// MODAL DATA-API
[335] Fix | Delete
// ==============
[336] Fix | Delete
[337] Fix | Delete
$(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
[338] Fix | Delete
var $this = $(this);
[339] Fix | Delete
var href = $this.attr('href');
[340] Fix | Delete
var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))); // strip for ie7
[341] Fix | Delete
var option = $target.data('bs.modal') ? 'toggle' : $.extend({remote: !/#/.test(href) && href}, $target.data(), $this.data());
[342] Fix | Delete
[343] Fix | Delete
if ($this.is('a')) e.preventDefault();
[344] Fix | Delete
[345] Fix | Delete
$target.one('show.bs.modal', function (showEvent) {
[346] Fix | Delete
if (showEvent.isDefaultPrevented()) return; // only register focus restorer if modal will actually get shown
[347] Fix | Delete
$target.one('hidden.bs.modal', function () {
[348] Fix | Delete
$this.is(':visible') && $this.trigger('focus');
[349] Fix | Delete
});
[350] Fix | Delete
});
[351] Fix | Delete
Plugin.call($target, option, this);
[352] Fix | Delete
});
[353] Fix | Delete
[354] Fix | Delete
}(jQuery);
[355] Fix | Delete
[356] Fix | Delete
/* ========================================================================
[357] Fix | Delete
* Bootstrap: transition.js v3.3.7
[358] Fix | Delete
* http://getbootstrap.com/javascript/#transitions
[359] Fix | Delete
* ========================================================================
[360] Fix | Delete
* Copyright 2011-2016 Twitter, Inc.
[361] Fix | Delete
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
[362] Fix | Delete
* ======================================================================== */
[363] Fix | Delete
[364] Fix | Delete
+function ($) {
[365] Fix | Delete
'use strict';
[366] Fix | Delete
[367] Fix | Delete
// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
[368] Fix | Delete
// ============================================================
[369] Fix | Delete
[370] Fix | Delete
function transitionEnd () {
[371] Fix | Delete
var el = document.createElement('bootstrap');
[372] Fix | Delete
[373] Fix | Delete
var transEndEventNames = {
[374] Fix | Delete
WebkitTransition: 'webkitTransitionEnd',
[375] Fix | Delete
MozTransition: 'transitionend',
[376] Fix | Delete
OTransition: 'oTransitionEnd otransitionend',
[377] Fix | Delete
transition: 'transitionend'
[378] Fix | Delete
};
[379] Fix | Delete
[380] Fix | Delete
for (var name in transEndEventNames) {
[381] Fix | Delete
if (el.style[name] !== undefined) {
[382] Fix | Delete
return {end: transEndEventNames[name]};
[383] Fix | Delete
}
[384] Fix | Delete
}
[385] Fix | Delete
[386] Fix | Delete
return false; // explicit for ie8 ( ._.)
[387] Fix | Delete
}
[388] Fix | Delete
[389] Fix | Delete
// http://blog.alexmaccaw.com/css-transitions
[390] Fix | Delete
$.fn.emulateTransitionEnd = function (duration) {
[391] Fix | Delete
var called = false;
[392] Fix | Delete
var $el = this;
[393] Fix | Delete
$(this).one('bsTransitionEnd', function () { called = true; });
[394] Fix | Delete
var callback = function () { if (!called) $($el).trigger($.support.transition.end); };
[395] Fix | Delete
setTimeout(callback, duration);
[396] Fix | Delete
return this;
[397] Fix | Delete
};
[398] Fix | Delete
[399] Fix | Delete
$(function () {
[400] Fix | Delete
$.support.transition = transitionEnd();
[401] Fix | Delete
[402] Fix | Delete
if (!$.support.transition) return;
[403] Fix | Delete
[404] Fix | Delete
$.event.special.bsTransitionEnd = {
[405] Fix | Delete
bindType: $.support.transition.end,
[406] Fix | Delete
delegateType: $.support.transition.end,
[407] Fix | Delete
handle: function (e) {
[408] Fix | Delete
if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments);
[409] Fix | Delete
}
[410] Fix | Delete
};
[411] Fix | Delete
});
[412] Fix | Delete
[413] Fix | Delete
}(jQuery);
[414] Fix | Delete
[415] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function