<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<style>
* {
font-family: "微軟正黑體";
}
.bg-black {
background: black;
}
figure.wrapper {
position: relative;
min-height: 80px;
}
figure.wrapper img {
position: absolute;
width: 100%;
height: 100%;
object-fit: contain;
object-position: center;
}
</style>
</head>
<body class="bg-black text-white my-5">
<div class="container">
<h1>KKBOX 華語年度單曲累積榜</h1>
<div class="row align-items-center border-bottom border-secondary font-weight-bold py-3">
<div class="col-1 text-center">名次</div>
<div class="col-3 text-center">專輯封面</div>
<div class="col-6">歌名/藝人</div>
<div class="col-2">發行日期</div>
</div>
<div class="row align-items-center border-bottom border-secondary py-3">
<div class="col-1 text-center">1</div>
<div class="col-3">
<figure class="wrapper mb-0">
<img src="https://i.kfs.io/album/global/108901629,0v2/fit/160x160.jpg">
</figure>
</div>
<div class="col-6"><h4 class="mb-1">愛情你比我想的閣較偉大</h4>茄子蛋</div>
<div class="col-2">2021-03</div>
</div>
<div class="row align-items-center border-bottom border-secondary py-3">
<div class="col-1 text-center">2</div>
<div class="col-3">
<figure class="wrapper mb-0">
<img src="https://i.kfs.io/album/global/97199491,6v1/fit/160x160.jpg">
</figure>
</div>
<div class="col-6"><h4 class="mb-1">在這座城市遺失了你</h4>告五人</div>
<div class="col-2">2020-12</div>
</div>
<div class="row align-items-center border-bottom border-secondary py-3">
<div class="col-1 text-center">3</div>
<div class="col-3">
<figure class="wrapper mb-0">
<img src="https://i.ytimg.com/vi/_s8Iot-uo7s/maxresdefault.jpg">
</figure>
</div>
<div class="col-6"><h4 class="mb-1">因為你所以我</h4>五月天</div>
<div class="col-2">2020-12</div>
</div>
<div class="row align-items-center border-bottom border-secondary py-3">
<div class="col-1 text-center">4</div>
<div class="col-3">
<figure class="wrapper mb-0">
<img src="https://i.kfs.io/album/global/99841422,0v1/fit/160x160.jpg">
</figure>
</div>
<div class="col-6"><h4 class="mb-1">四季予你</h4>程響</div>
<div class="col-2">2020-12</div>
</div>
<div class="row align-items-center border-bottom border-secondary py-3">
<div class="col-1 text-center">5</div>
<div class="col-3">
<figure class="wrapper mb-0">
<img src="https://i.kfs.io/album/global/101076496,2v1/fit/160x160.jpg">
</figure>
</div>
<div class="col-6"><h4 class="mb-1">阿拉斯加海灣</h4>蔡恩雨</div>
<div class="col-2">2021-01</div>
</div>
</div>
</body>
</html>
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. |