PageSourceSearch

https://www.iconcert.ro/wp-content/themes/concertist/assets/js/turnstile-init.js?ver=1785010110

js iconcert.ro collected 2026-10-02 08:04:40 UTC 1,225 bytes, 35 lines download raw bytes

1(function () {
2  'use strict';
3
4  var ready = false;
5
6  // Cloudflare apelează asta după ce api.js s-a încărcat (?onload=... în URL-ul scriptului).
7  window.iconcertTurnstileOnLoad = function () {
8    ready = true;
9    renderAll();
10  };
11
12  function renderOne(el) {
13    if (!el || el.dataset.rendered === '1') return;
14    if (el.offsetParent === null) return; // ascuns (alt tab din modal) — se randează la afișare
15
16    var params = { sitekey: el.dataset.sitekey };
17    if (el.dataset.theme)      params.theme      = el.dataset.theme;
18    if (el.dataset.size)       params.size       = el.dataset.size;
19    if (el.dataset.appearance) params.appearance = el.dataset.appearance;
20
21    turnstile.render(el, params);
22    el.dataset.rendered = '1';
23  }
24
25  function renderAll() {
26    if (!ready || typeof turnstile === 'undefined') return;
27    var widgets = document.querySelectorAll('.cf-turnstile');
28    for (var i = 0; i < widgets.length; i++) renderOne(widgets[i]);
29  }
30
31  // Expus pentru account.js/newsletter.js — apelat când un modal/tab ascuns devine vizibil.
32  window.iconcertRenderTurnstile = renderAll;
33
34  renderAll(); // în caz că turnstile.js s-a încărcat deja (script cache-uit, re-navigare etc.)
35})();

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.