aboutsummaryrefslogtreecommitdiff
path: root/js/reveal.js
diff options
context:
space:
mode:
authorkarimsa <k4rim.sa@gmail.com>2013-01-06 00:11:32 -0500
committerkarimsa <k4rim.sa@gmail.com>2013-01-06 00:11:32 -0500
commitd4d9c4bfabf6540bc17219abd0e94699e641569c (patch)
treebc4ea005bef65998db7e83e6916f9ec403492aa6 /js/reveal.js
parent68f8c9361e452b1c9740d9f6c72327ac7acd60c4 (diff)
downloadfreenode-live-2017-presentation-d4d9c4bfabf6540bc17219abd0e94699e641569c.tar
freenode-live-2017-presentation-d4d9c4bfabf6540bc17219abd0e94699e641569c.tar.gz
entities auto fix added
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 4574e25..9e52b5f 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -492,8 +492,13 @@ var Reveal = (function(){
var node = nodes[i];
if( node.textContent && !node.querySelector( 'img' ) && ( !node.className || !node.classList.contains( node, 'roll' ) ) ) {
+ var span = document.createElement('span');
+ span.setAttribute('data-title', node.text);
+ span.innerHTML = node.innerHTML;
+
node.classList.add( 'roll' );
- node.innerHTML = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>';
+ node.innerHTML = '';
+ node.appendChild(span);
}
}
}