1 | <!DOCTYPE html> |
2 | <html lang="es"> |
3 | |
4 | <head> |
5 | |
6 | <meta charset="UTF-8"> |
7 | <meta name="viewport" content="width=device-width"> |
8 | |
9 | <title>Solo Clientes</title> |
10 | |
11 | <script type="module" src="lib/js/consumeJson.js"></script> |
12 | <script type="module" src="lib/js/muestraError.js"></script> |
13 | <script type="module" src="./js/ROL_ID_CLIENTE.js"></script> |
14 | <script type="module" src="./js/protege.js"></script> |
15 | <script type="module" src="./js/custom/mi-nav.js"></script> |
16 | |
17 | </head> |
18 | |
19 | <body onload="protege('srv/sesion-actual.php', [ROL_ID_CLIENTE], 'index.html') |
20 | .then(sesion => { |
21 | nav.sesion = sesion |
22 | main.hidden = false |
23 | }) |
24 | .catch(muestraError)"> |
25 | |
26 | <mi-nav id="nav"></mi-nav> |
27 | |
28 | <main id="main" hidden> |
29 | |
30 | <h1>Solo Clientes</h1> |
31 | |
32 | <p>Hola.</p> |
33 | |
34 | <p> |
35 | <button type="button" onclick="consumeJson('srv/saludo-cliente.php') |
36 | .then(saludo => alert(saludo.body)) |
37 | .catch(muestraError)"> |
38 | Ejecuta servicio |
39 | </button> |
40 | </p> |
41 | |
42 | </main> |
43 | |
44 | </body> |
45 | |
46 | </html> |