I have followed these steps to make a notification on my website:
And this is what I have:
$(document).ready(function() {
theBody = "" +
"<div style='background: #0055a0; color: #ffffff'>" +
" <strong>Tienes nuevos pedidos!</strong>"+
"</div>";
theTitle = "<h1>Hay un nuevo pedido</h1>";
var options = {
body: theBody,
};
var n = new Notification(theTitle,options);
setTimeout(n.close.bind(n), 15000);
});
And it works, but it shows me the content as plain text, is there any way to customize the colors the background color and the letter?