WAN is for demo / LAN is for production

This commit is contained in:
fred 2023-04-15 15:04:00 +02:00
parent 8d41fbb484
commit fe81ad0fea
2 changed files with 4 additions and 2 deletions

View File

@ -62,6 +62,7 @@ if [[ ${QRCODE} == "station" ]]; then
fi
## SHOW G1PALPAY FRONT (IFRAME)
sed "s~_STATION_~${myIPFS}${ISTATION}/~g" $MY_PATH/../www/G1PalPay/index.html > ~/.zen/tmp/${MOATS}/index.htm
[[ ! $isLAN ]] && sed -i "s~MENU~DEMO~g" ~/.zen/tmp/${MOATS}/index.htm
sed -i "s~http://127.0.0.1:8080~${myIPFS}~g" ~/.zen/tmp/${MOATS}/index.htm
sed -i "s~http://astroport.localhost:1234~${myASTROPORT}~g" ~/.zen/tmp/${MOATS}/index.htm
@ -159,7 +160,7 @@ if [[ ${QRCODE:0:5} == "~~~~~" ]]; then
else
echo "<br><h1>MAUVAIS PASS</h1>" >> ~/.zen/tmp/${MOATS}/disco
echo "<br><h1>$PASS : MAUVAIS PASS</h1>" >> ~/.zen/tmp/${MOATS}/disco
echo "<br><img src='http://127.0.0.1:8080/ipfs/QmVnQ3GkQjNeXw9qM7Fb1TFzwwxqRMqD9AQyHfgx47rNdQ/your-own-data-cloud.svg' />" >> ~/.zen/tmp/${MOATS}/disco
fi

View File

@ -159,6 +159,7 @@ a {
function countdown() {
if (timeLeft == -1) {
clearTimeout(timerId);
elem.innerHTML = "<a href='"+redirectURL+"' target='aframe'>OK</a>";
window.open( redirectURL, "AstroTab");
} else {
elem.innerHTML = timeLeft + " s";
@ -228,7 +229,7 @@ a {
</script>
<h1><button id="ainfo" onclick="javascript:var x = document.getElementById('yellow'); if (x.style.visibility === 'hidden') {x.style.visibility = 'visible';} else {x.style.visibility = 'hidden';}">0/1</button></h1>
<div id="yellow" ><a href="_STATION_" target="aframe">Menu</a>
<div id="yellow" ><a href="_STATION_" target="aframe">MENU</a>
<iframe name="aframe" id="aframe" src="_STATION_" width="100%" height="300px"></iframe>
</div>