da599c3a78
* Fix broken API doc links Create symlink for latest to point to v0.7. Group APIs by top version number rather than individual * Update swift and android version numbers to match Mentats * Update documentation * Update top level .gitignore to ignore docs site & metatdata * Add README to help with building documentation site * Address review comments @ncalexan
21 lines
765 B
JavaScript
21 lines
765 B
JavaScript
var themes = document.getElementById("theme-choices");
|
|
var themePicker = document.getElementById("theme-picker");
|
|
themePicker.onclick = function() {
|
|
if (themes.style.display === "block") {
|
|
themes.style.display = "none";
|
|
themePicker.style.borderBottomRightRadius = "3px";
|
|
themePicker.style.borderBottomLeftRadius = "3px";
|
|
} else {
|
|
themes.style.display = "block";
|
|
themePicker.style.borderBottomRightRadius = "0";
|
|
themePicker.style.borderBottomLeftRadius = "0";
|
|
}
|
|
};
|
|
["dark","light"].forEach(function(item) {
|
|
var but = document.createElement('button');
|
|
but.innerHTML = item;
|
|
but.onclick = function(el) {
|
|
switchTheme(currentTheme, mainTheme, item);
|
|
};
|
|
themes.appendChild(but);
|
|
});
|