mimbres commited on
Commit
463311f
·
verified ·
1 Parent(s): 8b47bf4

Update html_helper.py

Browse files
Files changed (1) hide show
  1. html_helper.py +8 -14
html_helper.py CHANGED
@@ -82,21 +82,15 @@ def create_html_from_midi(midifile):
82
  <div>
83
  <a href="{midifile}" target="_blank" style="font-size: 14px;">Download MIDI</a> <br>
84
  </div>
85
-
86
- <div style="position: relative; width: 100% height: 80%; display: flex; justify-content: flex-start; align-items: center;">
87
- <style>
88
- #proll {{width: 100% height: 550px; transform: scaleY(0.8); transform-origin: top; transition: transform 0.3s ease; }}
89
- @media (max-width: 500px) {{ #proll {{ transform: scaleY(0.7); }} }}
90
- @media (max-width: 450px) {{ #proll {{ transform: scaleY(0.6); }} }}
91
- @media (max-width: 400px) {{ #proll {{ transform: scaleY(0.5); }} }}
92
- @media (max-width: 350px) {{ #proll {{ transform: scaleY(0.4); }} }}
93
- @media (max-width: 300px) {{ #proll {{ transform: scaleY(0.3); }} }}
94
- </style>
95
- <section id="proll">
96
- <midi-player src="{midifile}" sound-font="https://storage.googleapis.com/magentadata/js/soundfonts/sgm_plus" visualizer="#proll midi-visualizer"></midi-player>
97
- <midi-visualizer src="{midifile}"></midi-visualizer>
98
- </section>
99
  </div>
 
100
  </body>
101
  </html>
102
  """.format(midifile=midifile)
 
82
  <div>
83
  <a href="{midifile}" target="_blank" style="font-size: 14px;">Download MIDI</a> <br>
84
  </div>
85
+ <div>
86
+ <section id="proll">
87
+ <midi-player src="{midifile}" sound-font="https://storage.googleapis.com/magentadata/js/soundfonts/sgm_plus" visualizer="#proll midi-visualizer">
88
+ </midi-player>
89
+ <midi-visualizer src="{midifile}">
90
+ </midi-visualizer>
91
+ </section>
 
 
 
 
 
 
 
92
  </div>
93
+
94
  </body>
95
  </html>
96
  """.format(midifile=midifile)