Skip to content

Instantly share code, notes, and snippets.

@headwinds
Last active July 10, 2018 16:46
Show Gist options
  • Select an option

  • Save headwinds/4c5d28b8b380b70142e9e66462a46a5e to your computer and use it in GitHub Desktop.

Select an option

Save headwinds/4c5d28b8b380b70142e9e66462a46a5e to your computer and use it in GitHub Desktop.
Slide out Text Stat
license: mit

I find myself without a laptop so I'm testing to see if I can still experiment with a iPad stacked on a bunch of Dr. Seuss books tied to a wireless keyboard.

So far the answer is nope.

Built with blockbuilder.org

<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v5.min.js"></script>
<style>
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; }
</style>
</head>
<body>
<script>
// Feel free to change or delete any of the code you see in this editor!
const svg = d3.select("body").append("svg")
.attr("width", 200)
.attr("height", 200)
svg.append("text")
.text("Possible to code on a iPad?!")
.attr("y", 0)
.attr("x", 0)
.attr("font-size", 36)
.attr("font-family", "monospace")
const world = svg.append('g');
world
.append('rect')
.attr('width', 200)
.attr('height', 200)
.style('fill', 'acqua')
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment