PageSourceSearch

https://banyanwealth.com/wp-content/themes/banyan-wealth/js/simply-split.js

js banyanwealth.com collected 2026-10-07 19:35:55 UTC 1,418 bytes, 58 lines download raw bytes

1// Split Text
2// It splits the damn text
3// by: Christian Seymour
4
5// Define Text
6const split = document.querySelectorAll(".split");
7// Counter
8let counter = 0;
9
10// Split the text
11split.forEach(function (node) {
12  // Split Type
13  const splitType = node.getAttribute("data-split-type");
14
15  // Get Text
16  let text = node.innerHTML;
17  text = text.split("");
18
19  //Define Opening
20  let output = "";
21  if (splitType == "letters" || splitType == null) {
22    output = "<div class='sw'>";
23    // Wrap Individual Letters
24    text.forEach((letter) => {
25      // Wrap if this character is not a space
26      if (letter !== " ") {
27        // Add to Counter
28        counter++;
29        output += "<span class='sl' id='sl-" + counter + "'>" + letter + "</span>";
30      }
31      //Close word tag and open new one if this character is a space.
32      else {
33        output += "</div><div class='sw'>";
34      }
35    });
36  }
37
38  if (splitType == "words") {
39    output = "<div class='sw'><span>";
40    // Wrap Individual Letters
41    text.forEach((letter) => {
42      // Wrap if this character is not a space
43      if (letter !== " ") {
44        // Add to Counter
45        counter++;
46        output += letter;
47      }
48      //Close word tag and open new one if this character is a space.
49      else {
50        output += "</span></div><div class='sw'><span>";
51      }
52    });
53  }
54
55  //Close Output
56  output += "</div>";
57  node.innerHTML = output;
58});

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.