JWM - Javascript Window Manager
Harel Malka 2006
JWM is a 100% javascript window manager.
I've started this project because I needed a windowing system that is fully client side, works around existing
content (does not require much rewrite) and is lightweight and robust.
I couldn't find something like that on the web, so like a good developer I decided to make my own.
Coming from a linux desktop enviroment my design philosophy is more geared towards the X windowing system than that of windows.
My requirements were:
- 100% pure javascript. No Server side elements
- Be a lightweight window manager and nothing else.
- The ability to take existing DIVs and wrap windows around them, in a similar fashion to a window manager wraping windows around applications. No code changes should be neccessary as long as the data to window is within a div.
- Provide the basic window interfaces (resize, maximise, move, minimize and shade).
- Coordinate and dimension indicators on drag and resize
- Be customizable
- Display dependant on CSS.
- Cross browser compatibility
- Easy to integrate into existing system
- Persistency across sessions (via cookies)
- Inteligent handling of links - external and internal
Documentation
* Window Properties:
* id = the unique id of the window
* x, y = initial position of the window on the screen
* w, h = height and width of the window's *body*
* (the external dimensions will be slightly bigger
* title = The title of the window (to appear on the title bar)