How do I, according to the code below, only appear once per time?
<scriptsrc="assets/plugins/notification/js/bootstrap-growl.min.js"></script>
<script>
'use strict';
$(window).on('load',function(){
function notify(message, type){
$.growl({
message: message
},{
type: type,
allow_dismiss: false,
label: 'Cancel',
className: 'btn-xs btn-warning',
placement: {
from: 'top',
align: 'right'
},
spacing: 10,
z_index: 999999,
delay: 10000,
animate: {
enter: 'animated fadeInRight',
exit: 'animated fadeOutRight'
}
});
};
notify('<span style="color: #000;font-size: 14px; font-weight: bold">ENVIAR MENSAGEM HOJE</span> <button type="button" class="close" data-growl="dismiss"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>', 'warning');
});
</script>