<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<table>
<thead role="rowgroup">
<tr role="row">
<th role="columnheader" data-field="id" rowspan="1"
data-title="" data-index="0" class="k-header">
<div class="text-center">
<label class="px-single"><input type="checkbox" class="px" id=
"check-all-main">
<span class="lbl"></span></label>
</div>
</th>
<th role="columnheader" data-field="name" rowspan="1"
data-title="Name" data-index="1" class=
"k-header k-with-icon k-filterable" data-role=
"columnsorter" data-dir="asc" aria-sort="ascending">
<a class="k-grid-filter" href="#" tabindex=
"-1"></a><a class="k-link" href="#">Name</a></th>
<th role="columnheader" data-field="title" rowspan=
"1" data-title="Title" data-index="2" class=
"k-header k-with-icon k-filterable" data-role=
"columnsorter"><a class="k-grid-filter" href="#"
tabindex="-1"></a><a class="k-link" href=
"#">Title</a></th>
</tr>
</thead>
</table>
<table role="grid">
<tbody role="rowgroup">
<tr role=
"row">
<td role="gridcell">
<div class="text-center">
<label class="px-single"><input type="checkbox" class="px check-main">
<span class="lbl"></span></label>
</div>
</td>
<td role="gridcell">Test</td>
<td role="gridcell">VP Technology</td>
</tr>
<tr class="k-alt" role="row">
<td role="gridcell">
<div class="text-center">
<label class="px-single"><input type="checkbox" class="px check-main">
<span class="lbl"></span></label>
</div>
</td>
<td role="gridcell">Test</td>
<td role="gridcell">-</td>
</tr>
<tr role=
"row">
<td role="gridcell">
<div class="text-center">
<label class="px-single"><input type="checkbox" class="px check-main">
<span class="lbl"></span></label>
</div>
</td>
<td role="gridcell">Test</td>
<td role="gridcell">-</td>
</tr>
<tr class="k-alt" role="row">
<td role="gridcell">
<div class="text-center">
<label class="px-single"><input type="checkbox" class="px check-main">
<span class="lbl"></span></label>
</div>
</td>
<td role="gridcell">Test</td>
<td role="gridcell">-</td>
</tr>
<tr role="row">
<td role="gridcell">
<div class="text-center">
<label class="px-single"><input type="checkbox" class="px check-main">
<span class="lbl"></span></label>
</div>
</td>
<td role="gridcell">Test</td>
<td role="gridcell">-</td>
</tr>
</tbody>
</table>
</body>
</html>
.px-single input.px {
margin: 0 !important;
}
input.px {
position: absolute !important;
left: -1000000px !important;
margin: 0 !important;
padding: 0 !important;
}
input.px + .lbl {
position: relative;
padding-left: 1px;
display: inline-block;
}
.px-single input.px + .lbl {
padding: 0 !important;
width: 15px !important;
height: 15px !important;
}
input.px:focus + .lbl:before,
input.px + .lbl:hover:before {
border-color: #1d89cf;
}
input.px + .lbl:before {
content: "";
opacity: 1;
border: 1px solid #bbb;
background: #fff;
display: block;
position: absolute;
top: 0;
left: 0;
width: 15px;
height: 15px;
box-sizing: border-box;
box-sizing: border-box;
box-sizing: border-box;
transition: all 0.2s;
transition: all 0.2s;
cursor: pointer;
}
input[type="checkbox"].px + .lbl:after {
color: #1d89cf;
}
Output
300px
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. |