1"use strict"; 2 3$(document).on('click', '.js-search-open', function (e) { 4 e.preventDefault(); 5 $('.js-search-form-header').addClass('visible'); 6}); 7 8$(document).on('click', '.js-search-header-close', function (e) { 9 e.preventDefault(); 10 $('.js-search-form-header').removeClass('visible'); 11}); 12 13 14$(document).on('click', '.js-mobile-search', function (e) { 15 e.preventDefault(); 16 $('.js-search-form-mobile').addClass('visible'); 17}); 18 19$(document).on('click', '.js-search-form-mobile-close', function (e) { 20 e.preventDefault(); 21 $('.js-search-form-mobile').removeClass('visible'); 22}); 23 24$(document).on('change', '.js-search-header-input', function() { 25 var $this = $(this); 26 searchInputChange($this); 27}); 28 29$(document).on('change', '.js-search-form-mobile-input', function() { 30 var $this = $(this); 31 searchInputChange($this); 32}); 33 34function searchInputChange($this) { 35 var valueInput = $this.val(); 36 37 if ($this.is('.js-search-header-input')) { 38 $('.js-search-form-mobile-input').val(valueInput); 39 } else { 40 $('.js-search-header-input').val(valueInput); 41 } 42}; 43 44$(document).on('click', '.js-search-menu-link', function(e) { 45 // e.preventDefault(); 46 47 $('.js-search-menu-link').removeClass('current'); 48 $(this).addClass('current'); 49 50 var linkName = $(this).data('text'); 51 52 $('.js-search-result-select li').each(function() { 53 var $this = $(this); 54 if ($this.data('val') == linkName) { 55 $this.trigger('click'); 56 } 57 }) 58}); 59 60$(document).on('click', '.js-search-result-select li', function() { 61 currentSearchMenuChange(); 62}); 63 64$(document).on('click', '.js-result-search-close', function(e) { 65 e.preventDefault(); 66 $('.js-result-search-input').val(''); 67})
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.