Skip to content

A Vanilla JS Window Manager for Single-Page Neocities Applications built w/ Vite

License

Notifications You must be signed in to change notification settings

sudoDeVinci/NeocitiesWM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NeocitiesWM - Neocities Window Manager

Usage

Set up an environment for the client.

// Create environment with autoRestore true
const env = new Environment(true);

The one argument is whether the environment state is automatically saved and restored on theclient's side.

To create a window, use the .createWindow method. We pass the following to the method:

  • id
  • title
  • content
  • width
  • height
  • window-type

width, height and window-type have simple defaults. The final argument, window-type, let's us pass any object class we make which inherits the Window class. If left blank/null, this default to the base window class.

Example

About

A Vanilla JS Window Manager for Single-Page Neocities Applications built w/ Vite

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published