aboutsummaryrefslogtreecommitdiff
path: root/js/reveal.js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2013-07-20 22:56:48 -0400
committerHakim El Hattab <hakim.elhattab@gmail.com>2013-07-20 22:56:48 -0400
commite8d257ec772a3ff7fafb6d38cc278a413094605f (patch)
treea9726bbeabb6f8cb121a010be74cb4bcf220b69c /js/reveal.js
parent4a68d2d6a580d3ccd59b9648bb447d422829bb9a (diff)
downloadfosdem-2018-presentation-e8d257ec772a3ff7fafb6d38cc278a413094605f.tar
fosdem-2018-presentation-e8d257ec772a3ff7fafb6d38cc278a413094605f.tar.gz
remove 'rolling links' #532
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js55
1 files changed, 0 insertions, 55 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 04e535d..107b67b 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -67,9 +67,6 @@ var Reveal = (function(){
// Enable slide navigation via mouse wheel
mouseWheel: false,
- // Apply a 3D roll to links on hover
- rollingLinks: true,
-
// Opens links in an iframe preview overlay
previewLinks: false,
@@ -478,14 +475,6 @@ var Reveal = (function(){
document.removeEventListener( 'mousewheel', onDocumentMouseScroll, false );
}
- // Rolling 3D links
- if( config.rollingLinks ) {
- enableRollingLinks();
- }
- else {
- disableRollingLinks();
- }
-
// Iframe link previews
if( config.previewLinks ) {
enablePreviewLinks();
@@ -709,50 +698,6 @@ var Reveal = (function(){
}
/**
- * Wrap all links in 3D goodness.
- */
- function enableRollingLinks() {
-
- if( supports3DTransforms && !( 'msPerspective' in document.body.style ) ) {
- var anchors = document.querySelectorAll( SLIDES_SELECTOR + ' a:not(.image)' );
-
- for( var i = 0, len = anchors.length; i < len; i++ ) {
- var anchor = anchors[i];
-
- if( anchor.textContent && !anchor.querySelector( '*' ) && ( !anchor.className || !anchor.classList.contains( anchor, 'roll' ) ) ) {
- var span = document.createElement('span');
- span.setAttribute('data-title', anchor.text);
- span.innerHTML = anchor.innerHTML;
-
- anchor.classList.add( 'roll' );
- anchor.innerHTML = '';
- anchor.appendChild(span);
- }
- }
- }
-
- }
-
- /**
- * Unwrap all 3D links.
- */
- function disableRollingLinks() {
-
- var anchors = document.querySelectorAll( SLIDES_SELECTOR + ' a.roll' );
-
- for( var i = 0, len = anchors.length; i < len; i++ ) {
- var anchor = anchors[i];
- var span = anchor.querySelector( 'span' );
-
- if( span ) {
- anchor.classList.remove( 'roll' );
- anchor.innerHTML = span.innerHTML;
- }
- }
-
- }
-
- /**
* Bind preview frame links.
*/
function enablePreviewLinks( selector ) {