Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

Add settings widget thing to other pages

Scott Petrovic4526cfa1148b
diff --git a/src/create.html b/src/create.html
index 6233d84..3fd9752 100644
--- a/src/create.html
+++ b/src/create.html
@@ -46,11 +46,34 @@
<img src="../images/github-white-icon.png" width="24" height="24" alt="GitHub" />
</a>
- <!-- Theme Toggle -->
- <button id="theme-toggle">
- <!-- icon will fill in here-->
- <span class="theme-icon"></span>
- </button>
+ <!-- Settings Toggle Dropdown -->
+ <div id="settings-dropdown-container" class="nav-dropdown">
+ <button
+ id="settings-toggle"
+ class="nav-icon-button"
+ aria-expanded="false"
+ aria-controls="settings-dropdown-content"
+ aria-haspopup="true"
+ aria-label="Open settings"
+ >
+ <span class="material-symbols-outlined">settings</span>
+ </button>
+
+ <!-- content that has options for settings -->
+ <div id="settings-dropdown-content" class="nav-dropdown-content" hidden>
+
+ <!-- Theme Toggle -->
+ <button id="theme-toggle" class="settings-dropdown-row">
+ <!-- icon will fill in here-->
+ <span class="theme-icon"></span>
+ </button>
+
+ <div class="settings-dropdown-row light-intensity-setting">
+ <label for="light-intensity-input">Light intensity</label>
+ <input type="range" id="light-intensity-input" min="0.1" max="2.0" value="1.0" step="0.01" />
+ </div>
+ </div>
+ </div>
</div>
</nav>
@@ -83,14 +106,6 @@
</div>
</div>
- <!-- Theme Toggle -->
- <div id="theme-toggle-container">
- <button id="theme-toggle">
- <!-- icon will fill in here-->
- <span class="theme-icon"></span>
- </button>
- </div>
-
<div id="tool-panel">
<!-- create a radio button group. There are two options. Move Skeleton, Rotate Mesh -->
<div id="tool-selection-group">
diff --git a/src/retarget/index.html b/src/retarget/index.html
index fafcb37..43b1808 100644
--- a/src/retarget/index.html
+++ b/src/retarget/index.html
@@ -35,11 +35,27 @@
<img src="../images/github-white-icon.png" width="24" height="24" alt="GitHub" />
</a>
- <!-- Theme Toggle -->
- <button id="theme-toggle">
- <!-- icon will fill in here-->
- <span class="theme-icon"></span>
- </button>
+ <!-- Settings Toggle Dropdown -->
+ <div id="settings-dropdown-container" class="nav-dropdown">
+ <button id="settings-toggle" class="nav-icon-button" aria-expanded="false" aria-controls="settings-dropdown-content" aria-haspopup="true" aria-label="Open settings">
+ <span class="material-symbols-outlined">settings</span>
+ </button>
+
+ <!-- content that has options for settings -->
+ <div id="settings-dropdown-content" class="nav-dropdown-content" hidden>
+
+ <!-- Theme Toggle -->
+ <button id="theme-toggle" class="settings-dropdown-row">
+ <!-- icon will fill in here-->
+ <span class="theme-icon"></span>
+ </button>
+
+ <div class="settings-dropdown-row light-intensity-setting">
+ <label for="light-intensity-input">Light intensity</label>
+ <input type="range" id="light-intensity-input" min="0.1" max="2.0" value="1.0" step="0.01" />
+ </div>
+ </div>
+ </div>
</div>
</nav>