captive Portal for bobinscope
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
632 B

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Portal Captif</title>
</head>
<body>
<h1>Ready to navigate!</h1>
<a href="http://eca.aero" target="_blank">Go!!!</a>
</body>
</html>
<script>
var xhttp = new XMLHttpRequest()
xhttp.onreadystatechange = function(event) {
if (this.readyState === XMLHttpRequest.DONE) {
console.log("Response: %d (%s)", this.status, this.statusText)
}
}
xhttp.open('GET', 'http://captive.eca.aero/validate')
xhttp.send(null)
</script>