blob: 26202f88593eba7b79ede3d691e83e25c5630a2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
ANIMATION_DELAY=$(bc <<EOF
$(cat _flower_delay) - 0.15
EOF
)
cat <<EOF
<div class="smile">
<img style="animation-delay: ${ANIMATION_DELAY}s;" src="./smile.svg" alt="flower smile" draggable="false">
</div>
<div class="eyes">
<img style="animation-delay: ${ANIMATION_DELAY}s;" src="./eyes.svg" alt="flower eyes" draggable="false">
</div>
EOF
FACE_APPEAR_DURATION=0.3 # must match animation-duration in kwiatuszek.html.template
bc >_face_delay <<EOF
$ANIMATION_DELAY + $FACE_APPEAR_DURATION
EOF
|