forked from maltfield/rtd-github-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change figures to images. try custom js
- Loading branch information
Showing
11 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
const createThemeSwitcher = () => { | ||
let btn = document.createElement('BUTTON'); | ||
btn.className = 'theme-switcher'; | ||
btn.id = 'themeSwitcher'; | ||
btn.innerHTML = | ||
'<i id=themeMoon class="fa fa-moon-o"></i><i id=themeSun class="fa fa-sun-o"></i>'; | ||
document.body.appendChild(btn); | ||
|
||
if (localStorage.getItem('theme') === 'dark') $('#themeMoon').hide(0); | ||
else $('#themeSun').hide(0); | ||
}; | ||
|
||
$(document).ready(() => { | ||
createThemeSwitcher(); | ||
$('#themeSwitcher').click(switchTheme); | ||
|
||
$('footer').html( | ||
$('footer').html() | ||
); | ||
}); | ||
|
||
const switchTheme = () => { | ||
if (localStorage.getItem('theme') === 'dark') { | ||
localStorage.setItem('theme', 'light'); | ||
document.documentElement.setAttribute('data-theme', 'light'); | ||
|
||
$('#themeSun').fadeOut(400, () => { | ||
$('#themeMoon').fadeIn(400); | ||
}); | ||
} else { | ||
localStorage.setItem('theme', 'dark'); | ||
document.documentElement.setAttribute('data-theme', 'dark'); | ||
|
||
$('#themeMoon').fadeOut(400, () => { | ||
$('#themeSun').fadeIn(400); | ||
}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Audio IO | ||
======== | ||
|
||
.. figure:: media/io.png | ||
.. image:: media/io.png | ||
:width: 100% | ||
:align: center | ||
:alt: io.png | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
MIDI Preferences | ||
================ | ||
|
||
.. figure:: media/midi.png | ||
.. image:: media/midi.png | ||
:width: 100% | ||
:align: center | ||
:alt: midi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Modulation Parameters | ||
===================== | ||
|
||
.. figure:: media/LPFmod.png | ||
.. image:: media/LPFmod.png | ||
:width: 100% | ||
:align: center | ||
:alt: mod parms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Parameter Control Logic | ||
======================= | ||
|
||
.. figure:: media/param-control-logic.png | ||
.. image:: media/param-control-logic.png | ||
:width: 100% | ||
:align: center | ||
:alt: param-control-logic.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters