<table id="legendTable" cellspacing="0" style="width:100%">
<tr>
<td class="colour" id="legend10"></td>
<td class="legendLabel" id="legend10text">100</td>
</tr>
<tr>
<td class="colour" id="legend9"></td>
<td class="legendLabel" id="legend9text">100</td>
</tr>
<tr>
<td class="colour" id="legend8"></td>
<td class="legendLabel" id="legend8text">100</td>
</tr>
<tr>
<td class="colour" id="legend7"></td>
<td class="legendLabel" id="legend7text">100</td>
</tr>
<tr>
<td class="colour" id="legend6"></td>
<td class="legendLabel" id="legend6text">100</td>
</tr>
<tr>
<td class="colour" id="legend5"></td>
<td class="legendLabel" id="legend5text">100</td>
</tr>
<tr>
<td class="colour" id="legend4"></td>
<td class="legendLabel" id="legend4text">100</td>
</tr>
<tr>
<td class="colour" id="legend3"></td>
<td class="legendLabel" id="legend3text">100</td>
</tr>
<tr>
<td class="colour" id="legend2"></td>
<td class="legendLabel" id="legend2text">100</td>
</tr>
<tr>
<td class="colour" id="legend1"></td>
<td class="legendLabel" id="legend1text">100</td>
</tr>
</table>
#legend10 {
background:linear-gradient(#f00,#f60)
}
#legend9 {
background:linear-gradient(#f60,#fc0)
}
#legend8 {
background:linear-gradient(#fc0,#cf0)
}
#legend7 {
background:linear-gradient(#cf0,#6f0)
}
#legend6 {
background:linear-gradient(#6f0,#0f0)
}
#legend5 {
background:linear-gradient(#0f0,#0f6)
}
#legend4 {
background:linear-gradient(#0f6,#0fc)
}
#legend3 {
background:linear-gradient(#0fc,#0cf)
}
#legend2 {
background:linear-gradient(#0cf,#06f)
}
#legend1 {
background:linear-gradient(#06f,#00f)
}
0 0 #f00
10 24 #f60
20 48 #fc0
30 72 #cf0
30 96 #6f0
40 120 #0f0
50 144 #0f6
60 168 #0fc
70 192 #0cf
80 216 #06f
90 240 #00f
Output
This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account
Dismiss xKeyboard 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. |