From dd197fdb9753ffdd1ee5e379bc75c6e3c791fef9 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 17 Oct 2018 16:55:35 +0100 Subject: [PATCH] Update builds.md --- builds.md | 33 +++++++++------------------------ 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/builds.md b/builds.md index cbfeb93..c6e4ae9 100644 --- a/builds.md +++ b/builds.md @@ -23,39 +23,24 @@ json.then(function(res) { return res.json(); }).then(function (bins) { var links = document.createElement('p') + var ctllinks = 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')); + if (bin.path.includes("yggdrasilctl")) { + ctllinks.appendChild(link); + ctllinks.appendChild(document.createElement('br')); + } else { + links.appendChild(link); + links.appendChild(document.createElement('br')); + } } document.getElementById("buildArtifactLinks").appendChild(links) + document.getElementById("buildArtifactLinksCtl").appendChild(ctllinks) }) .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 });