PageSourceSearch

https://nouveautheatrepopulaire.fr/wp-content/themes/bridge/js/custom_js.js?ver=1688400740

js nouveautheatrepopulaire.fr collected 2026-10-05 19:24:03 UTC 1,937 bytes, 63 lines download raw bytes

1
2var $j = jQuery.noConflict();
3
4$j(document).ready(function() {
5	"use strict";
6
7	window.requestAnimationFrame =
8  window.requestAnimationFrame ||
9  window.mozRequestAnimationFrame ||
10  window.webkitRequestAnimationFrame ||
11  window.msRequestAnimationFrame ||
12  function preventErrorsOnRequestAnimationFrame(func) { func(); };
13
14function writeLetters (node, text, index, speed, done) {
15  if (index >= text.length) return done();
16  var adjustedSpeed = text[index] === '.' ? speed * 20 : speed;
17  window.requestAnimationFrame(function () {
18    node.innerHTML += text[index];
19    setTimeout(function () {
20      writeLetters(node, text, index + 1, speed, done);
21    }, adjustedSpeed);
22  });
23}
24
25function writeEffect (node, html, speed, done) {
26  var dummy = document.createElement('p');
27  dummy.innerHTML = html.replace(/<br>/g, 'EOL');
28  var texts = dummy.textContent.split('EOL').map(function (text) {
29    return text.trim();
30  });
31
32  var i = -1;
33  function writeNextTextBlock () {
34    if (++i >= texts.length) return onDone();
35    if (i > 0) window.requestAnimationFrame(function () { node.innerHTML += '<br>'; });
36    writeLetters(node, texts[i], 0, speed, writeNextTextBlock);
37  }
38  writeNextTextBlock();
39
40  function onDone () {
41    window.requestAnimationFrame(function () { node.innerHTML = html; });
42    done();
43  }
44}
45
46(function () {
47  try {
48    var paragraphs = document.querySelector('.home .content .full_width_inner').children;
49    var htmls = [];
50    for (var index = 0; index < paragraphs.length; index++) {
51      htmls.push(paragraphs[index].innerHTML);
52      paragraphs[index].innerHTML = '';
53      paragraphs[index].style.color = '#ffffff';
54    }
55
56    var i = -1;
57    function writeNextParagraph () {
58      if (++i >= paragraphs.length) return;
59      writeEffect(paragraphs[i], htmls[i], 10, writeNextParagraph);
60    }
61    writeNextParagraph();
62  } catch (e) {}
63})();});

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.