PageSourceSearch

https://qmea.org.au/wp-content/themes/univero/js/woocommerce.js?ver=20150330

js qmea.org.au collected 2026-10-06 04:41:08 UTC 3,593 bytes, 105 lines download raw bytes

1(function($) {
2	"use strict";
3	// Ajax QuickView
4	jQuery(document).ready(function(){
5		jQuery('a.quickview').on('click', function (e) {
6			e.preventDefault();
7			var self = $(this);
8			self.parent().parent().parent().addClass('loading');
9		    var productslug = jQuery(this).data('productslug');
10		    var url = univero_ajax.ajaxurl + '?action=univero_quickview_product&productslug=' + productslug;
11		    
12	    	jQuery.get(url,function(data,status){
13		    	$.magnificPopup.open({
14					mainClass: 'ninzio-mfp-zoom-in',
15					items    : {
16						src : data,
17						type: 'inline'
18					}
19				});
20				// variation
21                if ( typeof wc_add_to_cart_variation_params !== 'undefined' ) {
22                    $( '.variations_form' ).each( function() {
23                        $( this ).wc_variation_form().find('.variations select:eq(0)').change();
24                    });
25                }
26                var config = {
27                    loop: false,
28                    nav: true,
29                    dots: false,
30                    items: 1,
31                    navText: ['<span class="univero-arrow-left"></span>', '<span class="univero-arrow-right"></span>'],
32                    responsive: {
33	                    0:{
34	                        items: 1
35	                    },
36	                    320:{
37	                        items: 1
38	                    },
39	                    768:{
40	                        items: 1
41	                    },
42	                    980:{
43	                        items: 1
44	                    },
45	                    1280:{
46	                        items: 1
47	                    }
48	                }
49                };
50                $(".quickview-owl").owlCarousel( config );
51                
52				self.parent().parent().parent().removeClass('loading');
53		    });
54		});
55	});
56	
57	// thumb image
58	$('.thumbnails-image .thumb-link, .lite-carousel-play .thumb-link').each(function(e){
59		$(this).on('click', function(event){
60			event.preventDefault();
61			$('.main-image-carousel').trigger("to.owl.carousel", [e, 0, true]);
62			
63			$('.thumbnails-image .thumb-link').removeClass('active');
64			$(this).addClass('active');
65			return false;
66		});
67	});
68	$('.main-image-carousel').on('changed.owl.carousel', function(event) {
69		setTimeout(function(){
70			var index = 0;
71			$('.main-image-carousel .owl-item').each(function(i){
72				if ($(this).hasClass('active')){
73					index = i;
74				}
75			});
76			$('.thumbnails-image .thumb-link').removeClass('active');
77			
78			if ( $('.thumbnails-image .lite-carousel-play').length > 0 ) {
79				$('.thumbnails-image li').eq(index).find('.thumb-link').addClass('active');
80			} else {
81				$('.thumbnails-image .owl-item').eq(index).find('.thumb-link').addClass('active');
82			}
83		},50);
84    });
85	// change thumb variants
86	$( 'body' ).on( 'found_variation', function( event, variation ) {
87    	if ( variation && variation.image && variation.image.src && variation.image.src.length > 1 ) {
88    		$('.main-image-carousel a').each(function(e){
89    			var src = $('img', $(this)).attr('src');
90    			if (src === variation.image.src) {
91	    			$('.main-image-carousel').trigger("to.owl.carousel", [e, 0, true]);
92    			}
93    		});
94    	}
95	});
96	// review
97    $('.woocommerce-review-link').on('click', function(){
98        $('.woocommerce-tabs a[href=#tabs-list-reviews]').trigger('click');
99        $('html, body').animate({
100            scrollTop: $("#reviews").offset().top
101        }, 1000);
102        return false;
103    });
104    
105})(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.