Advertisement
WhineyMonkey10

Untitled

May 19th, 2022
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link rel="stylesheet" type="text/css" href="style.css">
  8. <title>Random Profile Generator</title>
  9.  
  10. <link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
  11. <script defer src="https://pyscript.net/alpha/pyscript.js"></script>
  12. <link rel="stylesheet" href="style.css">
  13. <script src="scripts.js"></script>
  14.  
  15.  
  16. </head>
  17. <body>
  18.  
  19. <h1>Random Profile Generator</h1>
  20. <p>The button below will generate a random profile for you, press it to create one!
  21. </p>
  22.  
  23.  
  24. <py-env>
  25. - numpy
  26. - paths:
  27. - /test.py
  28. - /src/gens/addressgen.py
  29. - /src/gens/agegen.py
  30. - /src/gens/allergies.py
  31. - /src/gens/Bestfriend.py
  32. - /src/gens/borngen.py
  33. - /src/gens/eyecolourgen.py
  34. - /src/gens/familygen.py
  35. - /src/gens/favouritefood.py
  36. - /src/gens/namegen.py
  37. - /src/gens/nickgen.py
  38. </py-env>
  39.  
  40. <py-script>
  41. from test import *
  42. x = x
  43. def btn_clicked(*args, **kwargs):
  44.  
  45. pyscript.write("id_btn", x)
  46. </py-script>
  47.  
  48. <button id="id_btn" class="button" type="submit" pys-onclick="btn_clicked"> Click Me! </button>
  49.  
  50.  
  51.  
  52.  
  53. <py-script>
  54. from main import *
  55. </py-script>
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62. </body>
  63.  
  64.  
  65.  
  66. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement