From dc8964a17cb6e25adb9e4e2173c2a42691e997d1 Mon Sep 17 00:00:00 2001 From: Torantulino Date: Fri, 17 Mar 2023 00:41:20 +0000 Subject: [PATCH] Adds output formatter for easy sharing on social media. --- Output Renderer/index.html | 24 +++++++++++++++++++ Output Renderer/script.js | 47 ++++++++++++++++++++++++++++++++++++++ Output Renderer/styles.css | 46 +++++++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 Output Renderer/index.html create mode 100644 Output Renderer/script.js create mode 100644 Output Renderer/styles.css diff --git a/Output Renderer/index.html b/Output Renderer/index.html new file mode 100644 index 00000000..f639ad51 --- /dev/null +++ b/Output Renderer/index.html @@ -0,0 +1,24 @@ + + + + + + + + + JSON Display + + + +
+

Entrepreneur-GPT Output

+
+
+
+
+
+
+ + + + \ No newline at end of file diff --git a/Output Renderer/script.js b/Output Renderer/script.js new file mode 100644 index 00000000..ebb676d1 --- /dev/null +++ b/Output Renderer/script.js @@ -0,0 +1,47 @@ +const jsonData = { + "command": + { + "name": "Commit to Long Term Memory", + "arguments": + { + "string": "1. AI-based Photo Editing Apps\n2. AI-Based Writing Tool\n3. Advertising Software\n4. AI Marketing Agency\n5. Recruitment Business App\n6. AI-powered Cybersecurity App\n7. Healthcare Startup\n8. Medical Equipment Business" + } + }, + "Thoughts": + { + "text": "Storing the ranking of potential AI-based businesses in Long Term Memory", + "reasoning": "To remember the ranked list and use it to guide the decision-making process in choosing the most suitable business opportunity", + "current long-term plan": "- Research potential businesses\n- Choose a suitable business\n- Develop and manage the business autonomously", + "critisism": "None at the moment" + } +}; + +function displayJsonData() { + const jsonDisplay = document.getElementById('json-display'); + let displayContent = ''; + + for (const key in jsonData) { + displayContent += `

${key}

'; + } + + jsonDisplay.innerHTML = displayContent; +} + +displayJsonData(); diff --git a/Output Renderer/styles.css b/Output Renderer/styles.css new file mode 100644 index 00000000..1180b4d4 --- /dev/null +++ b/Output Renderer/styles.css @@ -0,0 +1,46 @@ +body { + font-family: Arial, sans-serif; + background-color: #f4f4f4; +} + +.container { + max-width: 1250px; +} + +h1 { + color: #444; + margin-bottom: 30px; +} + +.json-display { + padding: 20px; + border-radius: 5px; + background-color: #ffffff; + box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); +} + +.json-display h2 { + margin-top: 0; + color: #333; + border-bottom: 1px solid #e0e0e0; + padding-bottom: 10px; +} + +.json-display ul { + list-style-type: none; + padding: 0; +} + +.json-display ul li { + padding: 5px 0; +} + +strong { + color: #007bff; +} + +.argument-box { + background: #007bff0a; + padding: 5px; + margin-top: 5px; + } \ No newline at end of file