I use MikroTik hotspot, and I have an error. I would like to show an image chat.git when this appears
The code is
$(if error)<script type="text/javascript">
var error = "$(error)";
if (error == "simultaneous session limit reached") {
<img src="/chat.gif" alt="Chat Here">
}
else if (error == "invalid password") {
document.write("Contrasena erronea");
}
else if (error == "no valid profile found") {
document.write("Tiempo terminado, consigue otra Ficha.");
}
else if (error == "User $(username) not found") {
document.write("Mete bien el usuario.");
}
else document.write("$(error)")
</script>$(endif)
HTML
Script