<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<section class="filters">
<div>
<h6>Show me:</h6>
<ul>
<li class="selected"><a href="#">Next 7 days</a></li>
<li><a href="#">Tonight</a></li>
<li><a href="#">Tomorrow Night</a></li>
<li><a href="#">This Weekend</a></li>
<li class="bullet-dropdown"><a href="#">Choose Date</a></li>
</ul>
</div>
<div>
<h6>Order by:</h6>
<ul>
<li class="selected"><a href="#">Longer Wording Example</a></li>
<li><a href="#">Recently Added</a></li>
</ul>
</div>
<div>
<h6>Filter by:</h6>
<ul>
<li class="selected"><a href="#">All</a></li>
<li><a href="#">Bars</a></li>
<li><a href="#">Pubs</a></li>
<li><a href="#">Clubs</a></li>
<li><a href="#">Festivals</a></li>
</ul>
</div>
</section><!-- end .filters -->
</body>
</html>
body {
font-family: "Helvetica Neue", Helvetica, sans-serif;
font-smoothing: antialiased;
}
.filters {
width: 116px;
position: relative;
}
.filters {
background-color: #ededed;
border-radius: 5px;
}
.filters div {
margin: 0 0 8px 0;
border-bottom: 1px solid #fff;
padding: 0 0 8px 0;
}
.filters div:first-child {
padding-top: 10px;
}
.filters div:last-child {
border-bottom: none;
margin-bottom: 0;
}
.filters h6 {
color: #3c3c3b;
margin: 0 0 5px 0;
padding: 0 10px;
font-size: 90%;
text-transform: uppercase;
text-shadow: 0 1px 0 #ffffff;
}
.filters ul {
font-size: 80%;
margin: 0;
padding: 0;
list-style-type: none;
}
/* HEIGHT OF BLUE SELECTED AREA */
.filters ul li {
line-height: 1.3em;
padding: 3px 0;
}
.filters ul li:hover {
background-color: rgba(46, 167, 232, 0.15);
}
.filters ul li a:link {
text-decoration: none;
color: #6a6969;
padding: 0 10px;
display: block;
}
.filters .selected {
background: #3aa5de;
}
.filters .selected:hover {
background: #3aa5de;
}
.filters ul .selected a:link {
color: #fff;
font-smoothing: subpixel-antialiased;
}
/* GENERATE CSS TRIANGLE */
.filters .selected:after {
content: ' ';
height: 0;
position: absolute;
width: 0;
border-color: transparent transparent transparent #3aa5de;
border-style: solid;
border-width: 11px 0 11px 7px;
left: 100%;
margin-top: -19px;
transform:rotate(360deg); /* fix anti-aliasing in webkit *!/
}
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. |