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/ |
function resizeCarre() { $('.resize_carre').each(function() { $(this).css('height', $(this).width()); }); } $(document).ready(function() { resizeCarre(); $(window).resize(resizeCarre); $('.part_cv h2').on('click', function(){ $(this).parents('.part_cv').find('.part_cv_content').slideToggle(); }); $('#candi .interet input').removeAttr('checked'); $('#candi').on('change', '.interet input', function(){ $('.interet_choix').slideUp(); $('.interet_choix[data-value="'+ $(this).attr('data-value') +'"]').slideDown(); }); $('#candi').on('change', '.data_autre', function(){ var this_txt = $(this).attr('data-autre'); console.log(this_txt); $('#'+$(this).attr('data-autre')).slideToggle(); }); });