Skip to content

Instantly share code, notes, and snippets.

Created August 26, 2015 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/541a3af0d8df035fff37 to your computer and use it in GitHub Desktop.
Save anonymous/541a3af0d8df035fff37 to your computer and use it in GitHub Desktop.
Inlet test

hello markdown

<!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