diff options
| author | amy <[email protected]> | 2023-02-14 21:10:41 -0600 |
|---|---|---|
| committer | amy <[email protected]> | 2023-02-14 21:10:41 -0600 |
| commit | 7978abe060313b2f15df1146e45397084eb51f4f (patch) | |
| tree | d68c98ee70c9815411002e58d7427ca36e154e90 /src/window-utils.js | |
| parent | e2e5be325b57be83807c3f707bb9981b799cb743 (diff) | |
more stuff idk
Diffstat (limited to 'src/window-utils.js')
| -rw-r--r-- | src/window-utils.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/window-utils.js b/src/window-utils.js new file mode 100644 index 0000000..7cdbd7c --- /dev/null +++ b/src/window-utils.js @@ -0,0 +1,9 @@ +let util = { + alert(inp){ + + window_create(document.getElementsByClassName("window").length, + (inp.title == undefined ? "Alert" : inp.title), + "<img src='./src/img/"+(inp.content == undefined ? "info" : inp.content) +".png'> <button>ok</button>"+ (inp.content == undefined ? "Alert" : inp.content), + {width:220,height:110,resize:false}) + } +}
\ No newline at end of file |
