1var espaceClient = { 2 init: function () { 3 espaceClient.submitOnEnter(); 4 espaceClient.formValidate(); 5 }, 6 submitOnEnter: function () { 7 $(document.body).keyup(function (e) { 8 13 === e.which && $("#btn-se-connecter").click(); 9 }); 10 }, 11 formValidate: function () { 12 $(".js-prevent-submit").on("submit", function (e) { 13 e.preventDefault(); 14 }), 15 $(".js-form-validate").each(function () { 16 ($thisFormValidate = $(this)), 17 (espaceClient.validator = $thisFormValidate.validate({ 18 highlight: function (e, t, i) { 19 $(e).closest(".js-field").addClass("error"); 20 if (document.querySelector("#btn-se-connecter")) { 21 document.querySelector("#btn-se-connecter").disabled = false; 22 } 23 if (document.querySelector("#btn-se-connecterDblAuth")) { 24 document.querySelector("#btn-se-connecterDblAuth").disabled = false; 25 } 26 }, 27 unhighlight: function (e, t, i) { 28 $(e).closest(".js-field").removeClass("error"); 29 if (document.querySelector("#btn-se-connecter")) { 30 document.querySelector("#btn-se-connecter").disabled = false; 31 } 32 if (document.querySelector("#btn-se-connecterDblAuth")) { 33 document.querySelector("#btn-se-connecterDblAuth").disabled = false; 34 } 35 }, 36 errorPlacement: function (e, t) { 37 e.appendTo(t.closest(".js-field")); 38 }, 39 submitHandler: function (e) { 40 if (document.querySelector("#btn-se-connecter")) { 41 document.querySelector("#btn-se-connecter").disabled = true; 42 } 43 if (document.querySelector("#btn-se-connecterDblAuth")) { 44 document.querySelector("#btn-se-connecterDblAuth").disabled = true; 45 } 46 e.submit(); 47 }, 48 })), 49 $thisFormValidate.keydown(function (e) { 50 if (13 == e.keyCode) return e.preventDefault(), !1; 51 }); 52 }), 53 $(".selectpicker").on("changed.bs.select", function (e) { 54 espaceClient.validator.errorList.length && espaceClient.formReValidate(); 55 }); 56 }, 57 formReValidate: function () { 58 espaceClient.validator.form(); 59 }, 60 resize: function () { 61 (resizeHandler = function () { }), 62 espaceClient.resizeTimeout && (clearTimeout(espaceClient.resizeTimeout), 63 (espaceClient.resizeTimeout = null)), 64 (espaceClient.resizeTimeout = setTimeout(resizeHandler, 65 vdm.resizeTimeoutDelay)); 66 }, 67 scroll: function () { 68 (scrollHandler = function () { }), 69 espaceClient.scrollTimeout && (clearTimeout(espaceClient.scrollTimeout), 70 (espaceClient.scrollTimeout = null)), 71 (espaceClient.scrollTimeout = setTimeout(scrollHandler, 72 vdm.scrollTimeoutDelay)); 73 }, 74}; 75$(document).ready(espaceClient.init);
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.