CoreFiles by mySites.guru
recaptcha.js26 lines, 811 bytes, from Joomla_4.0.0-alpha7-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha6
md5
472c352b59d83a0fa0662ff32c06fb27
sha1
0c02ebc69909970e3b2940d179e33abdf1516720
sha256
43f8bb665e387f1fada2cb810a3fae1189acc31e3ef8f35121d26e717722c18e
/**
* 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 = function () {
  'use strict';

  var itemNodes = document.getElementsByClassName('g-recaptcha');
  var items = [].slice.call(itemNodes);
  items.forEach(function (item) {
    var 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.