PageSourceSearch

https://exploreevolution.com/wp-content/themes/beacons/sites/explo…/exploreevolution.js?ver=1771542214

js exploreevolution.com collected 2026-10-02 13:35:50 UTC 1,136 bytes, 40 lines download raw bytes

1// August 20, 2019 (updated November 5, 2024)
2// JS for generating random quotes for the side widget.
3
4var request1 = new XMLHttpRequest();
5
6// get all text from the endorsements page
7request1.addEventListener(
8  "load",
9  function (evt) {
10    // make sure the request was successful
11    if (request1.readyState === request1.DONE) {
12      if (request1.status === 200) {
13        var toLength = 0;
14        var quotes = [];
15
16        var blockquote_matches = request1.response.querySelectorAll('blockquote');
17
18        blockquote_matches.forEach((blockquote) => {
19          quotes.push(blockquote.outerHTML);
20        });
21
22        toLength = quotes.length;
23
24        if (toLength > 0) {
25          // find a random number between 0 and the length of the array
26          var randomNumber = Math.floor(Math.random() * (toLength - 1)) + 1;
27
28          // put the quote into the side widget
29          document.getElementById("random-quote").innerHTML =
30            quotes[randomNumber];
31        }
32      }
33    }
34  },
35  false
36);
37
38request1.open("GET", "https://exploreevolution.com/quotes/", true);
39request1.responseType = 'document';
40request1.send();

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.