PageSourceSearch

https://www.topeleven.com/wpctopeleven/plugins/bt_nordeus_imgs/includes/js/slider.js?ver=4.7.24

js topeleven.com collected 2026-10-01 10:39:37 UTC 7,270 bytes, 240 lines download raw bytes

1jQuery(document).ready(function ($) {
2
3	var ImageCompressor = window.ImageCompressor;
4
5    $('.bt_nordeus_imgs_slider').slick({
6        slidesToShow: 1,
7        slidesToScroll: 1,
8        dots: true,
9        infinite: true,
10        cssEase: 'linear'
11    });
12    
13    $('.bt_nordeus_imgs_slider').on('afterChange', function(event, slick, currentSlide, nextSlide){
14        event.preventDefault();
15        $('#bt_nordeus_imgs_form_img_number').val(currentSlide);
16        return false;
17    });
18    
19    $('a[data-slide]').click(function(e) {
20        e.preventDefault();
21        var slideno = $(this).data('slide');
22        $('.slider-nav').slick('slickGoTo', slideno - 1);
23      });
24
25    $('#bt_nordeus_imgs_form_prodImg').on('change', function() {
26
27		/*var file =  $('#bt_nordeus_imgs_form_prodImg')[0].files[0];
28		console.log(file);
29		var blob = '';
30		if (file) {
31			new ImageCompressor(file, {
32				width: undefined,
33				height: undefined,
34				quality: 0.2,
35				success:function (file) {
36					console.log('Output: ', file);
37					
38					var URL = window.URL || window.webkitURL;					
39					if (URL) {
40						blob = URL.createObjectURL(file);
41						
42						console.log('blob: ' +  blob);
43						$('#bt_nordeus_imgs_form_image').val(blob);
44						//console.log(file);
45						//$('input type=[file]').val(file)
46
47						$('#bt_nordeus_imgs_form_screen3').submit();
48					}
49				},
50				error: function (e) {
51					window.alert(e.message);
52				}
53			});
54		}*/
55
56        $('#bt_nordeus_imgs_form_screen3').submit();
57        $( '.bt_bb_loader' ).show();
58    });
59    
60    /*$('.bt_nordeus_imgs_final_link').on('click', function(event){
61        event.preventDefault();
62        var selectedImg = $('#bt_nordeus_imgs_form_img_number').val();
63        var picture_url = $('#bt_nordeus_imgs_form_picture_url').val();
64        var picture_id  = $('#bt_nordeus_imgs_form_img_id').val();
65        window.location.href = picture_url + "?image=" + selectedImg;
66    }); */
67    
68    $('#bt_nordeus_imgs_form_name').on('change keyup paste',function(){
69		event.preventDefault();
70		$( '.bt_bb_message' ).hide();
71        var text = $('#bt_nordeus_imgs_form_name').val(); 
72		if ( text == '' )
73		{
74			$( '.bt_bb_message' ).show();
75		}
76       
77		var text_length = $('#bt_nordeus_imgs_form_name').val().length;
78        var txt_size = $(this).data('len');        
79        
80		if (text_length >= 23 && text_length < 28)
81        {
82           txt_size_pic = '0.9em';
83        }
84        else if (text_length >= 28 && text_length < 32)
85        {
86            txt_size_pic = '0.8em';
87        }
88        else if (text_length >= 32 && text_length < 36)
89        {
90            txt_size_pic = '0.7em';
91        }
92        else if (text_length >= 36 && text_length < 39)
93        {
94            txt_size_pic = '0.6em';
95        }
96        else if (text_length >= 39 && text_length < 46)
97        {
98            txt_size_pic = '0.5em';
99        }
100        else if (text_length >= 46)
101        {
102             txt_size_pic = '0.4em';
103        }
104        else
105        {
106            txt_size_pic = '1em';
107        }
108
109        $('.user_name').css("fontSize", txt_size_pic);
110		if ( text == '' )
111		{
112			text = 'Your Name';
113		}
114        $('.user_name').html(text);
115    });
116    
117    $('#bt_nordeus_imgs_form_country_code').on('change', function() {
118        var country_code = $(this).find(":selected").val();
119        if (country_code != '-') {
120            $('.user_flag').html('<img style="display:inline;" src="../wpctopeleven/plugins/bt_nordeus_imgs/flags-normal/' + country_code + '.png" />'); 
121        }else{
122            $('.user_flag').html(''); 
123        }
124    });
125    
126    $(".bt_nordeus_imgs_final_link").on( 'click', function(event) {
127          event.preventDefault();
128		  $( '.bt_bb_message' ).hide();
129		  var text = $('#bt_nordeus_imgs_form_name').val(); 
130		  if ( text == '' )
131		  {
132				$( '.bt_bb_message' ).show();
133				return false;
134		  }
135          document.bt_nordeus_imgs_form33.submit();
136          $( '.bt_bb_loader' ).show();
137          return false;
138    });
139
140    $(".takeDownload").on( 'click', function(event) {
141          //window.location.hash = "bt_te_goals";
142          window.location.hash = scroll_to_id();
143    });
144
145    $(".icon-facebook").on( 'click', function(event) {
146         //window.location.hash = "bt_te_goals";
147         window.location.hash = scroll_to_id();
148    });
149
150    $(".icon-twitter").on( 'click', function(event) {
151         //window.location.hash = "bt_te_goals";
152         window.location.hash = scroll_to_id();
153    });
154    
155    $('.user_flag_lazy').lazy({
156        combined: true,
157        delay: 1000
158    });
159    
160    $('.slider_item_lazy').lazy({
161        combined: true,
162        delay: 1000
163    });
164    
165    $('.share_img_lazy').lazy({
166        combined: true,
167        delay: 1000
168    });
169    
170    $(".icon-goal1 span").on( 'click', function(event) {
171         $( '.goal1' ).show();
172         $( '.goal2' ).hide();
173         $( '.goal3' ).hide();
174    });
175    
176    $(".icon-goal2 span").on( 'click', function(event) {
177         $( '.goal1' ).hide();
178         $( '.goal2' ).show();
179         $( '.goal3' ).hide();
180    });
181    
182    $(".icon-goal3 span").on( 'click', function(event) {
183         $( '.goal1' ).hide();
184         $( '.goal2' ).hide();
185         $( '.goal3' ).show();
186    });
187    
188    function scroll_to_id() {
189        var id = "bt_te_goals";
190		hide_tooltips();
191       
192        var val = $('.progress_bar_inner').data('val')*1000;
193		var goal0 = parseInt( $('#goal0').data('name') ) *1000;
194        var goal1 = parseInt($('#goal1').data('name') ) *1000;
195        var goal2 = parseInt($('#goal2').data('name') ) *1000;
196        var goal3 = parseInt($('#goal3').data('name') ) *1000;
197        var goal4 = parseInt($('#goal4').data('name') ) *1000;
198        var goal5 = parseInt($('#goal5').data('name') ) *1000;
199		var goal6 = parseInt($('#goal6').data('name') ) *1000;
200		var goal7 = parseInt($('#goal7').data('name') ) *1000;
201
202        if ( val > goal0 && val <= goal1 ){ id = "goal1";$('#tooltip1').show(); }
203        if ( val > goal1 && val <= goal2 ){ id = "goal2";$('#tooltip2').show(); }
204        if ( val > goal2 && val <= goal3 ){ id = "goal3";$('#tooltip3').show(); }
205        if ( val > goal3 && val <= goal4 ){ id = "goal4";$('#tooltip4').show(); }
206        if ( val > goal4 && val <= goal5 ){ id = "goal5";$('#tooltip5').show(); }
207		if ( val > goal5 && val <= goal6 ){ id = "goal6";$('#tooltip6').show(); }
208		if ( val > goal6 && val <= goal7 ){ id = "goal7";$('#tooltip7').show(); }
209
210        return id;
211        
212    }
213
214	$("#goal1").on( 'click', function(event) { open_tooltip('tooltip1')});
215	$("#goal2").on( 'click', function(event) { open_tooltip('tooltip2')});
216	$("#goal3").on( 'click', function(event) { open_tooltip('tooltip3')});
217	$("#goal4").on( 'click', function(event) { open_tooltip('tooltip4')});
218	$("#goal5").on( 'click', function(event) { open_tooltip('tooltip5')});
219	$("#goal6").on( 'click', function(event) { open_tooltip('tooltip6')});
220	$("#goal7").on( 'click', function(event) { open_tooltip('tooltip7')});
221
222	function open_tooltip(id) {
223		hide_tooltips();
224		$('#' + id).show();
225	}
226
227	function hide_tooltips() {
228		$('#tooltip1').hide();
229		$('#tooltip2').hide();
230		$('#tooltip3').hide();
231		$('#tooltip4').hide();
232		$('#tooltip5').hide();
233		$('#tooltip6').hide();
234		$('#tooltip7').hide();
235	}
236         
237});  
238
239
240

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.