<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<style>
body {
font-family: Arial;
}
</style>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 480 150" width="480" height="150">
<style>
text {
dominant-baseline: central;
font-size: 13px;
}
.labels > text {
text-anchor: end;
fill: gray;
font-size: 11px;
}
</style>
<rect x="5" y="5" width="470" height="20" fill="white" stroke="lightgray"/>
<rect x="5" y="25" width="470" height="120" fill="white" stroke="lightgray"/>
<path transform="translate(11,10)" d="M0,0 H5 L8,3 H5 V0 L8,3 V11 H0 V0" stroke="#333" fill="white" stroke-linecap="round" stroke-linejoin="bevel" />
<text x="30" y="15">spec.w<tspan dx="-1.5">|</tspan></text>
<text x="461" y="15" fill="gray">▼</text>
<g transform="translate(17,35)">
<text x="0" y="0">https://html.spec.whatwg.org/</text>
<text x="0" y="20">https://dom.spec.whatwg.org/</text>
<text x="0" y="40">https://fullscreen.spec.whatwg.org/</text>
<text x="0" y="60">https://mediasession.spec.whatwg.org/</text>
<text x="0" y="80">https://notifications.spec.whatwg.org/</text>
<text x="0" y="100">https://encoding.spec.whatwg.org/</text>
</g>
<g transform="translate(450,35)" class="labels">
<text x="0" y="0">HTML</text>
<text x="0" y="20">DOM</text>
<text x="0" y="40">Fullscreen</text>
<text x="0" y="60">Media Session</text>
</g>
<rect x="462" y="25.5" width="12.5" height="119" fill="#EEE"/>
<rect x="463.5" y="26.5" width="10.5" height="40" fill="#BBB"/>
</svg>
<input type="url" name="location" list="urls">
<datalist id="urls">
<option label="HTML" value="https://html.spec.whatwg.org/">
<option label="DOM" value="https://dom.spec.whatwg.org/">
<option label="Fullscreen" value="https://fullscreen.spec.whatwg.org/">
<option label="Media Session" value="https://mediasession.spec.whatwg.org/">
<!-- <option label="Notifications" value="https://notifications.spec.whatwg.org/">
<option label="Encoding" value="https://encoding.spec.whatwg.org/">
<option label="URLs" value="https://url.spec.whatwg.org/"> -->
</datalist>
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. |