<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body class="-box-sized">
<div class="b-content -highlighted">
<form class="b-form">
<div class="b-form-element--right">
<button class="f-item b-button -decorated">Send code</button>
</div>
<div class="b-form-element">
<input class="f-item b-text -masked" id="key-ltr" name="key-ltr" type="text"/>
<label class="f-item-label" for="key-ltr">
<span class="tooltip-ltr" title="You can find it out on the product box..">Example: A4AJU-STXNS-1JXTR-VG6XP</span>
</label>
</div>
</form>
</div>
<div class="b-content -highlighted -rtl">
<form class="b-form">
<div class="b-form-element--right">
<button class="f-item b-button -decorated">Send code with RTL direction</button>
</div>
<div class="b-form-element">
<input class="f-item b-text -masked" id="key-rtl" name="key-rtl" type="text"/>
<label class="f-item-label" for="key-rtl">
<span class="tooltip-rtl" title="You can find it out on the product box..">Example: A4AJU-STXNS-1JXTR-VG6XP</span>
</label>
</div>
</form>
</div>
</body>
</html>
.-box-sized *,
.-box-sized *:before,
.-box-sized *:after {
box-sizing:border-box;
box-sizing:border-box;
box-sizing:border-box;
}
body {
font-size: 14px;
font-family: "Arial", "Helvetica", sans-serif;
padding: 20px;
}
.-highlighted {
background: #f7f7f6;
padding: 20px;
}
.-rtl {
direction: rtl;
}
.b-content {
width: 100%;
}
.b-content + .b-content {
margin: 20px 0 0 0;
}
.b-form {
width:90%;
overflow: hidden;
margin: 0 auto;
}
.b-form-element {
overflow: hidden;
}
.b-form-element input {
width: 100%;
}
.b-form-element--right {
float: right;
padding: 0 0 0 15px;
}
.f-item {
padding: 5px 10px 5px 10px;
line-height: 25px;
}
.f-item-label {
display: block;
margin: 5px 0 5px 0;
}
.f-item-label span {
color: #006d55;
border-bottom: 1px #006d55 dashed;
cursor: pointer;
}
.b-button {
font-size: 12px;
font-weight: bold;
cursor: pointer;
border: 1px solid #C1C4C5;
background: #FDFDFD;
color: #006D55;
}
.b-button:hover {
background: #F1F1F1;
}
.b-button.-decorated {
text-shadow: 0 1px 0px #FFF;
border-radius: 3px;
text-transform: uppercase;
background: linear-gradient(top, #FDFDFD 0%, #FDFDFD 16%, #DEE1E3 100%);
background: gradient(linear, left top, left bottom, color-stop(0%,#FDFDFD), color-stop(16%,#FDFDFD), color-stop(100%,#DEE1E3));
background: linear-gradient(top, #FDFDFD 0%,#FDFDFD 16%,#DEE1E3 100%);
background: linear-gradient(top, #FDFDFD 0%,#FDFDFD 16%,#DEE1E3 100%);
background: linear-gradient(top, #FDFDFD 0%,#FDFDFD 16%,#DEE1E3 100%);
background: linear-gradient(to bottom, #FDFDFD 0%,#FDFDFD 16%,#DEE1E3 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fdfdfd', endColorstr='#dee1e3',GradientType=0 );
}
.b-button.-decorated:hover {
background: linear-gradient(top, #F3F3F3 0%, #F3F3F3 16%, #DEE1E3 100%);
background: gradient(linear, left top, left bottom, color-stop(0%,#F3F3F3), color-stop(16%,#F3F3F3), color-stop(100%,#DEE1E3));
background: linear-gradient(top, #F3F3F3 0%,#F3F3F3 16%,#DEE1E3 100%);
background: linear-gradient(top, #F3F3F3 0%,#F3F3F3 16%,#DEE1E3 100%);
background: linear-gradient(top, #F3F3F3 0%,#F3F3F3 16%,#DEE1E3 100%);
background: linear-gradient(to bottom, #F3F3F3 0%,#F3F3F3 16%,#DEE1E3 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#F3F3F3', endColorstr='#dee1e3',GradientType=0 );
}
.b-text {
font-size: 14px;
}
Output
300px
This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account
Dismiss xKeyboard 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. |