<html>
<head>
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div id="integration-list">
<ul>
<li>
<a class="expand">
<div class="right-arrow">▶</div>
<div>
<h2>Name</h2>
</div>
</a>
<div class="detail"><div id="titles"><span>Application</span></div>
<div id="right" style="width:100%;float:right;height:100%;padding-left:60px;">
<div id="sup">
</div>
</div>
</div>
</li>
</ul>
</div>
</body>
</html>
*,
*:before,
*:after {
box-sizing: border-box;
box-sizing: border-box;
box-sizing: border-box;
}
#integration-list {
font-family: 'Open Sans', sans-serif;
width: 100%;
margin: 0 auto;
display: table;
background-color:#fff;
padding:20px 40px 20px 40px;
border-radius: 10px;
border-radius: 10px;
border-radius: 10px;
margin-bottom:30px;
}
#integration-list ul {
padding: 0;
margin: 20px 0;
color: #555;
}
#integration-list h2:hover {
color:#0195ff;
}
#integration-list .right-arrow:hover {
color:#0195ff;
}
#integration-list ul > li {
list-style: none;
border: 1px solid #0195ff;
display: block;
padding: 5px 25px 5px 15px;
overflow: hidden;
background-color:#f7f7f7;
border-radius: 10px;
border-radius: 10px;
border-radius: 10px;
margin-bottom:10px;
}
#integration-list ul > li:hover {
background: #fff;
}
.expand {
display: block;
text-decoration: none;
color: #555;
cursor: pointer;
height:60px;
margin-top:20px;
}
#titles {
position: relative;
left: -200px;
}
.expand:hover {
color:#0195ff;
}
h2 {
padding: 0;
margin: 0;
font-size: 22px;
line-height:50px;
font-family:'Segoe UI';
font-weight:200;
}
#left,#right{
display: table;
}
#sup{
display: table-cell;
vertical-align: middle;
width: 80%;
}
.detail a {
text-decoration: none;
color: #808080;
padding: 20px;
font-size: 18px;
margin-right: 7px;
font-weight:400;
font-family:'Segoe UI';
}
.detail {
margin:40px 0px 10px 0px;
display: none;
line-height: 22px;
height: 150px;
margin-left:0;
}
.slidein {
margin-left:0px;
border:1px solid red;
}
.detail span{
margin: 0;
}
.right-arrow {
margin-top: 8px;
width: 10px;
height: 100%;
float: right;
font-weight: bold;
font-size: 20px;
margin-right:10px;
}
.icon {
height: 75px;
width: 75px;
float: left;
margin: 0 15px 0 0;
}
#App-Details span {
font-family:'Segoe UI';
font-weight:300;
font-size:20px;
color:#0195ff;
}
#App-Details {
font-family:'Segoe UI';
font-weight:200;
}
/*$(function () {
$(".expand").on("click", function () {
$(this).toggleClass('slidein').next().slideToggle();
$expand = $(this).find(">:first-child");
if ($expand.text() == "\u25B6") {
$expand.text("\u25BC");
} else {
$expand.text("\u25B6");
}
});
});*/
$(function () {
$(".expand").on("click", function () {
console.log($(this).parent().find('.detail').css('display'));
if( $(this).parent().find('.detail').css('display') == 'block' ){
$(this).parent().find('.detail').slideUp();
$(this).parent().find('#titles').animate({'left' : -200});
} else {
$(this).parent().find('.detail').slideDown();
$(this).parent().find('#titles').animate({'left' : 0});
}
});
});
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. |