-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: Moving Palette Selector Up (and into _include)
- Loading branch information
James Brundage
committed
Apr 22, 2024
1 parent
641ba77
commit 41a425a
Showing
4 changed files
with
46 additions
and
38 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
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,23 @@ | ||
<div class="flexRow centered centeredText wholeWidth"> | ||
<select id="schemeSelector" onchange="SetColorScheme(document.getElementById('schemeSelector').value); "> | ||
</select> | ||
</div> | ||
<script type="text/javascript"> | ||
var schemeSelector = document.getElementById("schemeSelector"); | ||
var colorSchemes = GetColorSchemeList(); | ||
for (colorScheme in colorSchemes) { | ||
var opt = document.createElement("option") | ||
opt.value = colorSchemes[colorScheme]; | ||
opt.innerHTML = colorSchemes[colorScheme]; | ||
schemeSelector.append(opt); | ||
} | ||
</script> | ||
{% if page.colorSchemeName %} | ||
<script type="text/javascript" /> | ||
SetColorScheme("{{page.colorSchemeFileName}}"); | ||
</script> | ||
{% else %} | ||
<script type="text/javascript" /> | ||
SetColorScheme("Konsolas"); | ||
</script> | ||
{% endif %} |
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