<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<section>
<img src="http://placehold.it/400x400" alt="An image">
<p class="content">
<span>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Error et quisquam itaque cupiditate deleniti soluta aliquam numquam maxime nesciunt quae pariatur libero illum est eum dolores possimus perspiciatis repudiandae eaque.</span>
<span>Optio placeat laudantium tempore molestias iusto iure molestiae! Facilis minima eos nam soluta animi harum sit doloribus cumque est aut rerum et reiciendis nemo dolores ea beatae architecto labore veritatis.</span>
<span>A neque mollitia debitis at accusantium rem praesentium atque beatae sed tenetur ad impedit optio voluptates expedita dolorum pariatur autem est libero ipsum sunt natus facere quos dolor facilis rerum.</span>
<span>Quam adipisci consequatur dolor possimus dolore ducimus ipsum ratione maxime quis in magni laborum magnam. Officiis velit magnam molestiae aliquam enim illo asperiores sint. Inventore eos minus fugiat dolores vitae.</span>
<span>Corrupti beatae sed odit veritatis unde ex a consectetur blanditiis facere iste facilis quibusdam sint in maiores qui sunt impedit quae alias dolor aspernatur! Voluptas unde distinctio commodi repellendus ducimus.</span>
<span>Id voluptas commodi ad earum atque accusamus magnam doloribus ullam. Sequi ex aliquam repellat quos magni vel sit blanditiis nostrum itaque quisquam nisi nam voluptates fugit vitae eaque voluptatibus incidunt.</span>
<span>Esse obcaecati consequatur id quis odio dolorem et fuga suscipit fugit veritatis amet earum laudantium voluptas adipisci eveniet maiores numquam asperiores iusto nobis expedita quibusdam odit enim aliquid facilis nostrum.</span>
<span>Expedita necessitatibus inventore provident quasi animi voluptas laborum ad ipsam quidem recusandae fugit doloribus alias voluptates natus cupiditate ullam facilis quam ipsa. Autem magnam deleniti explicabo perferendis quaerat et! Similique!</span>
<span>Aut debitis aspernatur possimus tempore ut excepturi ipsam dolores quae eos provident reprehenderit omnis laboriosam culpa beatae sapiente voluptate deserunt. Ipsa repudiandae iste deleniti rerum nesciunt error sunt atque quaerat.</span>
<span>Cupiditate natus ipsum commodi harum numquam quod vero similique perspiciatis assumenda ad ea atque autem a voluptatibus laboriosam omnis dolor aspernatur fugit nesciunt quasi incidunt tempore vel dicta dolorem aut.</span>
</p>
</section>
</body>
</html>
* {
margin: 0;
padding: 0;
}
section {
overflow: hidden;
}
section img {
float: left;
}
.content {
background-color: gold;
}
.content:before {
content: ' ';
display: table;
width: 10em;
}
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. |