[[fetch]]
files = ['main.py']
from pyscript import when, display, document
from main import get_days
@when("click", "#clear-btn")
def clear_all(event):
document.getElementById("main-input").value = ""
document.getElementById("result").innerHTML = ""
@when("click", "#show-btn")
def click_handler(event):
name = document.getElementById("main-input").value
result = get_days(name)
document.getElementById("result").innerHTML = result