<html data-ng-app="app">
<head>
<link rel="stylesheet" href="http: //cdnjs.cloudflare.com/ajax/libs/foundation/5.3.1/css/normalize.min.css">
<link rel="stylesheet" href="htpp://cdnjs.cloudflare.com/ajax/libs/foundation/5.3.1/css/foundation.min.css">
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body class="ng-cloak" data-ng-controller="mainCtlr">
<div class="row">
<div class="large-12">
<button data-ng-click="add()">Add</button>
</div>
<div class="large-12 large-centered columns">
<div data-custom-dropdown="" data-list="family">
<select data-ng-model="model" data-ng-options="person.name for person in family">
<option value="">Select a family member</option>
</select>
</div>
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.11/angular.min.js"></script>
</body>
</html>
.ng-cloak {
display: none;
}
.dropdown-wrapper {
position: relative;
*zoom: 1;
}
.dropdown-wrapper:before, .dropdown-wrapper:after {
content: " ";
display: table;
}
.dropdown-wrapper:after {
clear: both;
}
.dropdown {
width: 100%;
color: white;
background: url(../images/select-arrow.png) #0092d6 right 0.75em center no-repeat;
padding-left: 0.4375em;
line-height: 30px;
height: 30px;
border: 0 !important;
appearance: none;
appearance: none;
apparence: none;
text-indent: 0.01px;
text-overflow: '';
text-align: left;
border-radius: 0.1875em;
position: relative;
}
.dropdown.active {
background: url(../images/select-arrow.png) #8fcae6 right 0.75em center no-repeat;
}
.dropdown .selected {
color: white;
}
.dropdown ul {
position: absolute;
top: 100%;
left: 0;
}
.dropdown ul, .dropdown li {
padding: 0;
margin: 0;
list-style: none;
z-index: 10000;
min-width: 100%;
}
.dropdown li.options {
background: #0092d6;
color: white;
padding: 0 0.3125em;
}
.dropdown .options:hover {
background: #8fcae6;
}
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. |