Created
August 26, 2015 21:39
-
-
Save anonymous/541a3af0d8df035fff37 to your computer and use it in GitHub Desktop.
Inlet test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script> | |
</head> | |
<body> | |
<span id="answer"></span> | |
<script> | |
//Click on the hex value or number below: | |
var color = "#007569" | |
var theAnswer = 42; | |
d3.select("#answer").text(theAnswer) | |
.style({color: color, "font-size": 442}) | |
//Usage looks like: | |
//var editor = CodeMirror(...); | |
//Inlet(editor); | |
//You can also use hsl colors | |
var color2 = "hsl(133,100%,90%)" | |
d3.select("body").style("background-color", color2); | |
</script> | |
</body> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment