diff --git a/earth/Umap.html b/earth/Umap.html index e68b38c..5f26a2a 100644 --- a/earth/Umap.html +++ b/earth/Umap.html @@ -11,14 +11,35 @@ width: 100%; height: 100%; } + +.button-container { + position: absolute; + bottom: 0; + left: 0; + width: 50%; + height: 50%; + display: flex; + justify-content: center; + align-items: center; +} + +.button { + background-color: #3498db; + color: #fff; + padding: 10px 20px; + border: none; + cursor: pointer; +}
-
+ +
- diff --git a/earth/Usat.html b/earth/Usat.html index 1a0ac16..b279e1d 100644 --- a/earth/Usat.html +++ b/earth/Usat.html @@ -11,11 +11,31 @@ width: 100%; height: 100%; } + +.button-container { + position: absolute; + bottom: 0; + left: 0; + width: 50%; + height: 50%; + display: flex; + justify-content: center; + align-items: center; +} + +.button { + background-color: #3498db; + color: #fff; + padding: 10px 20px; + border: none; + cursor: pointer; +}
-
+ +
diff --git a/earth/index.html b/earth/index.html index 4275dde..39e8fa2 100644 --- a/earth/index.html +++ b/earth/index.html @@ -88,6 +88,15 @@ margin-top: -12.5px; cursor: pointer; } + +.button { + background-color: #3498db; + color: #fff; + padding: 10px 20px; + border: none; + cursor: pointer; +} + @@ -97,7 +106,7 @@

♥ U Planet ♥

- LOGIN + LOGIN


@@ -132,5 +141,45 @@
--> + diff --git a/TW/login/_STATION_ b/earth/login/_STATION_ similarity index 100% rename from TW/login/_STATION_ rename to earth/login/_STATION_ diff --git a/TW/login/favicon.ico b/earth/login/favicon.ico similarity index 100% rename from TW/login/favicon.ico rename to earth/login/favicon.ico diff --git a/TW/login/index.html b/earth/login/index.html similarity index 91% rename from TW/login/index.html rename to earth/login/index.html index 06cd4dd..3761aef 100644 --- a/TW/login/index.html +++ b/earth/login/index.html @@ -149,20 +149,30 @@ a {

-

Scan G1Card

+

Scan AstroID

___

- (^‿‿^) -

- +
CONSOLE @@ -185,6 +195,7 @@ a { // Create the "station" variable with the specified format var station = protocol + "://" + modifiedURL; + async function fetchAstroport(myURL) { try { @@ -227,13 +238,14 @@ a { var appname = document.querySelector('input[name="appname"]:checked').value; if ( appname == 'login' || appname == 'logout' ) { - var amount = prompt("Saisir EMAIL:"); + // var amount = prompt("Saisir EMAIL:"); + var amount = "UPlanet"; } // GET PASS TO DECODE PGP var oldpass = document.getElementById("PASS").value; if ( oldpass == 'PASS') { - var pass = prompt("Saisir PASS:"); + var pass = prompt("Saisir PIN:"); } else { var pass = oldpass; } @@ -241,21 +253,6 @@ a { // PREVIOUS G1PUB SCAN var g1pub = document.getElementById("g1pub").value; - // APPNAME : DATA COLLECT & ARRANGE - if ( appname == 'pay') { - var amount = prompt("MONTANT (Ğ1) ?"); - alert('PAY TO ' + g1pub + ' = ' + amount); - } - - if ( appname == 'friend') { - var amount = prompt("Entre 1 et 5 (★) ?"); - alert( amount + '★ > ' + g1pub ); - } - - if ( amount == 'undefined' || amount == '' ) { - var amount = document.getElementById("g1pub").value; - } - var myU = station + '/?qrcode=' + content +'&pass=' + pass + '&' + appname + '=' + amount + '&g1pub=' + g1pub ; console.log(myU); diff --git a/earth/map_render.html b/earth/map_render.html index 7998768..db5eb3c 100644 --- a/earth/map_render.html +++ b/earth/map_render.html @@ -27,15 +27,22 @@ width: 100%; height: 100%; } + + .button { + background-color: #3498db; + color: #fff; + padding: 10px 20px; + border: none; + cursor: pointer; + } -
+
-
-
+
@@ -64,6 +71,37 @@ return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' ')); } + const defaultIPNS = ''; + const sectorIPNS = getUrlParameter('ipns') || defaultIPNS; + console.log('sectorIPNS: /ipns/', sectorIPNS); + if (sectorIPNS !== '') { + const buttonContainer = document.createElement('div'); + buttonContainer.id = 'button-container' + buttonContainer.style.position = 'absolute'; + buttonContainer.style.bottom = '10px'; + buttonContainer.style.left = '10px'; + buttonContainer.style.width = '200px'; + buttonContainer.style.height = '150px'; + buttonContainer.style.zIndex = '1001'; + buttonContainer.style.display = 'flex'; + buttonContainer.style.flexDirection = 'column'; + buttonContainer.style.alignItems = 'center'; + buttonContainer.style.justifyContent = 'center'; + + const button = document.createElement('button'); + button.innerText = 'EXPLORE'; + button.className = 'button'; + + // Add an event listener to the button + button.addEventListener('click', function() { + window.open( '/ipns/'+ sectorIPNS, "AstroTab"); + }); + + // Append the button to the button container + buttonContainer.appendChild(button); + document.body.appendChild(buttonContainer); + } + const defaultSouthWestLat = 0.00; const defaultSouthWestLon = 0.00; const defaultOffsetDegrees = 10.00; // 10° offset @@ -166,16 +204,6 @@ if (deg <= 0.01) { container.appendChild(button); - //~ const link = document.createElement('a'); - //~ link.href = 'https://ipfs.copylaradio.com/ipfs/QmXom7iUq7G9Z1eiuckAQ1B7tkYfYGKnWhh3kUaKBd3ct4'; - //~ link.target = 'pp'; - //~ link.textContent = '>> PRINT PASSPORT <<'; - //~ link.style.fontSize = '24px'; // Customize the font size - //~ link.style.textDecoration = 'none'; // Remove underline from the link - //~ link.style.marginBottom = '30px'; // Add some space between the link and the button - - //~ container.appendChild(link); - document.body.appendChild(container); } else { @@ -217,14 +245,15 @@ if (deg <= 0.01) { } } -// Add a click event listener to the map container -document.getElementById('map-container').addEventListener('click', (event) => { - const isInsideRectangle = event.target.classList.contains('clickable-area'); - if (!isInsideRectangle) { - history.back(); // Trigger browser's back functionality - } -}); + // Add a click event listener to the map container + document.getElementById('map-container').addEventListener('click', (event) => { + const isInsideRectangle = event.target.classList.contains('clickable-area'); + if (!isInsideRectangle) { + history.back(); // Trigger browser's back functionality + } + }); +///////////////// diff --git a/earth/sat_render.html b/earth/sat_render.html index c67f6cd..6aead6b 100644 --- a/earth/sat_render.html +++ b/earth/sat_render.html @@ -27,15 +27,38 @@ width: 100%; height: 100%; } + + .button-container { + position: absolute; + bottom: 0; + left: 0; + width: 50%; + height: 50%; + display: flex; + justify-content: center; + align-items: center; + z-index: 1000; + } + + .button { + background-color: #3498db; + color: #fff; + padding: 10px 20px; + border: none; + cursor: pointer; + z-index: 1000; + } -
+ +
+
-
-
+
+ @@ -64,6 +87,37 @@ return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' ')); } + const defaultIPNS = ''; + const sectorIPNS = getUrlParameter('ipns') || defaultIPNS; + console.log('sectorIPNS: /ipns/', sectorIPNS); + if (sectorIPNS !== '') { + const buttonContainer = document.createElement('div'); + buttonContainer.id = 'button-container' + buttonContainer.style.position = 'absolute'; + buttonContainer.style.bottom = '10px'; + buttonContainer.style.left = '10px'; + buttonContainer.style.width = '200px'; + buttonContainer.style.height = '150px'; + buttonContainer.style.zIndex = '1001'; + buttonContainer.style.display = 'flex'; + buttonContainer.style.flexDirection = 'column'; + buttonContainer.style.alignItems = 'center'; + buttonContainer.style.justifyContent = 'center'; + + const button = document.createElement('button'); + button.innerText = 'EXPLORE'; + button.className = 'button'; + + // Add an event listener to the button + button.addEventListener('click', function() { + window.open( '/ipns/'+ sectorIPNS, "AstroTab"); + }); + + // Append the button to the button container + buttonContainer.appendChild(button); + document.body.appendChild(buttonContainer); + } + const defaultSouthWestLat = 0.00; const defaultSouthWestLon = 0.00; const defaultOffsetDegrees = 10.00; // 10° offset @@ -209,7 +263,6 @@ document.getElementById('map-container').addEventListener('click', (event) => { } }); ///////////////// - diff --git a/earth/welcome.html b/earth/welcome.html index 9b197f3..b5d7625 100644 --- a/earth/welcome.html +++ b/earth/welcome.html @@ -7,26 +7,73 @@ - - - + + .clickable-area { + fill-opacity: 0.2; /* Adjust the opacity as needed */ + fill: #0074d9; /* Adjust the color as needed */ + stroke: #001f3f; + } + + .button { + background-color: #3498db; + color: #fff; + padding: 10px 20px; + border: none; + cursor: pointer; + } + + + +