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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/ultimate.../lib/bootstra.../js
File: bootstrap.js
[500] Fix | Delete
Affix.VERSION = '3.4.1'
[501] Fix | Delete
[502] Fix | Delete
Affix.RESET = 'affix affix-top affix-bottom'
[503] Fix | Delete
[504] Fix | Delete
Affix.DEFAULTS = {
[505] Fix | Delete
offset: 0,
[506] Fix | Delete
target: window
[507] Fix | Delete
}
[508] Fix | Delete
[509] Fix | Delete
Affix.prototype.getState = function (scrollHeight, height, offsetTop, offsetBottom) {
[510] Fix | Delete
var scrollTop = this.$target.scrollTop()
[511] Fix | Delete
var position = this.$element.offset()
[512] Fix | Delete
var targetHeight = this.$target.height()
[513] Fix | Delete
[514] Fix | Delete
if (offsetTop != null && this.affixed == 'top') return scrollTop < offsetTop ? 'top' : false
[515] Fix | Delete
[516] Fix | Delete
if (this.affixed == 'bottom') {
[517] Fix | Delete
if (offsetTop != null) return (scrollTop + this.unpin <= position.top) ? false : 'bottom'
[518] Fix | Delete
return (scrollTop + targetHeight <= scrollHeight - offsetBottom) ? false : 'bottom'
[519] Fix | Delete
}
[520] Fix | Delete
[521] Fix | Delete
var initializing = this.affixed == null
[522] Fix | Delete
var colliderTop = initializing ? scrollTop : position.top
[523] Fix | Delete
var colliderHeight = initializing ? targetHeight : height
[524] Fix | Delete
[525] Fix | Delete
if (offsetTop != null && scrollTop <= offsetTop) return 'top'
[526] Fix | Delete
if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom'
[527] Fix | Delete
[528] Fix | Delete
return false
[529] Fix | Delete
}
[530] Fix | Delete
[531] Fix | Delete
Affix.prototype.getPinnedOffset = function () {
[532] Fix | Delete
if (this.pinnedOffset) return this.pinnedOffset
[533] Fix | Delete
this.$element.removeClass(Affix.RESET).addClass('affix')
[534] Fix | Delete
var scrollTop = this.$target.scrollTop()
[535] Fix | Delete
var position = this.$element.offset()
[536] Fix | Delete
return (this.pinnedOffset = position.top - scrollTop)
[537] Fix | Delete
}
[538] Fix | Delete
[539] Fix | Delete
Affix.prototype.checkPositionWithEventLoop = function () {
[540] Fix | Delete
setTimeout($.proxy(this.checkPosition, this), 1)
[541] Fix | Delete
}
[542] Fix | Delete
[543] Fix | Delete
Affix.prototype.checkPosition = function () {
[544] Fix | Delete
if (!this.$element.is(':visible')) return
[545] Fix | Delete
[546] Fix | Delete
var height = this.$element.height()
[547] Fix | Delete
var offset = this.options.offset
[548] Fix | Delete
var offsetTop = offset.top
[549] Fix | Delete
var offsetBottom = offset.bottom
[550] Fix | Delete
var scrollHeight = Math.max($(document).height(), $(document.body).height())
[551] Fix | Delete
[552] Fix | Delete
if (typeof offset != 'object') offsetBottom = offsetTop = offset
[553] Fix | Delete
if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element)
[554] Fix | Delete
if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element)
[555] Fix | Delete
[556] Fix | Delete
var affix = this.getState(scrollHeight, height, offsetTop, offsetBottom)
[557] Fix | Delete
[558] Fix | Delete
if (this.affixed != affix) {
[559] Fix | Delete
if (this.unpin != null) this.$element.css('top', '')
[560] Fix | Delete
[561] Fix | Delete
var affixType = 'affix' + (affix ? '-' + affix : '')
[562] Fix | Delete
var e = $.Event(affixType + '.bs.affix')
[563] Fix | Delete
[564] Fix | Delete
this.$element.trigger(e)
[565] Fix | Delete
[566] Fix | Delete
if (e.isDefaultPrevented()) return
[567] Fix | Delete
[568] Fix | Delete
this.affixed = affix
[569] Fix | Delete
this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null
[570] Fix | Delete
[571] Fix | Delete
this.$element
[572] Fix | Delete
.removeClass(Affix.RESET)
[573] Fix | Delete
.addClass(affixType)
[574] Fix | Delete
.trigger(affixType.replace('affix', 'affixed') + '.bs.affix')
[575] Fix | Delete
}
[576] Fix | Delete
[577] Fix | Delete
if (affix == 'bottom') {
[578] Fix | Delete
this.$element.offset({
[579] Fix | Delete
top: scrollHeight - height - offsetBottom
[580] Fix | Delete
})
[581] Fix | Delete
}
[582] Fix | Delete
}
[583] Fix | Delete
[584] Fix | Delete
[585] Fix | Delete
// AFFIX PLUGIN DEFINITION
[586] Fix | Delete
// =======================
[587] Fix | Delete
[588] Fix | Delete
function Plugin(option) {
[589] Fix | Delete
return this.each(function () {
[590] Fix | Delete
var $this = $(this)
[591] Fix | Delete
var data = $this.data('bs.affix')
[592] Fix | Delete
var options = typeof option == 'object' && option
[593] Fix | Delete
[594] Fix | Delete
if (!data) $this.data('bs.affix', (data = new Affix(this, options)))
[595] Fix | Delete
if (typeof option == 'string') data[option]()
[596] Fix | Delete
})
[597] Fix | Delete
}
[598] Fix | Delete
[599] Fix | Delete
var old = $.fn.affix
[600] Fix | Delete
[601] Fix | Delete
$.fn.affix = Plugin
[602] Fix | Delete
$.fn.affix.Constructor = Affix
[603] Fix | Delete
[604] Fix | Delete
[605] Fix | Delete
// AFFIX NO CONFLICT
[606] Fix | Delete
// =================
[607] Fix | Delete
[608] Fix | Delete
$.fn.affix.noConflict = function () {
[609] Fix | Delete
$.fn.affix = old
[610] Fix | Delete
return this
[611] Fix | Delete
}
[612] Fix | Delete
[613] Fix | Delete
[614] Fix | Delete
// AFFIX DATA-API
[615] Fix | Delete
// ==============
[616] Fix | Delete
[617] Fix | Delete
$(window).on('load', function () {
[618] Fix | Delete
$('[data-spy="affix"]').each(function () {
[619] Fix | Delete
var $spy = $(this)
[620] Fix | Delete
var data = $spy.data()
[621] Fix | Delete
[622] Fix | Delete
data.offset = data.offset || {}
[623] Fix | Delete
[624] Fix | Delete
if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom
[625] Fix | Delete
if (data.offsetTop != null) data.offset.top = data.offsetTop
[626] Fix | Delete
[627] Fix | Delete
Plugin.call($spy, data)
[628] Fix | Delete
})
[629] Fix | Delete
})
[630] Fix | Delete
[631] Fix | Delete
}(jQuery);
[632] Fix | Delete
[633] Fix | Delete
/* ========================================================================
[634] Fix | Delete
* Bootstrap: collapse.js v3.4.1
[635] Fix | Delete
* https://getbootstrap.com/docs/3.4/javascript/#collapse
[636] Fix | Delete
* ========================================================================
[637] Fix | Delete
* Copyright 2011-2019 Twitter, Inc.
[638] Fix | Delete
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
[639] Fix | Delete
* ======================================================================== */
[640] Fix | Delete
[641] Fix | Delete
/* jshint latedef: false */
[642] Fix | Delete
[643] Fix | Delete
+function ($) {
[644] Fix | Delete
'use strict';
[645] Fix | Delete
[646] Fix | Delete
// COLLAPSE PUBLIC CLASS DEFINITION
[647] Fix | Delete
// ================================
[648] Fix | Delete
[649] Fix | Delete
var Collapse = function (element, options) {
[650] Fix | Delete
this.$element = $(element)
[651] Fix | Delete
this.options = $.extend({}, Collapse.DEFAULTS, options)
[652] Fix | Delete
this.$trigger = $('[data-toggle="collapse"][href="#' + element.id + '"],' +
[653] Fix | Delete
'[data-toggle="collapse"][data-target="#' + element.id + '"]')
[654] Fix | Delete
this.transitioning = null
[655] Fix | Delete
[656] Fix | Delete
if (this.options.parent) {
[657] Fix | Delete
this.$parent = this.getParent()
[658] Fix | Delete
} else {
[659] Fix | Delete
this.addAriaAndCollapsedClass(this.$element, this.$trigger)
[660] Fix | Delete
}
[661] Fix | Delete
[662] Fix | Delete
if (this.options.toggle) this.toggle()
[663] Fix | Delete
}
[664] Fix | Delete
[665] Fix | Delete
Collapse.VERSION = '3.4.1'
[666] Fix | Delete
[667] Fix | Delete
Collapse.TRANSITION_DURATION = 350
[668] Fix | Delete
[669] Fix | Delete
Collapse.DEFAULTS = {
[670] Fix | Delete
toggle: true
[671] Fix | Delete
}
[672] Fix | Delete
[673] Fix | Delete
Collapse.prototype.dimension = function () {
[674] Fix | Delete
var hasWidth = this.$element.hasClass('width')
[675] Fix | Delete
return hasWidth ? 'width' : 'height'
[676] Fix | Delete
}
[677] Fix | Delete
[678] Fix | Delete
Collapse.prototype.show = function () {
[679] Fix | Delete
if (this.transitioning || this.$element.hasClass('in')) return
[680] Fix | Delete
[681] Fix | Delete
var activesData
[682] Fix | Delete
var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing')
[683] Fix | Delete
[684] Fix | Delete
if (actives && actives.length) {
[685] Fix | Delete
activesData = actives.data('bs.collapse')
[686] Fix | Delete
if (activesData && activesData.transitioning) return
[687] Fix | Delete
}
[688] Fix | Delete
[689] Fix | Delete
var startEvent = $.Event('show.bs.collapse')
[690] Fix | Delete
this.$element.trigger(startEvent)
[691] Fix | Delete
if (startEvent.isDefaultPrevented()) return
[692] Fix | Delete
[693] Fix | Delete
if (actives && actives.length) {
[694] Fix | Delete
Plugin.call(actives, 'hide')
[695] Fix | Delete
activesData || actives.data('bs.collapse', null)
[696] Fix | Delete
}
[697] Fix | Delete
[698] Fix | Delete
var dimension = this.dimension()
[699] Fix | Delete
[700] Fix | Delete
this.$element
[701] Fix | Delete
.removeClass('collapse')
[702] Fix | Delete
.addClass('collapsing')[dimension](0)
[703] Fix | Delete
.attr('aria-expanded', true)
[704] Fix | Delete
[705] Fix | Delete
this.$trigger
[706] Fix | Delete
.removeClass('collapsed')
[707] Fix | Delete
.attr('aria-expanded', true)
[708] Fix | Delete
[709] Fix | Delete
this.transitioning = 1
[710] Fix | Delete
[711] Fix | Delete
var complete = function () {
[712] Fix | Delete
this.$element
[713] Fix | Delete
.removeClass('collapsing')
[714] Fix | Delete
.addClass('collapse in')[dimension]('')
[715] Fix | Delete
this.transitioning = 0
[716] Fix | Delete
this.$element
[717] Fix | Delete
.trigger('shown.bs.collapse')
[718] Fix | Delete
}
[719] Fix | Delete
[720] Fix | Delete
if (!$.support.transition) return complete.call(this)
[721] Fix | Delete
[722] Fix | Delete
var scrollSize = $.camelCase(['scroll', dimension].join('-'))
[723] Fix | Delete
[724] Fix | Delete
this.$element
[725] Fix | Delete
.one('bsTransitionEnd', $.proxy(complete, this))
[726] Fix | Delete
.emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize])
[727] Fix | Delete
}
[728] Fix | Delete
[729] Fix | Delete
Collapse.prototype.hide = function () {
[730] Fix | Delete
if (this.transitioning || !this.$element.hasClass('in')) return
[731] Fix | Delete
[732] Fix | Delete
var startEvent = $.Event('hide.bs.collapse')
[733] Fix | Delete
this.$element.trigger(startEvent)
[734] Fix | Delete
if (startEvent.isDefaultPrevented()) return
[735] Fix | Delete
[736] Fix | Delete
var dimension = this.dimension()
[737] Fix | Delete
[738] Fix | Delete
this.$element[dimension](this.$element[dimension]())[0].offsetHeight
[739] Fix | Delete
[740] Fix | Delete
this.$element
[741] Fix | Delete
.addClass('collapsing')
[742] Fix | Delete
.removeClass('collapse in')
[743] Fix | Delete
.attr('aria-expanded', false)
[744] Fix | Delete
[745] Fix | Delete
this.$trigger
[746] Fix | Delete
.addClass('collapsed')
[747] Fix | Delete
.attr('aria-expanded', false)
[748] Fix | Delete
[749] Fix | Delete
this.transitioning = 1
[750] Fix | Delete
[751] Fix | Delete
var complete = function () {
[752] Fix | Delete
this.transitioning = 0
[753] Fix | Delete
this.$element
[754] Fix | Delete
.removeClass('collapsing')
[755] Fix | Delete
.addClass('collapse')
[756] Fix | Delete
.trigger('hidden.bs.collapse')
[757] Fix | Delete
}
[758] Fix | Delete
[759] Fix | Delete
if (!$.support.transition) return complete.call(this)
[760] Fix | Delete
[761] Fix | Delete
this.$element
[762] Fix | Delete
[dimension](0)
[763] Fix | Delete
.one('bsTransitionEnd', $.proxy(complete, this))
[764] Fix | Delete
.emulateTransitionEnd(Collapse.TRANSITION_DURATION)
[765] Fix | Delete
}
[766] Fix | Delete
[767] Fix | Delete
Collapse.prototype.toggle = function () {
[768] Fix | Delete
this[this.$element.hasClass('in') ? 'hide' : 'show']()
[769] Fix | Delete
}
[770] Fix | Delete
[771] Fix | Delete
Collapse.prototype.getParent = function () {
[772] Fix | Delete
return $(document).find(this.options.parent)
[773] Fix | Delete
.find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]')
[774] Fix | Delete
.each($.proxy(function (i, element) {
[775] Fix | Delete
var $element = $(element)
[776] Fix | Delete
this.addAriaAndCollapsedClass(getTargetFromTrigger($element), $element)
[777] Fix | Delete
}, this))
[778] Fix | Delete
.end()
[779] Fix | Delete
}
[780] Fix | Delete
[781] Fix | Delete
Collapse.prototype.addAriaAndCollapsedClass = function ($element, $trigger) {
[782] Fix | Delete
var isOpen = $element.hasClass('in')
[783] Fix | Delete
[784] Fix | Delete
$element.attr('aria-expanded', isOpen)
[785] Fix | Delete
$trigger
[786] Fix | Delete
.toggleClass('collapsed', !isOpen)
[787] Fix | Delete
.attr('aria-expanded', isOpen)
[788] Fix | Delete
}
[789] Fix | Delete
[790] Fix | Delete
function getTargetFromTrigger($trigger) {
[791] Fix | Delete
var href
[792] Fix | Delete
var target = $trigger.attr('data-target')
[793] Fix | Delete
|| (href = $trigger.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7
[794] Fix | Delete
[795] Fix | Delete
return $(document).find(target)
[796] Fix | Delete
}
[797] Fix | Delete
[798] Fix | Delete
[799] Fix | Delete
// COLLAPSE PLUGIN DEFINITION
[800] Fix | Delete
// ==========================
[801] Fix | Delete
[802] Fix | Delete
function Plugin(option) {
[803] Fix | Delete
return this.each(function () {
[804] Fix | Delete
var $this = $(this)
[805] Fix | Delete
var data = $this.data('bs.collapse')
[806] Fix | Delete
var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)
[807] Fix | Delete
[808] Fix | Delete
if (!data && options.toggle && /show|hide/.test(option)) options.toggle = false
[809] Fix | Delete
if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))
[810] Fix | Delete
if (typeof option == 'string') data[option]()
[811] Fix | Delete
})
[812] Fix | Delete
}
[813] Fix | Delete
[814] Fix | Delete
var old = $.fn.collapse
[815] Fix | Delete
[816] Fix | Delete
$.fn.collapse = Plugin
[817] Fix | Delete
$.fn.collapse.Constructor = Collapse
[818] Fix | Delete
[819] Fix | Delete
[820] Fix | Delete
// COLLAPSE NO CONFLICT
[821] Fix | Delete
// ====================
[822] Fix | Delete
[823] Fix | Delete
$.fn.collapse.noConflict = function () {
[824] Fix | Delete
$.fn.collapse = old
[825] Fix | Delete
return this
[826] Fix | Delete
}
[827] Fix | Delete
[828] Fix | Delete
[829] Fix | Delete
// COLLAPSE DATA-API
[830] Fix | Delete
// =================
[831] Fix | Delete
[832] Fix | Delete
$(document).on('click.bs.collapse.data-api', '[data-toggle="collapse"]', function (e) {
[833] Fix | Delete
var $this = $(this)
[834] Fix | Delete
[835] Fix | Delete
if (!$this.attr('data-target')) e.preventDefault()
[836] Fix | Delete
[837] Fix | Delete
var $target = getTargetFromTrigger($this)
[838] Fix | Delete
var data = $target.data('bs.collapse')
[839] Fix | Delete
var option = data ? 'toggle' : $this.data()
[840] Fix | Delete
[841] Fix | Delete
Plugin.call($target, option)
[842] Fix | Delete
})
[843] Fix | Delete
[844] Fix | Delete
}(jQuery);
[845] Fix | Delete
[846] Fix | Delete
/* ========================================================================
[847] Fix | Delete
* Bootstrap: scrollspy.js v3.4.1
[848] Fix | Delete
* https://getbootstrap.com/docs/3.4/javascript/#scrollspy
[849] Fix | Delete
* ========================================================================
[850] Fix | Delete
* Copyright 2011-2019 Twitter, Inc.
[851] Fix | Delete
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
[852] Fix | Delete
* ======================================================================== */
[853] Fix | Delete
[854] Fix | Delete
[855] Fix | Delete
+function ($) {
[856] Fix | Delete
'use strict';
[857] Fix | Delete
[858] Fix | Delete
// SCROLLSPY CLASS DEFINITION
[859] Fix | Delete
// ==========================
[860] Fix | Delete
[861] Fix | Delete
function ScrollSpy(element, options) {
[862] Fix | Delete
this.$body = $(document.body)
[863] Fix | Delete
this.$scrollElement = $(element).is(document.body) ? $(window) : $(element)
[864] Fix | Delete
this.options = $.extend({}, ScrollSpy.DEFAULTS, options)
[865] Fix | Delete
this.selector = (this.options.target || '') + ' .nav li > a'
[866] Fix | Delete
this.offsets = []
[867] Fix | Delete
this.targets = []
[868] Fix | Delete
this.activeTarget = null
[869] Fix | Delete
this.scrollHeight = 0
[870] Fix | Delete
[871] Fix | Delete
this.$scrollElement.on('scroll.bs.scrollspy', $.proxy(this.process, this))
[872] Fix | Delete
this.refresh()
[873] Fix | Delete
this.process()
[874] Fix | Delete
}
[875] Fix | Delete
[876] Fix | Delete
ScrollSpy.VERSION = '3.4.1'
[877] Fix | Delete
[878] Fix | Delete
ScrollSpy.DEFAULTS = {
[879] Fix | Delete
offset: 10
[880] Fix | Delete
}
[881] Fix | Delete
[882] Fix | Delete
ScrollSpy.prototype.getScrollHeight = function () {
[883] Fix | Delete
return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight)
[884] Fix | Delete
}
[885] Fix | Delete
[886] Fix | Delete
ScrollSpy.prototype.refresh = function () {
[887] Fix | Delete
var that = this
[888] Fix | Delete
var offsetMethod = 'offset'
[889] Fix | Delete
var offsetBase = 0
[890] Fix | Delete
[891] Fix | Delete
this.offsets = []
[892] Fix | Delete
this.targets = []
[893] Fix | Delete
this.scrollHeight = this.getScrollHeight()
[894] Fix | Delete
[895] Fix | Delete
if (!$.isWindow(this.$scrollElement[0])) {
[896] Fix | Delete
offsetMethod = 'position'
[897] Fix | Delete
offsetBase = this.$scrollElement.scrollTop()
[898] Fix | Delete
}
[899] Fix | Delete
[900] Fix | Delete
this.$body
[901] Fix | Delete
.find(this.selector)
[902] Fix | Delete
.map(function () {
[903] Fix | Delete
var $el = $(this)
[904] Fix | Delete
var href = $el.data('target') || $el.attr('href')
[905] Fix | Delete
var $href = /^#./.test(href) && $(href)
[906] Fix | Delete
[907] Fix | Delete
return ($href
[908] Fix | Delete
&& $href.length
[909] Fix | Delete
&& $href.is(':visible')
[910] Fix | Delete
&& [[$href[offsetMethod]().top + offsetBase, href]]) || null
[911] Fix | Delete
})
[912] Fix | Delete
.sort(function (a, b) { return a[0] - b[0] })
[913] Fix | Delete
.each(function () {
[914] Fix | Delete
that.offsets.push(this[0])
[915] Fix | Delete
that.targets.push(this[1])
[916] Fix | Delete
})
[917] Fix | Delete
}
[918] Fix | Delete
[919] Fix | Delete
ScrollSpy.prototype.process = function () {
[920] Fix | Delete
var scrollTop = this.$scrollElement.scrollTop() + this.options.offset
[921] Fix | Delete
var scrollHeight = this.getScrollHeight()
[922] Fix | Delete
var maxScroll = this.options.offset + scrollHeight - this.$scrollElement.height()
[923] Fix | Delete
var offsets = this.offsets
[924] Fix | Delete
var targets = this.targets
[925] Fix | Delete
var activeTarget = this.activeTarget
[926] Fix | Delete
var i
[927] Fix | Delete
[928] Fix | Delete
if (this.scrollHeight != scrollHeight) {
[929] Fix | Delete
this.refresh()
[930] Fix | Delete
}
[931] Fix | Delete
[932] Fix | Delete
if (scrollTop >= maxScroll) {
[933] Fix | Delete
return activeTarget != (i = targets[targets.length - 1]) && this.activate(i)
[934] Fix | Delete
}
[935] Fix | Delete
[936] Fix | Delete
if (activeTarget && scrollTop < offsets[0]) {
[937] Fix | Delete
this.activeTarget = null
[938] Fix | Delete
return this.clear()
[939] Fix | Delete
}
[940] Fix | Delete
[941] Fix | Delete
for (i = offsets.length; i--;) {
[942] Fix | Delete
activeTarget != targets[i]
[943] Fix | Delete
&& scrollTop >= offsets[i]
[944] Fix | Delete
&& (offsets[i + 1] === undefined || scrollTop < offsets[i + 1])
[945] Fix | Delete
&& this.activate(targets[i])
[946] Fix | Delete
}
[947] Fix | Delete
}
[948] Fix | Delete
[949] Fix | Delete
ScrollSpy.prototype.activate = function (target) {
[950] Fix | Delete
this.activeTarget = target
[951] Fix | Delete
[952] Fix | Delete
this.clear()
[953] Fix | Delete
[954] Fix | Delete
var selector = this.selector +
[955] Fix | Delete
'[data-target="' + target + '"],' +
[956] Fix | Delete
this.selector + '[href="' + target + '"]'
[957] Fix | Delete
[958] Fix | Delete
var active = $(selector)
[959] Fix | Delete
.parents('li')
[960] Fix | Delete
.addClass('active')
[961] Fix | Delete
[962] Fix | Delete
if (active.parent('.dropdown-menu').length) {
[963] Fix | Delete
active = active
[964] Fix | Delete
.closest('li.dropdown')
[965] Fix | Delete
.addClass('active')
[966] Fix | Delete
}
[967] Fix | Delete
[968] Fix | Delete
active.trigger('activate.bs.scrollspy')
[969] Fix | Delete
}
[970] Fix | Delete
[971] Fix | Delete
ScrollSpy.prototype.clear = function () {
[972] Fix | Delete
$(this.selector)
[973] Fix | Delete
.parentsUntil(this.options.target, '.active')
[974] Fix | Delete
.removeClass('active')
[975] Fix | Delete
}
[976] Fix | Delete
[977] Fix | Delete
[978] Fix | Delete
// SCROLLSPY PLUGIN DEFINITION
[979] Fix | Delete
// ===========================
[980] Fix | Delete
[981] Fix | Delete
function Plugin(option) {
[982] Fix | Delete
return this.each(function () {
[983] Fix | Delete
var $this = $(this)
[984] Fix | Delete
var data = $this.data('bs.scrollspy')
[985] Fix | Delete
var options = typeof option == 'object' && option
[986] Fix | Delete
[987] Fix | Delete
if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options)))
[988] Fix | Delete
if (typeof option == 'string') data[option]()
[989] Fix | Delete
})
[990] Fix | Delete
}
[991] Fix | Delete
[992] Fix | Delete
var old = $.fn.scrollspy
[993] Fix | Delete
[994] Fix | Delete
$.fn.scrollspy = Plugin
[995] Fix | Delete
$.fn.scrollspy.Constructor = ScrollSpy
[996] Fix | Delete
[997] Fix | Delete
[998] Fix | Delete
// SCROLLSPY NO CONFLICT
[999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function