<html>
<head>
<meta name="description" content="CanJS 3.7 - Playlist Editor Final">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<button>Sign In</button>
<div>
<input placeholder="Search for videos"/>
</div>
<div class="loading">Loading videos...</div>
<ul class='source'>
<li>
<a href="javascript://">
<img src="https://cloud.githubusercontent.com/assets/78602/25955586/4b7c6a34-362f-11e7-8574-6403f168c633.png" width="50px"/>
</a> DoneJS A
</li>
</ul>
<div class='new-playlist'>
<ul sortable>
<li>
<a href="javascript://">
<img src="https://cloud.githubusercontent.com/assets/78602/25955586/4b7c6a34-362f-11e7-8574-6403f168c633.png" width="50px"/>
</a>
DoneJS 1
</li>
<li class='placeholder'>
<a href="javascript://">
<img src="https://cloud.githubusercontent.com/assets/78602/25955586/4b7c6a34-362f-11e7-8574-6403f168c633.png" width="50px"/>
</a>
DoneJS 2 (Placeholder)
</li>
</ul>
<button>Create Playlist</button>
</div>
</body>
</html>
@import url('https://fonts.googleapis.com/css?family=Droid+Sans');
body {
font-family: 'Droid Sans', arial;
font-size: 16px;
font-weight: bold;
background: #f5f5f5;
color: #333;
}
button, input {
font-family: 'Droid Sans', arial;
}
input {
font-size: 14px;
width: 98%;
margin-top: 10px;
padding: 3px;
}
.loading {
font-size: 14px;
color: green;
margin-top: 20px;
}
.source {
float: left;
width: 48%;
padding: 0;
list-style-type: none;
border: solid 1px #ddd;
background-color: #fff;
}
.source li {
border-bottom: 1px solid #ddd;
cursor: move;
}
.source li:last-child {
border-bottom: 0px;
}
.source li:hover {
box-shadow: -1px 1px 1px rgba(0, 0, 0, .5);
background-color: #dff0d8;
}
.source li img, .new-playlist li img {
float: left;
margin-right: 8px;
cursor: move;
}
.new-playlist {
text-align: center;
float: right;
width: 48%;
}
.new-playlist ul {
padding: 0;
background-color: #fff;
}
.new-playlist li {
border: dashed 1px #a3a3a3;
border-width: 1px 1px 0 1px;
}
.new-playlist li:hover {
background-color: #f5f5f5;
}
.new-playlist li:first-child {
border-width: 1px 1px 0 1px;
}
.new-playlist li:last-child {
border-width: 1px;
}
.new-playlist li.btn-li {
background-color: #f5f5f5;
border-width: 1px 0 0px 0;
}
.new-playlist button {
margin: 10px 0;
}
.source li, .new-playlist li {
font-size: 12px;
font-weight: normal;
padding: 6px;
list-style: none;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.placeholder, .ghost {
background-color: #ccdcc6;
}
.content {
color: #888;
font-size: 12px;
padding: 18px 0;
border: 1px dashed #a3a3a3;
}
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. |