diff --git a/startpage.html b/startpage.html index 4d6cdb9..7312f0e 100644 --- a/startpage.html +++ b/startpage.html @@ -160,18 +160,6 @@ -
-
-
- -
- -
-
- -
-
-
+ +

you are now editing the page!

@@ -250,15 +245,18 @@

-
-
add new containers / layers
+ +
+

layers:

+
+
add new layer
@@ -465,6 +463,7 @@ class Container { id; + name; x; y; height; @@ -483,7 +482,9 @@ containerSettings, sections ) { + this.name = name; this.id = name.replace(" ", "-"); + // if initializing saved container content, if (x !== undefined && y !== undefined) { this.x = x; @@ -510,12 +511,12 @@ // apply bookmarks this.loadBookmarks(); // then create container options UI in settings menu - this.insertContainerOptionsMenu(); + this.insertContainerSettingsListing(); this.applyContainerSettings(); // establish necessary event listeners this.addContainerEventListeners() - this.addSettingsEventListeners(); + this.addSettingsMenuEventListeners(); // and save @@ -668,10 +669,25 @@ /** * creates container options menu in page settings menu */ - insertContainerOptionsMenu() { - document.getElementById("addContainerForm").insertAdjacentHTML( + insertContainerSettingsListing() { + document.getElementById("containers").insertAdjacentHTML( "beforeend", ` + /** + * TODO: + * make the menus intially invisible + * implement a toggle visibility function + * add the classes for menu layer depths for easier distinction later + * brainstorm best approach to UI/UX for these nested menus + * --> remove "images" from wallpaper tab + * ----> furthermore, condense all global settings into one tab + * ----- including wallpaper, audio, cursor + * add toggles for each settings menu + * rename settings form div ids (see "note to self") + */ +
+

${this.name} [expand]

+

add bookmarks

@@ -688,7 +704,6 @@
-

@@ -861,6 +876,8 @@
+
+ ` ); } @@ -1087,7 +1104,7 @@ /** * applies event listeners on container options inputs in settings menu */ - addSettingsEventListeners() { + addSettingsMenuEventListeners() { // container color setting listeners document .getElementById(this.id + "-settings-bg-color") @@ -1373,7 +1390,7 @@ width: "", height: "", }; - setupSettingsMenu(); + setupContainerSettingsMenu(); /** load container data */ let containerMapValues = @@ -1413,7 +1430,7 @@ /************************** * INITIALIZATION HELPERS * **************************/ - function setupSettingsMenu() { + function setupContainerSettingsMenu() { let settingsContainer = document.getElementById("settingsContainer"); /* set at the last saved location */