1 2function myChangeHandler() 3 { 4 if (this.options[this.selectedIndex].value!="") 5 {window.open(this.options[this.selectedIndex].value,'_self');} 6 } 7 8function les_ecrits(choix) 9 10 { 11 12 var lefiltre = choix; 13 var url4D="/4DACTION/Ajax_Ecrit_Liste/"+lefiltre; 14 15 16 $.ajax({ 17 18 url: url4D, 19 20 success : function (data) { 21 22 23 $("#ecrit_liste").empty().append(data); 24 les_ecrits_nombre(lefiltre); 25 26 }, 27 error: function(XMLHttpRequest, textStatus, errorThrown) 28 { 29 //alert("coucou"); 30 } 31 32 }); 33 34 } 35 36 37function les_ecrits_tries(tri) 38 39 { 40 41 var letri = tri; 42 43 $.ajax({ 44 45 url: "/4DACTION/Ajax_Ecrit_Tri/"+letri, 46 47 success : function (data) { 48 49 $("#ecrit_liste").empty().append(data); 50 51 }, 52 error: function(XMLHttpRequest, textStatus, errorThrown) 53 { 54 //alert(errorThrown); 55 } 56 57 }); 58 59 } 60 61function les_ecrits_nombre(choix) 62 63 { 64 65 $.ajax({ 66 67 url: "/4DACTION/Ajax_Ecrit_Nombre/"+choix, 68 type: "POST", 69 dataType: "json", 70 success : function (data) 71 72 { 73 74 for (var i = 0; i < data.length; i++) { 75 76 $("#"+data[i].nom).empty().append("("+data[i].valeur+")") 77 $("#"+data[i].lien).removeClass("text-blanc link-editorial"); 78 if (data[i].valeur==0) 79 { 80 $("#"+data[i].lien).prop("href", "#"); 81 } 82 83 else 84 85 { 86 $("#"+data[i].lien).prop("href", "javascript:les_ecrits('"+data[i].choix+"');"); 87 88 } 89 90 les_ecrits_lien(choix); 91 92 93 } 94 95 }, 96 97 error: function(XMLHttpRequest, textStatus, errorThrown) 98 { 99 //alert(errorThrown); 100 } 101 102 }); 103 104 } 105 106 function les_ecrits_lien(choix) 107 108 { 109 110 switch (choix) 111 { 112 case 'tout' : 113 $("#ecrit_lien_tout").addClass("text-blanc"); 114 $("#ecrit_lien_critique").addClass("text-blanc link-editorial"); 115 $("#ecrit_lien_entretien").addClass("text-blanc link-editorial"); 116 $("#ecrit_lien_portrait").addClass("text-blanc link-editorial"); 117 $("#select_tri").show(); 118 break; 119 120 case 'critique' : 121 $("#ecrit_lien_tout").addClass("text-blanc link-editorial"); 122 $("#ecrit_lien_critique").addClass("text-blanc"); 123 $("#ecrit_lien_entretien").addClass("text-blanc link-editorial"); 124 $("#ecrit_lien_portrait").addClass("text-blanc link-editorial"); 125 $("#select_tri").show(); 126 break; 127 128 case 'entretien' : 129 $("#ecrit_lien_tout").addClass("text-blanc link-editorial"); 130 $("#ecrit_lien_critique").addClass("text-blanc link-editorial"); 131 $("#ecrit_lien_entretien").addClass("text-blanc"); 132 $("#ecrit_lien_portrait").addClass("text-blanc link-editorial"); 133 $("#select_tri").show(); 134 break; 135 136 case 'portrait' : 137 $("#ecrit_lien_tout").addClass("text-blanc link-editorial"); 138 $("#ecrit_lien_critique").addClass("text-blanc link-editorial"); 139 $("#ecrit_lien_entretien").addClass("text-blanc link-editorial"); 140 $("#ecrit_lien_portrait").addClass("text-blanc"); 141 $("#select_tri").hide(); 142 break; 143 144 145 } 146 147 148 }
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.