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

theme.html 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/themes/nano.min.css"/>
  15. <script src="https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/pickr.min.js"></script>
  16. <script src="https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/pickr.es5.min.js"></script>
  17. </head>
  18. <body class="loading">
  19. <div class="container">
  20. <h1>Theme Editor</h1>
  21. <div>
  22. <a href="/">Go back</a>
  23. </div>
  24. <div id="loading">
  25. <div id="loading-bars">
  26. <div class="r1"></div><div class="r2"></div><div class="r3"></div><div class="r4"></div><div class="r5"></div>
  27. </div>
  28. <div id="loading-message">Loading...</div>
  29. </div>
  30. <div id="loaded">
  31. <div class="row form-row" id="row-theme">
  32. <label for="input-theme">Theme</label>
  33. <select id="input-theme" name="theme"></select>
  34. </div>
  35. <div class="row form-row" style="padding-bottom: 40px">
  36. <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>
  37. </div>
  38. <div id="preview">
  39. <div>
  40. <div id="canvas">
  41. <canvas width="640" height="360"></canvas>
  42. <div id="preview-label">Preview</div>
  43. </div>
  44. </div>
  45. <div id="minimap" class="hidden">
  46. <svg width="640" height="80" xmlns="http://www.w3.org/2000/svg">
  47. <defs>
  48. <clipPath id="clip">
  49. <rect height="80" width="640" x="0" y="0"></rect>
  50. </clipPath>
  51. </defs>
  52. <g class="waveform background">
  53. <line x1="0" x2="640" y1="40" y2="40"></line>
  54. <path></path>
  55. </g>
  56. <g class="waveform foreground" clip-path="url(#clip)">
  57. <line x1="0" x2="640" y1="40" y2="40"></line>
  58. <path></path>
  59. </g>
  60. <g class="brush"></g>
  61. <g class="time">
  62. <line x1="0" x2="0" y1="0" y2="80"></line>
  63. </g>
  64. </svg>
  65. </div>
  66. </div>
  67. <div class="row form-row" id="row-font">
  68. <label for="input-font">Font</label>
  69. <select id="input-font" name="font"></select>
  70. </div>
  71. <div class="row form-row">
  72. <div style="padding-bottom: 7px">No pattern</div>
  73. <input type="checkbox" class="form-check-input" id="chkNoPattern">
  74. </div>
  75. <div class="row form-row">
  76. <div style="padding-bottom: 10px">Caption color</div>
  77. <div style="border: thin solid; max-width: 40px">
  78. <div class="captionColorPicker"></div>
  79. </div>
  80. </div>
  81. <div class="row form-row">
  82. <div style="padding-bottom: 10px">Subtitle color</div>
  83. <div style="border: thin solid; max-width: 40px">
  84. <div class="subtitleColorPicker"></div>
  85. </div>
  86. </div>
  87. <div class="row form-row" style="padding: 20px 0 10px 0">
  88. <p>
  89. Please note: Theme assets can be only of png or jpeg file format
  90. </p>
  91. </div>
  92. <div class="row form-row" id="row-new-theme" style="padding: 0 0 20px 0">
  93. <label for="input-new-theme">New theme</label>
  94. <input id="input-new-theme" name="new-theme" type="file" />
  95. </div>
  96. <div class="row form-row" id="row-caption">
  97. <label for="input-caption">
  98. Theme Name
  99. </label>
  100. <input id="input-new-caption" name="new-caption" type="text" autocomplete="off" placeholder="Add a new theme name" />
  101. </div>
  102. <div class="row form-row">
  103. <button type="button" id="btn-new-theme" class="left"><i class="fa fa-arrow-circle-up"></i>Add</button>
  104. </div>
  105. </div>
  106. </div>
  107. <script src="/js/bundle.js"></script>
  108. <script src="/fonts/fonts.js"></script>
  109. </body>
  110. </html>