git.haldean.org sousvide / 8ae666c
Change blue secondary so black text looks better against it Will Haldean Brown 7 years ago
2 changed file(s) with 5 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
5454 id="target_input"
5555 name="target"
5656 class="bg-secondary">°C
57 <input type="submit" style="display:none;">
5857 </form>
5958 </td>
6059 </tr>
0 var primary, secondary, graph
0 var primary, secondary, highlight
11
2 function setTheme(p, s, g) {
2 function setTheme(p, s, h) {
33 primary = p
44 secondary = s
5 graph = g
5 highlight = h
66 reapplyTheme();
77 }
88
9 function setBlue() { setTheme("#5116FE", "#45317E", "#000"); }
9 function setBlue() { setTheme("#5116FE", "#8A98FE", "#000"); }
1010 function setOrange() { setTheme("#FE4F00", "#FFB213", "#000"); }
1111
1212 function reapplyTheme() {
1515 d3.selectAll('.fg-primary').transition().style('color', primary)
1616 d3.selectAll('.fg-secondary').transition().style('color', secondary)
1717 d3.selectAll('.targetline').transition().style('stroke', secondary)
18 d3.selectAll('.line').transition().style('stroke', graph)
18 d3.selectAll('.line').transition().style('stroke', highlight)
1919 }
2020