Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <div class="wrapper">
    <div class="item">
    </div>
    <div class="item">
    </div>
    <div class="item">
    </div>
    <div class="item">
    </div>
    <div class="item">
    </div>
  </div>
</body>
</html>
 
.item {
  position: relative;
  display: inline-block;
  width: 48%;
  margin: 0.5%;
  background-color: gold;
  outline: 1px solid red;
}
.item:before {
  content: '';
  display: block;
  padding-top: 100%;
}
@media (min-width: 480px) {
  .item {
    width: 31.25%;
  }
}
@media (min-width: 720px) {
  .item {
    width: 23.25%;
  }
}
 
// var result = [
//   {
//     oid: '20111111111',
//     description: '質感超棒超喜歡',
//     created: 1468692345,
//     detected_locale: 'zh_TW',
//     who: 'trans',
//     owner_nick: 'elloitto chan',
//     score: 5,
//     owner_avatar: 'http://fakeimg.pl/50x50/?text=1',
//   },
//   {
//     oid: '20111111111',
//     description: 'XDDD',
//     created: 1468692345,
//     detected_locale: 'zh_TW',
//     who: 'trans',
//     owner_nick: 'user 2',
//     score: 5,
//     owner_avatar: 'http://fakeimg.pl/50x50/?text=2',
//   }
// ];
// var comments = document.querySelector('.comments');
// for (var i = 0, max = result.length; i < max; i++) {
//   var comment = document.createElement('div');
//   comment.className = 'comment';
//   var author = document.createElement('span');
//   author.className = 'author';
//   author.innerText = result[i].owner_nick;
//   comment.appendChild(author);
// var content = 
//   comments.appendChild(comment);
// }
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
patw0929pro
0viewers