Skip to content
/ Ventus Public
forked from rlamana/ventus

A window manager experiment written in Javascript, HTML5 and CSS3.

License

Notifications You must be signed in to change notification settings

eyeos2/Ventus

 
 

Repository files navigation

Ventus WM

A window manager experiment written in Javascript, HTML5 and CSS3.

Live Demo! (http://www.rlamana.es/ventus) | Video Demo

Installation

git clone https://github.com/eyeos2/Ventus.git
npm install
bower install -f

Usage

Create a new window manager

var wm = new Ventus.WindowManager();

Create a new empty window

var window = wm.createWindow({
	title: 'A new window',
	x: 50,
	y: 50,
	width: 400,
	height: 250
});

window.open();

Create a new window wrapping a DOM Element

Using a query
wm.createWindow.fromQuery('#element .selector', {
	title: 'My App',
	width: 330,
	height: 400,
	x: 670,
	y: 60
});
Using a reference
wm.createWindow.fromElement(domElement, {
	title: 'My App',
	width: 500,
	height: 500,
	x: 0,
	y: 0
});

Run tests

./run-tests.sh

Generate a build

grunt build //Generates debug and release mode
grunt build:debug //Generates debug mode
grunt build:release //Generates release mode

About

A window manager experiment written in Javascript, HTML5 and CSS3.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 67.1%
  • CSS 31.8%
  • Other 1.1%