Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var windowsManager =
- {
- id: 0;
- desktopId = "desktop";
- function createWindow()
- {
- id++;
- var newWindow = document.createElement("div");
- newWindow.setAttribute("id",this.id);
- document.getElementById(this.desktopId).appendChild(newWindow);
- }
- function closeWindow(var id)
- {
- var selectedWindow = document.getElementById(id);
- document.getElementById(this.desktopId).removeChild(selectedWindow);
- }
- function moveWindow(var id, var x, var y)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement