<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<link rel="stylesheet" href="http://www.jacklmoore.com/colorbox/example3/colorbox.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://www.jacklmoore.com/colorbox/jquery.colorbox.js"></script>
</head>
<body>
<div class="container">
<div class="galleryItem">
<a class="group3" href="http://lorempixel.com/400/200/sports/1"><img src="http://lorempixel.com/400/200/sports/1" alt=""></a>
<h3>Title1</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="galleryItem">
<a class="group3" href="http://upload.wikimedia.org/wikipedia/commons/3/38/Arduino_Uno_-_R3.jpg" title="Arduino Uno."> <img src="http://upload.wikimedia.org/wikipedia/commons/3/38/Arduino_Uno_-_R3.jpg" alt=""></a>
<h3>Arduino Uno</h3>
<p>Arduino es una plataforma de hardware libre, basada en una placa con un microcontrolador y un entorno de desarrollo, diseñada para facilitar el uso de la electrónica en proyectos multidisciplinares</p>
</div>
<div class="galleryItem">
<a class="group3" href="http://lorempixel.com/400/200/sports/2"><img src="http://lorempixel.com/400/200/sports/2" alt=""></a>
<h3>Title3</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="galleryItem">
<a class="group3" href="https://learn.adafruit.com/system/guides/images/000/000/309/medium310/overview.jpg"><img src="https://learn.adafruit.com/system/guides/images/000/000/309/medium310/overview.jpg?1396718934" alt=""></a>
<h3>Blinking an LED with BeagleBone Black</h3>
<p>Make an LED Blink using Python on a BeagleBone Black
In this tutorial, you will learn how to control an external LED using a BeagleBone Black (BBB) from Python.</p>
</div>
<div class="galleryItem">
<a class="group3" href="http://lorempixel.com/400/200/sports/6" ><img src="http://lorempixel.com/400/200/sports/6" alt=""></a>
<h3>Title6</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="galleryItem">
<a class="group3" href="http://lorempixel.com/400/200/sports/7"><img src="http://lorempixel.com/400/200/sports/7" alt=""></a>
<h3>Title7</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="galleryItem">
<a class="group3" href="http://lorempixel.com/400/200/sports/8"><img src="http://lorempixel.com/400/200/sports/8" alt=""></a>
<h3>Title8</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="galleryItem">
<a class="group3" href="http://lorempixel.com/400/200/sports/6" ><img src="http://lorempixel.com/400/200/sports/6" alt=""></a>
<h3>Title6</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="galleryItem">
<a class="group3" href="http://lorempixel.com/400/200/sports/7"><img src="http://lorempixel.com/400/200/sports/7" alt=""></a>
<h3>Title7</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="galleryItem">
<a class="group3" href="http://lorempixel.com/400/200/sports/8"><img src="http://lorempixel.com/400/200/sports/8" alt=""></a>
<h3>Title8</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="galleryItem">
<a class="group3" href="http://lorempixel.com/400/200/sports/8"><img src="http://lorempixel.com/400/200/sports/8" alt=""></a>
<h3>Title8</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
</div>
</body>
</html>
/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
Created on : Apr 24, 2014, 10:44:41 AM
Author : dturcios
*/
.container {
width: 80%;
margin: 30px auto;
overflow: hidden;
}
.galleryItem {
color: #797478;
font: 10px/1.5 Verdana, Helvetica, sans-serif;
float: left;
max-height: 500px;
width: 16%;
margin: 2% 2% 50px 2%;
border: 1px dotted red;
}
.galleryItem h3 {
text-transform: uppercase;
}
.galleryItem img {
max-width: 100%;
border-radius: 5px;
border-radius: 5px;
border-radius: 5px;
}
@media only screen and (max-width : 940px),
only screen and (max-device-width : 940px){
.galleryItem {width: 21%;}
}
@media only screen and (max-width : 720px),
only screen and (max-device-width : 720px){
.galleryItem {width: 29.33333%;}
}
/* MEDIA QUERIES*/
@media only screen and (max-width : 940px),
only screen and (max-device-width : 940px){
.galleryItem {width: 21%;}
}
@media only screen and (max-width : 720px),
only screen and (max-device-width : 720px){
.galleryItem {width: 29.33333%;}
}
@media only screen and (max-width : 530px),
only screen and (max-device-width : 530px){
.galleryItem {width: 46%;}
}
@media only screen and (max-width : 320px),
only screen and (max-device-width : 320px){
.galleryItem {width: 96%;}
.galleryItem img {width: 96%;}
.galleryItem h3 {font-size: 18px;}
.galleryItem p {font-size: 18px;}
}
$(document).ready(function(){
//Examples of how to assign the Colorbox event to elements
$(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
});
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. |