1(function($) { 2 "use strict"; 3 4 var w = $(window).width(); 5 if (w < 900 ) { 6 var stgPadding = 60; 7 } else { 8 var stgPadding = 100; 9 } 10 11 $('.carousel-feedback').owlCarousel({ 12 center: true, 13 autoWidth:false, 14 loop:true, 15 stagePadding: stgPadding, 16 margin: 20, 17 responsiveClass: true, 18 items : 1, 19 responsive:{ 20 480:{ 21 items:1, 22 }, 23 700:{ 24 items:2, 25 }, 26 1024:{ 27 items:3 28 } 29 } 30 }); 31 32 /*! 33 * Bootstrap 4 multi dropdown navbar ( https://bootstrapthemes.co/demo/resource/bootstrap-4-multi-dropdown-navbar/ ) 34 * Copyright 2017. 35 * Licensed under the GPL license 36 */ 37 38 39 $( '.dropdown-menu a.dropdown-toggle' ).on( 'click', function ( e ) { 40 var $el = $( this ); 41 $el.toggleClass('active-dropdown'); 42 var $parent = $( this ).offsetParent( ".dropdown-menu" ); 43 if ( !$( this ).next().hasClass( 'show' ) ) { 44 $( this ).parents( '.dropdown-menu' ).first().find( '.show' ).removeClass( "show" ); 45 } 46 var $subMenu = $( this ).next( ".dropdown-menu" ); 47 $subMenu.toggleClass( 'show' ); 48 49 $( this ).parent( "li" ).toggleClass( 'show' ); 50 51 $( this ).parents( 'li.nav-item.dropdown.show' ).on( 'hidden.bs.dropdown', function ( e ) { 52 $( '.dropdown-menu .show' ).removeClass( "show" ); 53 $el.removeClass('active-dropdown'); 54 } ); 55 56 if ( !$parent.parent().hasClass( 'navbar-nav' ) ) { 57 $el.next().css( { "top": $el[0].offsetTop, "left": $parent.outerWidth() - 4 } ); 58 } 59 60 return false; 61 }); 62 63 /* IE11 Fix for SP2010 */ 64 if (!Array.from) { 65 Array.from = (function () { 66 var toStr = Object.prototype.toString; 67 var isCallable = function (fn) { 68 return typeof fn === 'function' || toStr.call(fn) === '[object Function]'; 69 }; 70 var toInteger = function (value) { 71 var number = Number(value); 72 if (isNaN(number)) { 73 return 0; 74 } 75 if (number === 0 || !isFinite(number)) { 76 return number; 77 } 78 return ( 79 number > 0 80 ? 1 81 : -1 82 ) * Math.floor(Math.abs(number)); 83 }; 84 var maxSafeInteger = Math.pow(2, 53) - 1; 85 var toLength = function (value) { 86 var len = toInteger(value); 87 return Math.min(Math.max(len, 0), maxSafeInteger); 88 }; 89 90 // The length property of the from method is 1. 91 return function from(arrayLike/*, mapFn, thisArg */) { 92 // 1. Let C be the this value. 93 var C = this; 94 95 // 2. Let items be ToObject(arrayLike). 96 var items = Object(arrayLike); 97 98 // 3. ReturnIfAbrupt(items). 99 if (arrayLike == null) { 100 throw new TypeError( 101 "Array.from requires an array-like object - not null or undefined" 102 ); 103 } 104 105 // 4. If mapfn is undefined, then let mapping be false. 106 var mapFn = arguments.length > 1 107 ? arguments[1] 108 : void undefined; 109 var T; 110 if (typeof mapFn !== 'undefined') { 111 // 5. else 112 // 5. a If IsCallable(mapfn) is false, throw a TypeError exception. 113 if (!isCallable(mapFn)) { 114 throw new TypeError( 115 'Array.from: when provided, the second argument must be a function' 116 ); 117 } 118 119 // 5. b. If thisArg was supplied, let T be thisArg; else let T be undefined. 120 if (arguments.length > 2) { 121 T = arguments[2]; 122 } 123 } 124 125 // 10. Let lenValue be Get(items, "length"). 126 // 11. Let len be ToLength(lenValue). 127 var len = toLength(items.length); 128 129 // 13. If IsConstructor(C) is true, then 130 // 13. a. Let A be the result of calling the [[Construct]] internal method of C 131 // with an argument list containing the single item len. 132 // 14. a. Else, Let A be ArrayCreate(len). 133 var A = isCallable(C) 134 ? Object(new C(len)) 135 : new Array(len); 136 137 // 16. Let k be 0. 138 var k = 0; 139 // 17. Repeat, while k < len⦠(also steps a - h) 140 var kValue; 141 while (k < len) { 142 kValue = items[k]; 143 if (mapFn) { 144 A[k] = typeof T === 'undefined' 145 ? mapFn(kValue, k) 146 : mapFn.call(T, kValue, k); 147 } else { 148 A[k] = kValue; 149 } 150 k += 1; 151 } 152 // 18. Let putStatus be Put(A, "length", len, true). 153 A.length = len; 154 // 20. Return A. 155 return A; 156 }; 157 }()); 158 } 159 160 eva.replace(); 161})(window.jQuery);
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.