<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
</head>
<body>
<div id="index">
<h2>Template One</h2>
<div id="boxbutton">
<span class="link"><span id="msg">Congrats! You found it with </span><span id="count">0</span> Try</span>
</div>
<div id="boxcard">
</div>
</div>
<footer><p>Some Footer Text</p></footer>
</body>
</html>
* { font-family: Arial, sans-serif; padding: 0; margin: 0; }
#index { margin: 0 auto; width: 700px; z-index: 1; }
#boxcard { float: left; }
div[id^=wrapper] { width: 300px; height: 100px; background: #d9d9d9; margin: 5px; padding: 10px; border: 1px solid #999; cursor: pointer; border-radius: .5em; border-radius: .5em; border-radius: .5em; box-shadow: 0 1px 2px rgba(0,0,0,.5); box-shadow: 0 1px 2px rgba(0,0,0,.5); box-shadow: 0 1px 2px rgba(0,0,0,.5); display: inline-block; }
p[class^=para] { display: block; float: left; color: #333; position: relative; }
div[id^=wrapper] ul { float: left; margin: 10px; list-style: none; display: block; }
a[id^=q] { clear: both; display:block; margin: 3px 0; }
.hovered { background: #eaeaea; }
.correct { background: #89FF29; }
#boxbutton { text-align: center; padding: 20px; }
.link { font-size: 18px; color: #ffffff; text-decoration: none; background: #0066cc; padding: 5px 10px; border-radius: .5em; border-radius: .5em; border-radius: .5em; }
.link.index { font-size: 24px; color: #ffffff; text-decoration: none; background: #0066cc; padding: 10px 15px; border-radius: .5em; border-radius: .5em; border-radius: .5em; margin-left: 180px; }
.link:hover { background: #999; }
h2 { color: #0066cc; width: 300px; margin: 30px auto; }
footer p { color: #999; width: 525px; margin: 0 auto; margin-top: 30px; }
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. |