PageSourceSearch

https://newconceptbeautybar.com/wp-content/plugins/sunlit-themer/assets/js/main.js

js newconceptbeautybar.com collected 2026-10-07 03:12:58 UTC 2,285 bytes, 66 lines download raw bytes

1(function($) {
2"use strict";
3   jQuery(document).ready(function(){
4
5      //Category accordion 
6      $('.widget_product_categories  ul.product-categories > li:has(ul)').addClass("has-sub");
7      $('.widget_product_categories  ul.product-categories > li:has(ul) > a').after('<span class="cat-caret"></span>');
8        $('.widget_product_categories  ul.product-categories > li .cat-caret').click(function() {
9          var checkElement = $(this).next();
10          
11          $('.widget_product_categories  ul.product-categories li').removeClass('active');
12          $(this).closest('li').addClass('active'); 
13          
14          if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
15            $(this).closest('li').removeClass('active');
16            checkElement.slideUp('normal');
17          }
18          
19          if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
20            $('.widget_product_categories ul.product-categories ul:visible').slideUp('normal');
21            checkElement.slideDown('normal');
22          }
23          
24          if (checkElement.is('ul')) {
25            return false;
26          } else {
27            return true;  
28          }   
29        });
30   });
31
32  jQuery(document).on('click', '.qty-plus', function(e) {
33    e.preventDefault();
34    var quantityInput = jQuery(this).parents('.quantity').find('input.qty'),
35      step = parseInt(quantityInput.attr('step'), 10),
36      newValue = parseInt(quantityInput.val(), 10) + step,
37      maxValue = parseInt(quantityInput.attr('max'), 10);
38
39    if (!maxValue) {
40      maxValue = 9999999999;
41    }
42
43    if ( newValue <= maxValue ) {
44      quantityInput.val(newValue);
45      quantityInput.change();
46    }
47  });
48
49  // Decrease
50  jQuery(document).on('click', '.qty-minus', function(e) {
51    e.preventDefault();
52    var quantityInput = jQuery(this).parents('.quantity').find('input.qty'),
53      step = parseInt(quantityInput.attr('step'), 10),
54      newValue = parseInt(quantityInput.val(), 10) - step,
55      minValue = parseInt(quantityInput.attr('min'), 10);
56
57    if (!minValue) {
58      minValue = 1;
59    }
60
61    if ( newValue >= minValue ) {
62      quantityInput.val(newValue);
63      quantityInput.change();
64    }
65  });
66})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.