aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2013-04-27 15:50:33 -0400
committerHakim El Hattab <hakim.elhattab@gmail.com>2013-04-27 15:50:33 -0400
commita764c21cd11fb2f505ee76a9ca51b884ea774109 (patch)
treebf6985fc6293d772bfac71bf531eda4098654c5f /index.html
parent07d0ed8ba6d94b67f138ecd9d29e0dea62659a64 (diff)
downloadfosdem-2018-presentation-a764c21cd11fb2f505ee76a9ca51b884ea774109.tar
fosdem-2018-presentation-a764c21cd11fb2f505ee76a9ca51b884ea774109.tar.gz
add support for data-trim attribute on code elements (closes #419)
Diffstat (limited to 'index.html')
-rw-r--r--index.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/index.html b/index.html
index a226ad7..8f4b3bc 100644
--- a/index.html
+++ b/index.html
@@ -208,7 +208,8 @@
<p>
Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
</p>
- <pre><code contenteditable style="font-size: 18px; margin-top: 20px;">Reveal.addEventListener( 'customevent', function() {
+ <pre><code data-trim contenteditable style="font-size: 18px; margin-top: 20px;">
+Reveal.addEventListener( 'customevent', function() {
console.log( '"customevent" has fired' );
} );
</code></pre>
@@ -228,7 +229,7 @@
<section>
<h2>Pretty Code</h2>
- <pre><code contenteditable>
+ <pre><code data-trim contenteditable>
function linkify( selector ) {
if( supports3DTransforms ) {