Astroport.ONE/templates/register.html

180 lines
6.2 KiB
HTML
Raw Normal View History

2022-10-30 03:02:59 +01:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>[Astroport] : G1Visa Application : _HOSTNAME_ :: _IPFSNODEID_ </title>
<meta http-equiv="refresh" content="999; url='http://127.0.0.1:12345'" />
2022-10-30 03:02:59 +01:00
<link rel="icon" type="image/png" href="http://127.0.0.1:8080/ipfs/QmaCh8mywWfxkXF3JziFzqZS6yZFo3eNS5fSfnzJqdSQvX/logo.png" />
2022-12-25 23:46:35 +01:00
<link rel="stylesheet" href="http://127.0.0.1:8080/ipfs/QmaCh8mywWfxkXF3JziFzqZS6yZFo3eNS5fSfnzJqdSQvX/decoration.css" type="text/css" />
2022-10-30 03:02:59 +01:00
<link rel="stylesheet" href="http://127.0.0.1:8080/ipfs/QmaCh8mywWfxkXF3JziFzqZS6yZFo3eNS5fSfnzJqdSQvX/layout.css" type="text/css" />
2022-11-06 11:41:33 +01:00
<style>
body {
background-image:url("http://127.0.0.1:8080/ipfs/QmSFgatcq3q898J56epa8SyGbH651vRBFnv93kQSwfoi83/background.000.jpg");
2022-11-06 11:41:33 +01:00
background-repeat: no-repeat;
background-size: 100% 100%;
}
html {
height: 100%
2022-12-25 22:20:50 +01:00
}
header {
opacity: 0.8;
2022-11-06 11:41:33 +01:00
}
2022-11-06 12:13:19 +01:00
input[type=submit] {
width: 12em; height: 4em;
}
input[type=checkbox] {
width: 2em; height: 2em;
}
2022-11-06 12:27:37 +01:00
input {
2023-01-20 20:45:01 +01:00
width: 26em; height: 2em;
2022-11-06 12:27:37 +01:00
}
2022-12-25 15:12:32 +01:00
#yellow {
background: yellow;
position: absolute;
2023-04-23 01:13:07 +02:00
top: 12%;
2023-01-20 22:45:17 +01:00
left: 66%;
width: 18%;
2022-12-25 15:12:32 +01:00
visibility: hidden;
}
#login {
right: 10%;
top: 5%
}
2022-11-06 11:41:33 +01:00
</style>
2023-01-03 16:40:07 +01:00
<!-- Typed text animation -->
<script src="http://127.0.0.1:8080/ipfs/QmYyJmAT3cUbjk4vVWQG7LdpY3HkFH9phFD1VzzetHrgpa"></script>
2023-03-10 18:33:28 +01:00
<!-- Astro API JS LIB -->
2023-04-15 15:45:23 +02:00
<script src="http://127.0.0.1:8080/ipfs/Qmae5v9zydax9u6C9ceDijURu5PYdd5avmv4NkenCw7RFv/astro.js"></script>
2022-10-30 03:02:59 +01:00
</head>
<body>
<header>
2023-04-24 22:43:56 +02:00
<!--
<div id="login"><button onclick="promptUser('login')">LOGIN</button><button onclick="promptUser('logout')">LOGOUT</button></div>
2023-04-24 22:43:56 +02:00
-->
<div>
<button onclick="homeAstroportStation('/?qrcode=station', '', 21654)">Ğ1Station</button>
</div>
2023-04-07 13:33:20 +02:00
<span><div id="ainfo"></div></span>
<div id="debug"></div>
2023-04-23 01:13:07 +02:00
2022-10-30 03:02:59 +01:00
</header>
<main>
<center>
<b>Welkom - Mirë se vini - Willkommen - Welkomma - Welcome - Marhaban - Bari galoust - Xos gelmissiniz - Welkum - Ongi etorri- Swagata - Ansuf yiswen - ščyra zaprašajem - Kyo tzo pa eit - ॐ★ॐ - Ani kié - Dobro došli - Dagemer mat - Dobre doshŭl - Benvinguts - Ulihebisdi - ௐ- Huān yíng - Karibu - Eoso eoseyo - Benvenuti - Bel bonjou - Bienvini - Dobrodošli - Velkommen - Bienvenido - Bonvenon - Tere tulemast - Gabitê - Vælkomin - Tervetuloa - Welkom - Wìllkòmme - Binvignut - Fàilte - Benvido - Croeso - Planvenguda - Mikouabô - Kalos irthate - Eguahé porá - Baroukh habaim - ﷽ </b><br>
2022-12-25 18:43:27 +01:00
<header>
<form id="formlink" action = "http://127.0.0.1:1234" method = "GET" enctype="application/x-www-form-urlencoded">
<h1><span>Astroport</span> <a href="https://pad.p2p.legal/s/Astroport.ONE">Ŋ1</a></h1>
2023-01-20 20:45:01 +01:00
<div id="yellow">
<input type=hidden name='salt' value='0'>
<h3><a title="SERVE YOURSELF" href="http://127.0.0.1:12345"> >>> (◕‿‿◕) <<< </a></h3>
<input type=hidden name='pepper' value='0'>
2023-01-20 20:45:01 +01:00
</div>
<input name=g1pub value='any youtube link to feed your TW with ?'></br>
2022-12-25 18:43:27 +01:00
<span>Email : </span><input name=email value=''></br></br>
<input type=hidden name='lat' value='0.00'>
<input type=hidden name='lon' value='0.00'>
2022-12-25 18:43:27 +01:00
<input type='submit' value='[(♥‿‿♥)]'>
2023-03-12 22:31:11 +01:00
2022-10-30 03:02:59 +01:00
</form>
<h6>
<p id="station"><div id='countdown'></div></span></p>
</h6>
2022-10-30 03:02:59 +01:00
</main>
</body>
2023-01-03 16:40:07 +01:00
<script>
// Extract latitude and longitude from URL parameters
const urlParams = new URLSearchParams(window.location.search);
const lat = urlParams.get('lat').toFixed(2);
const lon = urlParams.get('lon').toFixed(2);
// Set latitude and longitude values to hidden inputs
document.getElementById('salt').value = lat;
document.getElementById('pepper').value = lon;
2023-01-03 16:40:07 +01:00
var typed = new Typed('#typed', {
stringsElement: '#typed-strings',
smartBackspace: true,
backDelay: 700,
loop: true,
typeSpeed: 40
});
</script>
2022-10-30 03:02:59 +01:00
<script>
2022-12-25 15:12:32 +01:00
const el = document.getElementById('yellow');
2023-04-25 14:50:40 +02:00
//~ const log = document.getElementById('login');
//~ log.style.visibility = 'visible';
2022-12-25 15:12:32 +01:00
setTimeout(() => {
2023-03-13 05:52:49 +01:00
el.style.visibility = 'visible';
}, 5456); // 👈️ delay in milliseconds
2022-12-25 15:12:32 +01:00
2022-10-30 03:02:59 +01:00
var arrTimes = [];
var i = 0; // start
var timesToTest = 3;
var tThreshold = 300; //ms
2022-12-25 15:12:32 +01:00
var testImage = "https://ipfs.copylaradio.com/ipfs/QmUUyiuCM4yXgaeGyqC2SVUUXZksuxhDfHQYpUpZPuL2oS/astroport.jpg"; // small image in your server
2022-10-30 03:02:59 +01:00
var dummyImage = new Image();
var isConnectedFast = false;
testLatency(function(avg){
isConnectedFast = (avg <= tThreshold);
/** output */
document.body.appendChild(
2023-04-18 04:56:45 +02:00
document.createTextNode("Time: " + (avg.toFixed(2)) + "ms - ♥Box ready ? " + isConnectedFast)
2022-10-30 03:02:59 +01:00
);
});
/** test and average time took to download image from server, called recursively timesToTest times */
function testLatency(cb) {
var tStart = new Date().getTime();
if (i<timesToTest-1) {
dummyImage.src = testImage + '?t=' + tStart;
dummyImage.onload = function() {
var tEnd = new Date().getTime();
var tTimeTook = tEnd-tStart;
arrTimes[i] = tTimeTook;
testLatency(cb);
i++;
};
} else {
/** calculate average of array items then callback */
var sum = arrTimes.reduce(function(a, b) { return a + b; });
var avg = sum / arrTimes.length;
cb(avg);
}
}
</script>
2023-03-12 22:31:11 +01:00
<script>
2022-10-30 03:02:59 +01:00
2023-03-27 17:26:19 +02:00
let cookies = document.cookie;
console.log(cookies);
2023-04-04 17:05:10 +02:00
var timeLeft = 5;
2023-03-12 22:31:11 +01:00
var elem = document.getElementById("countdown");
var timerId = setInterval(countdown, 999);
function countdown() {
if (timeLeft == -1) {
clearTimeout(timerId);
document.getElementById("countdown").innerHTML = "<form method='get' action='http://g1billet.localhost:33101' target='aframe'><input type='hidden' name='montant' value='0' ><label for='type'>Type :</label><select name='type'><option value=''>G1BILLET+ ( x 6 )</option><option value='jeu'>G1CARD</option><option value='xastro' selected>G1CARD+TW</option><option value='@astroport'>G1CARD+@</option></select><input type='hidden' name='dice' value='4' >&nbsp;&nbsp;&nbsp;&nbsp;<button type='submit'>Extra</button></form>";
2023-03-12 22:31:11 +01:00
} else {
// elem.innerHTML = timeLeft + " s";
timeLeft--;
}
}
// promptUser();
</script>
2023-04-28 03:30:07 +02:00
2022-10-30 03:02:59 +01:00
</html>