https://portailsve.franceagrimer.fr/sve-presentation/javax.faces.resource/application.js.xhtml?ln=js
1/** 2 * js du projet application présentation 3 */ 4 5$(document).ready(function() { 6 7 /* 8 * interdire le copier coller dans les champs noPasteInput 9 */ 10 $(".noPasteInput").each(function() { 11 this.onpaste = function() { 12 return false; 13 }; 14 }); 15 16 /* 17 * initialisation menu en accordeon 18 */ 19 $(function() { 20 $("#accordion").accordion({ 21 collapsible : true, 22 active : 3, 23 icons : false, 24 autoHeight : false 25 }); 26 }); 27 28 /* 29 * Comportement menu entete 30 */ 31 $('#nav li').hover(function() { 32 // show its submenu 33 $('ul', this).slideDown(100); 34 35 }, function() { 36 // hide its submenu 37 $('ul', this).slideUp(100); 38 }); 39 40 $("#demande").keyup(function() { 41 var $textarea = $(this); 42 var max = 4000; 43 if ($textarea.val().length > max) { 44 $textarea.val($textarea.val().substr(0, max)); 45 } 46 }); 47 48 $("form").on("keypress", ":input:not(textarea)", function(event) { 49 return event.keyCode != 13; 50 }); 51 52}); 53 54/** 55 * traitement apres upload d'un fichier. permet d'afficher un message d'erreur 56 * (taille excédée) de la meme façon qu'un type de fichier non prévu. 57 * 58 * @param $composant : 59 * composant jquery 60 * @returns 61 */ 62function traitementApresUpload($composant) { 63 // si il existe un texte à afficher 64 var info = $composant.find('.rf-fu-itm-st').text(); 65 if (info != "" && info != "Done") { 66 // affichage du texte en alert() 67 alert(info); //NO SONAR 68 } 69 // suppression des fichiers 70 $composant.find('.rf-fu-btn-cnt-clr').click(); 71}
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.