(src, href)
| 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 */ |