mirror of
https://github.com/cwinfo/yggdrasil-network.github.io.git
synced 2024-11-09 15:40:27 +00:00
Update builds.md
This commit is contained in:
parent
f4f89f5d30
commit
dd197fdb97
33
builds.md
33
builds.md
@ -23,39 +23,24 @@ json.then(function(res) {
|
|||||||
return res.json();
|
return res.json();
|
||||||
}).then(function (bins) {
|
}).then(function (bins) {
|
||||||
var links = document.createElement('p')
|
var links = document.createElement('p')
|
||||||
|
var ctllinks = document.createElement('p')
|
||||||
for (var idx in bins) {
|
for (var idx in bins) {
|
||||||
if (bin.path.includes("yggdrasilctl")) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
var bin = bins[idx]
|
var bin = bins[idx]
|
||||||
var link = document.createElement('a');
|
var link = document.createElement('a');
|
||||||
link.appendChild(document.createTextNode(bin.path));
|
link.appendChild(document.createTextNode(bin.path));
|
||||||
link.title = bin.path;
|
link.title = bin.path;
|
||||||
link.href = bin.url;
|
link.href = bin.url;
|
||||||
links.appendChild(link);
|
if (bin.path.includes("yggdrasilctl")) {
|
||||||
links.appendChild(document.createElement('br'));
|
ctllinks.appendChild(link);
|
||||||
|
ctllinks.appendChild(document.createElement('br'));
|
||||||
|
} else {
|
||||||
|
links.appendChild(link);
|
||||||
|
links.appendChild(document.createElement('br'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
document.getElementById("buildArtifactLinks").appendChild(links)
|
document.getElementById("buildArtifactLinks").appendChild(links)
|
||||||
|
document.getElementById("buildArtifactLinksCtl").appendChild(ctllinks)
|
||||||
})
|
})
|
||||||
.catch(err => { throw err });
|
.catch(err => { throw err });
|
||||||
|
|
||||||
json.then(function(res) {
|
|
||||||
return res.json();
|
|
||||||
}).then(function (bins) {
|
|
||||||
var links = document.createElement('p')
|
|
||||||
for (var idx in bins) {
|
|
||||||
if (!bin.path.includes("yggdrasilctl")) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
var bin = bins[idx]
|
|
||||||
var link = document.createElement('a');
|
|
||||||
link.appendChild(document.createTextNode(bin.path));
|
|
||||||
link.title = bin.path;
|
|
||||||
link.href = bin.url;
|
|
||||||
links.appendChild(link);
|
|
||||||
links.appendChild(document.createElement('br'));
|
|
||||||
}
|
|
||||||
document.getElementById("buildArtifactLinksCtl").appendChild(links)
|
|
||||||
})
|
|
||||||
.catch(err => { throw err });
|
.catch(err => { throw err });
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user