D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
enjalot
Full window
Github gist
Bookmarklet
building-blocks
<!DOCTYPE html> <head> <meta charset="utf-8"> <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script> <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'> </head> <style> body { font-size: 70px; font-family: Roboto; } </style> <body> Drag this <a href='javascript:(function()%7Bvar%20current%20%3D%20window.location%20%2B%20%22%22%3Bvar%20newUrl%20%3D%20current.replace(%22https%3A%2F%2Fbl.ocks.org%22%2C%20%22http%3A%2F%2Fblockbuilder.org%22)%3BnewUrl%20%3D%20newUrl.replace(%22http%3A%2F%2Fbl.ocks.org%22%2C%20%22http%3A%2F%2Fblockbuilder.org%22)%3BnewUrl%20%3D%20newUrl.replace(%22https%3A%2F%2Fgist.github.com%22%2C%20%22http%3A%2F%2Fblockbuilder.org%22)%3Bwindow.location%3DnewUrl%7D)()' title="Block Builder">Block Builder</a> link to your bookmark bar to quickly navigate to <a href="https://blockbuilder.org" target="_blank" >blockbuilder.org</a> when viewing any gist or <a href="https://bl.ocks.org" target="_blank">bl.ocks.org</a> page <script> // what the bookmarklet does: // I used https://mrcoles.com/bookmarklet/ to "compile" it /* var current = window.location + "";var newUrl = current.replace("https://bl.ocks.org", "https://blockbuilder.org");newUrl = newUrl.replace("https://bl.ocks.org", "https://blockbuilder.org");newUrl = newUrl.replace("https://gist.github.com", "https://blockbuilder.org");window.location=newUrl */ </script> </body>
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js