The Tutorial Layer is an overlay system that automatically detects UI elements and provides contextual explanations when users interact with them. It requires no manual wiring per component.
Once activated, the system highlights the element and displays an explanation panel.
This permanently stores a disabled flag in localStorage under nanostate.
To reset:
localStorage.removeItem("nanostate");
location.reload();
The system automatically detects elements using standard selectors:
.fbutton, button, input, textarea, select, [contenteditable="true"], div.words, div[title], div[alt], div[aria-label], #text
You can make any element compatible simply by using one of these attributes or classes.
This button will automatically be picked up by the Tutorial Layer:
<button class="fbutton" title="Save your changes"> Save </button>
What happens:
title attribute
<button class="fbutton"
aria-label="Delete item permanently"
data-desc="This removes the item from the system">
Delete
</button>
How it is interpreted:
aria-label → primary titledata-desc → detailed explanation
<div class="fbutton"
title="Open settings panel"
data-desc="This opens the configuration menu for the application">
Open Settings
</div>
Priority order for display text:
titlearia-labelinnerText (fallback)Priority order for description:
altdata-descaria-descriptionaria-labeltitledata-nano-skip are excludedThe Tutorial Layer requires no setup beyond using standard HTML attributes. Once active, it turns any UI into a self-explaining system by binding explanations directly to real DOM elements.
Copyright © - MYDB Notepad | Ink it while you think it. | ... | NR