### Hero Banner Link for Quick Start Source: https://www.8thwall.com/docs/studio/asset-lab/generate-characters This HTML structure defines a 'hero' banner linking to the 'Quick Start' documentation. It features an icon, title, description, and a call-to-action. ```html

Quick Start

Explore project setup, development workflow, and deploying your first experience.

Learn More

``` -------------------------------- ### JavaScript: Apply Data Attributes from URL Parameters Source: https://www.8thwall.com/docs/studio/guides/events This script iterates through URL query parameters that start with 'docusaurus-data-'. For each matching parameter, it removes the 'docusaurus-data-' prefix and sets the resulting string as an attribute name on the document's root element, with the parameter's value as the attribute's value. This allows for dynamic configuration via URL. ```javascript try{ const n=new URLSearchParams(window.location.search).entries(); for(var[t,e]of n)if(t.startsWith("docusaurus-data-")){ var a=t.replace("docusaurus-data-","data-"); document.documentElement.setAttribute(a,e)} }catch(t){} ``` -------------------------------- ### Inject Data Attributes from URL in JavaScript Source: https://www.8thwall.com/docs/studio/essentials/modules/backend-services/backend-functions/limits-and-quotas This JavaScript snippet iterates through URL search parameters starting with 'docusaurus-data-'. It extracts the relevant part of the parameter name and sets a corresponding data attribute on the document's root element with the provided value. This is useful for dynamic content injection. ```javascript function(){try{const n=new URLSearchParams(window.location.search).entries();for(var[t,e]of n)if(t.startsWith("docusaurus-data-")){var a=t.replace("docusaurus-data-","data-");document.documentElement.setAttribute(a,e)}}catch(t){}}() ``` -------------------------------- ### Support Dropdown Menu (HTML) Source: https://www.8thwall.com/docs/studio/getting-started/publish A dropdown menu providing links to various support resources, including the project library, tutorials, courses, and the community forum. External links are indicated with an external link icon. ```html ``` -------------------------------- ### Initialize Theme and Data Attributes (JavaScript) Source: https://www.8thwall.com/docs/studio/essentials/modules/backend-services This script initializes the website's theme based on URL parameters or local storage. It also applies data attributes to the document element based on URL query parameters, allowing for dynamic content configuration. It ensures a consistent user experience by respecting user preferences or providing default settings. ```javascript !function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()||function(){try{return window.localStorage.getItem("theme")}catch(t){}}();t(null!==e?e:"light")}() ``` ```javascript function(){try{const n=new URLSearchParams(window.location.search).entries();for(var[t,e]of n)if(t.startsWith("docusaurus-data-")){var a=t.replace("docusaurus-data-","data-");document.documentElement.setAttribute(a,e)}}catch(t){}}() ``` -------------------------------- ### Initialize Theme and Data Attributes Source: https://www.8thwall.com/docs/studio/guides/video This script initializes the website's theme based on URL parameters or local storage and applies data attributes from URL parameters to the document's root element. It handles potential errors during URL parsing or local storage access. ```javascript function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()||function(){try{return window.localStorage.getItem("theme")}catch(t){}}();t(null!==e?e:"light")}(),function(){try{const n=new URLSearchParams(window.location.search).entries();for(var[t,e]of n)if(t.startsWith("docusaurus-data-")){var a=t.replace("docusaurus-data-","data-");document.documentElement.setAttribute(a,e)}}catch(t){}}() ``` -------------------------------- ### Initialize Theme Management in JavaScript Source: https://www.8thwall.com/docs/studio/essentials/modules/backend-services/backend-functions/limits-and-quotas This JavaScript snippet initializes theme management for the Docusaurus site. It checks for a theme parameter in the URL or local storage, falling back to 'light' if neither is found. The theme is then applied to the document's data attribute. ```javascript !function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()|| function(){try{return window.localStorage.getItem("theme")}catch(t){}}();t(null!==e?e:"light")}() ``` -------------------------------- ### JavaScript: Theme Management for Docusaurus Source: https://www.8thwall.com/docs/studio/getting-started/making-changes This JavaScript code snippet handles theme management for a Docusaurus website. It checks for theme parameters in the URL and local storage to set the appropriate theme for the document. It supports 'light' and 'dark' themes and can dynamically apply themes based on URL query parameters. Dependencies include `URLSearchParams` and `window.localStorage`. ```javascript !function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()||function(){try{return window.localStorage.getItem("theme")}catch(t){}}();t(null!==e?e:"light")}() ``` -------------------------------- ### Documentation Card Link: Studio Source: https://www.8thwall.com/docs/studio/asset-lab/generate-characters This HTML snippet represents a card linking to the 'Studio' documentation. It features an icon and a brief description, likely for accessing the development environment. ```html

Account & Billing

Access documentation for managing your 8th Wall account.

``` -------------------------------- ### Skip to Main Content Link (HTML) Source: https://www.8thwall.com/docs/studio/getting-started/publish Provides a link to skip directly to the main content of the page, improving accessibility for users who navigate using screen readers or keyboard controls. ```html
Skip to main content
``` -------------------------------- ### Skip to Content Link (HTML) Source: https://www.8thwall.com/docs/studio/essentials/entities-and-components/entities Provides a link to skip the main navigation and jump directly to the main content area of the page. This improves accessibility for keyboard users. ```html
Skip to main content
``` -------------------------------- ### Language Selector Dropdown (HTML) Source: https://www.8thwall.com/docs/studio/getting-started/publish A dropdown menu allowing users to select their preferred language. It lists available language options with links to their respective documentation pages. ```html ``` -------------------------------- ### Navigation Bar Structure (HTML) Source: https://www.8thwall.com/docs/studio/getting-started/publish Defines the structure of the main navigation bar, including toggles, branding, language selection, and support links. It uses ARIA attributes for accessibility. ```html ``` -------------------------------- ### JavaScript: Set Theme from URL or Local Storage Source: https://www.8thwall.com/docs/studio/guides/events This script sets the data theme attribute for the document's root element. It prioritizes a theme specified in the URL's query parameters ('docusaurus-theme'). If not found, it falls back to checking the browser's local storage for a 'theme' item. If neither is available, it defaults to 'light'. ```javascript function t(t){document.documentElement.setAttribute("data-theme",t)} var e=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()|| function(){try{return window.localStorage.getItem("theme")}catch(t){}}(); t(null!==e?e:"light") ``` -------------------------------- ### Navigation Bar Structure (HTML) Source: https://www.8thwall.com/docs/studio/guides/audio This HTML fragment defines the main navigation bar for the 8th Wall Studio website. It includes a skip to content link, branding logo, language selection dropdown, and support links. ```html
Skip to main content