mirror of
https://github.com/nhammer514/textfiles-politics.git
synced 2025-05-13 03:52:11 -04:00
person & ent network
This commit is contained in:
parent
ea5c6b14db
commit
27fd3ec7f9
23 changed files with 298534 additions and 0 deletions
29
xquery/ent-file-net/web_session/scripts/main.js
Normal file
29
xquery/ent-file-net/web_session/scripts/main.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
$(function() {
|
||||
"use strict";
|
||||
|
||||
function e(e, n) {
|
||||
for (var t = n.length, o = 0; t >= o; o++) {
|
||||
var s = n[o].title;
|
||||
if (s === e) return n[o]
|
||||
}
|
||||
return null
|
||||
}
|
||||
var n = "#cy",
|
||||
network = networks[Object.keys(networks)[0]],
|
||||
style = styles[0];
|
||||
$(n).cytoscape({
|
||||
layout: {
|
||||
name: "preset",
|
||||
padding: 10
|
||||
},
|
||||
boxSelectionEnabled: !0,
|
||||
ready: function() {
|
||||
window.cy = this,
|
||||
cy.load(network.elements), console.log(network);
|
||||
console.log(style);
|
||||
var o = e("default", style);
|
||||
null === o && (o = style), cy.style().fromJson(o.style).update()
|
||||
|
||||
}
|
||||
})
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue