Commit 037eeef8 authored by Adrian's avatar Adrian
Browse files

frontend cambios para validar mensajes

parent fcb4012a
Pipeline #2301 canceled with stages
# Cambiar la linea 9 por la url que sera el backend
### Ejemplo
# var url = 'https://test.agetic.gob.bo/backend-api/send'
\ No newline at end of file
......@@ -6,6 +6,7 @@
<title>.:: Sitio ::.</title>
<link rel="stylesheet" href="./style.css">
<script type="text/javascript">
var url = 'http://localhost:5000/send';
function login () {
if (document.getElementById('user').value === 'admin' && document.getElementById('password').value === '123456') {
document.getElementById('login').style.display = 'none';
......@@ -30,7 +31,7 @@
return await response.json();
}
function sendData () {
postData('http://localhost:5000/send', {
postData(url, {
titulo: document.querySelector('#title').value,
text: document.querySelector('#description').value
})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment