Bandcamp Volume Bar

adds a volume bar to Bandcamp

< Bandcamp Volume Barについてのフィードバック

レート:不可 – スクリプトが動かない

§
投稿日: 2016/11/10

doesn't work, fix included

The four lines in the code:
$("#audioSource").volume

should be instead:
$("#audioSource")[0].volume

§
投稿日: 2016/11/10

additionally, the element isn't ready until the document is loaded, so the initial volume setting will generate an error. So change the first volume setting:

//Sexy Script!
$("#audioSource").volume = percentage/100;

to:
//Sexy Script!
$( document ).ready(function() {
$("#audioSource")[0].volume = percentage/100;
});

返信を投稿

返信を投稿するにはログインしてください。