Skip to content

Commit

Permalink
clean up test page
Browse files Browse the repository at this point in the history
  • Loading branch information
samussiah committed Jul 23, 2019
1 parent 73cb86f commit eedc24b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5,027 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions test-page/index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<title>Query Overview</title>
<title>Query Overview: Test Page</title>
<meta http-equiv = 'Content-Type' content = 'text/html; charset = utf-8'>

<script type = 'text/javascript' src = 'https://d3js.org/d3.v3.min.js'></script>
<script type = 'text/javascript' src = 'https://cdn.jsdelivr.net/gh/RhoInc/Webcharts/build/webcharts.min.js'></script>
<script type = 'text/javascript' src = '../queryOverview.js'></script>


<link type = 'text/css' rel = 'stylesheet' href = 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.css'>
<link type = 'text/css' rel = 'stylesheet' href = 'https://cdn.jsdelivr.net/gh/RhoInc/Webcharts/css/webcharts.min.css'>
<link type = 'text/css' rel = 'stylesheet' href = 'https://cdn.jsdelivr.net/gh/RhoInc/Webcharts/css/webcharts.min.css'>
<link type = 'text/css' rel = 'stylesheet' href = './index.css'>

</head>
Expand Down
20 changes: 0 additions & 20 deletions test-page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,5 @@ d3.csv(
} // settings
);
instance.init(data);

//Add button that toggles bootstrap styling.
const bootstrapToggle = d3.select('#title')
.append('button')
.attr('id', 'bootstrap-toggle')
.style('float', 'right')
.text('Enable bootstrap');
bootstrapToggle
.on('click', function() {
const bootstrap = d3.selectAll("link")
.filter(function() {
return /bootstrap.css/.test(this.href);
});
const disabled = bootstrap.property('disabled');
bootstrap.property('disabled', !disabled);
bootstrapToggle.text((disabled ? 'Disable' : 'Enable') + ' bootstrap');
instance.draw();
});


}
);
Loading

0 comments on commit eedc24b

Please sign in to comment.