From 21f3aa5098d7f5837f164625004b43912199d032 Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Fri, 20 Aug 2021 10:22:27 +0200 Subject: [PATCH] add classnames --- plugins/musicsheets/files/modules/widgets/musicsheet.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/musicsheets/files/modules/widgets/musicsheet.js b/plugins/musicsheets/files/modules/widgets/musicsheet.js index 7295ef2..3700a38 100644 --- a/plugins/musicsheets/files/modules/widgets/musicsheet.js +++ b/plugins/musicsheets/files/modules/widgets/musicsheet.js @@ -37,6 +37,7 @@ ABCJSWidget.prototype.render = function(parent,nextSibling) { this.computeAttributes(); this.execute(); this.pNode = this.document.createElement("div"); + this.pNode.className = "tc-music-sheet"; parent.insertBefore(this.pNode,nextSibling); var programs = ["acoustic_grand_piano", "bright_acoustic_piano", "electric_grand_piano", "honkytonk_piano", "electric_piano_1", "electric_piano_2", "harpsichord", "clavinet", "celesta", "glockenspiel", "music_box", "vibraphone", "marimba", "xylophone", "tubular_bells", "dulcimer", "drawbar_organ", "percussive_organ", "rock_organ", "church_organ", "reed_organ", "accordion", "harmonica", "tango_accordion", "acoustic_guitar_nylon", "acoustic_guitar_steel", "electric_guitar_jazz", "electric_guitar_clean", "electric_guitar_muted", "overdriven_guitar", "distortion_guitar", "guitar_harmonics", "acoustic_bass", "electric_bass_finger", "electric_bass_pick", "fretless_bass", "slap_bass_1", "slap_bass_2", "synth_bass_1", "synth_bass_2", "violin", "viola", "cello", "contrabass", "tremolo_strings", "pizzicato_strings", "orchestral_harp", "timpani", "string_ensemble_1", "string_ensemble_2", "synth_strings_1", "synth_strings_2", "choir_aahs", "voice_oohs", "synth_choir", "orchestra_hit", "trumpet", "trombone", "tuba", "muted_trumpet", "french_horn", "brass_section", "synth_brass_1", "synth_brass_2", "soprano_sax", "alto_sax", "tenor_sax", "baritone_sax", "oboe", "english_horn", "bassoon", "clarinet", "piccolo", "flute", "recorder", "pan_flute", "blown_bottle", "shakuhachi", "whistle", "ocarina", "lead_1_square", "lead_2_sawtooth", "lead_3_calliope", "lead_4_chiff", "lead_5_charang", "lead_6_voice", "lead_7_fifths", "lead_8_bass_lead", "pad_1_new_age", "pad_2_warm", "pad_3_polysynth", "pad_4_choir", "pad_5_bowed", "pad_6_metallic", "pad_7_halo", "pad_8_sweep", "fx_1_rain", "fx_2_soundtrack", "fx_3_crystal", "fx_4_atmosphere", "fx_5_brightness", "fx_6_goblins", "fx_7_echoes", "fx_8_scifi", "sitar", "banjo", "shamisen", "koto", "kalimba", "bagpipe", "fiddle", "shanai", "tinkle_bell", "agogo", "steel_drums", "woodblock", "taiko_drum", "melodic_tom", "synth_drum", "reverse_cymbal", "guitar_fret_noise", "breath_noise", "seashore", "bird_tweet", "telephone_ring", "helicopter", "applause", "gunshot", "percussion"]; @@ -56,11 +57,13 @@ ABCJSWidget.prototype.render = function(parent,nextSibling) { var midi = ABCJS.synth.getMidiFile(renderedABC[0], { chordsOff: true, midiOutputType: "link" }); this.midiNode = this.document.createElement("div"); this.midiNode.innerHTML = midi; + this.midiNode.className = "tc-midi-download"; parent.insertBefore(this.midiNode,nextSibling); this.domNodes.push(this.midiNode); } if(renderedABC && this.renderMidi) { this.pNode2 = this.document.createElement("div"); + this.pNode2.className = "tc-playback-controls"; parent.insertBefore(this.pNode2,nextSibling); if(ABCJS.synth.supportsAudio()) { this.synthControl = new ABCJS.synth.SynthController();