Skip to content

Commit

Permalink
Place the clear button in the same row as the radio buttons
Browse files Browse the repository at this point in the history
Creates a single row of "tools" differentiated from the next row of "data
selection" dropdowns. Addresses one part of #64.
  • Loading branch information
huddlej committed Feb 6, 2020
1 parent e824f6b commit 232d09c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions docs/_javascript/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,7 @@ window.addEventListener('DOMContentLoaded', (event) => {
d3.select("#markdown-url").property('value'))
);

var clearButton = d3.select("#line_plot")
.insert("button", "svg")
.text("clear selections")
.attr("id", "clearButton")
.classed("button", true)
var clearButton = d3.select("#clearButton")
.on('click', clearbuttonchange);

var conditiondropdown = d3.select("#line_plot")
Expand Down
1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ <h4>Instructions:</h4>
<p>
<input type='radio' id="select" name="mode" value="select" checked /> select
<input type='radio' id="deselect" name="mode" value="deselect" /> deselect
<button id="clearButton" class="button">clear selections</button>
</p>

<div id="line_plot" class="row"></div>
Expand Down

0 comments on commit 232d09c

Please sign in to comment.