import re

with open('js/bible-widget.js', 'r', encoding='utf-8') as f:
    js = f.read()

# Replace innerText with innerHTML to support dual-colored text
js = js.replace(
    "tooltipText.innerText = 'Daily Bible Verse';",
    "tooltipText.innerHTML = '<span style=\"color: #ffffff;\">Daily</span> <span style=\"color: #e6c888;\">Bible Verse</span>';"
)

with open('js/bible-widget.js', 'w', encoding='utf-8') as f:
    f.write(js)

print("Updated JS for dual colored text")
