<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<!-- reveal.js v3.6.0 -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.6.0/css/reveal.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.6.0/js/reveal.min.js"></script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section>Page 1</section>
<section>Page 2</section>
</div>
</div>
<script>
Reveal.initialize({
// 參數設定[註1]
controls: true, // 控制按鈕
controlsTutorial: true, // 引導初學者功能
controlsLayout: 'bottom-right', // 控制按鈕位置
controlsBackArrows: 'faded', // 返回按鈕顯示方式
progress: true, // 簡報進度條
slideNumber: false, // 簡報當前頁碼
history: false, // 所有動作儲存在歷史紀錄
keyboard: true, // 鍵盤快捷鍵
overview: true, // 簡報導覽模式
center: true, // 簡報垂直置中
touch: true, // 觸碰模式
loop: false, // 循環模式
rtl: false, // 簡報方向為RTL模式
shuffle: false, // 簡報顯示順序為隨機模式
autoPlayMedia: null, // 簡報內影音媒體自動播放
autoSlide: 0, // 自動切換的秒數,0秒代表不自動
autoSlideStoppable: true, // 使用者在操作時停止自動切換
autoSlideMethod: Reveal.navigateNext, // 自動切換觸發的函式
mouseWheel: false, // 滑鼠滾輪可以切換簡報
transition: 'slide', // 轉場動畫
transitionSpeed: 'default', // 轉場速度
backgroundTransition: 'fade', // 簡報背景的轉場動畫
parallaxBackgroundImage: '', // 背景視差圖片
parallaxBackgroundSize: '', // 背景視差圖片尺寸(單位: 像素)
parallaxBackgroundHorizontal: null, // 水平背景視差,設0停止視差,null為自動計算(單位: 像素)
parallaxBackgroundVertical: null // 垂直背景視差,設0停止視差,null為自動計算(單位: 像素)
});
</script>
</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. |