PageSourceSearch

https://www.youco.eu/wp-content/themes/YouCo/youco.js

js youco.eu collected 2026-10-04 16:07:54 UTC 1,430 bytes, 48 lines download raw bytes

1// filtri categorie
2/*
3jQuery(document).ready(function($) {
4    $('.category-filter').on('change', function() {
5        var selectedCategories = [];
6        $('.category-filter:checked').each(function() {
7            selectedCategories.push($(this).val());
8        });
9
10        $.ajax({
11            url: ajaxurl, // URL di amministrazione di WordPress per le richieste Ajax
12            type: 'POST',
13            data: {
14                action: 'filter_posts',
15                categories: selectedCategories
16            },
17            success: function(response) {
18                $('#post-container').html(response);
19            }
20        });
21    });
22});
23*/
24
25document.addEventListener('DOMContentLoaded', function() {
26	setTimeout(function(){
27		const inputs = document.querySelectorAll('.hs-fieldtype-text input');
28		inputs.forEach(input => {
29			input.addEventListener('focus', function() {
30				const parentDiv = this.closest('.hs-fieldtype-text');
31				const label = parentDiv.querySelector('label');
32				if (label) {
33					label.classList.add('label-top');
34				}
35			});
36			// Remove the class when the input loses focus if the input is empty
37			input.addEventListener('blur', function() {
38				if (this.value === '') {
39					const parentDiv = this.closest('.hs-fieldtype-text');
40					const label = parentDiv.querySelector('label');
41					if (label) {
42						label.classList.remove('label-top');
43					}
44				}
45			});
46		});
47	}, 500);
48});

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.