INNER CODE UNIT · JavaScript

Cluster

KiranGershenfeld/VisualizingTwitchCommunities · Website/js/main.js:393

function Cluster(a) {
    this.cluster = a;
    this.display = !1;
    this.list = this.cluster.find(".list");
    this.list.empty();
    this.select = this.cluster.find(".select");
    this.select.click(function () {
        $GP.cluster.toggle()
    });
    this.toggle = function () {
        this.display ? this.hide() : this.show()
    };
    this.content = function (a) {
        this.list.html(a);
        this.list.find("a").click(function () {
            var a = $(this).attr("href").substr(1);
            showCluster(a)
        })

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…