CoreFiles by mySites.guru
recaptcha.js27 lines, 813 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
63f37b87533fcddecaaada9d1516b7e3
sha1
64a10d15e9980cf8c58290454c7700dab8f2d584
sha256
862abd02880620dc491e1c7a38769432dd7bf3db44dda453e75b8b047f54f823
/**
* 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 - 2018 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.