aboutsummaryrefslogtreecommitdiff
path: root/src/window-utils.js
blob: 7cdbd7cda181113d83ed5f74499d93ea8d47753c (plain)
1
2
3
4
5
6
7
8
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})
    }
}