From 01611b4864ea4684872db4f9831307ca2aafa235 Mon Sep 17 00:00:00 2001 From: agigibairene Date: Mon, 23 Mar 2026 03:21:29 +0000 Subject: [PATCH] added a build.sh to fix scroll back to top btn --- build.sh | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..88eb8a2 --- /dev/null +++ b/build.sh @@ -0,0 +1,50 @@ +if [ -f "build/index.html" ]; then + python3 << 'EOF' +with open('build/index.html', 'r') as f: + content = f.read() + +script = ''' + +''' + +if '' in content: + content = content.replace('', script + '\n') + with open('build/index.html', 'w') as f: + f.write(content) + print("Smooth scroll script injected successfully") +else: + print("Warning: tag not found in index.html") +EOF +fi +