View | Details | Raw Unified | Return to bug 34613
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/lib/verovio/midiplayer.js (-5 / +10 lines)
Lines 377-389 function runConversion() { Link Here
377
        };
377
        };
378
378
379
        // Create the player
379
        // Create the player
380
        var play_button = $("<a class=\"icon play\" id=\"midiPlayer_play\"></a>");
381
        play_button.on("click",play);
382
        var pause_button = $("<a class=\"icon pause\" id=\"midiPlayer_pause\"></a>");
383
        pause_button.on("click",pause);
384
        var stop_button = $("<a class=\"icon stop\" id=\"midiPlayer_stop\"></a>");
385
        stop_button.on("click",stop);
380
        this.append("<div id=\"midiPlayer_div\"></div>");
386
        this.append("<div id=\"midiPlayer_div\"></div>");
381
        $("#midiPlayer_div").append("<div id=\"midiPlayer_playingTime\">0:00</div>")
387
        $("#midiPlayer_div").append("<div id=\"midiPlayer_playingTime\">0:00</div>")
382
            .append("<div id=\"midiPlayer_bar\"><div id=\"midiPlayer_progress\"></div></div>")
388
            .append("<div id=\"midiPlayer_bar\"><div id=\"midiPlayer_progress\"></div></div>")
383
            .append("<div id=\"midiPlayer_totalTime\">0:00</div>")
389
            .append("<div id=\"midiPlayer_totalTime\">0:00</div>")
384
            .append("<a class=\"icon play\" id=\"midiPlayer_play\" onclick=\"play()\"></a>")
390
            .append(play_button)
385
            .append("<a class=\"icon pause\" id=\"midiPlayer_pause\" onclick=\"pause()\"></a>")
391
            .append(pause_button)
386
            .append("<a class=\"icon stop\" id=\"midiPlayer_stop\" onclick=\"stop()\"></a>");
392
            .append(stop_button);
387
393
388
        $("#midiPlayer_div").css("width", options.width + 200);
394
        $("#midiPlayer_div").css("width", options.width + 200);
389
        $("#midiPlayer_bar").css("width", options.width);
395
        $("#midiPlayer_bar").css("width", options.width);
Lines 436-439 function runConversion() { Link Here
436
        return;
442
        return;
437
    };
443
    };
438
}
444
}
439
(jQuery));
445
(jQuery));
440
- 

Return to bug 34613