1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/captive-portal/files/simple.template
georgejhunt 84da40c40d
Cap2 (#1300)
* move captive portal to its own role

* runrole still not working

* make apache name consistent, define py_captive_portal_port

* record android fixes

* some progress -- windows8.1 works but detectportal.firefox active for both mac and windows

* works all platforms

* one captive_portal_install not changed to py_captive...

* port into defaults

* windows 7,8,10,mac,ios,android 5,7

* add # to dnsmasq.d/captive

* guess what android 8 might need

* move captive portal to its own role

* runrole still not working

* make apache name consistent, define py_captive_portal_port

* record android fixes

* some progress -- windows8.1 works but detectportal.firefox active for both mac and windows

* works all platforms

* one captive_portal_install not changed to py_captive...

* port into defaults

* windows 7,8,10,mac,ios,android 5,7

* add # to dnsmasq.d/captive

* guess what android 8 might need

* restart apache2 and dnsmasq in role

* do not hard code apache name

* cut out disfunctional experiments

* variable py_captive_portal_port misspelled

* add wildcard serveralias to box.lan vhost to fix default

* add in STDOUT to log

* remove the py_

* add in msn to urls to capture

* missed a few py_
2018-11-17 20:09:40 -08:00

100 lines
2.7 KiB
Text

<!DOCTYPE html>
<html>
<head>
<title>Success</title>
<meta name="viewport" content="width=device-width, initial-scale=.75">
<script src="/jquery.min.js"></script>
<!-- <link rel="stylesheet" href="/bootstrap.min.css"/>
<script src="/bootstrap.min.js"></script> -->
<style type="text/css">
@media (max-width: 500px){
#header {
display: block;
height: 120px;
width:350px;
background: #000 url('iiab_banner6.png') no-repeat 0 0;
border-radius: 5px;
margin: 5px;
}
body {
background-color: #CBFFAA;
font-family: sans-serif;
font-size: 100%;
width: 350px;
margin: 3px;
}
}
@media (min-width: 501px){
#header {
display: block;
height: 120px;
width:1024px;
background: #000 url('iiab_banner6.png') no-repeat 0 0;
border-radius: 5px;
margin: 5px;
}
body {
background-color: #CBFFAA;
font-family: sans-serif;
font-size: 100%;
width: 1024px;
margin: 3px;
}
}
a {
color: #249;
text-decoration: none;
outline: none; /* don't outline image links (ff) */
}
.content-item {
padding: 10px 0 10px 0;
border: 1px solid #aaa;
border-radius: 5px;
margin-bottom: 2px;
background-color: #fff;
}
.button {
font: bold 14px Arial;
text-decoration: none;
background-color: #EEEEEE;
color: #333333;
padding: 2px 6px 2px 6px;
border-top: 1px solid #CCCCCC;
border-right: 1px solid #333333;
border-bottom: 1px solid #333333;
border-left: 1px solid #CCCCCC;
radius: 5px;
}
</style>
<script>
var w = window.innerWidth;
function homeclick(){
window.open("http://{{ FQDN }}","_system");
$.ajax("/home_selected");
}
</script>
</head>
<body>
{% if success_token is defined %}
Success
{% endif %}
<br>
<div align="center">
<div id="header"></div>
<H1>Welcome to IIAB</H1>
<br><br>
{{ message }}
<div id="choices">
{% if btn2 is defined %}
<a class="button" href="https://captive.lan/android_splash">{{ btn2 }}</a>
{% endif %}
<br><br>
<br><br>
<br><br>
<br><br>
<!-- <a class="button" href="http://box.lan/home">{{ btn1 }}</a> -->
<a class="button" onclick="homeclick()">{{ btn1 }}</a>
</div>
</body>
</html>