Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="stylesheet" type="text/css" href="style.css">
- <title>Random Profile Generator</title>
- <link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
- <script defer src="https://pyscript.net/alpha/pyscript.js"></script>
- <link rel="stylesheet" href="style.css">
- <script src="scripts.js"></script>
- </head>
- <body>
- <h1>Random Profile Generator</h1>
- <p>The button below will generate a random profile for you, press it to create one!
- </p>
- <py-env>
- - numpy
- - paths:
- - /test.py
- - /src/gens/addressgen.py
- - /src/gens/agegen.py
- - /src/gens/allergies.py
- - /src/gens/Bestfriend.py
- - /src/gens/borngen.py
- - /src/gens/eyecolourgen.py
- - /src/gens/familygen.py
- - /src/gens/favouritefood.py
- - /src/gens/namegen.py
- - /src/gens/nickgen.py
- </py-env>
- <py-script>
- from test import *
- x = x
- def btn_clicked(*args, **kwargs):
- pyscript.write("id_btn", x)
- </py-script>
- <button id="id_btn" class="button" type="submit" pys-onclick="btn_clicked"> Click Me! </button>
- <py-script>
- from main import *
- </py-script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement