1function agirSupport() { 2 var dimHauteur = $('#support').height(); 3 var hauteurTitle = 32; 4 var bottom = 20; 5 var deplacement = dimHauteur-hauteurTitle; 6 var position = $('#support').css('bottom'); 7 var anim = deplacement + bottom; 8 9 if (position == '-'+deplacement+'px') { 10 $('#support').animate({ bottom: "+="+anim }, function() { $('#support').css({ boxShadow: '1px 3px 6px #444' }); $('#supportClose').fadeIn(300); }); 11 } else { 12 $('#supportClose').fadeOut(100, function() { $('#support').animate({ bottom: "-="+anim }, function() {$('#support').css({ boxShadow: 'none' });}); }); 13 } 14} 15function lookSupport() { 16 var dimHauteur = $('#support').height(); 17 var hauteurTitle = 32; 18 var placement = dimHauteur-hauteurTitle; 19 $('#support').animate({ bottom: "-"+placement }); 20} 21function closing_erreur(span) { 22 $('#'+span+'').fadeOut(100); 23} 24 25function resetForm10() { 26 $('#supportEmail').val(''); 27 $('#supportMessage').val(''); 28 $('.supportBad').fadeOut(0, function() { $('.supportContent').fadeIn(300); }); 29 $('.supportSuccess').fadeOut(0, function() { $('.supportContent').fadeIn(300); }); 30 lookSupport(); 31} 32$(document).ready(function(e) { 33 34 lookSupport(); 35 36 $('#sendSupport').click(function() { 37 var form = 1; 38 var email = $('#supportEmail').val(); 39 var message = $('#supportMessage').val(); 40 41 if (email == '') { 42 form = 0; 43 $('#emptyEmail').fadeIn(100); 44 setTimeout("closing_erreur('emptyEmail')", 3000); 45 } 46 if (!isEmail(email) && email != '') { 47 form = 0; 48 $('#invalidEmail').fadeIn(100); 49 setTimeout("closing_erreur('invalidEmail')", 3000); 50 } 51 if (message == '') { 52 form = 0; 53 $('#emptyMessage').fadeIn(100); 54 setTimeout("closing_erreur('emptyMessage')", 3000); 55 } 56 if (message.length < 10) { 57 form = 0; 58 $('#emptyMessage').fadeIn(100); 59 setTimeout("closing_erreur('emptyMessage')", 3000); 60 } 61 62 if (form == 1) { 63 var json = { 64 email:email, 65 message:message 66 }; 67 $.ajax({ 68 type:"POST", 69 url:"bat/MailHandler_support.php", 70 data:json, 71 async:false, 72 success:function(html){ 73 74 if (html == 'success') { 75 $('.supportContent').fadeOut(0); 76 $('.supportSuccess').fadeIn(300); 77 78 } else { 79 $('.supportContent').fadeOut(0); 80 $('.supportBad').fadeIn(300); 81 82 } 83 setTimeout("resetForm10()", 5000); 84 } 85 }); 86 87 } 88 89 }); 90});
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.