")
.addClass("ti-close")
.addClass("exit")
.on('mouseup touchend', function(e) {
$(this).parent().remove();
});
var top = $("
")
.css("font-size", "20pt")
.html(title);
var content = $("")
.css({
"white-space": "pre-wrap",
"word-wrap": "break-word",
"color": "#FFF"
})
.html(text);
var box = $("")
.css({
"background-color": "#2A2A2A",
"width": "calc(80% - 30px)",
"height": "calc(80% - 30px)",
"padding": "15px",
"color": "#3F3",
"font-family": "monospace",
"position": "fixed",
"left": "10vw",
"top": "10vh",
"box-shadow": "0 0 5px #000"
})
.append(exit)
.append(title)
.append(content);
$("body").append(box);
} else {
console.warn("Nothing to be notified about");
}
};
window.permission = function(content, callback) {
callback = callback ? callback : function(){ return true; };
$("#permission").remove();
var decline = $("