Files
auth_service_c/web/js/message.js
T
wt 155c259ea9
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 9s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 14s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Failing after 8s
added web and fix some problems
2025-08-27 17:00:57 +07:00

19 lines
514 B
JavaScript

const message = document.querySelector('.message')
const messagetext = document.querySelector('.messagetext')
const notification = (text, type) => {
if (type === "error") {
message.classList.remove('success')
message.classList.add('error')
} else {
message.classList.remove('error')
message.classList.add('success')
}
messagetext.innerHTML = text
message.classList.add('active')
setTimeout(() => {
message.classList.remove('active')
}, 2000)
}