Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
server
team-presentation
Commits
7c03d601
Commit
7c03d601
authored
Dec 18, 2014
by
Hakim El Hattab
Browse files
remove theme config option #1061
parent
c3f9aabe
Changes
2
Hide whitespace changes
Inline
Side-by-side
index.html
View file @
7c03d601
...
...
@@ -163,16 +163,17 @@
<h2>
Themes
</h2>
<p>
reveal.js comes with a few themes built in:
<br>
<a
href=
"?#/themes"
>
Black (default)
</a>
-
<a
href=
"?theme=white#/themes"
>
White
</a>
-
<a
href=
"?theme=league#/themes"
>
League
</a>
-
<a
href=
"?theme=sky#/themes"
>
Sky
</a>
-
<a
href=
"?theme=beige#/themes"
>
Beige
</a>
-
<a
href=
"?theme=simple#/themes"
>
Simple
</a>
<br>
<a
href=
"?theme=serif#/themes"
>
Serif
</a>
-
<a
href=
"?theme=night#/themes"
>
Night
</a>
-
<a
href=
"?theme=moon#/themes"
>
Moon
</a>
-
<a
href=
"?theme=solarized#/themes"
>
Solarized
</a>
<!-- Hacks to swap themes after the page has loaded. Not flexible and only intended for the reveal.js demo deck. -->
<a
href=
"#"
onclick=
"document.getElementById('theme').setAttribute('href','css/theme/test.css'); return false;"
>
Black (default)
</a>
-
<a
href=
"#"
onclick=
"document.getElementById('theme').setAttribute('href','css/theme/white.css'); return false;"
>
White
</a>
-
<a
href=
"#"
onclick=
"document.getElementById('theme').setAttribute('href','css/theme/league.css'); return false;"
>
League
</a>
-
<a
href=
"#"
onclick=
"document.getElementById('theme').setAttribute('href','css/theme/sky.css'); return false;"
>
Sky
</a>
-
<a
href=
"#"
onclick=
"document.getElementById('theme').setAttribute('href','css/theme/beige.css'); return false;"
>
Beige
</a>
-
<a
href=
"#"
onclick=
"document.getElementById('theme').setAttribute('href','css/theme/simple.css'); return false;"
>
Simple
</a>
<br>
<a
href=
"#"
onclick=
"document.getElementById('theme').setAttribute('href','css/theme/serif.css'); return false;"
>
Serif
</a>
-
<a
href=
"#"
onclick=
"document.getElementById('theme').setAttribute('href','css/theme/night.css'); return false;"
>
Night
</a>
-
<a
href=
"#"
onclick=
"document.getElementById('theme').setAttribute('href','css/theme/moon.css'); return false;"
>
Moon
</a>
-
<a
href=
"#"
onclick=
"document.getElementById('theme').setAttribute('href','css/theme/solarized.css'); return false;"
>
Solarized
</a>
</p>
<p>
<small>
...
...
js/reveal.js
View file @
7c03d601
...
...
@@ -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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment