primo commit

This commit is contained in:
2024-12-17 17:34:10 +01:00
commit e650f8df99
16435 changed files with 2451012 additions and 0 deletions

View File

@ -0,0 +1,28 @@
/**
* @package Joomla.JavaScript
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
((window, document) => {
window.JoomlainitReCaptcha2 = () => {
const optionKeys = ['sitekey', 'theme', 'size', 'tabindex', 'callback', 'expired-callback', 'error-callback'];
document.querySelectorAll('.g-recaptcha').forEach(element => {
let options = {};
if (element.dataset) {
options = element.dataset;
} else {
optionKeys.forEach(key => {
const optionKeyFq = `data-${key}`;
if (element.hasAttribute(optionKeyFq)) {
options[key] = element.getAttribute(optionKeyFq);
}
});
}
// Set the widget id of the recaptcha item
element.setAttribute('data-recaptcha-widget-id', window.grecaptcha.render(element, options));
});
};
})(window, document);

View File

@ -0,0 +1,5 @@
/**
* @package Joomla.JavaScript
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/((c,r)=>{c.JoomlainitReCaptcha2=()=>{const o=["sitekey","theme","size","tabindex","callback","expired-callback","error-callback"];r.querySelectorAll(".g-recaptcha").forEach(t=>{let a={};t.dataset?a=t.dataset:o.forEach(e=>{const i=`data-${e}`;t.hasAttribute(i)&&(a[e]=t.getAttribute(i))}),t.setAttribute("data-recaptcha-widget-id",c.grecaptcha.render(t,a))})}})(window,document);

Binary file not shown.