<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<!-- Font Awesome v4.3.0 -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" />
<!-- jQuery v1.9.1 -->
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<!-- Toolbar.js v1.0.4 -->
<link href="https://6666design.com/cdn/toolbar/1.0.4/jquery.toolbar.css" rel="stylesheet" />
<script src="https://6666design.com/cdn/toolbar/1.0.4/jquery.toolbar.min.js"></script>
<!-- 純排版用不影響功能 -->
<style>
body {
margin: 100px;
}
</style>
</head>
<body>
<!-- 按鈕 -->
<div data-toolbar="content-option" class="btn-toolbar">
<i class="fa fa-cog"></i>
</div>
<!-- 顯示列表 -->
<div id="toolbar-options" class="hidden">
<a href="#"><i class="fa fa-plane"></i></a>
<a href="#"><i class="fa fa-car"></i></a>
<a href="#"><i class="fa fa-bicycle"></i></a>
</div>
<script type="text/javascript">
$( ".btn-toolbar" ).toolbar({
content: "#toolbar-options", // 目標物件
position: "top", // 工具列顯示位置
style: "primary", // 工具列CSS風格
animation: "standard", // 工具列過場動態效果
event: "mouseover", // 工具列透過什麼方式顯現
hideOnClick: false // 點選工具列以外的部分,將隱藏工具列
});
</script>
</body>
</html>
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. |