${reponse.data.accountId}
+${reponse.data.symbol}
+${reponse.data.headquarters}
+${reponse.data.credits}
+${reponse.data.startingFaction}
+${reponse.data.shipCount}
+diff --git a/css/style.css b/css/style.css
index e69de29..aa39c4e 100644
--- a/css/style.css
+++ b/css/style.css
@@ -0,0 +1,5 @@
+canvas {
+ width: 50%;
+ border: 2px solid black;
+ border-radius: 5px;
+}
\ No newline at end of file
diff --git a/js/main.js b/js/main.js
index e69de29..ba6f6ff 100644
--- a/js/main.js
+++ b/js/main.js
@@ -0,0 +1,96 @@
+let token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiQU5OTk5VTEFYMTIyNSIsInZlcnNpb24iOiJ2Mi4xLjEiLCJyZXNldF9kYXRlIjoiMjAyMy0xMS0wNCIsImlhdCI6MTcwMDIyNDU5MSwic3ViIjoiYWdlbnQtdG9rZW4ifQ.r05mWtD5FjC4s6Td-ycmHdzL7C2s75lz3q7OBmWeCqUUZ1ejPsRGQRWJDPmIh1kAqO4D9FFs3GCTPZUn1KsnQ-xmDvsIi_mqC1gJV-Q0irI7gwfsGXbfLaVCXo-Q98C_QWRh-O_xkrbhJkCcvnwdEhZm7FnZ3PL4XXKrG0XNa98JrnmG0qlz0cv8V9Q0sSIwXZbvA9BrhuV8PK7_YzPc6LZuNqgPeKiX_B-tSIHHl6Sr1EzuydnczmuS-xKQnbhmcqnpaCXzQmJr7tA8KLgu70KqpPCvA8AI6PLmBlvPWtZ20RdzezqlBh6S9SrBzQ9R0zr_9RyJxq28ws2jnHpVPw";
+function initGame() {
+ const settings = {
+ async: true,
+ crossDomain: true,
+ url: 'https://api.spacetraders.io/v2/register',
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ Accept: 'application/json'
+ },
+ processData: false,
+ data: '{\n "faction": "COSMIC",\n "symbol": "ANNNNulax1225",\n "email": ""\n}'
+ };
+
+ $.ajax(settings).done(function (response) {
+ console.log(response);
+ });
+}
+
+function getAgent() {
+ const settings = {
+ async: true,
+ crossDomain: true,
+ url: 'https://api.spacetraders.io/v2/my/agent',
+ method: 'GET',
+ headers: {
+ Accept: 'application/json',
+ Authorization: `Bearer ${token}`
+ }
+ };
+ $.ajax(settings).done(function (reponse) {
+ $('.main-window').prepend(`
+ ${reponse.data.accountId} ${reponse.data.symbol} ${reponse.data.headquarters} ${reponse.data.credits} ${reponse.data.startingFaction} ${reponse.data.shipCount}