1st TW & FoF UX
This commit is contained in:
parent
ad57993444
commit
eee9bb2a2a
|
@ -2,21 +2,30 @@
|
|||
async function homeAstroportStation() {
|
||||
try {
|
||||
|
||||
let one = await fetch('http://127.0.0.1:1234/?qrcode=station'); // Gets a promise
|
||||
let one = await fetch('/?qrcode=station'); // Gets a promise
|
||||
var doc = await one.text();
|
||||
var regex = /url='([^']+)/i; // Get response PORT
|
||||
var redirectURL = doc.match(regex)[1]
|
||||
|
||||
console.log(redirectURL)
|
||||
document.getElementById("ainfo").innerHTML = "Teleportation ... (3s) " + redirectURL;
|
||||
|
||||
setTimeout(function() {
|
||||
// let two = await fetch(redirectURL);
|
||||
// document.mydiv.innerHTML = await two.text(); // Replaces body with response
|
||||
window.location.href = redirectURL
|
||||
// window.open( redirectURL, "AstroTab");
|
||||
}, 15000);
|
||||
}, 3000);
|
||||
|
||||
} catch (err) {
|
||||
console.log('Fetch error:' + err); // Error handling
|
||||
}
|
||||
}
|
||||
|
||||
function promptUser(g1pub) {
|
||||
let salt = prompt("Identifiant");
|
||||
let pepper = prompt("Code Secret");
|
||||
let resultText = `/?salt=${salt}&pepper=${pepper}&star=1&friend=${g1pub}`;
|
||||
console.log(resultText)
|
||||
document.getElementById("debug").innerHTML = resultText;
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>[Astroport] :: Station _HOSTNAME_ :: _IPFSNODEID_ </title>
|
||||
<meta http-equiv="refresh" content="60; url='http://127.0.0.1:12345'" />
|
||||
<link rel="icon" type="image/png" href="http://127.0.0.1:8080/ipfs/QmaCh8mywWfxkXF3JziFzqZS6yZFo3eNS5fSfnzJqdSQvX/logo.png" />
|
||||
<link rel="stylesheet" href="http://127.0.0.1:8080/ipfs/QmaCh8mywWfxkXF3JziFzqZS6yZFo3eNS5fSfnzJqdSQvX/decoration.css" type="text/css" />
|
||||
<link rel="stylesheet" href="http://127.0.0.1:8080/ipfs/QmaCh8mywWfxkXF3JziFzqZS6yZFo3eNS5fSfnzJqdSQvX/layout.css" type="text/css" />
|
||||
|
@ -39,18 +40,20 @@ header {
|
|||
</style>
|
||||
<!-- Typed text animation -->
|
||||
<script src="http://127.0.0.1:8080/ipfs/QmYyJmAT3cUbjk4vVWQG7LdpY3HkFH9phFD1VzzetHrgpa"></script>
|
||||
<script src="http://127.0.0.1:8080/ipfs/QmVQNVGEbhMjWp6Jur8B4HxfPSupPHR4KRDPn1z3nyq6ad/astro.js"></script>
|
||||
<!-- Astro API JS LIB -->
|
||||
<script src="http://127.0.0.1:8080/ipfs/QmVZ25vNYfg2PxgFi36rNDaTiDKFuJgVTD1XmPtbWFg1hj/astro.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h6>
|
||||
(<a href="javascript:homeAstroportStation()">♥</a>)<span>BOX</span>
|
||||
|
||||
<p id="station">Click me.</p>
|
||||
|
||||
<p id="station">
|
||||
♥<span>BOX</span>
|
||||
</p>
|
||||
<p id="ainfo"></p>
|
||||
<script>
|
||||
document.getElementById("station").addEventListener("click", homeAstroportStation);
|
||||
// promptUser();
|
||||
</script>
|
||||
|
||||
</h6>
|
||||
|
|
|
@ -102,7 +102,7 @@ a {
|
|||
<h2>Oubliez la crise... </h2>
|
||||
|
||||
<h2>Utilisez la Monnaie Libre !</a></h2>
|
||||
Vivez de vos Dons.
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -115,7 +115,7 @@ a {
|
|||
<li><a target="cesium" href="https://cesium.app/fr/telechargement">Téléchargez Cesium</a>
|
||||
<br>Présentez le QRCode "<a target="cesium" href="https://cesium.app/fr/fonctionnalites">Simple Portefeuille</a>"
|
||||
<br> face à la Webcam</li>
|
||||
<li><a target="g1billet" href="https://g1sms.fr/fr/g1billet">Présentez un G1BILLET</a> </li>
|
||||
<li><a target="g1billet" href="https://g1sms.fr/fr/g1billet">ou bien scannez un G1BILLET</a> </li>
|
||||
|
||||
</ul>
|
||||
</p>
|
||||
|
@ -184,7 +184,7 @@ a {
|
|||
|
||||
</script>
|
||||
|
||||
<div id="yellow" >
|
||||
<div id="yellow" >Choisissez un Copain
|
||||
<iframe id="inframe" src="_STATION_" width="100%" height="250px"></iframe>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -176,7 +176,12 @@
|
|||
<div id="demo">
|
||||
<div id="description">
|
||||
<h3>ENTER THE GAME</h3>
|
||||
|
||||
<p id="ainfo">
|
||||
Prenez le contrôle de votre identité en ligne en créant un registre décentralisé de vos références.
|
||||
En collectant des "tampons" de validation de votre identité et de votre réputation en ligne,
|
||||
vous pouvez accéder aux expériences web3 les plus dignes de confiance et maximiser votre capacité à bénéficier de la Monnaie Libre.
|
||||
Plus vous vérifiez votre identité, plus vous aurez d'opportunités de voter et de participer sur le web3.
|
||||
</p>
|
||||
<h2>Install <a href="https://cesium.app">Cesium</a> !</h2>
|
||||
<p><a href="https://ipfs.copylaradio.com/ipns/_ASTRONAUTENS_">
|
||||
<img src="/ipfs/QmWUpjGFuF7NhpXgkrCmx8Tbu4xjcFpKhE7Bsvt6HeKYxu/g1ticket_qrcode.png" width=65%>
|
||||
|
|
Loading…
Reference in New Issue