<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>
</html>
body {
background-color: #703030;
color: #ddd; }
h1, h2, h3, h4, h5, h6 {
font-family: 'Montserrat'; }
nav {
background: #703030;
margin-bottom: 10px; }
nav i {
margin: 10px; }
nav h1 {
text-transform: uppercase;
background: linear-gradient(top, #e3cda4, #703030);
background: linear-gradient(top, #e3cda4, #703030);
background-clip: text;
text-fill-color: transparent; }
.nav-tabs {
border-bottom: 1px solid #7e827a; }
li.ng-isolate-scope a {
background-color: #7e827a;
border: 0;
color: #ddd;
padding: 6px 5px;
text-transform: uppercase;
cursor: pointer; }
li.ng-isolate-scope.active a {
background-color: #7e827a;
border: 0;
color: #ddd;
padding: 5px 6px;
text-transform: uppercase;
font-family: 'Montserrat'; }
.tab-pane {
background-color: #7e827a;
padding: 0 10px 10px 10px; }
path.link {
fill: none;
stroke: #f00;
stroke-width: 2px; }
path.link.move {
stroke: #f00; }
marker#end {
fill: #f00; }
/* vertical alignment styles */
.col-top {
vertical-align: top; }
.col-middle {
vertical-align: middle; }
.col-bottom {
vertical-align: bottom; }
/* fix firefox responsive images */
.img-responsive {
width: 100%; }
/* columns of same height styles */
.container-xs-height {
display: table;
padding-left: 0px;
padding-right: 0px; }
.row-xs-height {
display: table-row; }
.col-xs-height {
display: table-cell;
float: none; }
@media (min-width: 768px) {
.container-sm-height {
display: table;
padding-left: 0px;
padding-right: 0px; }
.row-sm-height {
display: table-row; }
.col-sm-height {
display: table-cell;
float: none; } }
@media (min-width: 992px) {
.container-md-height {
display: table;
padding-left: 0px;
padding-right: 0px; }
.row-md-height {
display: table-row; }
.col-md-height {
display: table-cell;
float: none; } }
@media (min-width: 1200px) {
.container-lg-height {
display: table;
padding-left: 0px;
padding-right: 0px; }
.row-lg-height {
display: table-row; }
.col-lg-height {
display: table-cell;
float: none; } }
form .CustomValidationError {
color: red;
padding: 10px; }
/*# sourceMappingURL=app.css.map */
var svg = d3.select('body')
.append('svg')
.attr("width", '100%') // TODO: change?
.attr("viewBox", '0 0 1152 965'); // TODO: do not hardcode viewBox dimensions
svg.append("svg:defs").selectAll("marker")
.data(["end"]) // Different link/path types can be defined here
.enter().append("svg:marker") // This section adds in the arrows
.attr("id", String)
.attr("viewBox", "0 -5 10 10")
.attr("refX", 15)
.attr("refY", -1.5)
.attr("markerWidth", 10)
.attr("markerHeight", 10)
.attr("orient", "auto")
.append("svg:path")
.attr("d", "M0,-5L10,0L0,5");
svg.append('svg:g')
.selectAll("path")
.data([{}])
.enter().append("svg:path")
.attr("marker-end", "url(#end)")
.attr('class', 'link move')
.attr("d", function(d) {
return "M600,100A510.09802979427394,510.09802979427394 0 0,1 610,610";
});
Output
You can jump to the latest bin by adding /latest
to your URL
Keyboard Shortcuts
Shortcut | Action |
---|---|
ctrl + [num] | Toggle nth panel |
ctrl + 0 | Close focused panel |
ctrl + enter | Re-render output. If console visible: run JS in console |
Ctrl + l | Clear the console |
ctrl + / | Toggle comment on selected lines |
ctrl + ] | Indents selected lines |
ctrl + [ | Unindents selected lines |
tab | Code complete & Emmet expand |
ctrl + shift + L | Beautify code in active panel |
ctrl + s | Save & lock current Bin from further changes |
ctrl + shift + s | Open the share options |
ctrl + y | Archive Bin |
Complete list of JS Bin shortcuts |
JS Bin URLs
URL | Action |
---|---|
/ | Show the full rendered output. This content will update in real time as it's updated from the /edit url. |
/edit | Edit the current bin |
/watch | Follow a Code Casting session |
/embed | Create an embeddable version of the bin |
/latest | Load the very latest bin (/latest goes in place of the revision) |
/[username]/last | View the last edited bin for this user |
/[username]/last/edit | Edit the last edited bin for this user |
/[username]/last/watch | Follow the Code Casting session for the latest bin for this user |
/quiet | Remove analytics and edit button from rendered output |
.js | Load only the JavaScript for a bin |
.css | Load only the CSS for a bin |
Except for username prefixed urls, the url may start with http://jsbin.com/abc and the url fragments can be added to the url to view it differently. |