-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
95 lines (83 loc) · 3.68 KB
/
index.html
File metadata and controls
95 lines (83 loc) · 3.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta tags for character encoding and viewport configuration -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Icons for various devices and browsers -->
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png" />
<link rel="shortcut icon" type="image/png" href="favicon.png" />
<link rel="manifest" href="site.webmanifest" />
<!-- Page title and meta information for SEO -->
<title>FakeNewsStream</title>
<meta name="description" content="Get the latest stream of fake news." />
<meta name="keywords" content="fake, news, stream, streaming, latest, updates, redpanda, live, real-time" />
<meta name="author" content="Chandler Mayo" />
<!-- Link to the external stylesheet -->
<link rel="stylesheet" href="styles.css" />
<!-- Include Chart.js library from CDN -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
<div id="app">
<!-- Header section with logo and title -->
<header>
<a href="https://www.redpanda.com/" target="_blank">
<img src="FakeNewsStream.png" alt="FakeNewsStream Logo" style="width: 100%; max-width: 200px;" />
</a>
<h1 style="text-wrap: balance;">Live Streaming Fake News</h1>
</header>
<!-- Main content section -->
<main>
<!-- Loading section displayed while waiting for data -->
<section id="loadingData" class="card">
<h3>Waiting for fake news data...</h3>
</section>
<!-- Section for displaying the latest fake news -->
<section id="latestFakeNews" class="card" hidden>
<h2>Latest Fake News</h2>
<h3><span id="newsTitle"></span></h3>
<p>Fake Score: <span id="newsFakeScore"></span></p>
<p>
URL:
<a id="newsURL" href="#" target="_blank"></a>
</p>
<p id="newsNotesWhy">
Reason: <span id="newsReason"></span>
</p>
<!-- Chart container where the chart will be injected -->
<div id="chartContainer">
<hr class="rounded">
<h2>How fake is the news today?</h2>
<canvas id="fakeOMeterChart"></canvas>
</div>
</section>
<!-- Section for displaying a stream of other recent fake news -->
<section id="superFakeStream" class="card" hidden>
<h2>Other Recent Fake News</h2>
<div id="superFakeStreamContainer">
<!-- Additional fake news cards will be dynamically injected here via JavaScript -->
</div>
</section>
<!-- Section for displaying "maybe fake" news items -->
<section id="maybeFakeStream" class="card" hidden>
<h2>The Maybe Fake News</h2>
<div id="maybeFakeStreamContainer">
<!-- Additional maybe fake news cards will be dynamically injected here via JavaScript -->
</div>
</section>
<!-- Footer section -->
<footer id="footer">
<p>
<pre>
Made with ❤️ by <a href="http://chandlermayo.com" target="_blank">Chandler Mayo</a>
</pre>
</p>
</footer>
</main>
</div>
<!-- Link to external JavaScript file -->
<script src="script.js"></script>
</body>
</html>