www.lemarchand.ci Open in urlscan Pro
2606:4700:3032::6815:26b0  Public Scan

Submitted URL: http://www.lemarchand.ci/wp-content/themes/titan-divi-child-theme/js/titan-custom-scripts.js?ver=1.0
Effective URL: https://www.lemarchand.ci/wp-content/themes/titan-divi-child-theme/js/titan-custom-scripts.js?ver=1.0
Submission: On August 20 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

// Filer Toggle

jQuery(document).ready(function(){
    jQuery(".filter-toggle").click(function(){
        jQuery(".shop-full-filter-column-1").toggleClass("active-filter-toggle");

    });
});	

jQuery(document).ready(function(){
    jQuery(".filter-toggle").click(function(){
        jQuery(".shop-full-filter-column-2").toggleClass("active-filter-toggle-2");

    });
});	

// Collapsing menu

jQuery(function($) {
    $(document).ready(function() {
        $("body ul.et_mobile_menu li.menu-item-has-children, body ul.et_mobile_menu  li.page_item_has_children").append('<a href="#" class="mobile-toggle-icon"></a>');
        $('ul.et_mobile_menu li.menu-item-has-children .mobile-toggle-icon, ul.et_mobile_menu li.page_item_has_children .mobile-toggle-icon').click(function(event) {
            event.preventDefault();
            $(this).parent('li').toggleClass('mobile-toggle-open');
            $(this).parent('li').find('ul.children').first().toggleClass('visible');
            $(this).parent('li').find('ul.sub-menu').first().toggleClass('visible');
        });
        iconFINAL = 'P';
        $('body ul.et_mobile_menu li.menu-item-has-children, body ul.et_mobile_menu li.page_item_has_children').attr('data-icon', iconFINAL);
        $('.mobile-toggle-icon').on('mouseover', function() {
            $(this).parent().addClass('active-toggle');
        }).on('mouseout', function() {
            $(this).parent().removeClass('active-toggle');
        })
    });
});


// Sticky add to cart header product page
	
  jQuery(document).ready(function( $ ) { // When jQuery is ready
  function check_from_top_de(){ // Create our function
    var scroll = $(window).scrollTop(); // Check scroll distance
    if (scroll >= 200) { // If it is equal or more than 300 - you can change this to what you want
      $(".product-sticky-add-to-cart").addClass("show-add-to-cart-header"); // Add custom class to body
    } else {
      $(".product-sticky-add-to-cart").removeClass("show-add-to-cart-header"); // When scrolled to the top, remove the class
    }
  }
  
  check_from_top_de(); // On load, run the function
  
  $(window).scroll(function() { // When scroll - run function
    check_from_top_de();
  });
  
});

// Custom mega menu

jQuery(function($){
$(document).ready(function(){
   
 
$('.dropdown-menu').each(function(i){
   
i = i + 1;
   
var $dropdown = $('.dropdown-menu-' + i);
var $mainMenuItem = $('.first-level-' + i + '>a');
$dropdown.insertAfter($mainMenuItem);
   
});  
   
var $firstLevel = $('.et_mobile_menu .first-level > a');
var $allDropdowns = $('.et_mobile_menu .dropdown-menu');
 
$firstLevel.off('click').click(function() {
 
$(this).attr('href', '#open');  
var $thisDropdown = $(this).siblings(); 
 
$thisDropdown.slideToggle();
$(this).toggleClass('icon-switch');
 
var dropdownSiblings = $allDropdowns.not($thisDropdown);   
dropdownSiblings.slideUp();
 
var $thisFirstLevel = $(this);
var $firstLevelSiblings = $firstLevel.not($thisFirstLevel);
$firstLevelSiblings.removeClass('icon-switch');  
 
});      
   
});
});

// Attend que le DOM soit entièrement chargé
jQuery(document).ready(function($) {
    // Sélectionne le champ de téléphone dans le formulaire de WooCommerce
    var phoneField = $('input#billing_phone'); // Modifier l'ID si nécessaire

    // Applique le plugin de masquage du numéro de téléphone
    phoneField.mask('(000) 000-0000'); // Modifier le format du masque si nécessaire

    // Si vous avez un champ de téléphone pour l'adresse de livraison, vous pouvez également l'appliquer
    var shippingPhoneField = $('input#shipping_phone'); // Modifier l'ID si nécessaire
    shippingPhoneField.mask('(225) 00 00 00 00 00'); // Modifier le format du masque si nécessaire
});