diff --git a/portfolio/pom.xml b/portfolio/pom.xml index 94d52f3..ece5086 100644 --- a/portfolio/pom.xml +++ b/portfolio/pom.xml @@ -7,7 +7,7 @@ portfolio 1 war - + 1.8 @@ -23,8 +23,25 @@ 4.0.1 provided - + + com.google.appengine + appengine-api-1.0-sdk + 1.9.59 + + + + com.google.code.gson + gson + 2.8.6 + + + + com.google.appengine + appengine-api-1.0-sdk + 1.9.59 + + - -

-

Click here to view content generated by a servlet.

-

Wanna see my resume?

-

Here's some cosply stuff

+ +
+

comments

+ +

+ +
+ + + + +
+
+

Wanna see my resume?

+

Here's some cosply stuff

diff --git a/portfolio/src/main/webapp/script.js b/portfolio/src/main/webapp/script.js index cc61827..95777e5 100644 --- a/portfolio/src/main/webapp/script.js +++ b/portfolio/src/main/webapp/script.js @@ -16,21 +16,32 @@ * Adds a random greeting to the page. */ - import "nes.css/css/nes.min.css"; - function randMessage() { const msgList = ['“With a successful attack roll, the wizard maintains the thief in surfboard position.”', - 'DM: So, what are your character’s flaws? Player: Acid reflux.', - 'That’s too indiscriminate. We should go with the rampaging bear.', - 'We’ve managed to teach the robot about the most important human emotion: Humiliation.', - '“Do you have a permit for that facial hair?”', - 'Cleric: “Everybody chill, it’s totes God’s will.”', - 'Did asterisks exist in 2006?']; + 'DM: So, what are your character’s flaws? Player: Acid reflux.', + 'That’s too indiscriminate. We should go with the rampaging bear.', + 'We’ve managed to teach the robot about the most important human emotion: Humiliation.', + '“Do you have a permit for that facial hair?”', + 'Cleric: “Everybody chill, it’s totes God’s will.”', + 'Did asterisks exist in 2006?']; const msg = msgList[Math.floor(Math.random() * msgList.length)]; const msgContainer = document.getElementById('message-container'); msgContainer.innerText = msg; } +function servlet() { + console.log("servlet has been called") + fetch('/data').then(response => response.text())//fetch from data + .then(text => { + console.log(text); + parsed = JSON.parse(text); + parsed.reverse(); + console.log(parsed); + + parsed = parsed.join('\n'); + document.getElementById('quote-container').innerText = parsed; + }); +} function addRandomGreeting() { const greetings = @@ -42,4 +53,4 @@ function addRandomGreeting() { // Add it to the page. const greetingContainer = document.getElementById('greeting-container'); greetingContainer.innerText = greeting; -} +} \ No newline at end of file diff --git a/portfolio/src/main/webapp/style.css b/portfolio/src/main/webapp/style.css index 09883e4..c2c2bbd 100644 --- a/portfolio/src/main/webapp/style.css +++ b/portfolio/src/main/webapp/style.css @@ -24,3 +24,15 @@ align-items: center; justify-content: center; } + +p{ + text-align: center; +} + +h1{ + text-align: center; +} + +textarea{ + text-align: center; +} \ No newline at end of file