<html>
<head>
<style type="text/css">
<!--
#mbOverlay {
position: fixed;
z-index: 9998;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #838A9A;
cursor: pointer;
}
#mbOverlay.mbOverlayFF {
background: transparent url(http://iaian7.com/images/mediabox/80.png) repeat;
}
#mbOverlay.mbOverlayIE {
position: absolute;
}
#mbCenter {
position: absolute;
z-index: 9999;
left: 50%;
overflow: hidden;
background-color: #000;
border-radius: 10px;
border-radius: 10px;
box-shadow: 0px 5px 20px rgba(0,0,0,0.50);
box-shadow: 0px 5px 20px rgba(0,0,0,0.50);
}
#mbCenter.mbLoading {
background: #000 url(http://iaian7.com/images/mediabox/BlackLoading.gif) no-repeat center;
/* This style is applied only during animation. */
/* For example, the following turns off shadows, */
/* helping browser performance on slow systems. */
/* To leave shadows on, just remove these lines: */
box-shadow: none;
box-shadow: none;
}
#mbImage {
position: relative;
left: 0;
top: 0;
/* Begin styles for inline content, if no style is given */
font-family: Myriad, Verdana, Arial, Helvetica, sans-serif;
line-height: 20px;
font-size: 12px;
color: #fff;
text-align: left;
background-position: center center;
background-repeat: no-repeat;
padding: 10px;
}
#mbCenter a, #mbCenter a:link, #mbCenter a:visited {
color: #ddd;
}
#mbCenter a:hover, #mbCenter a:active {
color: #fff;
}
/* End inline content styles */
#mbBottom {
min-height: 20px;
font-family: Myriad, Verdana, Arial, Helvetica, sans-serif;
line-height: 20px;
font-size: 12px;
color: #999;
text-align: left;
padding: 0 10px 10px;
}
#mbTitle {
display: inline;
color: #fff;
font-weight: bold;
line-height: 20px;
font-size: 12px;
}
#mbNumber {
display: inline;
color: #999;
line-height: 14px;
font-size: 10px;
margin: auto 10px;
}
#mbCaption {
display: block;
color: #999;
line-height: 14px;
font-size: 10px;
}
#mbPrevLink, #mbNextLink, #mbCloseLink {
display: block;
float: right;
height: 20px;
width: 46px;
background: transparent url(http://iaian7.com/images/mediabox/BlackClose.gif) no-repeat center;
margin: 0;
outline: none;
}
#mbPrevLink {
width: 69px;
background: transparent url(http://iaian7.com/images/mediabox/BlackPrevious.gif) no-repeat center;
}
#mbNextLink {
width: 41px;
background: transparent url(http://iaian7.com/images/mediabox/BlackNext.gif) no-repeat center;
}
#mbCloseLink {
width: 46px;
background: transparent url(http://iaian7.com/images/mediabox/BlackClose.gif) no-repeat center;
}
/* Error message styling */
#mbError {
position: relative;
font-family: Myriad, Verdana, Arial, Helvetica, sans-serif;
line-height: 20px;
font-size: 12px;
color: #fff;
text-align: center;
border: 10px solid #700;
padding: 10px 10px 10px;
margin: 20px;
border-radius: 5px;
border-radius: 5px;
}
#mbError a, #mbError a:link, #mbError a:visited, #mbError a:hover, #mbError a:active {
color: #d00;
font-weight: bold;
text-decoration: underline;
}
-->
</style>
<script src="http://iaian7.com/js/mootools-1.2.4-core.js" type="text/javascript"></script>
<script src="http://iaian7.com/js/mediaboxAdv-1.2.0-min.js" type="text/javascript"></script>
</head>
<body>
<p><span style="float: none; " class="an7_imgdir"><a href="http://iaian7.com/media/mediabox/concrete.jpg" title="Concrete::taken in eastern Michigan" class="an7_thumb"><img src="http://iaian7.com/media/mediabox/thumbs/concrete.jpg" alt="Concrete" /></a><a href="http://iaian7.com/media/mediabox/nature1.jpg" title="Autumn 1" class="an7_thumb"><img src="http://iaian7.com/media/mediabox/thumbs/nature1.jpg" alt="Nature1" /></a><a href="http://iaian7.com/media/mediabox/nature2.jpg" title="Autumn 2" class="an7_thumb"><img src="http://iaian7.com/media/mediabox/thumbs/nature2.jpg" alt="Nature2" /></a><a href="http://iaian7.com/media/mediabox/nature3.jpg" title="Autumn 3" class="an7_thumb"><img src="http://iaian7.com/media/mediabox/thumbs/nature3.jpg" alt="Nature3" /></a><a href="http://iaian7.com/media/mediabox/trainyard.jpg" title="Trainyard::taken near Marion, Indiana" class="an7_thumb"><img src="http://iaian7.com/media/mediabox/thumbs/trainyard.jpg" alt="Concrete" /></a><a href="http://iaian7.com/media/mediabox/window.jpg" title="Image set::Window - taken in <a href="http://www.cityofwabash.com/" title="cityofwabash.com" target="_blank">Wabash, Indiana</a>" class="an7_thumb"><img src="http://iaian7.com/media/mediabox/thumbs/window.jpg" alt="window" /></a></span></p>
<script type="text/javascript">
var x=document.getElementsByTagName("a");
var y=('.jpg','.gif','.png','.flv','.swf','youtube.com/watch');
var regexku=/^.+(((twit)|(tweet)|(com\/video.+)|(flickr.com.+)|(tube.com.+))|((gif)|(jpe?g)|(png)|(flv)|(swf)|(mp3)|(mp4))$)/;
for(i=0;i<x.length;i++)
{
a=x[i].getAttribute('href');
if (a.match(regexku) != null)
{
x.item(i).setAttribute("rel","lightbox");
}
}
</script>
</body>
</html>
var x=xmlDoc.getElementsByTagName("a");
var y=('.jpg','.gif','.png','.flv','.swf','youtube.com/watch');
var regexku=/^.+(((twit)|(tweet)|(com\/video.+)|(flickr.com.+)|(tube.com.+))|((gif)|(jpe?g)|(png)|(flv)|(swf)|(mp3)|(mp4))$)/;
for(i=0;i<x.length;i++)
{
a=x[i].getAttribute('href');
if (a.match(regexku) != null)
{
x.item(i).setAttribute("rel","lightbox");
}
}
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. |