Our Work

JSL Marketing Is Your One-Stop Shop for All Your Marketing and Design Needs. And We’ve Got the Receipts to Prove It.

/** * Filter button click event. * * @param {*} event */ function filterClick(event) { event.preventDefault(); // Exit if button active. if (this.classList.contains(‘active’)) { return; } // Get .active element. var activeEl = document.querySelector(‘.alm-filter-nav button.active’); if (activeEl) { activeEl.classList.remove(‘active’); } // Add active class. this.classList.add(‘active’); // Set filter params var transition = ‘fade’; var speed = 250; var data = this.dataset; // Call core Ajax Load More `filter` function. // @see https://connekthq.com/plugins/ajax-load-more/docs/public-functions/#filter ajaxloadmore.filter(transition, speed, data); } // Get all filter buttons. var filter_buttons = document.querySelectorAll(‘.alm-filter-nav button’); if (filter_buttons) { // Set initial active item. filter_buttons[0].classList.add(‘active’); // Loop buttons. [].forEach.call(filter_buttons, function (button) { // Add button click event. button.addEventListener(‘click’, filterClick); }); }
Boost Your Online Presence with SEO in Dallas, TX | SEO Company Dallas, TX

Ready To Get Started?

Wether You’re Looking for Web Design, Branding, Photo, or Video, our Creative Team Would Love to Work With You.