Skip to content

Commit

Permalink
npm updates, version label, example datasets, example summaries, misc
Browse files Browse the repository at this point in the history
  • Loading branch information
AjitPS committed Nov 23, 2018
1 parent c144a84 commit b36dca6
Show file tree
Hide file tree
Showing 27 changed files with 9,129 additions and 611 deletions.
9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules/*
bower_components/
.tmp/
css/
image/
image_legend/
libs/
javascript/

14 changes: 13 additions & 1 deletion css_demo/index-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,19 @@ body {
padding-top: 10px;
}

#networkLegend_frame {
#dataset-description {
width: 95%;
border: 1px dashed grey;
font-size:18px;
}

#dataset-desc {
margin-top: 0px;
padding-top: 10px;
display: inline-block;
}

#networkLegend_frame {
border: 1px solid gray;
padding: 10px;
border-radius: 6px;
Expand Down
10 changes: 9 additions & 1 deletion js_demo/launchNetwork.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,25 @@
};

function launchNetwork(jsonFileName) {
var data= "sampleFiles/"+ jsonFileName +".json";
var data= "sampleFiles/"+ jsonFileName +".js";
//console.log("launchNetwork>> dataset: "+ data);
var datasetDescription_text= "sampleFiles/"+ jsonFileName +"_summary.txt";
try {

// Include this file's contents on the page at runtime using jQuery and a callback function.
jQuery.getScript(data, function() {
knetmaps.drawRaw('#knet-maps', data.graph);
});

// add dataset description for end-users
jQuery.get(datasetDescription_text, function(data) {
// update dataset description
$("#dataset-description").html('<p id="dataset-desc">'+data+'</p>');
});
}
catch(err) {
var errorMsg= err.stack+":::"+err.name+":::"+err.message;
console.log(errorMsg);
}
}

Loading

0 comments on commit b36dca6

Please sign in to comment.