PageSourceSearch

https://origopro.com/wp-content/themes/flatsome-child/custom.js?ver=2.1

js origopro.com collected 2026-10-07 03:18:03 UTC 2,670 bytes, 104 lines download raw bytes

1(function($){
2	$(".phoen_sharp_square > div").each(function () { 
3		var n_id = $(this).attr("id");
4		var arr = n_id.split('_');
5		console.log(arr);
6		if(arr[2] != 'color-attributes'){
7			$(this).addClass('not-visible');
8		}
9		
10	 });
11	
12	
13  $('#klaviyo-reviews-all').closest('.accordion-item').attr('id', 'review-area');
14
15  $('.videoss').insertAfter('.product-thumbnails');
16	
17	/*	$(document.body).on('wc-product-gallery-after-init', function () {
18			$('.videoss').insertAfter('.product-thumbnails');
19		});
20	*/
21	if (window.location.href.indexOf("?gfur_activation=") > -1) {
22          $('#main').addClass('confirm');
23	}
24	
25	$(".header-nav li").hover(
26		  function () {
27			  if($(this).hasClass('has-dropdown')){
28					$(this).siblings().removeClass('current-dropdown');
29				  $(this).addClass("current-dropdown");
30				  }
31		  },
32		  function () {
33			$(this).removeClass("current-dropdown");
34		  }
35		
36	);
37	
38	var company = $('#billing_company').val();
39	$('#billing_yrityksen_y_tunnus_field .optional').text('(Tämä kenttä on pakollinen yrityksille)');
40	if(company !== ''){ 
41		$('#billing_yrityksen_y_tunnus_field').removeClass('hide_field');
42	}
43	
44	$('.mailpoet_submit').click(function(){
45		
46        $('#sgpb-popup-dialog-main-div-wrapper').delay(5000).fadeOut('slow');
47        $('.sgpb-popup-overlay').delay(5000).fadeOut('slow');
48	});
49	
50	
51	
52	var lang = $('html')[0].lang;
53	//alert(lang);
54	if(lang == 'fi'){
55		$('.checkout_coupon p').text('jos sinulla on kuponkikoodi laita se tähän');
56	}
57	
58	 $('.checkout_coupon').insertAfter($('#payment'));
59	
60	
61
62    function openAccordionAndScroll() {
63
64        var $reviewArea = $('#review-area');
65        if (!$reviewArea.length) return;
66
67        var $accordionItem = $reviewArea.closest('.accordion-item');
68        if (!$accordionItem.length) return;
69
70        var $toggle = $accordionItem.find('.accordion-title, .accordion-toggle').first();
71        if (!$toggle.length) return;
72
73        // Open accordion if not active
74        if (!$accordionItem.hasClass('active')) {
75            $toggle.trigger('click');
76        }
77
78        // Scroll after accordion opens
79        setTimeout(function () {
80            $('html, body').animate({
81                scrollTop: $reviewArea.offset().top - 120
82            }, 400);
83        }, 300);
84    }
85
86    // Handle direct URL load
87    if (window.location.hash === '#klaviyo-reviews-all') {
88        openAccordionAndScroll();
89    }
90
91    // Handle click on stars / links
92    $(document).on('click', 'a[href="#klaviyo-reviews-all"]', function (e) {
93        e.preventDefault();
94        history.pushState(null, '', '#klaviyo-reviews-all');
95        openAccordionAndScroll();
96    });
97 
98
99
100	
101	
102	
103	
104})(this.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.