Ŋ1 Shaping - New G1Voeu index.html with earth animation - next step - insert gifpic onto mars texture - locate friends zone on earth spot -
This commit is contained in:
parent
446ac51391
commit
3b49124306
|
@ -172,7 +172,7 @@ if [[ ! ${TIDDLER} ]]; then
|
||||||
ILINK=$(ipfs add -q "$HOME/.zen/tmp/yt-dlp/$ZFILE" | tail -n 1)
|
ILINK=$(ipfs add -q "$HOME/.zen/tmp/yt-dlp/$ZFILE" | tail -n 1)
|
||||||
echo "/ipfs/$ILINK === $ZFILE"
|
echo "/ipfs/$ILINK === $ZFILE"
|
||||||
|
|
||||||
[[ $ILINK == "" ]] && echo "BIG PROBLEM PAPA. NO IPFS " && continue
|
[[ $ILINK == "" ]] && echo ">>>>> BIG PROBLEM PAPA. NO IPFS " && continue
|
||||||
|
|
||||||
MIME=$(file --mime-type -b "$HOME/.zen/tmp/yt-dlp/$ZFILE")
|
MIME=$(file --mime-type -b "$HOME/.zen/tmp/yt-dlp/$ZFILE")
|
||||||
|
|
||||||
|
|
|
@ -77,6 +77,8 @@ echo
|
||||||
LIBRA=$(head -n 2 ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | tail -n 1 | cut -d ' ' -f 2)
|
LIBRA=$(head -n 2 ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | tail -n 1 | cut -d ' ' -f 2)
|
||||||
|
|
||||||
qrencode -s 12 -o "$HOME/.zen/game/world/$WISHKEY/QR.WISHLINK.png" "$LIBRA/ipns/$VOEUNS"
|
qrencode -s 12 -o "$HOME/.zen/game/world/$WISHKEY/QR.WISHLINK.png" "$LIBRA/ipns/$VOEUNS"
|
||||||
|
## TRYING amrzqr
|
||||||
|
amzqr "$LIBRA/ipns/$VOEUNS" -d "$HOME/.zen/game/world/$WISHKEY" -p ${MY_PATH}/../images/g1magicien.png -c
|
||||||
qrencode -s 12 -o "$HOME/.zen/game/world/$WISHKEY/QR.ASTROLINK.png" "$LIBRA/ipns/$ASTRONAUTENS"
|
qrencode -s 12 -o "$HOME/.zen/game/world/$WISHKEY/QR.ASTROLINK.png" "$LIBRA/ipns/$ASTRONAUTENS"
|
||||||
qrencode -s 12 -o "$HOME/.zen/game/world/$WISHKEY/QR.G1ASTRO.png" "$G1PUB"
|
qrencode -s 12 -o "$HOME/.zen/game/world/$WISHKEY/QR.G1ASTRO.png" "$G1PUB"
|
||||||
qrencode -s 12 -o "$HOME/.zen/game/world/$WISHKEY/QR.G1WISH.png" "$WISHKEY"
|
qrencode -s 12 -o "$HOME/.zen/game/world/$WISHKEY/QR.G1WISH.png" "$WISHKEY"
|
||||||
|
@ -176,7 +178,7 @@ convert -gravity northwest -pointsize 50 -fill black -draw "text 30,300 \"$PEPPE
|
||||||
echo "$SALT" > ~/.zen/game/players/$PLAYER/voeux/$WISHKEY/.salt
|
echo "$SALT" > ~/.zen/game/players/$PLAYER/voeux/$WISHKEY/.salt
|
||||||
echo "$PEPPER" > ~/.zen/game/players/$PLAYER/voeux/$WISHKEY/.title
|
echo "$PEPPER" > ~/.zen/game/players/$PLAYER/voeux/$WISHKEY/.title
|
||||||
echo "$LIBRA/ipns/$VOEUNS" > ~/.zen/game/players/$PLAYER/voeux/$WISHKEY/.link
|
echo "$LIBRA/ipns/$VOEUNS" > ~/.zen/game/players/$PLAYER/voeux/$WISHKEY/.link
|
||||||
cp ~/.zen/game/world/$WISHKEY/QR.WISHLINK.png ~/.zen/game/players/$PLAYER/voeux/$WISHKEY/
|
cp ~/.zen/game/world/$WISHKEY/*.png ~/.zen/game/players/$PLAYER/voeux/$WISHKEY/
|
||||||
|
|
||||||
# PUBLISHING
|
# PUBLISHING
|
||||||
banner="## ${PLAYER} YOUR WISH IS READY TO MAKE Ŋ1 TW FLUX for G1$PEPPER"
|
banner="## ${PLAYER} YOUR WISH IS READY TO MAKE Ŋ1 TW FLUX for G1$PEPPER"
|
||||||
|
|
|
@ -48,7 +48,7 @@ echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
|
||||||
## GET VoeuTitle LIST
|
## GET VoeuTitle LIST
|
||||||
while read WISH
|
while read WISH
|
||||||
do
|
do
|
||||||
[[ ${WISH} == "" || ${WISH} == "null" ]] && continue
|
[[ ${WISH} == "" || ${WISH} == "null" ]] && echo "BLURP. EMPTY WISH" && continue
|
||||||
echo "==============================="
|
echo "==============================="
|
||||||
echo "G1Voeu ${WISH}"
|
echo "G1Voeu ${WISH}"
|
||||||
## Get ${WISHNAME} TW
|
## Get ${WISHNAME} TW
|
||||||
|
@ -92,29 +92,33 @@ do
|
||||||
[[ ! -s $FRIENDTW ]] && echo "$FRIENDTW VIDE (AMI SANS TW)" && continue
|
[[ ! -s $FRIENDTW ]] && echo "$FRIENDTW VIDE (AMI SANS TW)" && continue
|
||||||
APLAYER=$(ls $FRIENDTW | cut -d '/' -f 7)
|
APLAYER=$(ls $FRIENDTW | cut -d '/' -f 7)
|
||||||
|
|
||||||
rm -f ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/${APLAYER}.tiddlers.json
|
rm -f ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/${APLAYER}.tiddlers.json ## CLEANING OLD FORMAT (TODO REMOVE)
|
||||||
|
|
||||||
|
rm -f ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/_${APLAYER}.tiddlers.json
|
||||||
echo "TRY EXPORT [tag[G1${WISHNAME}]] FROM $FRIENDTW"
|
echo "TRY EXPORT [tag[G1${WISHNAME}]] FROM $FRIENDTW"
|
||||||
tiddlywiki --load $FRIENDTW \
|
tiddlywiki --load $FRIENDTW \
|
||||||
--output ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME} --render '.' ${APLAYER}'.tiddlers.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[tag[G1'${WISHNAME}']!tag[G1Voeu]]'
|
--output ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME} --render '.' _${APLAYER}'.tiddlers.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[tag[G1'${WISHNAME}']!tag[G1Voeu]]'
|
||||||
[[ ! -s ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/${APLAYER}.tiddlers.json ]] && echo "NO ${WISHNAME} - CONTINUE -" && continue
|
[[ ! -s ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/_${APLAYER}.tiddlers.json ]] && echo "NO ${WISHNAME} - CONTINUE -" && continue
|
||||||
[[ $(cat ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/${APLAYER}.tiddlers.json) == "[]" ]] && echo "EMPTY ${WISHNAME} - CONTINUE -" && continue
|
[[ $(cat ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/_${APLAYER}.tiddlers.json) == "[]" ]] && echo "EMPTY ${WISHNAME} - CONTINUE -" && continue
|
||||||
|
|
||||||
echo "## TIDDLERS FOUND ;) MIAM >>> (◕‿‿◕) <<<"
|
echo "## TIDDLERS FOUND ;) MIAM >>> (◕‿‿◕) <<<"
|
||||||
echo ">>> G1FRIEND § $myIPFS/$VOEUNS/${APLAYER}.tiddlers.json ${WISHNAME}"
|
echo ">>> G1FRIEND § $myIPFS/$VOEUNS/_${APLAYER}.tiddlers.json ${WISHNAME}"
|
||||||
|
|
||||||
done
|
done
|
||||||
##################################
|
##################################
|
||||||
|
################################## MOA MAINTENANT
|
||||||
echo ">>> MOA § $myIPFS/$VOEUNS/${PLAYER}.tiddlers.json"
|
echo ">>> MOA § $myIPFS/$VOEUNS/_${PLAYER}.tiddlers.json"
|
||||||
tiddlywiki --load $INDEX \
|
tiddlywiki --load $INDEX \
|
||||||
--output ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME} \
|
--output ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME} \
|
||||||
--render '.' ${PLAYER}'.tiddlers.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[tag[G1'${WISHNAME}']!tag[G1Voeu]]'
|
--render '.'_ ${PLAYER}'.tiddlers.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[tag[G1'${WISHNAME}']!tag[G1Voeu]]'
|
||||||
|
|
||||||
### PREPARE WISHNAME index.html
|
### PREPARE WISHNAME index.html
|
||||||
cat $MY_PATH/../templates/index_gif4.html \
|
cat $MY_PATH/../templates/index_gif4.html \
|
||||||
| sed -e "s~_LIBRA_~$(myIpfsGw)~g" -e "s~_G1VOEU_~${WISHNAME}~g" -e "s~_PLAYER_~${PLAYER}~g" -e "s~_VOEUNS_~${VOEUNS}~g" \
|
| sed -e "s~_LIBRA_~$(myIpfsGw)~g" -e "s~_G1VOEU_~${WISHNAME}~g" -e "s~_PLAYER_~${PLAYER}~g" -e "s~_VOEUNS_~${VOEUNS}~g" \
|
||||||
> ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/index.html
|
> ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/index.html
|
||||||
|
|
||||||
|
## MAKE EARTH MAP TILES
|
||||||
|
|
||||||
### ADD TO IPFS
|
### ADD TO IPFS
|
||||||
echo "++WISH PUBLISHING++ ipfs add -qHwr ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/*"
|
echo "++WISH PUBLISHING++ ipfs add -qHwr ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/*"
|
||||||
JSONIPFS=$(ipfs add -qHwr ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/* | tail -n 1) # ADDING JSONS TO IPFS
|
JSONIPFS=$(ipfs add -qHwr ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/* | tail -n 1) # ADDING JSONS TO IPFS
|
||||||
|
|
|
@ -2,7 +2,20 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>_PLAYER_ : TW : _G1VOEU_</title>
|
<title>_PLAYER_ : TW : _G1VOEU_</title>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
<link rel="icon" type="image/x-icon" href="/ipfs/Qmak2row8wUvDUcNKYWfmkpts7a5wWtDyZpLkvZFmAP78o/favicon.ico">
|
||||||
|
<link rel="stylesheet" href="/ipfs/Qmak2row8wUvDUcNKYWfmkpts7a5wWtDyZpLkvZFmAP78o/index_fichiers/jquery-ui.min.css">
|
||||||
|
|
||||||
|
<script type="text/javascript" src="/ipfs/Qmak2row8wUvDUcNKYWfmkpts7a5wWtDyZpLkvZFmAP78o/index_fichiers/requestanimationframe.polyfill.js"></script>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="/ipfs/Qmak2row8wUvDUcNKYWfmkpts7a5wWtDyZpLkvZFmAP78o/index_fichiers/jquery-1.7.2.min.js"></script>
|
||||||
|
<script type="text/javascript" src="/ipfs/Qmak2row8wUvDUcNKYWfmkpts7a5wWtDyZpLkvZFmAP78o/index_fichiers/instascan.min.js"></script>
|
||||||
|
<script type="text/javascript" src="/ipfs/Qmak2row8wUvDUcNKYWfmkpts7a5wWtDyZpLkvZFmAP78o/index_fichiers/html5-qrcode.min.js"></script>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="/ipfs/Qmak2row8wUvDUcNKYWfmkpts7a5wWtDyZpLkvZFmAP78o/index_fichiers/jquery-ui.0.min.js"></script>
|
||||||
|
<script type="text/javascript" src="/ipfs/Qmak2row8wUvDUcNKYWfmkpts7a5wWtDyZpLkvZFmAP78o/index_fichiers/sphere-hacked.js"></script>
|
||||||
|
<script type="text/javascript" src="/ipfs/Qmak2row8wUvDUcNKYWfmkpts7a5wWtDyZpLkvZFmAP78o/index_fichiers/jquery.earth-3d.js"></script>
|
||||||
|
<script type="text/javascript" src="/ipfs/Qmak2row8wUvDUcNKYWfmkpts7a5wWtDyZpLkvZFmAP78o/index_fichiers/demo.js"></script>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@ -10,8 +23,8 @@
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.slidecontainer {
|
||||||
width: 70%;
|
width: 80%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
@ -42,9 +55,12 @@
|
||||||
font-size: 40px;
|
font-size: 40px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<link rel="stylesheet" href="/ipfs/Qmak2row8wUvDUcNKYWfmkpts7a5wWtDyZpLkvZFmAP78o/index_fichiers/demo.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
|
||||||
|
<div class="slidecontainer">
|
||||||
<h1>G1_G1VOEU_</h1>
|
<h1>G1_G1VOEU_</h1>
|
||||||
<div class="gif-container">
|
<div class="gif-container">
|
||||||
<!-- gifs -->
|
<!-- gifs -->
|
||||||
|
@ -54,6 +70,8 @@
|
||||||
<a href="#" id="next">></a>
|
<a href="#" id="next">></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const gifContainer = document.querySelector('.gif-container');
|
const gifContainer = document.querySelector('.gif-container');
|
||||||
const prevBtn = document.querySelector('#prev');
|
const prevBtn = document.querySelector('#prev');
|
||||||
|
@ -112,5 +130,83 @@
|
||||||
showGifs();
|
showGifs();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<a target=_blank href="https://astroport.copylaradio.com"><img style="position: absolute; top: 0; right: 0; border: 0;" src="l0g0.png" alt="Entrez par le Le Claude"></a>
|
||||||
|
|
||||||
|
<h1><a target=_blank href="http://astroport.localhost:1234">Astroport Ŋ1</a></h1>
|
||||||
|
|
||||||
|
<div class="subtitle">Une Planète à Vous<br>Un Internet à Nous</div>
|
||||||
|
<div id="demo">
|
||||||
|
<div id="description">
|
||||||
|
<h2>Installez <a href="https://cesium.app">Cesium</a> !</h2>
|
||||||
|
|
||||||
|
Flashez le QRCode. du TW de "fred@g1sms.fr"
|
||||||
|
<p><a href="https://ipfs.copylaradio.com/ipns/fred.g1sms.fr.localhost.copylaradio.com">
|
||||||
|
<img src="/ipfs/QmWUpjGFuF7NhpXgkrCmx8Tbu4xjcFpKhE7Bsvt6HeKYxu/g1ticket_qrcode.png" width=65%></p>
|
||||||
|
</a>
|
||||||
|
<h3>Indiquez en commentaire les emails de amis à qui vous souhaitez partager votre don.</h3>
|
||||||
|
<p>Compte hébergée par <a href="https://opencollective.com/monnaie-libre/projects/stiits">LaSTI</a> Service "G1CopierYoutube" & "G1PalPé"</p>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<h2>Scannez votre QRCode</h2>
|
||||||
|
|
||||||
|
<div style="width: 500px" id="reader"></div>
|
||||||
|
|
||||||
|
<video id="preview" style="transform: scaleX(-1);width: 220px;height: 220px;"></video>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
function onScanSuccess(decodedText, decodedResult) {
|
||||||
|
// Handle on success condition with the decoded text or result.
|
||||||
|
console.log(`Scan result: ${decodedText}`, decodedResult);
|
||||||
|
alert("qrcode="+${decodedText});
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url: "http://astroport.localhost:1234",
|
||||||
|
data: "qrcode="+${decodedText},
|
||||||
|
type: 'GET'
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
var html5QrcodeScanner = new Html5QrcodeScanner(
|
||||||
|
"reader", { fps: 10, qrbox: 250 });
|
||||||
|
html5QrcodeScanner.render(onScanSuccess);
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="showoff">
|
||||||
|
<div id="container">
|
||||||
|
<h2>Votre Monde</h2>
|
||||||
|
<canvas id="sphere" width="400" height="400"></canvas>
|
||||||
|
<div id="glow-shadows" class="earth"></div>
|
||||||
|
<canvas id="flights" width="400" height="400"></canvas>
|
||||||
|
<div id="locations"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p><a href="https://opencollective.com/monnaie-libre/projects/coeurbox">♥BOX</a>, sauvegarde, diffuse et partage vos DATA 👍 à l'abris dans "Le Claude"</p>
|
||||||
|
<p>Powered by <a href="https://astroport.com">Astroport</a></p>
|
||||||
|
|
||||||
|
<div class="choose_example">
|
||||||
|
Choose example: <select id="example">
|
||||||
|
<option value="simple">Simple earth</option>
|
||||||
|
<option value="simple_tilted">Simple tilted earth</option>
|
||||||
|
<option value="simple_mars">Simple mars</option>
|
||||||
|
<option value="locations">Earth with locations</option>
|
||||||
|
<option value="flights" selected>Earth with locations and flights</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="code">
|
||||||
|
<a href="#" onclick="$('#example_code').show(); $(this).hide().siblings('a').show(); return false;">Show code</a>
|
||||||
|
<a href="#" style="display: none;" onclick="$('#example_code').hide(); $(this).hide().siblings('a').show(); return false;">Hide code</a>
|
||||||
|
<textarea id="example_code" onclick="this.focus();this.select();"></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue