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;
});

發表回覆

登入以回復