Jsbin
Jsbin
DOCTYPE html>
<html id="jsbin-com" lang="en" class="">
<head>
<meta charset=utf-8>
<title>JS Bin - Collaborative JavaScript Debugging</title>
<link rel="alternate" type="application/json+oembed" href="https://jsbin.com/o
embed?url=https://jsbin.com/?html,output">
<link rel="icon" href="https://static.jsbin.com/images/favicon.png">
<link rel="stylesheet" href="https://static.jsbin.com/js/vendor/codemirror5/li
b/codemirror.css?3.40.2">
<link rel="stylesheet" href="https://static.jsbin.com/css/style.css?3.40.2">
<link rel="stylesheet" href="https://static.jsbin.com/css/themes.css?3.40.2">
<link rel="manifest" href="https://jsbin.com/manifest.json">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://static.jsbin.com/css/mobile.css?3.40.2">
<link rel="stylesheet" href="https://static.jsbin.com/css/font.css?3.40.2">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--[if lte IE 9 ]><link rel="stylesheet" href="https://static.jsbin.com/css/i
e.css?3.40.2"><![endif]-->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement
(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore
(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js
','ga');
ga('create', 'UA-1656750-13', 'auto');
ga('require', 'linkid', 'linkid.js');
ga('require', 'displayfeatures');
ga('send', 'pageview');
</script>
<meta id="app-description" name="description" content="A live pastebin for HTM
L, CSS & JavaScript and a range of processors, including SCSS, CoffeeScript, Jad
e and more..." />
<meta property="og:url" content="https://jsbin.com/edit" />
<meta property="og:title" content="JS Bin" />
<meta property="og:description" content="Sample of the bin: " />
<meta property="og:image" content="https://static.jsbin.com/images/logo.png" /
>
</head>
<!--[if lt IE 7]> <body class="source ie ie6"> <![endif]-->
<!--[if IE 7]>
<body class="source ie ie7"> <![endif]-->
<!--[if gt IE 7]> <body class="source ie">
<![endif]-->
<!--[if !IE]><!--> <body class="source public ">
<!--<![endif]-->
<script>
if(top != self) {
window.location = location.pathname.split('/').slice(0, -1).concat(['embed']).
join('/') + (location.search ? location.search : '');
document.write('<' + '!--');
}
</script>
<a href="#html" id="skipToEditor" class="visuallyhidden">Skip welcome & menu
and move to editor</a>
<li><a href="/about">About</a></li>
</ul>
<a href="https://github.com/jsbin/jsbin" id="version" aria-hidden="true">v3.40
.2</a>
</nav>
<div id="control">
<div class="control">
<div id="menuinfo"><p></p></div>
<div class="buttons">
<div class="menu">
<a href="https://jsbin.com/edit#file" target="_blank" class="brand but
ton button-dropdown group button-dropdown-arrow"><img src="https://static.jsbin.
com/images/favicon.svg"> File</a>
<div class="dropdown" id="file">
<div class="dropdownmenu">
<a id="createnew" data-desc="Create a brand new bin" class="button
group" title="Create fresh bin" href="https://jsbin.com" data-label="new">New</
a>
<a data-desc="Set this bin to private" data-pro="true" class="butt
on group" title="Set this bin to private" href="https://jsbin.com/upgrade">Make
bin private</a>
<a class="deletebin button group" data-desc="Delete bin" title="De
lete this bin" href="https://jsbin.com/delete" data-shortcut="ctrl+shift+del">De
lete</a>
<a class="archivebin button group" data-desc="Archive bin" title="
Archive this bin" href="/archive">Archive</a>
<a class="unarchivebin button group" data-desc="Unrchive bin" titl
e="Restore this bin from the archive" href="/unarchive">Unarchive</a>
<hr data-desc="">
<a id="addmeta" data-desc="Insert a description shown in My Bins"
title="Add meta data to bin" class="button group" href="#add-description">Add de
scription</a>
<a title="Save snapshot" data-desc="Save current work, and begin n
ew revision on next change" data-shortcut="ctrl+s" class="button save group" dat
a-label="save" href="https://jsbin.com/save">Save snapshot</a>
<a data-desc="Copy and create a new bin start at revision #1" id="
clone" title="Create a new copy" class="button clone group" data-label="clone" h
ref="https://jsbin.com/clone">Clone</a>
<hr data-desc="">
<a data-pro="true" data-desc="Publish the current bin to https://j
sbin.com" class="button group" title="Publish the current bin to https://jsbin.c
om" href="https://jsbin.com/upgrade">Publish to vanity homepage</a>
<a data-desc="Export individual panels to Github's gist as an anon
ymous user" class="export-as-gist button group" title="Create a new anonymous Gi
tHub Gist from this bin" href="#export-to-gist">Export as gist</a>
<a data-desc="Download a complete html file for this bin" id="down
load" title="Save to local drive" class="button download group" href="https://js
bin.com/download" data-label="download">Download</a>
<a data-desc="Use content from this bin when creating new bins" cl
ass="startingpoint button group" title="Set as starting code" href="https://jsbi
n.com/save" data-label="save-as-template">Save as template</a>
<a hidden data-desc="How to embed a bin" target="_blank" title="Ho
w to embed a bin" data-label="how-to-embed" class="button group" href="http://js
bin.com/help/how-can-i-embed-jsbin">How to embed</a>
</div>
</div>
</div><div class="menu">
<span class="button group">Add library
<select class="library" id="library"></select>
</span>
<div id="share-preview">
<div class="output"></div>
<span class="header"></span>
<div class="editor">
<div class="html">
</div>
<div class="css">
</div>
<div class="js">
</div>
<div class="console">
</div>
<div class="output">
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<div id="start-saving" class="menu">
<a href="/save" class="save button group">Start saving your work</a>
</div>
<div id="panels"></div>
<div class="help">
<div class="loggedout menu">
<a href="https://jsbin.com/login" class="button button-dropdown focu
sbtn" id="loginbtn">Login or Register</a>
<div class="dropdown login" id="registerLogin">
<div class="dropdowncontent">
<a class="btn-github" href="https://jsbin.com/auth/github">
<img src="https://static.jsbin.com/images/github-32.png">
Login or Register via GitHub
</a>
<span class="login-group">
Or
<a class="btn-login" href="https://jsbin.com/login">use your e
mail address</a>
</span>
</div>
</div>
</div>
<div class="loggedin menu">
</div>
<div class="menu blog">
<a href="http://jsbin.com/blog" class="button">Blog</a>
</div>
<div class="menu">
<a href="#help" class="button button-dropdown">Help</a>
<div class="dropdown dd-right" id="help">
<div class="dropdownmenu">
<a data-shortcut="ctrl+shift+?" data-desc="Discover poweruser keyb
oard shortcuts" id="showhelp" href="#keyboardHelp">Keyboard shortcuts</a>
<a data-desc="Shortcut & direct access JS Bin URLs" id="showurls"
href="#urls">JS Bin URLs</a>
<hr data-desc="">
<input placeholder="Search help..." class="button" id="helpsearch"
><span id="result-count"></span><span id="results"></span>
<a id="menu-all-help" data-desc="Learn about JS Bin features & tri
cks" target="_blank" href="http://jsbin.com/help">All help topics</a>
<hr data-desc="">
<a id="menu-feedback" data-desc="Help make JS Bin better" id="newi
ssue" target="_blank" href="http://github.com/jsbin/jsbin/issues/new">Send feedb
ack & file bugs</a>
<a id="menu-fork" data-desc="Help make JS Bin better" target="_bla
nk" href="https://gratipay.com/jsbin/">Donate on Gratipay</a>
<a id="menu-follow-jsbin" data-desc="Find out the latest news & in
fo" target="_blank" href="http://twitter.com/js_bin">Follow @js_bin</a>
<a class="" data-pro="true" id="menu-pro" data-desc="Upgrade" href
="/upgrade">Support JS Bin: upgrade now</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="load-cached" tabindex="-1">
<a href="#">Load cached copy from <span></span></a>
</div>
<script type="template/text" id="profile-template">
<a title="@{name}" href="#profile" class="button button-dropdown avatar" id="a
ccountBtn"><picture>
<source srcset="{avatar} 1x, {avatar}?&s=58 2x">
<img src="{avatar}">
</picture> Account</a>
<div class="dropdown dd-right" id="profile">
<div class="dropdowncontent">
<div class="large-gravatar"><object data="https://static.jsbin.com/images/
default-avatar.min.svg?{name}&3.40.2" type="image/svg+xml">
<img src="https://static.jsbin.com/images/default-avatar.min.svg?3.40.2"></o
bject><picture class="large-gravatar">
<source srcset="{large_avatar} 1x, {large_avatar}?&s=240 2x">
<img class="large-gravatar" src="{large_avatar}">
</picture></div>
<span class="input" id="username" readonly>
@{name}<sup class="pro">pro</sup>
</span>
<ul>
<li><a
<li><a
<li><a
<li><a
</ul>
href="https://jsbin.com/account/profile">Profile</a></li>
href="https://jsbin.com/account/editor">Editor settings</a></li>
href="https://jsbin.com/account/preferences">Preferences</a></li>
href="https://jsbin.com/logout">Logout</a></li>
</div>
<a href="https://jsbin.com/upgrade" class="gopro">Support JS Bin: upgrade to
PRO</a>
</div>
</script>
<div id="bin" class="stretch" style="opacity: 0; filter:alpha(opacity=0);">
<div class="inline-menu menu">
<ul>
<li class="add-library"><span>Add library</span><select class="library" id="
alt-library"></select></li>
<li class="run-with-js"><a tabindex="0" role="button">Run with JS</a></li>
<li><a tabindex="0" role="button" class="save">Save</a></li>
<li><a tabindex="0" role="button" class="show-share">Share</a></li>
<li><a tabindex="0" role="button" aria-label="More bin links and information
" class="more"> </a></li>
</ul>
</div>
<div id="source" class="binview stretch">
</div>
<div id="panelswaiting">
<div class="code stretch html panel">
<div role="menubar" class="label menu" tabindex="0"><span class="name"><st
rong><a href="#htmlprocessors" role="menuitem" class="fake-dropdown button-dropd
own">Processor</a></strong></span><div class="dropdown" id="htmlprocessors">
<div role="menu" aria-hidden="true" class="dropdownmenu processorSelec
tor" data-type="html">
<a role="menuitemradio" aria-checked="true" href="#html" data-label=
"HTML">HTML</a>
<a role="menuitemradio" href="#markdown">Markdown</a>
<a role="menuitemradio" href="#jade">Jade</a>
<a href="#convert">Convert to HTML</a>
</div>
</div>
</div>
<div class="editbox">
<textarea aria-label="HTML Code Panel" spellcheck="false" autocapitalize
="none" autocorrect="off" id="html"></textarea>
</div>
</div>
<div class="code stretch javascript panel">
<div role="menubar" class="label menu" tabindex="0"><span class="name"><st
rong><a role="menuitem" class="fake-dropdown button-dropdown" href="#javascriptp
rocessors">Processor</a></strong></span>
<div class="dropdown" id="javascriptprocessors">
<div role="menu" aria-hidden="true" class="dropdownmenu processorSelec
tor" data-type="javascript">
<a role="menuitemradio" aria-checked="true" href="#javascript" datalabel="JavaScript">JavaScript</a>
<a role="menuitemradio" href="#babel">ES6 / Babel</a>
<a role="menuitemradio" href="#jsx">JSX (React)</a>
<a role="menuitemradio" href="#coffeescript">CoffeeScript</a>
<a role="menuitemradio" href="#traceur">Traceur</a>
<a role="menuitemradio" href="#typescript">TypeScript</a>
<a role="menuitemradio" href="#processing">Processing</a>
<a role="menuitemradio" href="#livescript">LiveScript</a>
<a role="menuitemradio" href="#clojurescript">ClojureScript</a>
<a role="menuitem" href="#convert">Convert to JavaScript</a>
</div>
</div>
</div>
<div class="editbox">
<textarea aria-label="JavaScript Code Panel" spellcheck="false" autocapi
talize="none" autocorrect="off" id="javascript"></textarea>
</div>
</div>
<div class="code stretch css panel">
<div role="menubar" class="label menu" tabindex="0"><span class="name"><st
rong><a role="menuitem" class="fake-dropdown button-dropdown" href="#cssprocesso
rs">Processor</a></strong></span>
</tr>
<tr>
<td>ctrl + shift + s</td>
<td>Open the share options</td>
</tr>
<tr>
<td>ctrl + y</td>
<td>Archive Bin</td>
</tr>
<tr><td colspan="2"><small><br><a href="https://jsbin.com/help/keyboardshortcuts" target="_blank">Complete list of JS Bin shortcuts</a></small></td></t
r>
</tbody>
</table>
</div>
</div><div id="urlHelp" class="modal">
<div>
<h2>JS Bin URLs</h2>
<table>
<thead>
<tr>
<th class="shortcut">URL</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr>
<td>/</td>
<td>Show the full rendered output.<br><small>This content will update
in real time as it's updated from the /edit url.</small></td>
</tr>
<tr>
<td>/edit</td>
<td>Edit the current bin</td>
</tr>
<tr>
<td>/watch</td>
<td>Follow a Code Casting session</td>
</tr>
<tr>
<td>/embed</td>
<td>Create an embeddable version of the bin</td>
</tr>
<tr>
<td>/latest</td>
<td>Load the very latest bin (/latest goes in place of the revision)</
td>
</tr>
<tr>
<td>/[username]/last</td>
<td>View the last edited bin for this user</td>
</tr>
<tr>
<td>/[username]/last/edit</td>
<td>Edit the last edited bin for this user</td>
</tr>
<tr>
<td>/[username]/last/watch</td>
<td>Follow the Code Casting session for the latest bin for this user</
td>
</tr>
<tr>
<td>/quiet</td>
<td>Remove analytics and edit button from rendered output</td>
</tr>
<tr>
<td>.js</td>
<td>Load only the JavaScript for a bin</td>
</tr>
<tr>
<td>.css</td>
<td>Load only the CSS for a bin</td>
</tr>
<tr><td colspan="2"><br><small>Except for username prefixed urls, the ur
l may start with http://jsbin.com/abc and the url fragments can be added to the
url to view it differently.</small></td></tr>
</tbody>
</table>
</div>
</div><div hidden>
<div class="card" id="infocard">
<div class="body">
<ul class="controls">
<li><a class="transfer" href="#transfer">Transfer</a> </li>
<li><a href="/clone">Clone</a> </li>
<li><a class="startingpoint" href="/save-as-template">Save as template</
a> </li>
<li><a class="export-as-gist" href="#export-gist">Export gist</a> </li>
<li class="owner"><a href="/download">Download</a> </li>
<li class="owner"><a class="deletebin" href="/delete">Delete</a></li>
</ul>
</div>
<header><img>
<div class="visibility"></div>
<div class="meta">
<div class="author">Bin info</div>
<div class="name"><b></b><span class="pro">pro</span></div><span class="
when"><canvas></canvas><time></time></span>
</div>
<div class="viewers"><b>0</b><span>viewers</span></div>
</header>
</div>
</div>
<!-- this is here -->
<script>
(function () {
var container = document.createElement('div');
container.id = 'bsaapi';
document.body.appendChild(container);
var script = document.createElement('script');
script.src = 'https://jsbin.com/js/inject-back';
document.body.appendChild(script);
})();
</script>
<script
<script
<script
<script
src="https://static.jsbin.com/js/vendor/jquery-1.11.0.min.js"></script>
src="https://jsbin.com/bin/user.js?a5c7"></script>
src="https://static.jsbin.com/js/prod/jsbin-3.40.2.min.js"></script>
async defer src="https://jsbin.com/bin/start.js?475b"></script>
</main>
</body>
</html>