PageSourceSearch

https://baettr.com/wp-content/themes/baettr_theme/inc/js/quantity.js?ver=7.1.2

js baettr.com collected 2026-10-05 17:56:12 UTC 764 bytes, 30 lines download raw bytes

1function quantityChange() {
2    $(".quantity .plus, .quantity .minus").on('click',function() {
3        var thisClass = $(this).attr('class');
4        theInput = $(this).parent('.quantity').find('input');
5        curVal = theInput.val();
6
7        if(thisClass == 'plus') {
8            curVal++;
9            theInput.val(curVal);
10        }else{
11            if(curVal > 1) {
12                curVal--;
13                theInput.val(curVal);
14            }
15        }
16    })
17
18    $(".quantity .plus, .quantity .minus").on("click", function() {
19        $(".actions .button").removeAttr("disabled");
20    })
21}
22
23$(document).on('updated_cart_totals', function(){
24    quantityChange();
25});
26
27$(document).ready(function(){
28    quantityChange();
29});
30

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.