1var jevjq; 2 3function checkJQ() { 4 //alert(typeof $); 5 if (window.jQuery && jQuery.fn) { 6 jevjq = jQuery.noConflict(); 7 } 8} 9 10checkJQ(); 11 12// Various DOMContentLoaded event handlers 13document.addEventListener('DOMContentLoaded', function () { 14 15 // workaround for tooltips and popovers failing when MooTools is enabled with Bootstrap 3 16 // See http://www.mintjoomla.com/support/community-forum/user-item/1833-braza/48-cobalt-8/2429.html?start=20 17 18 /** Will be true if bootstrap 3 is loaded, false if bootstrap 2 or no bootstrap */ 19 var bootstrap3_enabled = window.jQuery && (typeof jQuery().emulateTransitionEnd == 'function'); 20 21 if (window.MooTools && bootstrap3_enabled) { 22 /** 23 * Workaround based on the code written by JoomlaArt 24 * 25 * @copyright Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved. 26 * @license GNU General Public License version 2 or later; see LICENSE.txt 27 * @authors JoomlArt, JoomlaBamboo, (contribute to this project at github 28 * & Google group to become co-author) 29 *------------------------------------------------------------------------------ 30 */ 31 32 var mtHide = Element.prototype.hide, 33 mtShow = Element.prototype.show, 34 mtSlide = Element.prototype.slide; 35 36 Element.implement({ 37 show: function (args) { 38 if (arguments.callee && 39 arguments.callee.caller && 40 arguments.callee.caller.toString().indexOf('isPropagationStopped') !== -1) { //jquery mark 41 return this; 42 } 43 return jQuery.isFunction(mtShow) && mtShow.apply(this, args); 44 }, 45 46 hide: function () { 47 if (arguments.callee && 48 arguments.callee.caller && 49 arguments.callee.caller.toString().indexOf('isPropagationStopped') !== -1) { //jquery mark 50 return this; 51 } 52 return jQuery.isFunction(mtHide) && mtHide.apply(this, arguments); 53 }, 54 55 slide: function (args) { 56 if (arguments.callee && 57 arguments.callee.caller && 58 arguments.callee.caller.toString().indexOf('isPropagationStopped') !== -1) { //jquery mark 59 return this; 60 } 61 return jQuery.isFunction(mtSlide) && mtSlide.apply(this, args); 62 } 63 }); 64 } 65 66 // disable click event in popover for non-touch devices 67 // Do as a timeout because on a few sites in Joomla 4 this messes up the lazy-stylesheet conversion for some reason 68 window.setTimeout(function() { 69 if (!('ontouchstart' in document.documentElement)) { 70 //alert('non-touch'); 71 var styleEl = document.createElement('style'); 72 73 // Append <style> element to <head> 74 document.head.appendChild(styleEl); 75 76 // Grab style element's sheet 77 var styleSheet = styleEl.sheet; 78 styleSheet.insertRule(" .jev-click-to-open {display:none;}", styleSheet.cssRules.length); 79 } 80 }, 200); 81 82 // Setup tooltip migrations if needed 83 var tips = document.querySelectorAll('.hasjevtip'); 84 tips.forEach(function (el) 85 { 86 var dataTitleAttr = el.getAttribute('data-title') || el.getAttribute('data-original-title') || el.getAttribute('title'); 87 var dataContentAttr = el.getAttribute('data-content') || el.getAttribute('data-original-content'); 88 if (dataTitleAttr) 89 { 90 el.setAttribute('data-bs-original-title', dataTitleAttr); 91 } 92 if (dataContentAttr) 93 { 94 el.setAttribute('data-bs-original-content', dataContentAttr); 95 } 96 97 }) 98});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.