PageSourceSearch

https://www.pcprofessionale.it/wp-content/themes/pcprofessionale-parent/js/modal/modal.js?ver=1

js pcprofessionale.it collected 2026-09-24 09:54:15 UTC 1,508 bytes, 46 lines download raw bytes

1
2document.addEventListener('click', function (e) {
3	e = e || window.event;
4	var target = e.target || e.srcElement;
5
6	if (target.hasAttribute('data-toggle') && target.getAttribute('data-toggle') == 'modal') {
7		if (target.hasAttribute('data-target')) {
8			var m_ID = target.getAttribute('data-target');
9			document.getElementById(m_ID).classList.add('open');
10			e.preventDefault();
11		}
12	}
13
14	// Close modal window with 'data-dismiss' attribute or when the backdrop is clicked
15	if ((target.hasAttribute('data-dismiss') && target.getAttribute('data-dismiss') == 'modal') || target.classList.contains('modal')) {
16		var modal = document.querySelector('[class="modal open"]');
17		modal.classList.remove('open');
18		e.preventDefault();
19	}
20}, false);
21
22/* Back to top - rimosso 26.09.2023
23
24// When the user clicks on the button, scroll to the top of the document
25function topFunction() { //TODO - smooth effect
26	document.body.scrollTop = 0; // For Safari
27	document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
28}
29
30function scrollFunction() { //TODO
31	if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
32		mybutton.style.display = "block";
33	} else {
34		mybutton.style.display = "none";
35	}
36}
37
38document.addEventListener('DOMContentLoaded', function () {
39	//Get the button:
40	mybutton = document.getElementById("back-to-top");
41
42	// When the user scrolls down 20px from the top of the document, show the button
43	window.onscroll = function () { scrollFunction() };
44
45}, false);
46*/

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.