PageSourceSearch

https://domix.info.pl/wp-content/plugins/designthemes-directory-ad…/modules/pricing/assets/search.js?ver=7.1.3

js domix.info.pl collected 2026-10-08 22:24:46 UTC 2,930 bytes, 93 lines download raw bytes

1var dtDirectoryPricingSearchForm = {
2
3	dtInit : function() {
4
5		// Price range field slider
6
7			jQuery('.dtdr-sf-pricerange-slider').each(function() {
8
9				var handle_start = jQuery(this).parents('.dtdr-sf-pricerange-field-holder').find('.dtdr-sf-pricerange-start');
10				var handle_end = jQuery(this).parents('.dtdr-sf-pricerange-field-holder').find('.dtdr-sf-pricerange-end');
11
12				var slider_handle_start = jQuery(this).find('.dtdr-sf-pricerange-slider-start-handle');
13				var slider_handle_end = jQuery(this).find('.dtdr-sf-pricerange-slider-end-handle');
14
15				var min_value = parseInt(jQuery(this).attr('data-min'), 10);
16				var max_value = parseInt(jQuery(this).attr('data-max'), 10);
17
18				var updated_min_value = parseInt(jQuery(this).attr('data-updated-min'), 10);
19				var updated_max_value = parseInt(jQuery(this).attr('data-updated-max'), 10);
20
21				var currencysymbol = jQuery(this).attr('data-currencysymbol');
22				var currencysymbolposition = jQuery(this).attr('data-currencysymbolposition');
23
24				jQuery(this).slider({
25					range: true,
26					min: min_value,
27					max: max_value,
28					values: [ updated_min_value, updated_max_value ],
29					slide: function(event, ui) {
30
31						handle_start.val(ui.values[0]);
32						handle_end.val(ui.values[1]);
33
34						var price_range_start = '';
35						var price_range_end = '';
36						if(currencysymbolposition == 'left') {
37							price_range_start = currencysymbol + ui.values[0] ;
38							price_range_end = currencysymbol + ui.values[1];
39						} else if(currencysymbolposition == 'right') {
40							price_range_start = ui.values[0] + currencysymbol;
41							price_range_end = ui.values[1] + currencysymbol;
42						} else if(currencysymbolposition == 'left_space') {
43							price_range_start = currencysymbol + ' ' + ui.values[0];
44							price_range_end = currencysymbol + ' ' + ui.values[1];
45						} else if(currencysymbolposition == 'right_space') {
46							price_range_start = ui.values[0] + ' ' + currencysymbol;
47							price_range_end = ui.values[1] + ' ' + currencysymbol;
48						}
49
50						slider_handle_start.html(price_range_start);
51						slider_handle_end.html(price_range_end);
52
53					},
54					stop: function(event, ui) {
55						if(jQuery(this).hasClass('dtdr-with-ajax-load')) {
56							window.setTimeout(function(){
57								dtDirectoryFrontendUtils.dtDirectoryLoadDataOutput();
58							}, 250);
59						}
60					},
61				});
62
63			});
64
65	},
66
67};
68
69jQuery(document).ready(function() {
70
71	"use strict";
72
73	if(!dtdrfrontendobject.elementorPreviewMode) {
74		dtDirectoryPricingSearchForm.dtInit();
75	}
76
77});
78
79( function( $ ) {
80
81	"use strict";
82
83	var dtDirectoryPricingSearchFormJs = function($scope, $){
84		dtDirectoryPricingSearchForm.dtInit();
85	};
86
87    $(window).on('elementor/frontend/init', function(){
88		if(dtdrfrontendobject.elementorPreviewMode) {
89			elementorFrontend.hooks.addAction('frontend/element_ready/dtdr-widget-sf-pricerange.default', dtDirectoryPricingSearchFormJs);
90		}
91	});
92
93} )( 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.