PageSourceSearch

https://zoa.org/wp-content/themes/zoa2021/scripts/gform-turnstile.js?ver=1790885821

js zoa.org collected 2026-10-02 04:29:39 UTC 746 bytes, 25 lines download raw bytes

1// Render Cloudflare Turnstile in Gravity Forms (DEV-2186).
2(function($) {
3	function renderTurnstile() {
4		if (typeof window.turnstile === 'undefined') {
5			return;
6		}
7		window.gform = window.gform || {};
8		gform.turnstile = gform.turnstile || { widgets: {} };
9
10		$('.cf-turnstile').each(function() {
11			// Skip widgets the add-on (or an earlier call) already rendered
12			if (this.children.length) {
13				return;
14			}
15			var formId = this.id.replace('cf-turnstile_', '');
16			gform.turnstile.widgets[formId] = turnstile.render(this);
17		});
18	}
19
20	$(document).on('gform_post_render', function() {
21		// Let the add-on's own gform_post_render handler run first
22		setTimeout(renderTurnstile, 0);
23	});
24	$(window).on('load', renderTurnstile);
25})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.