Add world download button

This commit is contained in:
sqozz 2021-04-30 13:54:34 +02:00
parent 5125b4d5b8
commit 021ce489d1
3 changed files with 11 additions and 1 deletions

View file

@ -25,6 +25,12 @@
<div class="text">Map</div>
</a>
</div>
<div class="row">
<a class="item worlddownload" href="https://play.geekify.de/map/recent.tar.gz" target="_blank">
<div class="icon"></div>
<div class="text">World Download</div>
</a>
</div>
<div class="row">
<a class="item whitelist" id="whitelist" onclick="return toggleDetails(this)">
<div class="icon"></div>

View file

@ -40,6 +40,10 @@ body {
content:url('/img/map.png');
}
.worlddownload .icon {
content:url('/img/hopper.png');
}
.whitelist .icon {
content:url('/img/writable_book.png');
}

View file

@ -11,7 +11,7 @@ echo "done!"
echo "Unzipped resources at $TMP_PATH"
popd
FILES="birch_sign.png map.png redstone_lamp_on.png redstone_lamp.png writable_book.png diamond.png gold_ingot.png"
FILES="birch_sign.png map.png redstone_lamp_on.png redstone_lamp.png writable_book.png diamond.png gold_ingot.png hopper.png"
for FILE in $FILES; do
echo -n "Grabbing asset from: "
find $TMP_PATH -name $FILE -print -exec cp {} . \;