Skip to content

Commit

Permalink
Update wim.py
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanderLaan committed Nov 12, 2024
1 parent 7c7f9ed commit 4e7b6d6
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions wim.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,20 @@ def read_yaml():
utl.navbar_authenticated(name)
nav = (st.query_params.get("nav"))
if nav == "invullen":
qoute = random.choice(list_bad_qoutes)
st.header(qoute)
#qoutes
qoute_random = random.choice(list_bad_qoutes)
qoute, auteur = qoute_random.split("–")
placeholder = st.empty()
placeholder1 = st.empty()
# Loop through each letter in the text
for i in range(len(qoute) + 1):
placeholder.header(qoute[:i]) # Update the container with the current substring
time.sleep(0.03)
#st.header(qoute)
for i in range(len(auteur) + 1):
placeholder1.text(auteur[:i]) # Update the container with the current substring
time.sleep(0.03)

default_start = today -timedelta(days=today.weekday()) # Monday
default_end = default_start - timedelta(days=4) # Friday
refresh_value = timedelta(days=7)
Expand Down Expand Up @@ -127,8 +139,8 @@ def read_yaml():
"jan-maarten",
"jasper",
"jeroen",
"joostD",
"joostH",
"joostd",
"joosth",
"kizje",
"leendert",
"martijn",
Expand Down

0 comments on commit 4e7b6d6

Please sign in to comment.