Server : Apache System : Linux ks5.tuic.fr 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 User : pragmatice ( 1003) PHP Version : 8.2.24 Disable Function : NONE Directory : /home/pragmatice/chenavier/public_html/mathieu3/js/ |
$(document).ready(function() { var widthBarre = $('#barre').width(); $('.center').each(function() { if ($(this).prop('id') == "index") return false; else $(this).css('margin-left', widthBarre + 20) }); $('#index').find('.icones').parent().on('mouseover', '.icones', function() { var bulle = $('<span class="bulle">' + $(this).prop('title') + '</span>'); var this_color = $(this).css('background-color'); bulle.css('background-color', this_color); $(this).append(bulle); // alert($(this).prop('id')); }); $('#index').find('.icones').parent().on('mouseout', '.icones', function() { var bulle = $('.bulle'); bulle.remove(); }); $('menu').parent().on('mouseover', '.icones2', function() { var bulle = $('<span class="bulle2">' + $(this).prop('title') + '</span>'); var this_color = $(this).css('background-color'); bulle.css('background-color', this_color); $(this).append(bulle); // alert($(this).prop('id')); }); $('menu').parent().on('mouseout', '.icones2', function() { var bulle = $('.bulle2'); bulle.remove(); }); $('#cv').on('click', 'h2', function() { $(this).next().slideToggle(); }); $("#tr_non").hide(); $("#tr_pe").hide(); $("#tr_oui").hide(); $("#non_textarea").hide(); $("#oui_textarea").hide(); $('#interet_non').click(function() {// On cache la div a afficher et cache les 2 autres $("#tr_pe").hide(); $("#tr_oui").hide(); $("#tr_non").show(); }) $('#non_autre').click(function() { $("#non_textarea").show(); var $this = $(this); if ($this.data('clicked')) { $("#non_textarea").hide(); $this.data('clicked', false); } else { $this.data('clicked', true); $("#non_textarea").show(); } }); $('#interet_pe').click(function() {// On cache la div a afficher et cache les 2 autres $("#tr_non").hide(); $("#tr_oui").hide(); $("#tr_pe").show(); }) $('#interet_oui').click(function() {// On cache la div a afficher et cache les 2 autres $("#tr_non").hide(); $("#tr_pe").hide(); $("#tr_oui").show(); }); $('#oui_autre').click(function() { $("#oui_textarea").show(); var $this = $(this); if ($this.data('clicked')) { $("#oui_textarea").hide(); $this.data('clicked', false); } else { $this.data('clicked', true); $("#oui_textarea").show(); } }); // $("#form_candi").validate() $("#form_candi").validate({ rules: { adresse: { required: true, minlength: 3 }, entreprise: { required: true, minlength: 3 }, mail: { required: true, email: true } }, messages: { adresse: { required: "Veuillez renseigner votre URL", minlength: jQuery.format("Il faut au moins {0} caractères") }, entreprise: { required: "Veuillez renseigner votre entreprise", minlength: jQuery.format("Il faut au moins {0} caractères") }, mail: { required: "Veuillez renseigner votre adresse email", email: "Ce n'est pas un format email valide" } } }); });