🔔 User Notifications v0.6

This commit is contained in:
jokob-sk
2024-06-03 07:39:27 +10:00
parent 91ff13df27
commit 8a0b8b8a10
24 changed files with 430 additions and 203 deletions

View File

@@ -26,26 +26,7 @@ function lockDatabase(delay=20) {
}
function writeNotification(content, level) {
const phpEndpoint = 'php/server/utilNotification.php';
$.ajax({
url: phpEndpoint, // Change this to the path of your PHP script
type: 'GET',
data: {
action: 'write_notification',
content: content,
level: level
},
success: function(response) {
alert('Notification written successfully.');
},
error: function(xhr, status, error) {
console.error('Error writing notification:', error);
}
});
}