CoreFiles by mySites.guru
recaptcha.es6.js26 lines, 803 bytes, from Joomla_4.0.0-alpha7-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha6
md5
a3d8f4b66bde886ac3e1f19a99d343b3
sha1
721d29fded92dff85be37bdb711bba56c752df7c
sha256
223d189518a99eed896f1cf2df89a9e2248930277688a43f5effef36005ca1be
/**
* PLEASE DO NOT MODIFY THIS FILE. WORK ON THE ES6 VERSION.
* OTHERWISE YOUR CHANGES WILL BE REPLACED ON THE NEXT BUILD.
**/

/**
 * @package     Joomla.JavaScript
 * @copyright   Copyright (C) 2005 - 2019 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);
  });
};

No other release has this exact content. See every version of this file.