mirror of https://github.com/CIRCL/lookyloo
Cleanup
parent
8b353e3e76
commit
629370fc74
|
@ -46,7 +46,7 @@ def load_tree(report_dir):
|
|||
ct = CrawledTree(har_files)
|
||||
ct.find_parents()
|
||||
ct.join_trees()
|
||||
temp = tempfile.NamedTemporaryFile(delete=False)
|
||||
temp = tempfile.NamedTemporaryFile(prefix='lookyloo', delete=False)
|
||||
pickle.dump(ct, temp)
|
||||
temp.close()
|
||||
session["tree"] = temp.name
|
||||
|
|
|
@ -37,7 +37,8 @@ var background = init.append('rect')
|
|||
.on('click', function(d) {
|
||||
hostnode_tooltip.transition()
|
||||
.duration(500)
|
||||
.style("opacity", 0);
|
||||
.style("opacity", 0)
|
||||
.style("z-index", -10);
|
||||
});
|
||||
|
||||
// append the svg object to the body of the page
|
||||
|
@ -100,6 +101,7 @@ function hostnode_click(d) {
|
|||
hostnode_tooltip.transition()
|
||||
.duration(200)
|
||||
.style("opacity", .9)
|
||||
.style("z-index", 1)
|
||||
.style("left", (pageX) + "px")
|
||||
.style("top", (pageY - 28) + "px");
|
||||
var list = hostnode_tooltip.append('ul')
|
||||
|
@ -109,8 +111,8 @@ function hostnode_click(d) {
|
|||
var entry = list.append('li')
|
||||
.attr("class", "list-group-item")
|
||||
.attr("url_uuid", jdata['uuid'])
|
||||
.text(jdata['name'])
|
||||
.on('click', function(){urlnode_click(jdata)});
|
||||
.text(jdata['name']);
|
||||
//.on('click', function(){urlnode_click(jdata)});
|
||||
})
|
||||
});
|
||||
}
|
||||
|
@ -407,5 +409,4 @@ function update(source) {
|
|||
}
|
||||
update(d);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue