<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<h1>This is a heading, level 1</h1>
<nav>
<ul class="responsive-nav">
<li><a href="#">Lorem</a></li>
<li><a href="#">Ipsum</a></li>
<li><a href="#">Dolor</a></li>
<li><a href="#">Sit Amet</a></li>
<li><a href="#">About</a></li>
</ul>
</nav>
<p>This is a paragraph.</p>
<h2>This is a heading, level 2</h2>
<ul>
<li>This is a list item</li>
<li>This is the second item</li>
<li>This is the fourth item</li>
</ul>
<p>Here’s some more text</p>
<blockquote>
<p>This is some sort of quote.</p>
</blockquote>
<section class="flow">
<h2>Here’s another heading.</h2>
<p>Here’s some text under that heading.</p>
<ul>
<li>This is a list item.</li>
<li>Here’s another one.</li>
</ul>
<p>And again some text.</p>
<blockquote>
<p>Autem, unde, excepturi quibusdam voluptates dignissimos itaque a rerum possimus suscipit. Ad, molestias, reprehenderit autem sequi libero soluta dicta. Ratione, beatae, officiis!</p>
</blockquote>
<h3>Level 3 heading.</h3>
<p>Some more text. Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
<p> Autem, unde, excepturi quibusdam voluptates dignissimos itaque a rerum possimus suscipit. Ad, molestias, reprehenderit autem sequi libero soluta dicta. Ratione, beatae, officiis!</p>
</section>
</body>
</html>
:root {
var-vertical-base: 1.375;
var-lapsize: 25em;
}
.flow {
var-flow-space: var(vertical-base);
var-flow-liststyle: disc;
background-color: #eee;
}
@media screen and (min-width: 25em) {
:root {
var-responsive-list: inline;
var-screen-category: small-lap;
}
}
@media screen and (min-width: 48em) {
:root {
var-screen-category: lap;
}
}
@media screen and (min-width: 80em) {
:root {
var-screen-category: desk;
}
}
ul, li {
margin: 0;
padding: 0;
list-style: var(flow-liststyle, none);
}
ul {
padding-left: calc(var(flow-space, 0) * 1rem);
}
.responsive-nav li {
display: var(responsive-list, block);
}
p, ul, h1, h2, h3, h4, h5, blockquote, aside {
margin: 0;
margin-bottom: calc(var(flow-space, 0) * 1rem);
}
p, li {
line-height: var(vertical-base);
}
blockquote {
font-style: italic;
padding: calc(var(flow-space, 0) * 1rem);
}
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. |