PageSourceSearch

https://retinamurcia.org/media/com_phocadownload/js/main.js?9420db

js retinamurcia.org collected 2026-10-09 17:11:28 UTC 2,528 bytes, 90 lines download raw bytes

1/*
2 * @package Joomla
3 * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
4 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
5 *
6 * @extension Phoca Download
7 * @copyright Copyright (C) Jan Pavelka www.phoca.cz
8 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
9 */
10
11document.addEventListener("DOMContentLoaded", () => {
12
13
14
15	/*var anchors = document.querySelectorAll('.pg-modal-button');
16	for (var i = 0, length = anchors.length; i < length; i++) {
17	var anchor = anchors[i];
18	anchor.addEventListener('click', event => {
19		// `this` refers to the anchor tag that's been clicked
20		event.preventDefault();
21		console .log(this.getAttribute('href'));
22	}, true);
23	};*/
24
25	// Events
26	document.querySelectorAll('.pd-bs-modal-button').forEach(item => {
27
28
29		item.addEventListener('click', function(event) {
30
31			event.preventDefault();
32			let href = this.getAttribute('href');
33			let title = this.getAttribute('data-title');
34
35			let type = this.getAttribute('data-type');
36
37			//let height = this.getAttribute('data-bs-height-dialog');
38			//let width = this.getAttribute('data-bs-width-dialog');
39
40
41
42			let modalItem = document.getElementById('pdCategoryModal')
43			let modalIframe = document.getElementById('pdCategoryModalIframe');
44			let modalTitle	= document.getElementById('pdCategoryModalLabel');
45
46			//if (height > 0) {
47			//	modalItem.style.height = height + 'px';
48			//}
49			//if (width > 0) {
50			//	modalItem.style.width = width + 'px';
51			//}
52
53			modalItem.className = '';
54			modalItem.classList.add('modal', 'fade', 'show', type);
55			modalIframe.src = href;
56			modalTitle.innerHTML = title;
57
58			//let modal = document.getElementById('phCategoryModal')
59
60			/*modal.addEventListener('shown.bs.modal', function () {
61			myInput.focus()
62			})*/
63
64			let modal = new bootstrap.Modal(modalItem);
65			modal.show();
66
67		})
68	})
69
70	/* Events */
71	/*document.getElementById("filterOptionsClear").addEventListener("click", (event) => {
72		document.getElementById("filterOptionsInput").value = "";
73		filterOptions("");
74	})
75
76	document.getElementById("filterOptionsInput").addEventListener("input", (event) => {
77		let eV = event.currentTarget.value;
78		filterOptions(eV);
79	});*/
80
81
82	var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
83	var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
84		return new bootstrap.Tooltip(tooltipTriggerEl)
85	})
86
87
88});
89
90

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.