CoreFiles by mySites.guru
recaptcha.es6.js22 lines, 679 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
968fcce91b53e80a065bcff4743ad62a
sha1
1eed6ddedd72348bfbb3b8aa0cc8a03d6bd80e35
sha256
e011a682cc8a75f637c4796369a7a02bd9107d9a337a452f21fdd4985b7f575a
/**
 * @package     Joomla.JavaScript
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

window.JoomlaInitReCaptcha2 = () => {
  'use strict';

  const itemNodes = document.getElementsByClassName('g-recaptcha');
  const items = [].slice.call(itemNodes);
  items.forEach((item) => {
    const options = item.dataset ? item.dataset : {
      sitekey: item.getAttribute('data-sitekey'),
      theme: item.getAttribute('data-theme'),
      size: item.getAttribute('data-size'),
    };

    /* global grecaptcha */
    grecaptcha.render(item, options);
  });
};

The same content is in 2 releases, Joomla 4.0.0-alpha5 to 4.0.0-alpha6. See them all, or every version of this file.