PageSourceSearch

https://www.sciencemadness.org/whisper/js/ticker.js

js sciencemadness.org collected 2026-10-02 04:32:38 UTC 1,037 bytes, 47 lines download raw bytes

1var node     = '';
2var current  = 0;
3var contents = new Array();
4var running  = false;
5var runid    = '';
6var tnode    = '';
7
8function nodechange(node, text) {
9    if (node.nodeType == 3) {
10        node = text;
11    } else {
12        node.innerHTML = text;
13    }
14}
15
16function tickerrun() {
17    nodechange(node, contents[current]);
18    if (current == contents.length-1) {
19        current = 0;
20    } else {
21        current++;
22    }
23}
24
25function tickertoggle() {
26    if (running === true) {
27        running = false;
28        window.clearInterval(runid);
29        nodechange(tnode, startticker);
30    } else {
31        tickerstart();
32    }
33}
34
35function tickerstart() {
36    node = document.getElementById("tickerdiv");
37    tnode = document.getElementById("tickertoggle");
38    nodechange(tnode, stopticker);
39    tickerrun();
40    runid = window.setInterval(tickerrun, delay, '');
41    running = true;
42}
43
44function setTickerEvent() {
45    var old = (window.onload) ? window.onload : function () {};
46    window.onload = function () {old(); tickerstart()};
47}

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.