<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <title>JS Bin</title>
<script src="https://rawgit.com/Paul-Browne/colymn/master/js/colymn.min.js"></script>
</head>
<body>
<main class="all-col-3-4 phone-center-7-8">
<h1>Hello world</h1>
<div class="all-col-1-3 phone-col-1-2 phone-left-1-16 all-left-0-1"><img src="http://placekitten.com/400/400"></div>
<p>It wasn't a dream. His room, a proper human room although a little too small, lay peacefully between its four familiar walls. A collection of textile samples lay spread out on the table - Samsa was a travelling salesman - and above it there hung a picture that he had recently cut out of an illustrated magazine and housed in a nice, gilded frame. It showed a lady fitted out with a fur hat and fur boa who sat upright, raising a heavy fur muff that covered the whole of her lower arm towards the viewer.One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections. The bedding was hardly able to cover it and seemed ready to slide off any moment. His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked. "What's happened to me?" he thought.</p>
</main>
<aside class="all-col-1-4 phone-center-7-8">
<h2>sidebar</h2>
<p>A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart. I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend, so absorbed in the exquisite sense of mere tranquil existence, that I neglect my talents. I should be incapable of drawing a single stroke at the present moment;</p>
</aside>
<hr>
<h6>a simple offset example</h6>
<div class="test all-col-1-4"></div>
<div class="test all-col-1-4 all-offset-1-4"></div>
<div class="test all-col-1-4"></div>
<hr>
<h6>multiple columns example</h6>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<div class="test phone-col-1-2 phone-portrait-center-1-1 tablet-col-1-4 tablet-portrait-col-1-3 laptop-col-1-5 desktop-col-1-6"></div>
<script>
colymn();
</script>
</body>
</html>
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. |