Some JS API examples for people who are learning javascript.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
597 B

2 years ago
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>localStorage example</title>
  8. <style>
  9. body {
  10. font-family: 'Courier New', monospace;
  11. }
  12. quote {
  13. width: 10vw;
  14. border-radius: 8px;
  15. padding: 1em;
  16. background: lightgray;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <h1>Config for this page</h1>
  22. <div id="result"></div>
  23. <script src="main.js"></script>
  24. </body>
  25. </html>