<html>
<head>
<meta charset=utf-8 />
<title>Welcome to JS Bin</title>
<meta name="viewport" content="width=device-width">
<link href='http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="row">
<div class="panel panel-default col-md-3 ">
<div class="panel-heading">Panel heading</div>
<div class="panel-body">
<p>Panel Body</p>
</div>
<!-- Table -->
<div class="table-responsive">
<table class="table">
<thead>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Blah</td>
<td>ASDF</td>
<td>1</td>
<td>Blah</td>
<td>ASDF</td>
<td>1</td>
<td>Blah</td>
<td>ASDF</td>
<td>1</td>
<td>Blah</td>
<td>ASDF</td>
</tr>
<tr>
<td>1</td>
<td>Blah</td>
<td>ASDF</td>
<td>1</td>
<td>Blah</td>
<td>ASDF</td>
<td>1</td>
<td>Blah</td>
<td>ASDF</td>
<td>1</td>
<td>Blah</td>
<td>ASDF</td>
</tr>
<td>1</td>
<td>Blah</td>
<td>ASDF</td>
<td>1</td>
<td>Blah</td>
<td>ASDF</td>
<td>1</td>
<td>Blah</td>
<td>ASDF</td>
<td>1</td>
<td>Blah</td>
<td>ASDF</td>
</tr>
<tr>
<td>1</td>
<td>Blah</td>
<td>ASDF</td>
<td>1</td>
<td>Blah</td>
<td>ASDF</td>
<td>1</td>
<td>Blah</td>
<td>ASDF</td>
<td>1</td>
<td>Blah</td>
<td>ASDF</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>
if (location.pathname === '/welcome' || location.pathname === '/welcome/') {
location = '/welcome/edit?html,live';
}
if (window.location.pathname.indexOf('/edit') !== -1) $('a.open').click(function (event) {
event.preventDefault();
window.top.$('a[href$="' + this.hash + '"]').mousedown().click();
});
var presses = 0;
var spin = [
"Woahohaohaohaahoahaohaohaohaohaoha...",
"Nononono...aiiiiiiiiiiiiieeeeeeee....",
"Aaaaaaaaaghhhhh...woahwoahwoahwoahwoah...",
"You're eeeeeeeeviiiiiiilllllllll....",
"Eee...eee...eee...eee...eee...",
"Woowoowoowoowoowoowoowoowoo..."
];
var stop = [
"Please... never again.",
"I'm so dizzy.",
"That's just... cruel.",
"Don't you have better things to do?",
"I can't feel my toes... oh wait, I don't have any toes!",
"This isn't fun anymore.",
"...",
"I'm going to be sick.",
"Uh-oh, I think I just dropped some tables...",
"Yep, I think I'm about to SQL-project everywhere...",
"SELECT * FROM `stomach`...",
"var_dump($result)...",
"+_+"
];
$('#dave').mousedown(function () {
$('#message').fadeOut(function () {
$(this).text(spin[presses % spin.length]);
presses = presses + 1;
}).fadeIn();
}).mouseup(function () {
$('#message').fadeOut(function () {
$(this).text(stop[presses % stop.length]);
}).fadeIn();
if( presses >= stop.length - 1 ) {
$(this).animate({left: '-999px'}, 1000 * 10, function () {
$(this).animate({left: '0'}, 1000 * 4);
presses = 0;
});
}
});
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. |