Ingen beskrivning
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.

generate.html 3.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <html>
  2. <head>
  3. <title>D&D cards</title>
  4. <!-- CSS -->
  5. <link rel="stylesheet" type="text/css" href="css/page.css">
  6. <link rel="stylesheet" type="text/css" href="css/cards.css">
  7. <link rel="stylesheet" type="text/css" href="css/icons.css">
  8. <link rel="stylesheet" type="text/css" href="css/custom-icons.css">
  9. <!-- Data -->
  10. <script type="text/javascript" src="data/card_data.js"></script>
  11. <script type="text/javascript" src="data/card_data_example.js"></script>
  12. <!-- Javascript -->
  13. <script type="text/javascript" defer src="js/cards.js"></script>
  14. <script type="text/javascript" defer src="js/control.js"></script>
  15. <!-- Fonts -->
  16. <link href='https://fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
  17. <link href='https://fonts.googleapis.com/css?family=Lora:700' rel='stylesheet' type='text/css'>
  18. </head>
  19. <body>
  20. <div class="container">
  21. <h1>Disclaimer</h1>
  22. <p>
  23. All material related to <a href="http://dnd.wizards.com/">Dungeons and Dragons</a> 5th edition is copyright by <a href="http://company.wizards.com/">Wizards of the Coast</a>.
  24. This site uses information freely available from their basic rules that can be found <a href="http://dnd.wizards.com/articles/features/basicrules?x=dnd/basicrules">here</a>.
  25. This probably does not mean you can freely distribute any material derived from there -
  26. if you are Wizards of the Coast and have concerns issues with this project, contact me <a href="mailto:robin@dbservice.com">here</a>.
  27. </p>
  28. <p>
  29. All icons are from <a href="game-icons.net">game-icons.net</a>,
  30. an awesome project providing free icons for games.
  31. Parts of the CSS are copied from <a href="http://valloric.github.io/statblock5e/">statblock5e</a>,
  32. a project that tries to re-create pixel-precise monster stat blocks from the monster manual.
  33. </p>
  34. <p>
  35. Click on the button below to transform the huge wall of text at the bottom into beautiful(?) spell and item cards.
  36. The cards are generated via Javascript in HTML, the card layout is such that 3x3 cards fill out an A4 page.
  37. In theory, you should be able to print the whole page (double-sided printing, flip on long edge) and get double-sided cards.
  38. However, I am no CSS expert, so the layout might be a bit off.
  39. </p>
  40. <p>
  41. It should be reasonably simple to understand the JSON format I have used from the below examples, so that you can design your own cards.
  42. Just don't forget to save your JSON file externally.
  43. You can download the whole project for offline use <a href="cards.zip">here</a>
  44. (note that it uses <a href="https://www.google.com/fonts">google fonts</a>, so unless you are online, the fonts will be different).
  45. </p>
  46. <button type="button" class="input-button">Generate</button>
  47. <textarea rows="40" cols="120" class="input-data">
  48. </textarea>
  49. </div>
  50. </body>
  51. </html>