This commit is contained in:
Marc Beninca 2023-07-25 12:01:20 +02:00
parent e090a45c35
commit b040d53c8a

View file

@ -57,6 +57,10 @@ def main():
name="tab" id="tab/my" /> name="tab" id="tab/my" />
<label for="tab/my">My/</label> <label for="tab/my">My/</label>
<div><div class="tabs"> <div><div class="tabs">
<input type="radio" onclick="update(id)"
name="tab/my" id="tab/my/about" />
<label for="tab/my/about">About</label>
<div>{tabs['about']}</div>
<input type="radio" onclick="update(id)" <input type="radio" onclick="update(id)"
name="tab/my" id="tab/my/bio" /> name="tab/my" id="tab/my/bio" />
<label for="tab/my/bio">Bio</label> <label for="tab/my/bio">Bio</label>
@ -363,7 +367,7 @@ function main() {{
if (tab) {{ if (tab) {{
check(tab) check(tab)
}} else {{ }} else {{
tab = 'my/bio' tab = 'my/about'
check(tab) check(tab)
push(tab) push(tab)
}} }}
@ -387,6 +391,10 @@ function swap() {{
tabs = { tabs = {
#⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
'about': f'''\
About
''',
#⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅ #⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
'bio': f'''\ 'bio': f'''\
<h1>Marc Beninca</h1> <h1>Marc Beninca</h1>