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

theme.html 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Audiogram / Theme Editor</title>
  5. <meta charset="utf-8" />
  6. <meta name="robots" content="noindex, nofollow" />
  7. <meta name="googlebot" content="noindex, nofollow" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
  10. <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300,600" rel="stylesheet" type="text/css">
  11. <link href="/css/base.css" rel="stylesheet" type="text/css">
  12. <link href="/css/editor.css" rel="stylesheet" type="text/css">
  13. <link href="/fonts/fonts.css" rel="stylesheet" type="text/css">
  14. </head>
  15. <body class="loading">
  16. <div class="container">
  17. <h1>Theme Editor</h1>
  18. <div>
  19. <a href="/">Go back</a>
  20. </div>
  21. <div id="loading">
  22. <div id="loading-bars">
  23. <div class="r1"></div><div class="r2"></div><div class="r3"></div><div class="r4"></div><div class="r5"></div>
  24. </div>
  25. <div id="loading-message">Loading...</div>
  26. </div>
  27. <div id="loaded">
  28. <div class="row form-row" id="row-theme">
  29. <label for="input-theme">Theme</label>
  30. <select id="input-theme" name="theme"></select>
  31. </div>
  32. <div class="row form-row" style="padding-bottom: 40px">
  33. <button type="button" id="btn-delete-theme" class="left" data-confirm="Are you sure you want to delete this theme?"><i class="fa fa-trash"></i>Delete</button>
  34. </div>
  35. <div id="preview">
  36. <div>
  37. <div id="canvas">
  38. <canvas width="640" height="360"></canvas>
  39. <div id="preview-label">Preview</div>
  40. </div>
  41. </div>
  42. <div id="minimap" class="hidden">
  43. <svg width="640" height="80" xmlns="http://www.w3.org/2000/svg">
  44. <defs>
  45. <clipPath id="clip">
  46. <rect height="80" width="640" x="0" y="0"></rect>
  47. </clipPath>
  48. </defs>
  49. <g class="waveform background">
  50. <line x1="0" x2="640" y1="40" y2="40"></line>
  51. <path></path>
  52. </g>
  53. <g class="waveform foreground" clip-path="url(#clip)">
  54. <line x1="0" x2="640" y1="40" y2="40"></line>
  55. <path></path>
  56. </g>
  57. <g class="brush"></g>
  58. <g class="time">
  59. <line x1="0" x2="0" y1="0" y2="80"></line>
  60. </g>
  61. </svg>
  62. </div>
  63. </div>
  64. <div class="row form-row" id="row-font">
  65. <label for="input-font">Font</label>
  66. <select id="input-font" name="font"></select>
  67. </div>
  68. <div class="row form-row">
  69. <input type="checkbox" class="form-check-input" id="chkNoPattern">
  70. <label class="form-check-label" for="chkNoPattern">No pattern</label>
  71. </div>
  72. <div class="row form-row">
  73. <label for="captionColor">
  74. Caption color
  75. </label>
  76. <div class="picker" acp-color="#EFE9E7" id="captionColor" name="captionColor">
  77. </div>
  78. </div>
  79. <div class="row form-row">
  80. <label for="captionColor">
  81. Subtitle color
  82. </label>
  83. <div class="picker" acp-color="#EFE9E7" id="subtitleColor" name="subtitleColor">
  84. </div>
  85. </div>
  86. <div class="row form-row" style="padding: 20px 0 10px 0">
  87. <p>
  88. Please note: Theme assets can be only of png or jpeg file format
  89. </p>
  90. </div>
  91. <div class="row form-row" id="row-new-theme" style="padding: 0 0 20px 0">
  92. <label for="input-new-theme">New theme</label>
  93. <input id="input-new-theme" name="new-theme" type="file" />
  94. </div>
  95. <div class="row form-row" id="row-caption">
  96. <label for="input-caption">
  97. Theme Name
  98. </label>
  99. <input id="input-new-caption" name="new-caption" type="text" autocomplete="off" placeholder="Add a new theme name" />
  100. </div>
  101. <div class="row form-row">
  102. <button type="button" id="btn-new-theme" class="left"><i class="fa fa-arrow-circle-up"></i>Add</button>
  103. </div>
  104. </div>
  105. </div>
  106. <script src="/js/bundle.js"></script>
  107. <script src="/fonts/fonts.js"></script>
  108. </body>
  109. </html>