diff --git a/wp-content/themes/hello-elementor/assets/js/custom.js b/wp-content/themes/hello-elementor/assets/js/custom.js index 8550a0d..2ae0180 100644 --- a/wp-content/themes/hello-elementor/assets/js/custom.js +++ b/wp-content/themes/hello-elementor/assets/js/custom.js @@ -61,13 +61,12 @@ jQuery(function ($) { }) }) - jQuery(function ($) { $('.show-more-gallery').on('click', function (e) { e.preventDefault() var parent = $(this).closest('.product-gallery-drafts') - console.log(parent); + console.log(parent) var productColors = parent.find( '.product-drafts .elementor-image-gallery .gallery' ) @@ -96,158 +95,171 @@ jQuery(function ($) { }) jQuery(function ($) { - $('#contact-form select').each(function () { - var $this = $(this), - numberOfOptions = $(this).children('option').length, - defaultOptionText = $this.attr('data-placeholder') || $this.children('option').eq(0).text(); // Отримуємо текст placeholder або використовуємо перший елемент за замовчуванням + $('#contact-form select').each(function () { + var $this = $(this), + numberOfOptions = $(this).children('option').length, + defaultOptionText = + $this.attr('data-placeholder') || $this.children('option').eq(0).text() // Отримуємо текст placeholder або використовуємо перший елемент за замовчуванням - $this.addClass('select-hidden'); - $this.wrap('
'); - $this.after('
' + defaultOptionText + '
'); + $this.addClass('select-hidden') + $this.wrap('
') + $this.after( + '
' + defaultOptionText + '
' + ) - var $styledSelect = $this.next('div.select-custom-text'); - var $list = $('