1var TIME_COMPLETE_EFFECT = 700; 2var TIME_BEFORE_HIDDING = 6000; 3function showMessageOfTheDay(currentElement, messageId) { 4 $.ajax({ 5 url: '/backoffice/dashboard/getMessageJSON/' + messageId, 6 type: 'GET', 7 success: function (data) { 8 var resp = JSON.parse(data) 9 console.log(resp.messageSubject) 10 $('.modalV2-content #msgTemplat #messageSubject ').html(resp.messageSubject) 11 $('.modalV2-content #msgTemplat #messageContent ').html(resp.messageContent) 12 13 $('.modalV2-content #modalLoadingMsg').addClass('d-none'); 14 $('.modalV2-content #msgTemplat').removeClass('d-none'); 15 }, 16 error: function (data) { 17 var resp = JSON.parse(data.responseText) 18 $('.modalV2-content').html(resp.errorMsg) 19 }, 20 }); 21 const modalId = currentElement.dataset.open; 22 document.getElementById(modalId).classList.add("is-visible"); 23 event.preventDefault(); 24 25} 26 27function resetPassword(currentElement) { 28 if(currentElement.dataset.identifiant){ 29 $.ajax({ 30 url: '/backoffice/administration/resetMotdepasse/' + currentElement.dataset.identifiant, 31 type: 'GET', 32 success: function () { 33 $('.successMsg').show(TIME_COMPLETE_EFFECT); 34 console.log("Reset Password Done") 35 setTimeout(function () { 36 $('.successMsg').hide(TIME_COMPLETE_EFFECT); 37 }, TIME_BEFORE_HIDDING); 38 }, 39 error: function () { 40 console.error("Reset Password Error") 41 }, 42 }); 43 } 44 event.preventDefault(); 45 46} 47 48function annulerRenouvellement(currentElement){ 49 if(currentElement.dataset.identifiant){ 50 $.ajax({ 51 url: '/backoffice/administration/validateAnnulationRenouvellement/' + currentElement.dataset.identifiant, 52 type: 'GET', 53 success: function () { 54 $('.successMsg').show(TIME_COMPLETE_EFFECT); 55 console.log("Reset Renouvellement done") 56 setTimeout(function () { 57 $('.successMsg').hide(TIME_COMPLETE_EFFECT); 58 }, TIME_BEFORE_HIDDING); 59 }, 60 error: function () { 61 console.error("Reset Password Error") 62 }, 63 }); 64 } 65 event.preventDefault(); 66} 67 68function createRenouvellement(currentElement){ 69 if(currentElement.dataset.identifiant){ 70 $.ajax({ 71 url: '/backoffice/administration/validateCreationRenouv/' + currentElement.dataset.identifiant, 72 type: 'GET', 73 success: function () { 74 $('.successMsg').show(TIME_COMPLETE_EFFECT); 75 console.log("Create Renouvellement done") 76 setTimeout(function () { 77 $('.successMsg').hide(TIME_COMPLETE_EFFECT); 78 }, TIME_BEFORE_HIDDING); 79 }, 80 error: function () { 81 $('.errorMsg').show(TIME_COMPLETE_EFFECT); 82 console.error("Create Renouvellement Error") 83 setTimeout(function () { 84 $('.errorMsg').hide(TIME_COMPLETE_EFFECT); 85 }, TIME_BEFORE_HIDDING); 86 }, 87 }); 88 } 89 event.preventDefault(); 90} 91 92function ajoutResponsable() { 93 var html = ''; 94 html += '<div id="inputFormRow">'; 95 html += '<div class="input-group mb-3">'; 96 html += '<input type="text" name="responsables" class="form-control m-input" placeholder="Nom du responsable" autocomplete="off" required>'; 97 html += '<div class="input-group-append">'; 98 html += '<button id="removeRow" type="button" class="btn btn-danger"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-trash" viewBox="0 0 16 16">\n' + 99 ' <path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"/>\n' + 100 ' <path fill-rule="evenodd" d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4L4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"/>\n' + 101 ' </svg></button>'; 102 html += '</div>'; 103 html += '</div>'; 104 105 $('#newRow').append(html); 106 107 108} 109 110// remove row 111$(document).on('click', '#removeRow', function () { 112 $(this).closest('#inputFormRow').remove(); 113});
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.