Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var windowsManager =
  2. {
  3.     id: 0;
  4.     desktopId = "desktop";
  5.    
  6.     function createWindow()
  7.     {
  8.         id++;
  9.         var newWindow = document.createElement("div");
  10.         newWindow.setAttribute("id",this.id);
  11.        
  12.         document.getElementById(this.desktopId).appendChild(newWindow);
  13.     }
  14.    
  15.     function closeWindow(var id)
  16.     {
  17.         var selectedWindow = document.getElementById(id);
  18.         document.getElementById(this.desktopId).removeChild(selectedWindow);
  19.     }
  20.    
  21.     function moveWindow(var id, var x, var y)
  22.     {
  23.    
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement