{"id":20427202,"url":"https://github.com/sevenworksdev/jswa","last_synced_at":"2025-07-08T17:40:13.628Z","repository":{"id":208121717,"uuid":"720862223","full_name":"SevenworksDev/jswa","owner":"SevenworksDev","description":"JSWA (JavaScript Window Animation) lets you animate browser windows!","archived":false,"fork":false,"pushed_at":"2023-11-21T19:27:19.000Z","size":20,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T12:34:23.892Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SevenworksDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-19T20:22:50.000Z","updated_at":"2024-10-01T19:37:15.000Z","dependencies_parsed_at":"2023-11-19T21:30:13.463Z","dependency_job_id":"ce277fda-d5d5-4a6a-9558-f9e491f4bf9c","html_url":"https://github.com/SevenworksDev/jswa","commit_stats":null,"previous_names":["sevenworksdev/jswa"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SevenworksDev/jswa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SevenworksDev%2Fjswa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SevenworksDev%2Fjswa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SevenworksDev%2Fjswa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SevenworksDev%2Fjswa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SevenworksDev","download_url":"https://codeload.github.com/SevenworksDev/jswa/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SevenworksDev%2Fjswa/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264316226,"owners_count":23589925,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T07:19:14.859Z","updated_at":"2025-07-08T17:40:13.585Z","avatar_url":"https://github.com/SevenworksDev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSWA Library (Animate Browser Windows)\n\nJSWA is a library that enables the creation and animation of browser windows using the `window.open` method.\n\n## Functions\n\n### `jswa.create(name, x, y, width, height)`\n\nCreates a new window with the specified attributes.\n\n- `name`: The name for the window.\n- `x`: The initial horizontal position of the window.\n- `y`: The initial vertical position of the window.\n- `width`: The width of the window.\n- `height`: The height of the window.\n\n### `jswa.move(name, x, y, duration)`\n\nMoves an existing window to a new position.\n\n- `name`: The name of the window.\n- `x`: The target horizontal position.\n- `y`: The target vertical position.\n- `duration`: The duration of the move animation in milliseconds.\n\n### `jswa.resize(name, width, height)`\n\nResizes an existing window to new dimensions.\n\n- `name`: The name of the window.\n- `width`: The new width of the window.\n- `height`: The new height of the window.\n\n### `jswa.write(name, content)`\n\nWrites HTML content to the body of an existing window.\n\n- `name`: The name of the window.\n- `content`: The HTML content to be written to the window body.\n\n### `jswa.title(name, newTitle)`\n\nSets the title of an existing window.\n\n- `name`: The name of the window.\n- `newTitle`: The new title for the window.\n\n### `jswa.sound(audio)`\n\nPlays audio.\n\n- `audio`: Audio URL.\n\n### `jswa.shake(name, duration) / jswa.hardshake(name, duration)`\n\nShakes a window (or violently shakes a window)\n\n- `name`: The name of the window.\n- `duration`: The duration for shaking the window.\n\n### `jswa.close(name)`\n\nCloses an existing window.\n\n- `name`: The name of the window to be closed.\n\n### `jswa.run(fileURL)`\n\nRun a .jswa file.\n\n- `fileURL`: The URL to a .jswa file.\n\n## Example Usage\n\n```javascript\n// Create a window\njswa.create('window1', 100, 100, 400, 300);\n\n// Set the title of the window\njswa.title('window1', 'New Window Title');\n\n// Move the window\njswa.move('window1', 300, 200, 1000);\n\n// Resize the window\njswa.resize('window1', 500, 400);\n\n// Write HTML content to the window\njswa.write('window1', '\u003ch1\u003eHello, Window!\u003c/h1\u003e');\n\n// Close the window after 3 seconds\nsetTimeout(() =\u003e jswa.close('window1'), 3000);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsevenworksdev%2Fjswa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsevenworksdev%2Fjswa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsevenworksdev%2Fjswa/lists"}