Update html_helper.py
Browse files- 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 |
-
|
87 |
-
<
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
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)
|