From 5854789a221021b0dd1a03567aacfba3ef00fda6 Mon Sep 17 00:00:00 2001 From: Jade Kaleel Date: Tue, 23 Mar 2021 11:45:47 +0000 Subject: [PATCH 1/2] add poem splitter to js file --- src/main/webapp/script.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/main/webapp/script.js diff --git a/src/main/webapp/script.js b/src/main/webapp/script.js new file mode 100644 index 0000000..53c2d47 --- /dev/null +++ b/src/main/webapp/script.js @@ -0,0 +1,5 @@ +//Splits string containing poem into array of lines +function splitPoem(poem) { + var lines = poem.split("\n"); + return lines; +}; \ No newline at end of file From 8ac4473efe57a927e090e0dc4f1d81a6303e6b35 Mon Sep 17 00:00:00 2001 From: Jade Kaleel Date: Tue, 23 Mar 2021 11:58:49 +0000 Subject: [PATCH 2/2] add script to index file --- src/main/webapp/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 818a6b2..3e02842 100644 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -8,6 +8,7 @@ content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"> + The Poem Critic