Skip to content

Commit

Permalink
put e e cummings in place
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemcdonald committed Mar 6, 2019
1 parent 6feb43d commit 4f2b951
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@

<p>
<a href="https://github.com/openai/gpt-2">GPT-2</a> with <a href="https://www.poetryfoundation.org/">top-40
poets</a>, and a few <a href="#" onclick="document.querySelector('#thanks').style.display = 'block'">donated favorites</a>. <a
href="https://github.com/kylemcdonald/gpt-2-poetry">Code</a> by <a href="https://twitter.com/kcimc/">@kcimc</a>
poets</a>, and a few <a href="#" onclick="document.querySelector('#thanks').style.display = 'block'">donated
favorites</a>. <a href="https://github.com/kylemcdonald/gpt-2-poetry">Code</a> by <a
href="https://twitter.com/kcimc/">@kcimc</a>
</p>

<p id='thanks' style='display:none'>
Expand Down Expand Up @@ -86,9 +87,7 @@
function update() {
let key = selectPoems.value;
let poem = poems[key];
// aboutElt.href = 'http://' + poem.url;
// authorElt.innerHTML = poem.author;
// titleElt.innerHTML = poem.title;
// console.log(poem.url);
poemElt.innerHTML = poem.poem.join('<br/>');

let seed = selectSeeds.value;
Expand All @@ -99,6 +98,7 @@
let n = elt.options.length;
let i = Math.floor(Math.random() * n);
elt.value = elt.options[i].value;
regenerate();
}

function regenerate() {
Expand All @@ -122,7 +122,9 @@
key
])
}
sortable.sort();
sortable.sort(function (a, b) {
return a[0].toLowerCase().localeCompare(b[0].toLowerCase());
});
sortable.forEach(item => {
let opt = document.createElement("option");
opt.text = item[0];
Expand Down

0 comments on commit 4f2b951

Please sign in to comment.