From 6833f2ab78d707465fcbe8445bffe0deb9e1de5b Mon Sep 17 00:00:00 2001
From: Unknown <53575465+EndlessEevee@users.noreply.github.com>
Date: Fri, 17 May 2024 09:12:47 -0700
Subject: [PATCH] o
---
index.html | 33 +++++++++++++++++++++++++++++++++
scripts.js | 35 +++++++++++++++++++++++++++++++++++
style.css | 45 +++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 113 insertions(+)
create mode 100644 index.html
create mode 100644 scripts.js
create mode 100644 style.css
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..341e32f
--- /dev/null
+++ b/index.html
@@ -0,0 +1,33 @@
+
+
+
+
+
+ Self-Learning AI Website
+
+
+
+
+ Welcome to the Self-Learning AI Website
+
+
+
+ Content from teamparadise1165.com
+ Loading content...
+
+
+
+
+
+
diff --git a/scripts.js b/scripts.js
new file mode 100644
index 0000000..52c680d
--- /dev/null
+++ b/scripts.js
@@ -0,0 +1,35 @@
+document.addEventListener("DOMContentLoaded", function () {
+ // Fetch and display content from teamparadise1165.com
+ fetch("https://teamparadise1165.com")
+ .then((response) => response.text())
+ .then((data) => {
+ document.getElementById("content-container").innerHTML = data;
+ })
+ .catch((error) => {
+ document.getElementById("content-container").innerHTML =
+ "Failed to load content.";
+ console.error("Error fetching content:", error);
+ });
+
+ // Chat functionality
+ const chatInput = document.getElementById("chat-input");
+ const sendButton = document.getElementById("send-button");
+ const chatOutput = document.getElementById("chat-output");
+
+ sendButton.addEventListener("click", function () {
+ const message = chatInput.value;
+ if (message.trim()) {
+ const userMessage = document.createElement("div");
+ userMessage.textContent = "You: " + message;
+ chatOutput.appendChild(userMessage);
+ chatInput.value = "";
+
+ // Simulate AI response
+ setTimeout(() => {
+ const aiMessage = document.createElement("div");
+ aiMessage.textContent = "AI: This is a simulated response.";
+ chatOutput.appendChild(aiMessage);
+ }, 1000);
+ }
+ });
+});
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..b633194
--- /dev/null
+++ b/style.css
@@ -0,0 +1,45 @@
+body {
+ font-family: Arial, sans-serif;
+ margin: 0;
+ padding: 0;
+ background-color: #f4f4f4;
+}
+header {
+ background-color: #333;
+ color: #fff;
+ padding: 10px 0;
+ text-align: center;
+}
+main {
+ padding: 20px;
+}
+#scraped-content,
+#chat {
+ margin-bottom: 20px;
+ background-color: #fff;
+ padding: 20px;
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
+}
+#chat-container {
+ display: flex;
+ flex-direction: column;
+}
+#chat-output {
+ flex: 1;
+ min-height: 200px;
+ border: 1px solid #ccc;
+ padding: 10px;
+ margin-bottom: 10px;
+ overflow-y: auto;
+}
+#chat-input {
+ padding: 10px;
+ margin-bottom: 10px;
+}
+#send-button {
+ padding: 10px;
+ background-color: #333;
+ color: #fff;
+ border: none;
+ cursor: pointer;
+}