aboutsummaryrefslogtreecommitdiff
path: root/src/window-utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/window-utils.js')
-rw-r--r--src/window-utils.js9
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