diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2013-04-27 15:50:33 -0400 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2013-04-27 15:50:33 -0400 |
commit | a764c21cd11fb2f505ee76a9ca51b884ea774109 (patch) | |
tree | bf6985fc6293d772bfac71bf531eda4098654c5f /index.html | |
parent | 07d0ed8ba6d94b67f138ecd9d29e0dea62659a64 (diff) | |
download | fosdem-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.html | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 ) { |