Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
0393744f
Commit
0393744f
authored
Apr 29, 2016
by
Mathieu Giraud
Browse files
index.html, js/menu.js: presentation mode
parent
37c6d35a
Changes
2
Hide whitespace changes
Inline
Side-by-side
browser/index.html
View file @
0393744f
...
@@ -239,8 +239,9 @@
...
@@ -239,8 +239,9 @@
<div
style=
"float: right"
class=
"menu"
onmouseover=
"showSelector('paletteSelector');"
>
palette
<div
style=
"float: right"
class=
"menu"
onmouseover=
"showSelector('paletteSelector');"
>
palette
<div
id=
"paletteSelector"
class=
"selector"
><div>
<div
id=
"paletteSelector"
class=
"selector"
><div>
<a
class=
"buttonSelector"
onclick=
"changeStyle('solarizeD')"
>
dark
</a>
<a
class=
"buttonSelector"
onclick=
"changeStyle('solarizeL')"
>
light
</a>
<a
class=
"buttonSelector"
onclick=
"changeStyle('solarizeL')"
>
light
</a>
<a
class=
"buttonSelector"
onclick=
"changeStyle('display')"
>
light (presentation)
</a>
<a
class=
"buttonSelector"
onclick=
"changeStyle('solarizeD')"
>
dark
</a>
</div></div>
</div></div>
</div>
</div>
...
...
browser/js/menu.js
View file @
0393744f
...
@@ -76,6 +76,7 @@ function initMenu () {
...
@@ -76,6 +76,7 @@ function initMenu () {
function
changeStyle
(
newStyle
){
function
changeStyle
(
newStyle
){
if
(
newStyle
==
"
solarizeD
"
)
document
.
getElementById
(
"
palette
"
).
href
=
"
css/dark.css
"
;
if
(
newStyle
==
"
solarizeD
"
)
document
.
getElementById
(
"
palette
"
).
href
=
"
css/dark.css
"
;
if
(
newStyle
==
"
solarizeL
"
)
document
.
getElementById
(
"
palette
"
).
href
=
"
css/light.css
"
;
if
(
newStyle
==
"
solarizeL
"
)
document
.
getElementById
(
"
palette
"
).
href
=
"
css/light.css
"
;
if
(
newStyle
==
"
display
"
)
document
.
getElementById
(
"
palette
"
).
href
=
"
css/talk.css
"
;
m
.
update
()
m
.
update
()
}
}
...
...
Write
Preview
Markdown
is supported
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