Spaces:
Running
Running
Update index.html
Browse files- index.html +68 -19
index.html
CHANGED
|
@@ -1,19 +1,68 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<title>Ask AI - Powered by Puter</title>
|
| 6 |
+
<script src="https://js.puter.com/v2/"></script>
|
| 7 |
+
<script src="script.js" defer></script>
|
| 8 |
+
<style>
|
| 9 |
+
body {
|
| 10 |
+
font-family: Arial, sans-serif;
|
| 11 |
+
background: #f5f7fa;
|
| 12 |
+
padding: 40px;
|
| 13 |
+
text-align: center;
|
| 14 |
+
}
|
| 15 |
+
h1 {
|
| 16 |
+
color: #333;
|
| 17 |
+
}
|
| 18 |
+
#chat-box {
|
| 19 |
+
max-width: 500px;
|
| 20 |
+
margin: 0 auto;
|
| 21 |
+
background: #fff;
|
| 22 |
+
padding: 30px;
|
| 23 |
+
border-radius: 15px;
|
| 24 |
+
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
|
| 25 |
+
}
|
| 26 |
+
input[type="text"] {
|
| 27 |
+
width: 80%;
|
| 28 |
+
padding: 10px;
|
| 29 |
+
font-size: 16px;
|
| 30 |
+
border: 2px solid #ccc;
|
| 31 |
+
border-radius: 10px;
|
| 32 |
+
margin-bottom: 20px;
|
| 33 |
+
}
|
| 34 |
+
button {
|
| 35 |
+
padding: 10px 20px;
|
| 36 |
+
background: #4CAF50;
|
| 37 |
+
color: white;
|
| 38 |
+
border: none;
|
| 39 |
+
border-radius: 10px;
|
| 40 |
+
font-size: 16px;
|
| 41 |
+
cursor: pointer;
|
| 42 |
+
}
|
| 43 |
+
button:hover {
|
| 44 |
+
background: #45a049;
|
| 45 |
+
}
|
| 46 |
+
#response {
|
| 47 |
+
margin-top: 30px;
|
| 48 |
+
padding: 20px;
|
| 49 |
+
background: #e3f2fd;
|
| 50 |
+
border-left: 5px solid #2196F3;
|
| 51 |
+
border-radius: 10px;
|
| 52 |
+
font-size: 17px;
|
| 53 |
+
color: #333;
|
| 54 |
+
text-align: left;
|
| 55 |
+
white-space: pre-line;
|
| 56 |
+
}
|
| 57 |
+
</style>
|
| 58 |
+
</head>
|
| 59 |
+
<body>
|
| 60 |
+
<div id="chat-box">
|
| 61 |
+
<h1>Ask AI Anything</h1>
|
| 62 |
+
<input type="text" id="userInput" placeholder="Type your question here..." />
|
| 63 |
+
<br>
|
| 64 |
+
<button onclick="askAI()">Submit</button>
|
| 65 |
+
<div id="response"></div>
|
| 66 |
+
</div>
|
| 67 |
+
</body>
|
| 68 |
+
</html>
|