Try ME /ipfs/

This commit is contained in:
fred 2023-08-13 02:13:01 +02:00
parent b1f4598cb3
commit 2f35ad9c71
7 changed files with 37 additions and 4 deletions

1
.chain Normal file
View File

@ -0,0 +1 @@
QmVjw8PDNYzWvHoz4hVQhqLFeGs4JAYc1N4itqe276hBkt

1
.chain. Normal file
View File

@ -0,0 +1 @@
QmTTroqgx8A9YRRbGMNcQVPexxAUkawzkqdwcAQonEfiUC

View File

@ -0,0 +1 @@
QmUgzu2S5XF4mZQvtwDUk8YwkvYLa27CbQeYVm6QULfYPF

1
.moats Normal file
View File

@ -0,0 +1 @@
202308130012488771

View File

@ -4,4 +4,4 @@
* Juste : PAF/2 + POUF
* Carré : PAF/4 + POUF²
[ESSAYEZ](http://ipfs.asycn.io/ipfs/QmTTroqgx8A9YRRbGMNcQVPexxAUkawzkqdwcAQonEfiUC)
[ESSAYEZ](http://ipfs.asycn.io/ipfs/QmVjw8PDNYzWvHoz4hVQhqLFeGs4JAYc1N4itqe276hBkt)

View File

@ -136,15 +136,15 @@ Trouvez facilement le forfait à pratiquer pour conserver votre activité dans u
<p style="margin-bottom: 0px;">Choix du forfait :</p>
<br>
<input type="radio" id="price1" name="price" value="1">
<label for="price1">Forfait Cool</label>
<label for="price1">Forfait Cool (PAF = PIF offert)</label>
<br>
<input type="radio" id="price2" name="price" value="2" checked="checked">
<label for="price2">Forfait Juste</label>
<label for="price2">Forfait Juste (1/2 PAF + PIF)</label>
<br>
<input type="radio" id="price3" name="price" value="3">
<label for="price3">Forfait Carré</label>
<label for="price3">Forfait Carré (1/4 PAF + PIF²)</label>
<p></p>
<button class="btn-calculate" onclick="calculatePrice()">

29
update2ipfs.sh Executable file
View File

@ -0,0 +1,29 @@
#!/bin/bash
################################################################################
# Author: Fred (support@qo-op.com)
# Version: 0.1
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
################################################################################
MY_PATH="`dirname \"$0\"`" # relative
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
MOATS=$(date -u +"%Y%m%d%H%M%S%4N")
OLD=$(cat ${MY_PATH}/.chain)
cp ${MY_PATH}/.chain \
${MY_PATH}/.chain.$(cat ${MY_PATH}/.moats)
TW=$(ipfs add -wq ${MY_PATH}/index.html | tail -n 1)
[[ ${TW} == ${OLD} ]] && echo "No change." && exit 1
echo ${TW} > ${MY_PATH}/.chain
echo ${MOATS} > ${MY_PATH}/.moats
sed -i "s~${OLD}~${TW}~g" ${MY_PATH}/README.md
echo '
git add .
git commit -m "Try ME /ipfs/${TW}"
git push
'