Partagez vos G1Dons. Découvrez vos G1Talents ! Tissez votre Toile de Confiance Ŋ1
This commit is contained in:
parent
a0b270a347
commit
cceda4a195
|
@ -112,12 +112,18 @@ do
|
|||
--output ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME} \
|
||||
--render '.'_ ${PLAYER}'.tiddlers.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[tag[G1'${WISHNAME}']!tag[G1Voeu]]'
|
||||
|
||||
### PREPARE WISHNAME index.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" \
|
||||
> ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/index.html
|
||||
|
||||
##################################
|
||||
## MAKE EARTH MAP TILES
|
||||
##################################
|
||||
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" \
|
||||
-e "s~_ASTRONAUTENS_~${ASTRONAUTENS}~g" \
|
||||
> ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/index.html
|
||||
### PREPARE WISHNAME index.html
|
||||
##################################
|
||||
|
||||
### ADD TO IPFS
|
||||
echo "++WISH PUBLISHING++ ipfs add -qHwr ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/*"
|
||||
|
@ -125,7 +131,7 @@ do
|
|||
ipfs name publish -k $VOEUKEY /ipfs/$JSONIPFS # PUBLISH $VOEUKEY
|
||||
|
||||
## MOVE INTO PLAYER AREA
|
||||
echo "Ŋ1 FLUX $(myIpfsGw)${VOEUNS}"
|
||||
echo ">>> $VOEUKEY : Ŋ1 FLUX $(myIpfsGw)${VOEUNS}"
|
||||
echo "~/.zen/game/players/${PLAYER}/G1${WISHNAME}/${G1PUB}"
|
||||
|
||||
mv -f ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/* ~/.zen/game/players/${PLAYER}/G1${WISHNAME}/${G1PUB}/
|
||||
|
|
|
@ -3,19 +3,19 @@
|
|||
<head>
|
||||
<title>_PLAYER_ : TW : _G1VOEU_</title>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="icon" type="image/x-icon" href="/ipfs/QmVWiykozM1R1egSBVwyQ7KtfjXuuPqdG3Y9hC9kPPjhwZ/favicon.ico">
|
||||
<link rel="stylesheet" href="/ipfs/QmVWiykozM1R1egSBVwyQ7KtfjXuuPqdG3Y9hC9kPPjhwZ/index_fichiers/jquery-ui.min.css">
|
||||
<link rel="icon" type="image/x-icon" href="/ipfs/QmUcpeWwA5EZA8UavMU1oAfvRwZhUheBx8Mh8RGC4KHkkD/favicon.ico">
|
||||
<link rel="stylesheet" href="/ipfs/QmUcpeWwA5EZA8UavMU1oAfvRwZhUheBx8Mh8RGC4KHkkD/index_fichiers/jquery-ui.min.css">
|
||||
|
||||
<script type="text/javascript" src="/ipfs/QmVWiykozM1R1egSBVwyQ7KtfjXuuPqdG3Y9hC9kPPjhwZ/index_fichiers/requestanimationframe.polyfill.js"></script>
|
||||
<script type="text/javascript" src="/ipfs/QmUcpeWwA5EZA8UavMU1oAfvRwZhUheBx8Mh8RGC4KHkkD/index_fichiers/requestanimationframe.polyfill.js"></script>
|
||||
|
||||
<script type="text/javascript" src="/ipfs/QmVWiykozM1R1egSBVwyQ7KtfjXuuPqdG3Y9hC9kPPjhwZ/index_fichiers/jquery-1.7.2.min.js"></script>
|
||||
<script type="text/javascript" src="/ipfs/QmVWiykozM1R1egSBVwyQ7KtfjXuuPqdG3Y9hC9kPPjhwZ/index_fichiers/instascan.min.js"></script>
|
||||
<script type="text/javascript" src="/ipfs/QmVWiykozM1R1egSBVwyQ7KtfjXuuPqdG3Y9hC9kPPjhwZ/index_fichiers/html5-qrcode.min.js"></script>
|
||||
<script type="text/javascript" src="/ipfs/QmUcpeWwA5EZA8UavMU1oAfvRwZhUheBx8Mh8RGC4KHkkD/index_fichiers/jquery-1.7.2.min.js"></script>
|
||||
<script type="text/javascript" src="/ipfs/QmUcpeWwA5EZA8UavMU1oAfvRwZhUheBx8Mh8RGC4KHkkD/index_fichiers/instascan.min.js"></script>
|
||||
<script type="text/javascript" src="/ipfs/QmUcpeWwA5EZA8UavMU1oAfvRwZhUheBx8Mh8RGC4KHkkD/index_fichiers/html5-qrcode.min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="/ipfs/QmVWiykozM1R1egSBVwyQ7KtfjXuuPqdG3Y9hC9kPPjhwZ/index_fichiers/jquery-ui.0.min.js"></script>
|
||||
<script type="text/javascript" src="/ipfs/QmVWiykozM1R1egSBVwyQ7KtfjXuuPqdG3Y9hC9kPPjhwZ/index_fichiers/sphere-hacked.js"></script>
|
||||
<script type="text/javascript" src="/ipfs/QmVWiykozM1R1egSBVwyQ7KtfjXuuPqdG3Y9hC9kPPjhwZ/index_fichiers/jquery.earth-3d.js"></script>
|
||||
<script type="text/javascript" src="/ipfs/QmVWiykozM1R1egSBVwyQ7KtfjXuuPqdG3Y9hC9kPPjhwZ/index_fichiers/demo.js"></script>
|
||||
<script type="text/javascript" src="/ipfs/QmUcpeWwA5EZA8UavMU1oAfvRwZhUheBx8Mh8RGC4KHkkD/index_fichiers/jquery-ui.0.min.js"></script>
|
||||
<script type="text/javascript" src="/ipfs/QmUcpeWwA5EZA8UavMU1oAfvRwZhUheBx8Mh8RGC4KHkkD/index_fichiers/sphere-hacked.js"></script>
|
||||
<script type="text/javascript" src="/ipfs/QmUcpeWwA5EZA8UavMU1oAfvRwZhUheBx8Mh8RGC4KHkkD/index_fichiers/jquery.earth-3d.js"></script>
|
||||
<script type="text/javascript" src="/ipfs/QmUcpeWwA5EZA8UavMU1oAfvRwZhUheBx8Mh8RGC4KHkkD/index_fichiers/demo.js"></script>
|
||||
<style>
|
||||
body {
|
||||
padding: 0;
|
||||
|
@ -54,13 +54,35 @@
|
|||
float: right;
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
#glow-shadows.earth {
|
||||
background: url(/ipfs/QmY1A2uLGNXbvNs7hadZAKHNiuWxFaWhnaDR1UJXBXRirX/earth-glow-shadows.png);
|
||||
}
|
||||
|
||||
#glow-shadows.mars {
|
||||
background: url(/ipfs/QmPmpDoTGboQDDiYGCfmtcwnDe1buTSkj24cpJV7raQq9x/mars-glow-shadows.png);
|
||||
}
|
||||
.flight {
|
||||
position: absolute;
|
||||
width: 24px;
|
||||
height: 25px;
|
||||
left: 10px;
|
||||
top: 10px;
|
||||
background: url(/ipfs/QmS7UkTKfZi45HCq9KHAJgKosdKrbiZTdJE1xD62yxVi7u/plain.png);
|
||||
background-size: 100% 100%;
|
||||
margin-left: -12px;
|
||||
margin-top: -12.5px;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="/ipfs/QmVWiykozM1R1egSBVwyQ7KtfjXuuPqdG3Y9hC9kPPjhwZ/index_fichiers/demo.css">
|
||||
<link rel="stylesheet" href="/ipfs/QmUcpeWwA5EZA8UavMU1oAfvRwZhUheBx8Mh8RGC4KHkkD/index_fichiers/demo.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="slidecontainer">
|
||||
|
||||
|
||||
<div class="slidecontainer">
|
||||
<h1>G1_G1VOEU_</h1>
|
||||
<div class="gif-container">
|
||||
<!-- gifs -->
|
||||
|
@ -69,8 +91,7 @@
|
|||
<a href="#" id="prev"><</a>
|
||||
<a href="#" id="next">></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const gifContainer = document.querySelector('.gif-container');
|
||||
|
@ -136,58 +157,30 @@
|
|||
|
||||
<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 class="subtitle">Une Planète à Vous<br>Un Internet entre Nous !</div>
|
||||
<div id="demo">
|
||||
<div id="description">
|
||||
<h2>Installez <a href="https://cesium.app">Cesium</a> !</h2>
|
||||
<h2>Un DON ? Flashez le QRCode !</h2>
|
||||
|
||||
Flashez le QRCode. du TW de "fred@g1sms.fr"
|
||||
<p><a href="https://ipfs.copylaradio.com/ipns/fred.g1sms.fr.localhost.copylaradio.com">
|
||||
Visitez TW "_PLAYER_"
|
||||
<p><a href="https://ipfs.copylaradio.com/ipns/_ASTRONAUTENS_">
|
||||
<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>
|
||||
<h3>Installez <a href="https://cesium.app">Cesium</a>. Indiquez en commentaire vos "G1Talents" et les emails de vos amis qui partage(ront) votre dons.</h3>
|
||||
<p>/ <a href="https://opencollective.com/monnaie-libre/projects/stiits">LaSTI</a> / G1Services by U + La♥BOX</p>
|
||||
<br>
|
||||
</div>
|
||||
|
||||
<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="showoff">
|
||||
<div id="container">
|
||||
<h2>Votre Monde</h2>
|
||||
<h2>Monde(s)</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><a href="https://opencollective.com/monnaie-libre/projects/coeurbox">La♥BOX</a>, sauvegarde, diffuse et partage vos DATA 👍 à l'abris dans "Le Claude"</p>
|
||||
<p>Powered by <a href="https://github.com/papiche/Astroport.ONE">Astroport.ONE</a></p>
|
||||
|
||||
<div class="choose_example">
|
||||
|
@ -206,7 +199,6 @@
|
|||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -6,11 +6,12 @@ MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
|||
#Set Path to Images
|
||||
img_dir="$1"
|
||||
if [[ ! -d $img_dir ]]; then
|
||||
echo "STATION CAROUSEL MODE"
|
||||
PLAYERONE=($(ls -t ~/.zen/game/players/ | grep -Ev "localhost" 2>/dev/null))
|
||||
[[ ! $PLAYERONE ]] && echo "NO PLAYER IN THE GAME HERE" && exit 1
|
||||
echo "ASTROPORT STATION CAROUSEL MODE"
|
||||
rm -Rf ~/.zen/tmp/carousel 2>/dev/null
|
||||
mkdir -p ~/.zen/tmp/carousel
|
||||
# Make it with latest PLAYERS WALLETS
|
||||
PLAYERONE=($(ls -t ~/.zen/game/players/ | grep -Ev "localhost" 2>/dev/null))
|
||||
## RUNING FOR ALL LOCAL PLAYERS
|
||||
for PLAYER in ${PLAYERONE[@]}; do
|
||||
pub=$(cat ~/.zen/game/players/$PLAYER/.g1pub)
|
||||
|
@ -26,6 +27,11 @@ for PLAYER in ${PLAYERONE[@]}; do
|
|||
&& ( cp ~/.zen/game/players/${PLAYER}/ipfs/G1SSB/COINS ~/.zen/game/players/${PLAYER}/ipfs/G1SSB/COINS.$MOATS 2>/dev/null; \
|
||||
echo $COINS > ~/.zen/game/players/${PLAYER}/ipfs/G1SSB/COINS )
|
||||
|
||||
ASTRONAUTENS=$(cat ~/.zen/game/players/${PLAYER}/.playerns)
|
||||
|
||||
ASTR="<a target=$PLAYER href=$myIPFS/ipns/$ASTRONAUTENS alt=$COINS title=$PLAYER $COINS>"
|
||||
OPORT="</a>"
|
||||
|
||||
done
|
||||
img_dir="$HOME/.zen/tmp/carousel"
|
||||
fi
|
||||
|
@ -88,11 +94,11 @@ if [[ $i =~ \.(JPG|jpg|PNG|png|JPEG|jpeg|GIF|gif)$ ]]; then
|
|||
img_alt=$(echo $img_info | cut -d ' ' -f3)
|
||||
if [ $num -eq 1 ]; then
|
||||
echo " <div class=\"carousel-item active\">
|
||||
<img src=\"/ipfs/$ilink\" alt=\"$img_alt\" width=\"$img_width\" height=\"$img_height\">
|
||||
$ASTR<img src=\"/ipfs/$ilink\" alt=\"$img_alt\" width=\"$img_width\" height=\"$img_height\">$OPORT
|
||||
</div>" >> $html_file
|
||||
else
|
||||
echo " <div class=\"carousel-item\">
|
||||
<img src=\"/ipfs/$ilink\" alt=\"$img_alt\" width=\"$img_width\" height=\"$img_height\">
|
||||
$ASTR<img src=\"/ipfs/$ilink\" alt=\"$img_alt\" width=\"$img_width\" height=\"$img_height\">$OPORT
|
||||
</div>" >> $html_file
|
||||
fi
|
||||
num=$((num+1))
|
||||
|
|
Loading…
Reference in New Issue