-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
103 lines (99 loc) · 3.22 KB
/
index.html
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
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./styles/main.css" />
<link rel="shortcut icon" href="./assets/fav.png" type="image/x-icon" />
<link
href="https://unpkg.com/[email protected]/css/boxicons.min.css"
rel="stylesheet"
/>
<title>BOX NEWS</title>
</head>
<body>
<header>
<nav>
<a href='#' onclick="fetchNews(backendURL)">
<h2 class="title">BOX NEWS</h2>
</a>
<ul class="nav-links">
<li>
<div class="search">
<form class="search-form">
<input
type="text"
class="search-input"
placeholder="Search News..."
required
/>
<button type="submit">
<img
class="magnifying-glass"
src="./assets/icons8-magnifying-glass-64.png"
alt="magnifying glass"
/>
</button>
</form>
</div>
</li>
<li>
<a href="#" onclick="fetchNews(backendURL,null,true)">Home</a>
</li>
<li><a href="./mytopics.html">My Topics</a></li>
<li><a href="./savednews.html">Saved News</a></li>
</ul>
<div class="nav-toggle">
<i class="bx bx-grid-alt bx-sm"></i>
</div>
</nav>
</header>
<main>
<div class="loader hide"></div>
<button id="myBtn" class="hide">Open Modal</button>
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close">×</span>
<p>Some text in the Modal..</p>
</div>
</div>
<div class="main-display">
<div class="topics">
<ul class="topics-list">
<li class="topic-item">
<a href="#" onclick="updateMainDisplay(event)">World</a>
</li>
<li class="topic-item">
<a href="#" onclick="updateMainDisplay(event)">US</a>
</li>
<li class="topic-item">
<a href="#" onclick="updateMainDisplay(event)">Politics</a>
</li>
<li class="topic-item">
<a href="#" onclick="updateMainDisplay(event)">Business</a>
</li>
<li class="topic-item">
<a href="#" onclick="updateMainDisplay(event)">Entertainment</a>
</li>
<li class="topic-item">
<a href="#" onclick="updateMainDisplay(event)">Sports</a>
</li>
<li class="topic-item">
<a href="#" onclick="updateMainDisplay(event)">Travel</a>
</li>
</ul>
</div>
<h1 class="title">HEADLINES</h1>
<ul class="display-list"></ul>
</div>
<div class="pagination">
<button id="prev"><</button>
<button id="next">></button>
</div>
</main>
<script src="./main.js"></script>
<script src="./pagination.js"></script>
</body>
</html>