PageSourceSearch

https://contentmarketingawards.com/wp-content/plugins/jupiterx-cor…/woocommerce/wc-quick-view.js?ver=4.0.0

js contentmarketingawards.com collected 2026-09-24 20:31:04 UTC 2,265 bytes, 41 lines download raw bytes

1jQuery(function($){
2	// Fix quantity input styling after load more on quick view
3	$('body').on('click','.jupiterx-product-has-quick-view',function () {
4		setTimeout( addInputAndEvents );
5
6		function addInputAndEvents() {
7			// Add quantity input
8			id = $('.featherlight-content .jupiterx-product-quick-view-modal').attr('id');
9
10			if ( $('.featherlight-content #' + id + ' .custom-qty-input').length == 0 ) {
11				$('.featherlight-content #' + id + ' .input-text.qty').hide();
12				$('.featherlight-content #' + id + ' .input-text.qty').after('<div class=\"input-group input-text qty text custom-qty-input \"><div class=\"input-group-prepend\"><button style=\"min-width: 0; box-shadow: none;\" class=\"btn btn-decrement btn-sm btn-outline-secondary\" type=\"button\" tabindex=\"-1\"><strong>-</strong></button></div><input type=\"text\" value="" style=\"text-align: center\" class=\"form-control input-text qty text\" placeholder=\"\" tabindex=\"-1\"><div class=\"input-group-append\"><button style=\"min-width: 0; box-shadow: none;\" class=\"btn btn-increment btn-sm btn-outline-secondary\" type=\"button\" tabindex=\"-1\"><strong>+</strong></button></div></div>');
13				$('.featherlight-content #' + id + ' .custom-qty-input .input-text.qty').val( $('.featherlight-content #' + id +' .input-text.qty').val() ) ;
14			}
15
16			// Change quantity value on input change
17			$('.featherlight-content .jupiterx-product-quick-view-modal').on('keyup paste change', '.custom-qty-input .qty', function() {
18				$('.featherlight-content #' + id + ' .input-text.qty').val( $( this ).val() );
19			});
20
21			// Increment quantity
22			$('.featherlight-content #' + id ).on('click', '.btn-increment', function() {
23				$('.featherlight-content #' + id + ' .custom-qty-input .input-text.qty').val( function( i, oldval ) {
24					return parseInt( oldval, 10) + 1;
25				}).trigger('change');
26			});
27
28			// Decrement quantity
29			$('.featherlight-content #' + id ).on('click', '.btn-decrement', function() {
30				$('.featherlight-content #' + id + ' .custom-qty-input .input-text.qty').val( function( i, oldval ) {
31					if( parseInt( oldval, 10) > 1 ){
32						return parseInt( oldval, 10) - 1;
33					}
34					else {
35						return parseInt( oldval, 10);
36					}
37				}).trigger('change');
38			});
39		}
40	});
41});

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.