Skip to content

Commit

Permalink
show license
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed May 1, 2024
1 parent 3a2050f commit 5a9dbbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
<div id="soundInfo">
<a target="_blank" class="shrink" id="bandLink"></a>
<div id="soundTime" class="shrink"><a target="_blank" id="soundLink"></a></div>
<a target="_blank" class="shrink" id="license"></a>
</div>
</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ define([
var soundLinkNode = misc.createTextNode(soundLinkElem);
var bandLinkElem = $("#bandLink");
var bandLinkNode = misc.createTextNode(bandLinkElem);
var licenseElem = $("#license");
var licenseNode = misc.createTextNode(licenseElem);
var soundTimeElem = $("#soundTime");
var lockElem = $("#toolbar .playlock");
var lockElemImg = $("#toolbar .playlock img");
Expand Down Expand Up @@ -1058,10 +1060,12 @@ define([
const trackLink = options.infoUrl || options.permalink_url || options.url;
setLinkOrHide(soundLinkElem, trackLink);
setLinkOrHide(bandLinkElem, options.url || options.user.permalink_url);
setLinkOrHide(licenseElem, options.licenseUrl);
//setLinkOrHide(soundcloudElem, trackLink);
setLinkOrHide(soundTimeElem, trackLink);
soundLinkNode.nodeValue = options.name || options.title || "";
bandLinkNode.nodeValue = options.author || options.user.username || "";
licenseNode.nodeValue = options.license || "";
if (s.cm) {
s.cm.refresh();
}
Expand Down

0 comments on commit 5a9dbbc

Please sign in to comment.