function saveWindows() {
    let savedata = [];
    let savedWindows = document.getElementsByClassName('part-container');
    for (let i = 0; i < savedWindows.length; i++) {
        let win = savedWindows[i];
        savedata[i] = new saveWindow(
            win.style.left,
            win.style.top,
            win.style.zIndex,
            win.style.width,
            win.style.height,
            win.classList[1]
        );
    }
    localStorage.setItem('savedWindows', JSON.stringify(savedata));
}
//makes json file and saves the windows in localStorages

makes json file and saves the windows in localStorages
makes json file and saves the windows in localStorages
function saveWindows() {
    let savedata = [];
    let savedWindows = document.getElementsByClassName('part-container');
    for (let i = 0; i < savedWindows.length; i++) {
        let win = savedWindows[i];
        savedata[i] = new saveWindow(
            win.style.left,
            win.style.top,
            win.style.zIndex,
            win.style.width,
            win.style.height,
            win.classList[1]
        );
    }
    localStorage.setItem('savedWindows', JSON.stringify(savedata));
}
function saveWindows ( ) { let savedata = [ ] ; let savedWindows = document . getElementsByClassName ( 'part-container' ) ; for ( let i = 0 ; i < savedWindows . length ; i ++ ) { let win = savedWindows [ i ] ; savedata [ i ] = new saveWindow ( win . style . left , win . style . top , win . style . zIndex , win . style . width , win . style . height , win . classList [ 1 ] ) ; } localStorage . setItem ( 'savedWindows' , JSON . stringify ( savedata ) ) ; }
makes json file and saves the windows in localStorages
makes json file and saves the windows in localStorages