INNER CODE UNIT · JavaScript
g
KiranGershenfeld/VisualizingTwitchCommunities · Website/js/main.js:368
g = RegExp(b);
this.exactMatch = !1;
this.searching = !0;
this.lastSearch = a;
this.results.empty();
if (2 >= a.length) this.results.html("<i>You must search for a name with a minimum of 3 letters.</i>");
else {
sigInst.iterNodes(function (a) {
g.test(a.label.toLowerCase()) && c.push({
id: a.id,
name: a.label
})
});
c.length ? (b = !0, nodeActive(c[0].id)) : b = showCluster(a);
a = ["<b>Search Results: </b>"];
if (1 < c.length) for (var d = 0, h = c.length; d < h; d++) a.push('<a href="#' + c[d].name + '" onclick="nodeActive(\'' + c[d].id + "')\">" + c[d].name + "</a>");
0 == c.length && !b && a.push("<i>No results found.</i>");