1(function($) { 2 $.extend(window.wpConfig, { 3 navigationArrows: '<span class="circle-left fp-icon-caret-left-rounded disabled"></span><span class="circle-right fp-icon-caret-right-rounded"></span>' 4 ,desktopNavigationArrows: 'fp-icon-caret-down' 5 ,mobileNavigationArrows: 'fp-icon-caret-right' 6 ,miniListId: '#mini-list-indicator' 7 ,hasSiteBanner: true 8 }); 9 10 $(function() { 11 var loc = window.location, 12 origin = loc.protocol + '//' + loc.host; 13 14 $('.wpml-ls-sub-menu') 15 .on('click', 'a[href]', function() { 16 var $this = $(this); 17 if(!$this.prop('href').match(/es/i)) { 18 $.removeCookie('_icl_current_language', {path: '/', expires: -1}); 19 } 20 }) 21 .find('a[href]') 22 .each(function() { 23 var $this = $(this), 24 path = loc.href.replace(origin, ''); 25 if(path && path[0] != '/') path = '/' + path; 26 path = path.replace(/^\/es?/i, ''); 27 if(path.length == 1) path = ''; 28 var matches = $this.attr('href').replace(origin, '').match(/^\/es?/i), 29 locale = matches && matches[0]; 30 $this.attr('href', origin + (locale || '') + path); 31 }); 32 }); 33})(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.