datamk commited on
Commit
677fdf0
·
verified ·
1 Parent(s): 9a5fa10

Upload 17 files

Browse files
data/news_sentiment.json CHANGED
The diff for this file is too large to render. See raw diff
 
data/sentiment_trends.json CHANGED
@@ -46,5 +46,17 @@
46
  {
47
  "time": "2026-04-04T22:20:01.546Z",
48
  "score": 0.5888480392156863
 
 
 
 
 
 
 
 
 
 
 
 
49
  }
50
  ]
 
46
  {
47
  "time": "2026-04-04T22:20:01.546Z",
48
  "score": 0.5888480392156863
49
+ },
50
+ {
51
+ "time": "2026-04-11T20:09:31.522Z",
52
+ "score": 0.8033737480231945
53
+ },
54
+ {
55
+ "time": "2026-04-11T20:10:01.066Z",
56
+ "score": 0.8010554089709763
57
+ },
58
+ {
59
+ "time": "2026-04-11T20:15:01.370Z",
60
+ "score": 0.7939778129952456
61
  }
62
  ]
fallback.mp4.mp4 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:31b57c4c62a54fb71fe2cc6faac4bd501a7d7cf34a8aa4cf8182e69e3f03b174
3
- size 8679354
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dff1806c2e8c7b1ea0d0c4d22e2055810f4413ff3529ed4e6b47ec6eced8a223
3
+ size 132
public/app.js CHANGED
@@ -57,11 +57,14 @@ function renderFeed() {
57
  if (currentFilter !== 'all') filtered = filtered.filter(n => n.sentiment.label === currentFilter);
58
  if (currentSource !== 'all') filtered = filtered.filter(n => n.source === currentSource);
59
  if (searchQuery) {
60
- const query = searchQuery.toLowerCase();
61
- filtered = filtered.filter(n =>
62
- n.title.toLowerCase().includes(query) ||
63
- n.source.toLowerCase().includes(query)
64
- );
 
 
 
65
  }
66
 
67
  // Filter out headlines with less than 5 words
 
57
  if (currentFilter !== 'all') filtered = filtered.filter(n => n.sentiment.label === currentFilter);
58
  if (currentSource !== 'all') filtered = filtered.filter(n => n.source === currentSource);
59
  if (searchQuery) {
60
+ const keywords = searchQuery.toLowerCase().split(',').map(k => k.trim()).filter(k => k !== '');
61
+ if (keywords.length > 0) {
62
+ filtered = filtered.filter(n => {
63
+ const title = n.title.toLowerCase();
64
+ const source = n.source.toLowerCase();
65
+ return keywords.some(k => title.includes(k) || source.includes(k));
66
+ });
67
+ }
68
  }
69
 
70
  // Filter out headlines with less than 5 words
public/index.html CHANGED
@@ -43,7 +43,7 @@
43
  <div class="header-main">
44
  <h2 class="support-link" onclick="openSupportModal()">❤ Support</h2>
45
  <div class="search-container">
46
- <input type="text" id="news-search" placeholder="Search news..." oninput="handleSearch(this.value)">
47
  </div>
48
  <div class="filter-controls">
49
  <button class="filter-btn active" data-sentiment="all"
 
43
  <div class="header-main">
44
  <h2 class="support-link" onclick="openSupportModal()">❤ Support</h2>
45
  <div class="search-container">
46
+ <input type="text" id="news-search" placeholder="Search (comma separated)..." oninput="handleSearch(this.value)">
47
  </div>
48
  <div class="filter-controls">
49
  <button class="filter-btn active" data-sentiment="all"
public/upi-qr.jpeg CHANGED

Git LFS Details

  • SHA256: 1b144b7345d8705f8711a366425782aff43e03dc073e7931525273a6e0a4b14a
  • Pointer size: 130 Bytes
  • Size of remote file: 53.8 kB

Git LFS Details

  • SHA256: 43094cac5c148e7e15223076524b52eef425d5358e35e851a6e0ecab4f09c7c7
  • Pointer size: 128 Bytes
  • Size of remote file: 130 Bytes