Turn audio into a shareable video. forked from nypublicradio/audiogram

themes.html 4.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Theme Editor</title>
  5. <meta charset="utf-8" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
  8. <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300,600" rel="stylesheet" type="text/css">
  9. <link href="/css/base.css" rel="stylesheet" type="text/css">
  10. <link href="/css/editor.css" rel="stylesheet" type="text/css">
  11. <link href="/fonts/fonts.css" rel="stylesheet" type="text/css">
  12. </head>
  13. <body class="loading">
  14. <div id="themeEditor" class="container" data-active="false">
  15. <p id="back-to-audiogram"><a href="../"><i class="fa fa-arrow-left"></i>Back to Audiogram</a></p>
  16. <h1>Theme Editor</h1>
  17. <div id="loading">
  18. <div id="loading-bars">
  19. <div class="r1"></div><div class="r2"></div><div class="r3"></div><div class="r4"></div><div class="r5"></div>
  20. </div>
  21. <div id="loading-message">Loading...</div>
  22. </div><!-- #loading -->
  23. <div id="loaded">
  24. <div id="error"></div>
  25. <div class="row form-row" id="row-audio" style="display:none;">
  26. <label for="input-audio">Audio</label>
  27. <input id="input-audio" name="audio" type="file" />
  28. </div>
  29. <div class="row" id="row-instructions">
  30. <p>Welcome to the Theme Editor. From here you can edit existing themes or make new ones. Start by selecting a
  31. theme to edit from the dropdown menu or choosing <code>New…</code> to make a new one. If you need more help, click this
  32. <i id="toggle-more-instructions" class="fa fa-question"></i> or hover over the many others throughout the
  33. page for more detailed help.</p>
  34. <div id="more-instructions">
  35. <p>Themes work by overriding the default styles your site administrator has set up. To override an option,
  36. toggle it on with its checkbox. If an option isn’t toggled on, you won’t be able to adjust it. If you’re not
  37. sure what an option does, hover over the <i class="fa fa-question"></i> icon to get a description of it.</p>
  38. <p>When you’re finished, you can click the <i class="fa fa-floppy-o"></i> button to save the changes to ONLY
  39. the theme you’re currently editing. Switching themes will revert all the changes you’ve made in this
  40. session. Themes can also be renamed by choosing them from the dropdown menu, changing the name option, and
  41. saving the theme. Finally, if you’re absolutely sure, you can delete a theme by clicking the
  42. <i class="fa fa-trash-o"></i> button. This action is irreversible and the theme will be gone forever.</p>
  43. <p>Your theme preview changes live as you toggle options on and off and change their values. Experiment with
  44. different values to create new and interesting themes. If you want to start over, you can click the
  45. <i class="fa fa-refresh"></i> button to reset your theme.</p>
  46. </div>
  47. </div>
  48. <div class="row form-row" id="row-theme">
  49. <label for="input-theme">Theme</label>
  50. <select id="input-theme" name="theme"></select>
  51. </div>
  52. <div class="row form-row" id="row-caption">
  53. <label for="input-caption">
  54. <div class="note">Preview a caption here.</div>
  55. </label>
  56. <input id="input-caption" name="caption" type="text" autocomplete="off" placeholder="Add a caption"
  57. value="Lorem ipsum dolor sit amet, consectetur."/>
  58. </div>
  59. <div id="editor-tools">
  60. <div id="options-container">
  61. <div id="options"></div>
  62. <div id="themeButtons">
  63. <button id="saveChanges" title="Save Changes"><i class="fa fa-floppy-o"></i></button>
  64. <button id="deleteTheme" title="Delete Theme"><i class="fa fa-trash-o"></i></button>
  65. <button id="refreshTheme" title="Reset Theme"><i class="fa fa-refresh"></i></button>
  66. </div>
  67. </div>
  68. <div id="preview-container">
  69. <div id="preview">
  70. <div style="background-color: black;">
  71. <div id="canvas">
  72. <canvas width="640" height="360"></canvas>
  73. <div id="preview-label">Preview</div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. <div id="audio">
  80. <audio controls>
  81. <source />
  82. </audio>
  83. </div>
  84. <div id="video">
  85. <video width="640" height="360" controls>
  86. <source type="video/mp4" />
  87. </video>
  88. </div>
  89. </div><!-- #loaded -->
  90. </div><!-- .container -->
  91. <script src="/js/bundle.js"></script>
  92. <!-- Force load custom fonts -->
  93. <script src="/fonts/fonts.js"></script>
  94. </body>
  95. </html>