1jQuery(document).ready(function() { 2 3 $("#btmenu").click(function(){ 4 $('.menu_niveau0').slideToggle('slow'); 5 $('#div_outils').slideToggle('slow'); 6 if ($('#btmenu').html()=="Fermer") 7 $('#btmenu').html('Menu'); 8 else 9 $('#btmenu').html('Fermer'); 10 return false; 11 }); 12 13}); 14 15function charge(cible, url) 16{ 17 document.getElementById(cible).innerHTML = "<center><img src=/images/attente.gif></center>" ; 18 $('#'+cible).load(url) ; 19} 20 21function upload_formulaire(formulaire,nom_div,url_retour) { 22 23 var $form = $('#'+formulaire); 24 var formdata = (window.FormData) ? new FormData($form[0]) : null; 25 var data = (formdata !== null) ? formdata : $form.serialize(); 26 27 document.getElementById(nom_div).innerHTML = "<center><img src=/images/attente.gif style='width:20%;'></center>" ; 28 29 $.ajax({ 30 url: $form.attr('action'), 31 type: $form.attr('method'), 32 contentType: false, // obligatoire pour de l'upload 33 processData: false, // obligatoire pour de l'upload 34 dataType: 'html', // selon le retour attendu 35 data: data, 36 success: function (response) { 37 charge(nom_div,url_retour); 38 } 39 }); 40 } 41 42 43function noEntree(event) 44{ 45 // Compatibilité IE / Firefox 46 if(!event && window.event) { 47 event = window.event; 48 } 49 // IE 50 if(event.keyCode == 13) { 51 event.returnValue = false; 52 event.cancelBubble = true; 53 } 54 // DOM 55 if(event.which == 13) { 56 event.preventDefault(); 57 event.stopPropagation(); 58 } 59} 60 61 62
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.