MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / modifyBadge

Function modifyBadge

docs/_static/js/script.js:33–38  ·  view source on GitHub ↗
(src, href)

Source from the content-addressed store, hash-verified

31
32 /* Modify src and href attrs of artifacts badge */
33 function modifyBadge(src, href) {
34 $('img[alt="download artifacts"]').each(function() {
35 this.src = src;
36 this.parentNode.href = href;
37 });
38 }
39 /* Initialize artifacts badge */
40 modifyBadge('./_static/images/artifacts-fetching.svg', '#');
41 /* Fetch latest buildId and construct artifacts badge */

Callers 1

script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected