Skip to content

Commit b36dca6

Browse files
committed
npm updates, version label, example datasets, example summaries, misc
1 parent c144a84 commit b36dca6

27 files changed

Lines changed: 9129 additions & 611 deletions

.npmignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules/*
2+
bower_components/
3+
.tmp/
4+
css/
5+
image/
6+
image_legend/
7+
libs/
8+
javascript/
9+

css_demo/index-style.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,19 @@ body {
1919
padding-top: 10px;
2020
}
2121

22-
#networkLegend_frame {
22+
#dataset-description {
23+
width: 95%;
24+
border: 1px dashed grey;
25+
font-size:18px;
26+
}
27+
28+
#dataset-desc {
29+
margin-top: 0px;
30+
padding-top: 10px;
31+
display: inline-block;
32+
}
33+
34+
#networkLegend_frame {
2335
border: 1px solid gray;
2436
padding: 10px;
2537
border-radius: 6px;

js_demo/launchNetwork.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,25 @@
1010
};
1111

1212
function launchNetwork(jsonFileName) {
13-
var data= "sampleFiles/"+ jsonFileName +".json";
13+
var data= "sampleFiles/"+ jsonFileName +".js";
1414
//console.log("launchNetwork>> dataset: "+ data);
15+
var datasetDescription_text= "sampleFiles/"+ jsonFileName +"_summary.txt";
1516
try {
1617

1718
// Include this file's contents on the page at runtime using jQuery and a callback function.
1819
jQuery.getScript(data, function() {
1920
knetmaps.drawRaw('#knet-maps', data.graph);
2021
});
22+
23+
// add dataset description for end-users
24+
jQuery.get(datasetDescription_text, function(data) {
25+
// update dataset description
26+
$("#dataset-description").html('<p id="dataset-desc">'+data+'</p>');
27+
});
2128
}
2229
catch(err) {
2330
var errorMsg= err.stack+":::"+err.name+":::"+err.message;
2431
console.log(errorMsg);
2532
}
2633
}
34+

0 commit comments

Comments
 (0)