1(function () { 2 $('#header-navbar').find('.form-control-with-search-icon > .form-control') 3 .focus(function () { 4 $(this).parent().addClass('focus'); 5 }) 6 .blur(function () { 7 $(this).parent().removeClass('focus'); 8 }); 9 10 function updateToggleMessage(el) { 11 el.text(el.data('btn-toggle-' + el.data("btn-toggle") + '-message')); 12 } 13 14 $('a[data-btn-toggle]').each(function () { 15 var el = $(this); 16 updateToggleMessage(el); 17 el.addClass('pointer'); 18 el.click(function () { 19 var current = !!el.data('btn-toggle'); 20 var actionHref = el.data('btn-toggle-' + current + '-href'); 21 if (typeof actionHref === 'string') { 22 $.get(actionHref) 23 .done(function (a) { 24 el.data('btn-toggle', !!a); 25 updateToggleMessage(el); 26 }); 27 } 28 }); 29 }); 30})(); 31 32function doHistoryBack() { 33 if ('history' in window) { 34 window.history.back(); 35 return true; 36 } 37 return false; 38}
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.