From 7c03d6018617a3430ae10fd855467175ad17c096 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Thu, 18 Dec 2014 17:45:51 +0100 Subject: [PATCH] remove theme config option #1061 --- index.html | 21 +++++++++++---------- js/reveal.js | 15 --------------- 2 files changed, 11 insertions(+), 25 deletions(-) diff --git a/index.html b/index.html index cd588cd..7095b22 100644 --- a/index.html +++ b/index.html @@ -163,16 +163,17 @@

Themes

reveal.js comes with a few themes built in:
- Black (default) - - White - - League - - Sky - - Beige - - Simple
- Serif - - Night - - Moon - - Solarized + + Black (default) - + White - + League - + Sky - + Beige - + Simple
+ Serif - + Night - + Moon - + Solarized

diff --git a/js/reveal.js b/js/reveal.js index 9681694..5690a27 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -121,9 +121,6 @@ // Focuses body when page changes visiblity to ensure keyboard shortcuts work focusBodyOnPageVisibilityChange: true, - // Theme (see /css/theme) - theme: null, - // Transition style transition: 'default', // none/fade/slide/convex/concave/zoom @@ -870,18 +867,6 @@ } ); } - // Load the theme in the config, if it's not already loaded - if( config.theme && dom.theme ) { - var themeURL = dom.theme.getAttribute( 'href' ); - var themeFinder = /[^\/]*?(?=\.css)/; - var themeName = themeURL.match(themeFinder)[0]; - - if( config.theme !== themeName ) { - themeURL = themeURL.replace(themeFinder, config.theme); - dom.theme.setAttribute( 'href', themeURL ); - } - } - sync(); }