|
1 |
| -// Copyright (c) 2019 Uber Technologies, Inc. |
| 1 | +// Copyright (c) 2019 Chris DeMartini |
2 | 2 | //
|
3 | 3 | // Permission is hereby granted, free of charge, to any person obtaining a copy
|
4 | 4 | // of this software and associated documentation files (the "Software"), to deal
|
@@ -189,7 +189,7 @@ Components.utils.getBreakpoint = function () {
|
189 | 189 | '(min-width:' + Components.utils.breakpoints.tabletMin + 'px) and (max-width: ' +
|
190 | 190 | Components.utils.breakpoints.tabletMax + 'px)'
|
191 | 191 | ).matches;
|
192 |
| - |
| 192 | + |
193 | 193 | isDesktop = matchMedia(
|
194 | 194 | '(min-width: ' + Components.utils.breakpoints.desktopMin + 'px)'
|
195 | 195 | ).matches;
|
@@ -2236,7 +2236,7 @@ Components.AccordionGrid = function (element, options) {
|
2236 | 2236 | duration: 500,
|
2237 | 2237 | easing: "easeInOutQuart"
|
2238 | 2238 | };
|
2239 |
| - |
| 2239 | + |
2240 | 2240 | if ($triggers.length && $lists.length) {
|
2241 | 2241 | // Run setup
|
2242 | 2242 | setup();
|
@@ -2369,12 +2369,12 @@ Components.loadingOverlay = {};
|
2369 | 2369 | '</div>' +
|
2370 | 2370 | '</div>'),
|
2371 | 2371 | offsetY = Components.utils.getElementViewPortCenter($element);
|
2372 |
| - |
| 2372 | + |
2373 | 2373 | // Allow custom modifier.
|
2374 | 2374 | if (modifier) {
|
2375 | 2375 | $overlay.addClass(modifier);
|
2376 | 2376 | }
|
2377 |
| - |
| 2377 | + |
2378 | 2378 | $overlay.find('.loader').css('top', offsetY);
|
2379 | 2379 | $overlay.prependTo($element)
|
2380 | 2380 | };
|
@@ -2529,7 +2529,7 @@ Components.modalMessage = {};
|
2529 | 2529 | };
|
2530 | 2530 | }( jQuery ));
|
2531 | 2531 | ;
|
2532 |
| -/** |
| 2532 | +/** |
2533 | 2533 | * Reveal content component interaction
|
2534 | 2534 | * See jquery.contentReveal.js for details
|
2535 | 2535 | */
|
@@ -3949,15 +3949,15 @@ Components.searchFacet = {
|
3949 | 3949 | // Attach our DOM-ready callback.
|
3950 | 3950 | jQuery(Components.searchFacet.ready);
|
3951 | 3951 | ;
|
3952 |
| -/** |
| 3952 | +/** |
3953 | 3953 | * Search Highlight utility.
|
3954 | 3954 | *
|
3955 | 3955 | * Searches through a list of items and highlights items that match the term.
|
3956 | 3956 | */
|
3957 | 3957 | (function($){
|
3958 | 3958 | $(document).ready(function(){
|
3959 | 3959 | var $searches = $('.search-highlight input[type="search"]');
|
3960 |
| - |
| 3960 | + |
3961 | 3961 | if ($searches.length) {
|
3962 | 3962 | $searches.each(function(index, el) {
|
3963 | 3963 | var $search = $(el),
|
|
0 commit comments