1/* Fonction anonyme auto appelée pour déclencher le fonctionnement du search */ 2(function() { 3 function setPlaceHolder() 4 { 5 //Use data-placeholder instead of placeholder cause on IE9 placeholder is not supported 6 $('#searchquery-api').focus(function() { 7 var input = $(this); 8 if (input.val() == input.attr('data-placeholder')) { 9 input.val(''); 10 input.removeClass('placeholder'); 11 } 12 else 13 setTimeout(function() { input.select(); }, 100); //settimeout otherwise not working correctly on Chrome 14 }).blur(function() { 15 var input = $(this); 16 if (input.val() == '' || input.val() == input.attr('data-placeholder')) { 17 input.addClass('placeholder'); 18 input.val(input.attr('data-placeholder')); 19 } 20 }).blur().parents('form').submit(function(evt) { 21 $(this).find('[data-placeholder]').each(function() { 22 var input = $(this); 23 if(input.val() == '' || input.val() == input.attr('data-placeholder')) { 24 evt.preventDefault(); 25 evt.stopPropagation(); 26 } 27 }); 28 }); 29 }; 30 31 /*function moveSearch() 32 { 33 var $leftPanel = $("#leftPanel"); 34 var $searchHolderInLeftPanel = $(".searchHolder", $leftPanel); 35 var $searchHolderInMainPanel = $("#mainPanel .searchHolder").not($searchHolderInLeftPanel); 36 if($leftPanel.is(":visible")) 37 { 38 if($searchHolderInLeftPanel.is(":empty")) 39 $searchHolderInLeftPanel.append($searchHolderInMainPanel.children().detach()); //use detach to keep event on field 40 } 41 else if($searchHolderInMainPanel.is(":empty")) 42 $searchHolderInMainPanel.append($searchHolderInLeftPanel.children().detach()); 43 44 };*/ 45 46 //$(window).resize( moveSearch ); 47 $(document).ready( function(){ setPlaceHolder(); /*moveSearch();*/ }); 48})();
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.