Spaces:
Runtime error
Runtime error
Commit
·
1261d76
1
Parent(s):
95bc175
Update templates/index.html
Browse files- templates/index.html +24 -23
templates/index.html
CHANGED
|
@@ -2,32 +2,18 @@
|
|
| 2 |
<html>
|
| 3 |
|
| 4 |
<head>
|
| 5 |
-
<title>
|
| 6 |
<meta charset="UTF-8">
|
| 7 |
-
<meta name="description" content="This is a simple webpage that is included in my Twitter
|
| 8 |
<link rel="stylesheet" type="text/css" href="../static/style.css">
|
| 9 |
<link rel="shortcut icon" type="image/x-icon" href="../static/tweepy.ico">
|
| 10 |
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
| 11 |
-
<style>
|
| 12 |
-
.iframe-container {
|
| 13 |
-
display: flex;
|
| 14 |
-
flex-wrap: wrap;
|
| 15 |
-
justify-content: center;
|
| 16 |
-
align-items: center;
|
| 17 |
-
margin: 20px auto;
|
| 18 |
-
max-width: 1200px;
|
| 19 |
-
}
|
| 20 |
|
| 21 |
-
.iframe-container iframe {
|
| 22 |
-
margin: 10px;
|
| 23 |
-
}
|
| 24 |
-
</style>
|
| 25 |
</head>
|
| 26 |
|
| 27 |
<body>
|
| 28 |
<div class="page">
|
| 29 |
<h1>My Twitter Sentiment API Webpage</h1>
|
| 30 |
-
<p>This is a simple webpage that is included in my Twitter Sentiment API project.</p>
|
| 31 |
<div class="form">
|
| 32 |
<label for="account">Choose the Twitter account you'd like to generate a response to your input:</label>
|
| 33 |
<select name="account" id="account">
|
|
@@ -43,14 +29,29 @@
|
|
| 43 |
<button id="generate">Generate</button>
|
| 44 |
<textarea id="output" placeholder="Generated text will appear here..."></textarea>
|
| 45 |
</div>
|
| 46 |
-
<div
|
| 47 |
-
<
|
| 48 |
-
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
<div id="outer">
|
| 52 |
-
<h2>Twitter Account Analysis</h2>
|
| 53 |
-
|
| 54 |
<div class="inner">
|
| 55 |
|
| 56 |
<p align="center"><iframe src="/examples1" width=850 height="450" frameborder="0"></iframe></p>
|
|
@@ -65,6 +66,6 @@
|
|
| 65 |
|
| 66 |
|
| 67 |
<script src="../static/main.js"></script>
|
| 68 |
-
|
| 69 |
|
| 70 |
</html>
|
|
|
|
| 2 |
<html>
|
| 3 |
|
| 4 |
<head>
|
| 5 |
+
<title>Twitter Accounts</title>
|
| 6 |
<meta charset="UTF-8">
|
| 7 |
+
<meta name="description" content="This is a simple webpage that is included in my Twitter Account Project">
|
| 8 |
<link rel="stylesheet" type="text/css" href="../static/style.css">
|
| 9 |
<link rel="shortcut icon" type="image/x-icon" href="../static/tweepy.ico">
|
| 10 |
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
</head>
|
| 13 |
|
| 14 |
<body>
|
| 15 |
<div class="page">
|
| 16 |
<h1>My Twitter Sentiment API Webpage</h1>
|
|
|
|
| 17 |
<div class="form">
|
| 18 |
<label for="account">Choose the Twitter account you'd like to generate a response to your input:</label>
|
| 19 |
<select name="account" id="account">
|
|
|
|
| 29 |
<button id="generate">Generate</button>
|
| 30 |
<textarea id="output" placeholder="Generated text will appear here..."></textarea>
|
| 31 |
</div>
|
| 32 |
+
<div id="form">
|
| 33 |
+
<div id="tweets">
|
| 34 |
+
<h2>Latest Tweets (Live)</h2>
|
| 35 |
+
<p><i>Just bought Twitter. It's free speech time!</i> - <i>2023-05-14</i></p>
|
| 36 |
+
<p><i>Tesla is now accepting Dogecoin as payment.</i> - <i>2023-05-15</i></p>
|
| 37 |
+
<p><i>I'm sending a rocket to Mars!</i> - <i>2023-05-16</i></p>
|
| 38 |
+
<p><i>I'm building a brain-computer interface.</i> - <i>2023-05-17</i></p>
|
| 39 |
+
<p><i>I'm starting a new company to colonize the Moon.</i> - <i>2023-05-18</i></p>
|
| 40 |
+
</div>
|
| 41 |
+
|
| 42 |
+
<div id="summary">
|
| 43 |
+
<button id="generate-summary">Generate Summary</button>
|
| 44 |
+
<textarea id="output-summary" placeholder="Generated text will appear here..."></textarea>
|
| 45 |
+
</div>
|
| 46 |
</div>
|
| 47 |
+
|
| 48 |
+
<div class="inner">
|
| 49 |
+
<h2>Twitter Account Info (Live)</h2>
|
| 50 |
+
<iframe src="/accounts" width=850 height="200" frameborder="0"></iframe>
|
| 51 |
+
</div>
|
| 52 |
+
|
| 53 |
<div id="outer">
|
| 54 |
+
<h2>Twitter Account Analysis (Historical)</h2>
|
|
|
|
| 55 |
<div class="inner">
|
| 56 |
|
| 57 |
<p align="center"><iframe src="/examples1" width=850 height="450" frameborder="0"></iframe></p>
|
|
|
|
| 66 |
|
| 67 |
|
| 68 |
<script src="../static/main.js"></script>
|
| 69 |
+
|
| 70 |
|
| 71 |
</html>
|