Skip to content

Commit

Permalink
organize files
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-ji authored and spond committed Oct 1, 2024
1 parent 4fe3932 commit 12dd084
Show file tree
Hide file tree
Showing 11 changed files with 55,469 additions and 44,384 deletions.
1,769 changes: 1,020 additions & 749 deletions html/network.html

Large diffs are not rendered by default.

23 changes: 12 additions & 11 deletions html/social.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>CDC HIV-TRACE Workshop</title>

<!-- Latest compiled and minified CSS -->
<link href="../dist/hivtrace.css" rel="stylesheet" />
<link href="/dist/hivtrace.css" rel="stylesheet" />

<!-- no favicon, prevent 404 errors -->
<link rel="shortcut icon" href="#" />
Expand Down Expand Up @@ -72,9 +72,10 @@
</li>
</ul>

<form class="navbar-form navbar-right">
<div class="form-group" id="network_status_string"></div>
</form>
<div
class="navbar-form navbar-right"
id="network_status_string"
></div>
</div>
<!-- /.navbar-collapse -->
</div>
Expand Down Expand Up @@ -775,7 +776,7 @@ <h4 class="modal-title">Listing nodes in cluster X</h4>
<img class="hidden" id="hyphy-chart-image" />
<canvas class="hidden" id="hyphy-chart-canvas"></canvas>

<script src="../dist/hivtrace.js"></script>
<script src="/dist/hivtrace.js"></script>

<script>
var network_container = "#network_tag",
Expand Down Expand Up @@ -854,15 +855,15 @@ <h4 class="modal-title">Listing nodes in cluster X</h4>
d3.select(d3.select(this).attr("href")).style("display", null);
});

hivtrace.misc.export_table_to_text(
hivtrace.helpers.render_button_export_table_to_text(
"#cluster-table-export",
cluster_table
);
hivtrace.misc.export_table_to_text(
hivtrace.helpers.render_button_export_table_to_text(
"#subcluster-table-export",
subcluster_table
);
hivtrace.misc.export_table_to_text(
hivtrace.helpers.render_button_export_table_to_text(
"#node-table-export",
node_table
);
Expand Down Expand Up @@ -926,7 +927,7 @@ <h4 class="modal-title">Listing nodes in cluster X</h4>

var initialize_cluster_network_graphs = function () {
//Initialize clusternetworkgraph with json url
url = "/workshop/SocialDemoFiles/SocialNetwork.trace.json";
url = "/sample_data/workshop/SocialDemoFiles/SocialNetwork.trace.json";
//url = "sample_data/LA.json"

d3.json(url, function (error, results) {
Expand Down Expand Up @@ -1097,10 +1098,10 @@ <h4 class="modal-title">Listing nodes in cluster X</h4>
});

d3.csv(
"workshop/SocialDemoFiles/SocialAttributes.csv",
"sample_data/workshop/SocialDemoFiles/SocialAttributes.csv",
function (error, nodes) {
d3.csv(
"workshop/SocialDemoFiles/SocialEdges.csv",
"sample_data/workshop/SocialDemoFiles/SocialEdges.csv",
function (error, edges) {
_loaded_network_data["nodes"] = nodes;
_loaded_network_data["edges"] = edges;
Expand Down
Loading

0 comments on commit 12dd084

Please sign in to comment.