Advertisement
WhineyMonkey10

Untitled

May 10th, 2022
35
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. <link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
  10. <link rel="stylesheet" href="style.css">
  11. <script defer src="https://pyscript.net/alpha/pyscript.js"></script>
  12. <script src="scripts.js"></script>
  13.  
  14. </head>
  15. <body>
  16.  
  17. <h1>Random Profile Generator</h1>
  18. <p>This page will generate a random profile for you. Please press the button below to generate one:
  19. </p>
  20.  
  21. <button type="button" id="button" onclick="newTab()"> Click me!</button>
  22.  
  23. <py-env>
  24. - numpy
  25. - paths:
  26. - /main.py
  27. - /src/
  28. </py-env>
  29.  
  30. <py-script>
  31. from main import *
  32. from src import *
  33. print(finalres)
  34. </py-script>
  35.  
  36. <py-script>
  37. from js import document,
  38. from pyodide import create_proxy
  39.  
  40.  
  41. def buttonwrapper():
  42. from main import *
  43. from src import *
  44. print(finalres)
  45.  
  46.  
  47. ButtonClickEvent = create_proxy(buttonwrapper)
  48.  
  49. button = document.getElementById("button")
  50. button.addEventListener("click", ButtonClickEvent)
  51.  
  52. </py-script>
  53.  
  54.  
  55.  
  56.  
  57. </body>
  58.  
  59.  
  60.  
  61. </html>
Advertisement
RAW Paste Data Copied
Advertisement