PageSourceSearch

https://trdizin.gov.tr/wp-content/plugins/ultimate-faqs/assets/js/ewd-ufaq.js?ver=2.3.0

js trdizin.gov.tr collected 2026-09-24 19:40:39 UTC 18,592 bytes, 573 lines download raw bytes

1var filtering_running = false;
2var wpforms_search_running = 'No';
3
4var ajax_ctrlr = {
5
6	last_run: new Date(),
7	srch_str: '',
8	schdl_to_run_state: false,
9	schdl_to_run_delay: 250,
10	search_save_schdl_to_run_delay: 3000,
11	schdl_to_run_cntr: 0,
12	schdl_to_run_hndl: null,
13	search_save_schdl_to_run_hndl: null,
14
15	schedule_to_run: function() {
16		ajax_ctrlr.schdl_to_run_cntr++;
17
18		if(ajax_ctrlr.schdl_to_run_cntr % 5 == 0) {
19			ajax_ctrlr.schdl_to_run_delay += 250;
20			ajax_ctrlr.schdl_to_run_reset();
21		}
22
23		if( ! ajax_ctrlr.schdl_to_run_state) {
24			return;
25		}
26
27		let crnt_run = new Date();
28
29		if(crnt_run - ajax_ctrlr.last_run > ajax_ctrlr.schdl_to_run_delay) {
30			ajax_ctrlr.schdl_to_run_state = false;
31			ajax_ctrlr.schdl_to_run_cntr = 0;
32			ajax_ctrlr.last_run = new Date();
33
34			ewd_ufaq_ajax_reload();
35
36			ajax_ctrlr.save_search_schdl_to_run_reset();
37		}
38	},
39	schdl_to_run_reset: function () {
40		clearInterval(ajax_ctrlr.schdl_to_run_hndl);
41		ajax_ctrlr.schdl_to_run_hndl = setInterval(ajax_ctrlr.schedule_to_run, ajax_ctrlr.schdl_to_run_delay);
42	},
43	run_search_ajax: function( elm ) {
44		ajax_ctrlr.clear_field( elm );
45
46		let srch_str = jQuery(elm).val();
47
48		if( ajax_ctrlr.schdl_to_run_delay > 250 ) {
49			ajax_ctrlr.schdl_to_run_delay = 250;
50			ajax_ctrlr.schdl_to_run_reset();
51		}
52
53		if(srch_str != ajax_ctrlr.srch_str) {
54			ajax_ctrlr.srch_str = srch_str;
55			ajax_ctrlr.schdl_to_run_state = true;
56			ajax_ctrlr.last_run = new Date();
57		}
58	},
59	save_search_term: function() {
60		var params = {};
61
62		params.nonce       = typeof ewd_ufaq_php_data != 'undefined' ? ewd_ufaq_php_data.nonce : '';
63		params.search_term = ajax_ctrlr.srch_str;
64		params.action      = 'ewd_ufaq_record_search_term';
65
66		var data = jQuery.param( params );
67    	jQuery.post(ajaxurl, data, function(response) {});
68	},
69	save_search_schdl_to_run_reset: function() {
70
71		if ( typeof ewd_ufaq_php_data == 'undefined' || ! ewd_ufaq_php_data.save_search_terms ) { return false; }
72
73		clearTimeout(ajax_ctrlr.search_save_schdl_to_run_hndl);
74		ajax_ctrlr.search_save_schdl_to_run_hndl = setTimeout(ajax_ctrlr.save_search_term, ajax_ctrlr.search_save_schdl_to_run_delay);
75	},
76	clear_field: function ( srch_elm ) {
77		let cf = jQuery(srch_elm).parent('.search-field').find('.clear-field').eq(0);
78		if( 0 < jQuery(srch_elm).val().length ) {
79			if( 'hidden' == cf.data('state') ) {
80				cf.data('state', 'visible');
81				cf.removeClass('slide-out').addClass('slide-in');
82			}
83		}
84		else {
85			cf.data('state', 'hidden');
86			cf.removeClass('slide-in').addClass('slide-out');
87		}
88	}
89};
90
91jQuery(function(){ //DOM Ready
92    ufaqSetClickHandlers();
93    UFAQSetAutoCompleteClickHandlers();
94    UFAQSetRatingHandlers();
95    UFAQSetExpandCollapseHandlers();
96    UFAQSetPaginationHandlers();
97
98    UFAQWPFormsHandler();
99});
100
101function ewd_ufaq_run_effect( display, faq_element ) {
102
103    var selected_effect = typeof ewd_ufaq_php_data != 'undefined' ? ewd_ufaq_php_data.reveal_effect : 'none';
104
105    // most effect types need no options passed by default
106    var options = {};
107
108    // some effects have required parameters
109    if ( selected_effect === 'size' ) {
110
111      options = { to: { width: 200, height: 60 } };
112    }
113
114    // run the effect
115    if ( display == 'show' ) { faq_element.find( '.ewd-ufaq-faq-body' ).show( selected_effect, options, 500, ewd_ufaq_toggle_hidden_class( faq_element ) ); }
116	if ( display == 'hide' ) { faq_element.find( '.ewd-ufaq-faq-body' ).hide( selected_effect, options, 500, ewd_ufaq_toggle_hidden_class( faq_element ) ); }
117};
118
119// callback function to bring a hidden box back
120function ewd_ufaq_toggle_hidden_class( faq_element ) {
121
122	setTimeout( function() { faq_element.find( '.ewd-ufaq-faq-body' ).toggleClass( 'ewd-ufaq-hidden' ); }, 500 );
123};
124
125function ufaqSetClickHandlers() {
126
127	jQuery( '.ewd-ufaq-faq-toggle' ).off( 'click' ).on( 'click', function( event ) {
128		
129		jQuery( this ).attr( 'aria-expanded', function ( i, attr ) {
130			return attr == 'true' ? 'false' : 'true'
131		});
132
133		event.preventDefault();
134		
135		faq = jQuery( this ).parent();
136		
137		if ( faq.find( '.ewd-ufaq-faq-body' ).hasClass( 'ewd-ufaq-hidden' ) ) {
138
139			EWD_UFAQ_Reveal_FAQ( faq );
140
141			if ( typeof ewd_ufaq_php_data != 'undefined' && ewd_ufaq_php_data.faq_scroll ) { jQuery('html, body').animate({scrollTop: jQuery(this).offset().top -80}, 100); }
142		}
143		else {
144
145			EWD_UFAQ_Hide_FAQ( faq );
146		}
147	});
148
149	jQuery( '.ewd-ufaq-faq-category-title-toggle' ).off( 'click' ).on( 'click', function() {
150		
151		var category = jQuery( this ).parent();
152		var category_inner = category.find( '.ewd-ufaq-faq-category-inner' );
153		
154		category_inner.toggleClass( 'ewd-ufaq-faq-category-body-hidden' );
155
156		if ( typeof ewd_ufaq_php_data == 'undefined' || ! ewd_ufaq_php_data.category_accordion ) { return; }
157
158		jQuery( '.ewd-ufaq-faq-category-inner' ).each( function( index, object ) {
159			
160			if ( object != category_inner.get( 0 ) ) { jQuery( this ).addClass( 'ewd-ufaq-faq-category-body-hidden' ); }
161		});
162	});
163
164	jQuery( '.ewd-ufaq-back-to-top-link' ).off( 'click' ).on( 'click', function( event ) {
165		event.preventDefault();
166
167		jQuery( 'html, body' ).animate( { scrollTop: jQuery( '#ewd-ufaq-faq-list' ).offset().top -80 }, 100 );
168	});
169
170	jQuery( '.ewd-ufaq-faq-header-link' ).off( 'click' ).on( 'click', function( event ) {
171		event.preventDefault();
172
173		var faq_id = jQuery( this ).data( 'postid' );
174		var faq = jQuery( '#ewd-ufaq-post-' + faq_id ).first();
175
176		if ( faq.find( '.ewd-ufaq-faq-body' ).hasClass( 'ewd-ufaq-hidden' ) ) {
177			
178			EWD_UFAQ_Reveal_FAQ( faq );
179		}
180
181		jQuery( 'html, body' ).animate( { scrollTop: faq.offset().top - 20 }, 100 );
182	});
183}
184
185function UFAQSetAutoCompleteClickHandlers() {
186
187	jQuery( '.ewd-ufaq-text-auto-complete' ).on( 'keyup', function() {
188
189		jQuery( '.ewd-ufaq-text-auto-complete' ).autocomplete({
190
191			source: typeof ewd_ufaq_php_data != 'undefined' ? ewd_ufaq_php_data.question_titles : '',
192			minLength: 3,
193			appendTo: '#ewd-ufaq-jquery-ajax-search',
194			select: function( event, ui ) {
195				jQuery( this ).val( ui.item.value );
196				ewd_ufaq_ajax_reload();
197			}
198		});
199
200		jQuery( '.ewd-ufaq-text-auto-complete' ).autocomplete( 'enable' );
201	}); 
202}
203
204function EWD_UFAQ_Reveal_FAQ( faq_element ) {
205
206	var post_id = faq_element.data( 'post_id' );
207
208	var params = {};
209
210	params.nonce   = typeof ewd_ufaq_php_data != 'undefined' ? ewd_ufaq_php_data.nonce : '';
211	params.post_id = post_id;
212	params.action  = 'ewd_ufaq_record_view';
213
214	var data = jQuery.param( params );
215    jQuery.post(ajaxurl, data, function(response) {});
216
217    faq_element.find( '.ewd-ufaq-post-margin-symbol' ).html( faq_element.find( '.ewd-ufaq-post-margin-symbol' ).html().toUpperCase() );
218
219	faq_element.find( '.ewd-ufaq-faq-excerpt' ).addClass( 'ewd-ufaq-hidden' );
220	
221	if ( typeof ewd_ufaq_php_data != 'undefined' && ewd_ufaq_php_data.reveal_effect != 'none' ) { ewd_ufaq_run_effect( 'show', faq_element ); }
222	else { faq_element.find( '.ewd-ufaq-faq-body' ).removeClass( 'ewd-ufaq-hidden' ); }
223			
224	if ( typeof ewd_ufaq_php_data != 'undefined' && ewd_ufaq_php_data.faq_accordion ) { 
225
226		jQuery( '.ewd-ufaq-faq-div' ).each( function() {
227
228			if ( jQuery( this ).prop( 'id' ) != faq_element.prop( 'id' ) ) {
229
230		  		EWD_UFAQ_Hide_FAQ( jQuery(this) );
231			} 
232			else {
233
234				jQuery( this ).addClass( 'ewd-ufaq-post-active' );
235			}
236		});
237	}
238	else {
239
240		faq_element.addClass( 'ewd-ufaq-post-active' );
241	}
242}
243
244function EWD_UFAQ_Hide_FAQ( faq_element ) {
245
246	var post_id = faq_element.data( 'post_id' );
247
248	faq_element.find( '.ewd-ufaq-faq-excerpt' ).removeClass( 'ewd-ufaq-hidden' );
249
250	if ( typeof ewd_ufaq_php_data != 'undefined' && ewd_ufaq_php_data.reveal_effect != 'none' && ! faq_element.find( '.ewd-ufaq-faq-body' ).hasClass( 'ewd-ufaq-hidden' ) ) { ewd_ufaq_run_effect( 'hide', faq_element ); }
251	else { faq_element.find( '.ewd-ufaq-faq-body' ).addClass( 'ewd-ufaq-hidden' ); }
252
253	faq_element.removeClass( 'ewd-ufaq-post-active' );
254	faq_element.find( '.ewd-ufaq-post-margin-symbol' ).html( faq_element.find( '.ewd-ufaq-post-margin-symbol' ).html().toLowerCase() );
255}
256
257jQuery(document).ready(function() {
258
259	if( 0 < jQuery( '#ewd-ufaq-jquery-ajax-search .ewd-ufaq-text-input' ).eq(0).length ) {
260		ajax_ctrlr.schdl_to_run_hndl = setInterval(ajax_ctrlr.schedule_to_run, ajax_ctrlr.schdl_to_run_delay);
261	}
262
263	jQuery( '#ewd-ufaq-ajax-search-submit' ).click( function() {
264		jQuery( '.ewd-ufaq-bottom' ).data( 'current_page', 1 );
265		let elm = jQuery( '#ewd-ufaq-jquery-ajax-search .ewd-ufaq-text-input' ).eq(0);
266		ajax_ctrlr.run_search_ajax( elm[0] );
267	});
268
269	jQuery( '#ewd-ufaq-jquery-ajax-search' ).on( 'keyup', '.ewd-ufaq-text-input', function() {
270		ajax_ctrlr.run_search_ajax( this );
271	});
272
273	// clear search field
274	jQuery( '#ewd-ufaq-jquery-ajax-search' ).on( 'click', '.clear-field', function() {
275		let elm = jQuery( '#ewd-ufaq-jquery-ajax-search .ewd-ufaq-text-input' ).eq(0);
276		jQuery(elm).val('');
277		ajax_ctrlr.run_search_ajax( elm );
278	});
279
280	jQuery( '.ewd-ufaq-text-input ' ).on( 'search', function() {
281		ajax_ctrlr.run_search_ajax( this );
282	});
283
284	if ( typeof ewd_ufaq_php_data != 'undefined' && ewd_ufaq_php_data.display_faq > 0 ) {
285		
286		var faq = jQuery( '.ewd-ufaq-faq-div[data-post_id="' + ewd_ufaq_php_data.display_faq + '"]' );
287
288		faq.parent().removeClass( 'ewd-ufaq-hidden' );
289
290		EWD_UFAQ_Reveal_FAQ( faq );
291
292		jQuery('html, body').animate({scrollTop: faq.offset().top -80}, 100);
293	}
294});
295
296var request_count = 0;
297function ewd_ufaq_ajax_reload( pagination, append_results, search_string ) {
298
299	filtering_running = true;
300
301    var search_string = search_string ? search_string : jQuery( '.ewd-ufaq-text-input' ).val();
302    var include_cat = jQuery( '#ewd-ufaq-include-category' ).val();
303    var exclude_cat = jQuery( '#ewd-ufaq-exclude-category' ).val();
304    var orderby = jQuery( '#ewd-ufaq-orderby' ).val();
305    var order = jQuery( '#ewd-ufaq-order' ).val();
306    var post_count = jQuery( '#ewd-ufaq-post-count' ).val();
307    var current_url = jQuery( '#ewd-ufaq-current-url' ).val();
308    var show_on_load = jQuery( '#ewd-ufaq-show-on-load' ).val();
309
310    if ( search_string == undefined ) { search_string = ''; }
311
312    if ( pagination == 'Yes' ) {
313
314    	var faqs_only = 'Yes';
315    	var faq_page = jQuery( '.ewd-ufaq-bottom' ).data( 'current_page' );
316    }
317    else {
318
319    	var retrieving_results = typeof ewd_ufaq_php_data != 'undefined' ? ewd_ufaq_php_data.retrieving_results : 'Retrieving Results';
320
321    	jQuery( '.ewd-ufaq-faqs' ).html( '<h3>' + retrieving_results + '</h3>' );
322
323    	var faqs_only = 'No';
324    	var faq_page = 0;
325    	jQuery( '.ewd-ufaq-bottom' ).remove();
326    }
327
328    request_count = request_count + 1;
329
330    if ( jQuery( '.ewd-ufaq-text-input' ).length && 'yes' != show_on_load.toLocaleLowerCase() && search_string.length == 0 ) {
331    	jQuery('.ewd-ufaq-faqs').html('');
332    	return;
333    }
334
335    var params = {};
336
337    params.search_string    = search_string;
338    params.include_category = include_cat;
339    params.exclude_category = exclude_cat;
340    params.orderby = orderby;
341    params.order   = order;
342    params.post_count    = post_count;
343    params.request_count = request_count;
344    params.current_url   = current_url;
345    params.faqs_only = faqs_only;
346    params.faq_page  = faq_page;
347    params.show_on_load = show_on_load;
348    params.action = 'ewd_ufaq_search';
349    params.nonce  = typeof ewd_ufaq_php_data != 'undefined' ? ewd_ufaq_php_data.nonce : '';
350
351    var data = jQuery.param( params );
352
353    jQuery.post( ajaxurl, data, function( response ) {
354		
355		if ( response.data.request_count == request_count ) {
356
357			if ( append_results == 'Yes' ) {
358				jQuery( '.ewd-ufaq-faqs' ).append( response.data.output );
359			}
360			else {
361				jQuery( '.ewd-ufaq-faqs' ).html( response.data.output );
362				if( '' != response.data.pagination ) {
363					jQuery('.ewd-ufaq-faq-list .ewd-ufaq-bottom').remove();
364					jQuery('.ewd-ufaq-faq-list').append(response.data.pagination);
365				}
366			}
367
368			jQuery( '.ewd-ufaq-bottom' ).data( 'max_page', response.data.max_page );
369
370			jQuery( '.ewd-ufaq-expand-all' ).removeClass( 'ewd-ufaq-hidden' );
371			jQuery( '.ewd-ufaq-collapse-all' ).addClass( 'ewd-ufaq-hidden' );
372
373       		ufaqSetClickHandlers();
374       		UFAQSetRatingHandlers();
375       		UFAQSetPaginationHandlers();
376       		UFAQUpdatePaginationButtons();
377       		UFAQSetExpandCollapseHandlers();
378
379       		filtering_running = false;
380       	}
381    });
382}
383
384function UFAQSetRatingHandlers() {
385
386	jQuery( '.ewd-ufaq-rating-button' ).off( 'click' ).on( 'click', function() {
387		
388		var faq_id = jQuery( this ).data( 'faq_id' );
389		jQuery( '*[data-faq_id="' + faq_id + '"]' ).off( 'click' );
390
391		var current_count = jQuery( this ).find( 'span' ).html();
392		current_count++;
393		jQuery( this ).find( 'span' ).html( current_count );
394
395		if ( jQuery( this ).hasClass( 'ewd-ufaq-up-vote' ) ) { vote_type = 'up'; }
396		else { vote_type = 'down'; }
397
398		var params = {};
399
400		params.action = 'ewd_ufaq_update_rating';
401		params.nonce  = typeof ewd_ufaq_php_data != 'undefined' ? ewd_ufaq_php_data.nonce : '';
402		params.faq_id = faq_id;
403		params.vote_type = vote_type;
404
405		var data = jQuery.param( params );
406		jQuery.post( ajaxurl, data );
407	});
408}
409
410function UFAQSetExpandCollapseHandlers() {
411
412	jQuery('.ewd-ufaq-expand-all').off('click').on('click', function() {
413		
414		var accordion_setting = typeof ewd_ufaq_php_data != 'undefined' ? ewd_ufaq_php_data.faq_accordion : false;
415		ewd_ufaq_php_data.faq_accordion = false; // turn FAQ accordion off while expanding all
416
417		jQuery( '.ewd-ufaq-faq-toggle' ).each( function() {
418
419			var faq = jQuery(this).parent();
420
421			jQuery(this).attr('aria-expanded', 'true');
422
423			EWD_UFAQ_Reveal_FAQ( faq );
424		});
425
426		if ( typeof ewd_ufaq_php_data != 'undefined' ) { ewd_ufaq_php_data.faq_accordion = accordion_setting; } //reset FAQ accordion setting 
427
428		jQuery('.ewd-ufaq-faq-category-inner').removeClass('ewd-ufaq-faq-category-body-hidden');
429		jQuery('.ewd-ufaq-collapse-all').removeClass('ewd-ufaq-hidden');
430		jQuery('.ewd-ufaq-expand-all').addClass('ewd-ufaq-hidden');
431	});
432
433	jQuery('.ewd-ufaq-collapse-all').off('click').on('click', function() {
434
435		jQuery('.ewd-ufaq-faq-toggle').each(function() {
436
437			var faq = jQuery(this).parent();
438
439			jQuery(this).attr('aria-expanded', 'false');
440
441			EWD_UFAQ_Hide_FAQ( faq );
442		});
443
444		if ( jQuery( '.ewd-ufaq-faq-category-title-toggle' ).length ) { jQuery( '.ewd-ufaq-faq-category-inner' ).addClass( 'ewd-ufaq-faq-category-body-hidden' );}
445
446		jQuery('.ewd-ufaq-expand-all').removeClass('ewd-ufaq-hidden');
447		jQuery('.ewd-ufaq-collapse-all').addClass('ewd-ufaq-hidden');
448	});
449}
450
451function UFAQSetPaginationHandlers() {
452
453	jQuery('.ewd-ufaq-previous-faqs').off( 'click' ).on('click', function() {
454
455		var current_page = jQuery( '.ewd-ufaq-bottom' ).data( 'current_page' );
456
457		jQuery( '.ewd-ufaq-bottom' ).data( 'current_page', Math.max( current_page - 1, 0 ) );
458		jQuery( '.ewd-ufaq-max-faqs-not-reached' ).remove();
459
460		ewd_ufaq_ajax_reload( 'Yes', 'No' );
461	});
462
463	jQuery('.ewd-ufaq-next-faqs').off( 'click' ).on('click', function() {
464
465		var current_page = jQuery( '.ewd-ufaq-bottom' ).data( 'current_page' );
466
467		jQuery( '.ewd-ufaq-bottom' ).data( 'current_page', current_page + 1 );
468		jQuery( '.ewd-ufaq-max-faqs-not-reached' ).remove();
469
470		ewd_ufaq_ajax_reload( 'Yes', 'No' );
471	});
472
473	jQuery( '.ewd-ufaq-load-more' ).off( 'click' ).on( 'click', function() {
474
475		var current_page = jQuery( '.ewd-ufaq-bottom' ).data( 'current_page' );
476
477		jQuery( '.ewd-ufaq-bottom' ).data( 'current_page', current_page + 1 );
478		jQuery( '.ewd-ufaq-max-faqs-not-reached' ).remove();
479
480		ewd_ufaq_ajax_reload( 'Yes', 'Yes' );
481	});
482
483	if ( jQuery( '.ewd-ufaq-pagination-infinite_scroll' ).length ) {
484
485		jQuery( window ).scroll( function() {
486
487			var infinite_pos = jQuery( '.ewd-ufaq-pagination-infinite_scroll').position();
488
489			if ( infinite_pos != undefined && jQuery( '.ewd-ufaq-bottom' ).data( 'current_page' ) != jQuery( '.ewd-ufaq-bottom' ).data( 'max_page' ) ) {
490
491				if  ( ( jQuery( window ).height() + jQuery( window ).scrollTop() > infinite_pos.top ) && filtering_running == false ) {
492
493					jQuery( '.ewd-ufaq-bottom' ).data( 'current_page', jQuery( '.ewd-ufaq-bottom' ).data( 'current_page' ) + 1 );
494
495					ewd_ufaq_ajax_reload( 'Yes', 'Yes' );
496				}
497			}
498		});
499	}
500}
501
502function UFAQUpdatePaginationButtons() {
503
504	jQuery('.ewd-ufaq-bottom').first().appendTo('.ewd-ufaq-faq-list');
505
506	if ( jQuery( '.ewd-ufaq-bottom' ).data( 'current_page' ) < jQuery( '.ewd-ufaq-bottom' ).data( 'max_page' ) ) {
507
508		jQuery( '.ewd-ufaq-load-more, .ewd-ufaq-next-faqs' ).removeClass( 'ewd-ufaq-hidden' );
509	}
510	else { jQuery( '.ewd-ufaq-load-more, .ewd-ufaq-next-faqs' ).addClass( 'ewd-ufaq-hidden' ); }
511
512	if ( jQuery( '.ewd-ufaq-bottom' ).data( 'current_page' ) <= 1 ) {
513
514		jQuery( '.ewd-ufaq-previous-faqs' ).addClass( 'ewd-ufaq-hidden' );
515	}
516	else { jQuery( '.ewd-ufaq-previous-faqs' ).removeClass( 'ewd-ufaq-hidden' ); }
517}
518
519function UFAQWPFormsHandler() {
520	
521	if ( typeof wpforms_integration === 'undefined' || wpforms_integration === null ) { return; }
522
523	if ( wpforms_integration.ufaq_enabled == 'disabled' ) { return; }
524
525	var target_field = wpforms_integration.ufaq_selected_field;
526
527	jQuery( '#wpforms-' + wpforms_integration.form_id + '-field_' + wpforms_integration.ufaq_selected_field ).on( 'keyup', function() {
528
529		var search_string = jQuery( this ).val();
530
531		if ( search_string.length >= wpforms_integration.ufaq_minimum_characters ) {
532
533			jQuery( '.ewd-ufaq-wpforms-faq-results' ).removeClass( 'ewd-ufaq-hidden' );
534			jQuery( '.ewd-ufaq-wpforms-label' ).removeClass( 'ewd-ufaq-hidden' );
535
536			ewd_ufaq_ajax_reload( 'No', 'No', search_string );
537		}
538		else if ( ! filtering_running ) {
539
540			jQuery( '.ewd-ufaq-faqs' ).html( ' ' );
541			jQuery( '.ewd-ufaq-wpforms-faq-results' ).addClass( 'ewd-ufaq-hidden' );
542			jQuery( '.ewd-ufaq-wpforms-label' ).addClass( 'ewd-ufaq-hidden' );
543		}
544
545	});
546}
547
548/*jQuery(document).ready(function() {
549  jQuery('a[href*=#]:not([href=#])').click(function() {
550  	var post_id = jQuery(this).attr("data-postid"); 
551    var selectedIDString = 'ewd-ufaq-body-'+post_id;
552    
553    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
554      var target = jQuery(this.hash);
555      target = target.length ? target : jQuery('[name=' + this.hash.slice(1) +']');
556      if (target.length) {
557
558    jQuery('html,body').on("scroll mousedown wheel DOMMouseScroll mousewheel keyup touchmove", function(){
559       jQuery('html,body').stop();
560    });
561		
562		if (jQuery('#'+selectedIDString).hasClass("ewd-ufaq-hidden")) {
563			EWD_UFAQ_Reveal_FAQ(post_id, selectedIDString);
564		}
565
566        jQuery('html,body').animate({
567          scrollTop: target.offset().top
568        }, 1000);
569        //return false;
570      }
571    }
572  });
573});*/

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.