<html>
<head>
<title>JS1k, 1k demo submission [ID]</title>
<meta charset="utf-8" />
</head>
<body>
<div id="code">
1018 bytes<br /><br />
_='h=70;k=[];•n•Xmov•p•Xlin•q•:f,g,5•p(e,l,5•}r=0;j=•;•u•t=Date.now(•requestAnimationFrame(u•f=t-r;XfillRect(••K,900••Style="#fff"•Y6J18••+8••21••E•29•%•3L9•2ZN0•`8•@4•+•7J1•G•Z@7N1•12••4•8•7L8•8!•Y•8•;w^+`80•w^-`74)•0;6>iBq^%••EE*i,460-i•q^E,4••+28,454)•%•3L•40••1••4N5•9!N4•95,5N1•Z••%J39!~•+20•3••+21•5•7~!?4L2!•3•E!4•+3!8•-2!•5?3L7!6••!5•3N5,685,6L7!Z••0;i<k.lengthBs=H,•,V+C-xV-C+xn••-|p••+|•($H_-=f/3,0>=H_&&k.splice(iY•h-=f;0>h&&(h=7•k.push([•-400+80z,66z/1.5,50+3z])•r=t}•w•e=•PI,l=•sin,m=•cos;:O•Q•$6)•p•6•;:••••.3$6)•p(W$6••q•W)$q••U•U.3))}u(•••p^•;:••••()•(i••0,•K/2••random()•XbeginPath() s_/•(f,g,e,l){•(O•Q•$••1;8>=iB•function •.3$gG4*m••5••(s[0]•,s[1]•eTo(f+•*e,g+•*e)}•Z••,0$•(2*eG•-1•Xstroke•/8*e*2G•Math.•f+8*l•;for(i=••4•);!•6$),%••30:•;n(?••G7,457,@•Y•5••Y•B;i++)Cxp•+ 2•E+4G+1Hk[i]J•+5•Kc.widthL•-N••Of+27*lQ$gE0*mU((i•)•Vn•- 2•W••••.3Xa.Y,1Z•6^(•_[2]`7•1x 3•z0*•| 1.7•~•G5•4••22•-';for(Y in $='•~|zx`_^ZYXWVUQONLKJHGECB@?:%$!•••••••••••••••••••• ••••••••')with(_.split($[Y]))_=join(pop());eval(_)
</div>
<iframe src="http://jsbin.com/wap/5"></iframe>
</body>
</html>
html,body { margin: 0; padding: 0; overflow: hidden; width: 100%; height: 100%; background-color:#000; }
iframe { position: fixed; top: 10px; right: 50px; margin: 0; padding: 0; height:100%; border:0; width:60%;}
#code { font-family: monospace; position: fixed; top: 10px; left: 10px; width:30%; padding:6px; color: #fff; word-break:break-all;}
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. |