Astroport.ONE/templates/register.html

183 lines
6.5 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-09-01 03:56:55 +02:00
top: 2%;
left: 56%;
width: 180;
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>
2023-09-01 03:56:55 +02:00
<button onclick="homeAstroportStation('/?qrcode=station', 'tab', 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">
2023-09-01 20:15:15 +02:00
<h1>U Planet</h1>
2023-09-01 03:56:55 +02:00
<span>Email : </span><input name=uplanet value=''></br></br>
2023-01-20 20:45:01 +01:00
<div id="yellow">
2023-09-01 03:56:55 +02:00
<input name='lat' value='0.00'>
<h3><a title="CHECK BY YOURSELF" href="http://127.0.0.1:12345"> >>> (◕‿‿◕) <<< </a></h3>
<input name='lon' value='0.00'>
2023-01-20 20:45:01 +01:00
</div>
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>
2023-09-01 20:15:15 +02:00
<br>
<span>Astroport <a href="https://pad.p2p.legal/s/Astroport.ONE">Ŋ1</a> - Crypto Commons Defender -</span>
<h2>
Click on "yellow face" (wait 1 or 2 minutes if you enter your email)
<p id="station"><div id='countdown'></div></span></p>
2023-09-01 20:15:15 +02:00
</h2>
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
2023-09-01 03:56:55 +02:00
document.addEventListener('DOMContentLoaded', function() {
const urlParams = new URLSearchParams(window.location.search);
2023-09-01 03:56:55 +02:00
const lat = urlParams.get('lat');
const lon = urlParams.get('lon');
const uplanet = urlParams.get('uplanet');
// Set latitude and longitude values to hidden inputs
2023-09-01 03:56:55 +02:00
const latElement = document.querySelector('input[name="lat"]');
const lonElement = document.querySelector('input[name="lon"]');
const uplanetElement = document.querySelector('input[name="uplanet"]');
if (latElement && lonElement) {
latElement.value = lat || '0.00'; // Default to '0.00' if lat is missing
lonElement.value = lon || '0.00'; // Default to '0.00' if lon is missing
2023-09-01 20:15:15 +02:00
uplanetElement.value = uplanet || '@'; // Default to '0.00' if lon is missing
2023-09-01 03:56:55 +02:00
}
});
2023-01-03 16:40:07 +01:00
</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-09-01 20:15:15 +02:00
document.createTextNode("https://github.com/papiche/Astroport.ONE - Swarm delay: " + (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);
2023-09-01 20:15:15 +02:00
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'>more crypto wallets...</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>