From 3184e7046eb5f70885cfd8851d62a03dbf01157b Mon Sep 17 00:00:00 2001 From: h4ckypurpl3 Date: Sat, 10 Nov 2018 18:58:34 -0500 Subject: [PATCH] prueba --- portalcautivo/index.html | 659 ++++++------------ .../{index_prueba.html => index_prueba2.html} | 424 +++++------ 2 files changed, 412 insertions(+), 671 deletions(-) rename portalcautivo/{index_prueba.html => index_prueba2.html} (70%) diff --git a/portalcautivo/index.html b/portalcautivo/index.html index 72a420d..f6b0e67 100644 --- a/portalcautivo/index.html +++ b/portalcautivo/index.html @@ -1,480 +1,221 @@ - - + + + - - - - - - - Acceso a la red comunitaria + + - - - + + + + + - - + + /** + * execute after pageload + */ + $.ajax({ + type: "POST", + url: "/api/captiveportal/access/status/" + zoneid + "/", + dataType:"json", + data:{ user: $("#inputUsername").val(), password: $("#inputPassword").val() } + }).done(function(data) { + if (data['clientState'] == 'AUTHORIZED') { + $("#logout_frm").removeClass('hidden'); + } else if (data['authType'] == 'none') { + $("#login_none").removeClass('hidden'); + } else { + $("#login_password").removeClass('hidden'); + } + }).fail(function(){ + $("#errorMSGtext").html("unable to connect to authentication server"); + $("#alertMSG").removeClass("hidden"); + }); - - - -
-
-
-
- -

¡Bienvenid@!

-

¡Estás muy cerca de entrar al mundo Web!

-
-
- -
-
-

Ver contenidos sin Internet

-
-
-
-
- - - + }); + + + +
+
+ + +
+
+ NuestraRed.org ofrece acceso a diferentes contenidos locales a los que puedes acceder sin Interntet o datos en tu celular escribe en tu navegador o da clic: NuestraRed.org -
-
-
-

Entrar con Internet

-
-
- - - - - - - - -
+
+
+ Si quieres acceso a Internet responde la siguiente encuesta + +
+ +
+ + NuestraRed.org es un proyecto libre y colaborativo de naturaleza comunitaria que utiliza el espectro electromagnético en las frecuencias 2.4 y 5.2 Mhz + y por lo tanto no requiere permisos adicionales para su operación según Resolución 0689 / 2004 mintic. -
-
-
-
-
- - - - -
- + + + + + + + + + + + + diff --git a/portalcautivo/index_prueba.html b/portalcautivo/index_prueba2.html similarity index 70% rename from portalcautivo/index_prueba.html rename to portalcautivo/index_prueba2.html index b1303a8..72a420d 100644 --- a/portalcautivo/index_prueba.html +++ b/portalcautivo/index_prueba2.html @@ -2,178 +2,27 @@ - - + + + + Acceso a la red comunitaria - - - - - + + + - Ingreso Usuarios - - - - - - - - - + + @@ -403,78 +398,83 @@
- +

¡Bienvenid@!

¡Estás muy cerca de entrar al mundo Web!

-
-

Entrar con Internet

+
+

Ver contenidos sin Internet

- -
- -
- - - - - - -
-
-

Ver contenidos sin Internet

-
-
-
- +
+ -
+ + +
+
+
+

Entrar con Internet

+
+
+ + + + + + + + +
+
- - - + + + + +