-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnews-details.html
254 lines (228 loc) · 11.9 KB
/
news-details.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet" />
<!-- Fontawesome CSS-->
<link rel="stylesheet" href="fontawesome/css/fontawesome.css">
<link rel="stylesheet" href="fontawesome/css/solid.css">
<link rel="stylesheet" href="fontawesome/css/brands.css">
<!-- PagesCSS Common-->
<link href="css/common.css" rel="stylesheet"/>
<!-- JS Database-->
<script src="js/database.js"></script>
<link rel="icon" href="image/amaasicon.png" sizes="32x32">
<title>News Details</title>
<style>
.f-wd{
font-size: 12px;
color: #999999;
}
#tag{
color: #E0C389;
}
</style>
<script>
var url = new URL(document.URL);
var prop = new URLSearchParams(url.search);
if (!prop.has('pid'))
{
window.location = 'Error.html';
}
var id = prop.get('pid');
var list= news.filter(function (element) {
return element.id ==id;
})
if (list.length == 0)
window.location = 'Error.html';
window.addEventListener('load',function(e){
updateDetails();
});
function updateDetails(){
document.getElementById('title').innerHTML=list[0].title;
document.getElementById('news-details').innerHTML=`
<img src="image/${list[0].img}" alt="" id="nimg">
<h3 class="news-title mt-5 mb-1">${list[0].title}</h3>
<p class="f-wd my-3">By <span class="me-3" id="writer">${list[0].writer}</span><span id="date">${list[0].date}</span></p>
<p class=" my-3" id="description">${list[0].description}</p>
<p class="fw-bold my-3">Tags: <span id="tag">${list[0].tag}</span></p>
`;
}
</script>
</head>
<body>
<div class="continer-fluid bg-nav ">
<div class="container-lg p-0 p-lg-1">
<nav class="navbar navbar-expand-lg pe-0 py-0 ">
<a class="navbar-brand ms-3 mx-lg-0" href="index.html">
<img src="image/brand.png" class="logo-brand"/>
</a>
<div class="navbar-toggler menu-btn order-2" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation" >
<div class="menu-btn__burger"></div>
</div>
<div class="collapse navbar-collapse order-3 order-lg-1 p-0 " id="navbarNav">
<ul class="navbar-nav ms-auto d-flex justify-content-center align-items-center bg-md-nav py-1 py-lg-0">
<li class="nav-item">
<a class="nav-link nav-link-Header" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link nav-link-Header" href="about.html">About us</a>
</li>
<li class="nav-item">
<a class="nav-link nav-link-Header" href="projects.html">Projects</a>
</li>
<li class="nav-item">
<a class="nav-link nav-link-Header" href="gallery.html">Gallery</a>
</li>
<li class="nav-item">
<a class="nav-link nav-link-Header" href="news.html">News</a>
</li>
<li class="nav-item">
<a class="nav-link nav-link-Header" href="contact.html">Contact</a>
</li>
<li class="nav-item">
<a class="nav-link nav-link-Header" href="order.html">Place order</a>
</li>
</ul>
</div>
<div class="order-1 order-lg-2 ms-auto ms-lg-0 ">
<a class="nav-link nav-link-Header nav-link-lang" href="index-ar.html">العربية</a>
</div>
</nav>
</div>
</div>
<div class=" bg-scan">
<div class=" container-lg">
<nav class="pt-5" style="--bs-breadcrumb-divider: '>>';" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.html" class="breadcrumb-a">Home</a></li>
<li class="breadcrumb-item"><a href="news.html" class="breadcrumb-a">News</a></li>
<li class="breadcrumb-item active" id="title" aria-current="page"></li>
</ol>
</nav>
<h1 class="title">NEWS DETAILS</h1>
</div>
</div>
<div class=" bg-light-60">
<div class=" container-lg py-5">
<div class="row py-5" id="news-details">
</div>
</div>
</div>
<div class="container-fluid bg-footer pt-5">
<div class="container-lg mt-0 mt-lg-0 pt-0 pt-lg-0">
<div class="row pb-4">
<div class="col-lg-4 mt-5">
<a href="index.html"><img src="image/brand.png" class="logo-brand"/></a>
<div class="mt-3">
<p class="footer-company-desc">
Amas is a real estate development company to build and sell a variety of real estate with high quality, extended guarantees and competitive prices. We strive to achieve the highest structural specifications and select the best building materials to reach high community standards and gain consumer satisfaction.
</p>
</div>
</div>
<div class="col-lg-4 fw-bold mt-5 pe-5 ">
<h5 class="link-footer-parent"><span class="">USEFUL LINKS</span> </h5>
<div class="row row-cols-2 w-100">
<div class="col">
<ul class="nav flex-column ">
<li class="nav-item">
<a href="index.html" class="nav-link ms-0 mb-1 px-0 link-footer">Home</a>
</li>
<li class="nav-item">
<a href="about.html" class="nav-link ms-0 mb-1 px-0 link-footer">About us</a>
</li>
<li class="nav-item">
<a href="projects.html" class="nav-link ms-0 mb-1 px-0 link-footer">Projects</a>
</li>
<li class="nav-item">
<a href="gallery.html" class="nav-link ms-0 mb-1 px-0 link-footer">Gallery</a>
</li>
<li class="nav-item">
<a href="news.html" class="nav-link ms-0 mb-1 px-0 link-footer">News</a>
</li>
<li class="nav-item">
<a href="contact.html" class="nav-link ms-0 mb-1 px-0 link-footer">Contact us</a>
</li>
</ul>
</div>
<div class="col">
<ul class="nav flex-column ">
<li class="nav-item">
<a href="order.html" class="nav-link ms-0 mb-1 px-0 link-footer">Place order</a>
</li>
<li class="nav-item">
<a href="career.html" class="nav-link ms-0 mb-1 px-0 link-footer">Career</a>
</li>
<li class="nav-item">
<a href="faq.html" class="nav-link ms-0 mb-1 px-0 link-footer">FAQ</a>
</li>
<li class="nav-item">
<a href="privacy.html" class="nav-link ms-0 mb-1 px-0 link-footer">Privacy Policy</a>
</li>
<li class="nav-item">
<a href="terms.html" class="nav-link ms-0 mb-1 px-0 link-footer">Term use</a>
</li>
</ul>
</div>
</div>
</div>
<div class="col-lg-4 mt-5">
<h5 class="link-footer-parent"><span class="">Newsletter Subscribe</span> </h5>
<form id="footerform" class="">
<div class="">
<label for="emailtxt" class="form-label"></label>
<input type="text" class="form-control bg-transparent text-white py-2 px-2" placeholder="Enter Your E-mail" id="emailtxt" >
<div class="invalid-email"></div>
</div>
<button class="btn w-100 mt-3 btn-yellow text-white" type="submit">Subscription</button>
</form>
<div class="mt-4">
<div class="d-inline-block ms-1 me-3">
<a href="http://facebook.com/people/Amaas-Realestate/10007915978616" >
<i class="fa-brands fa-facebook-f footer-links"></i>
</a>
</div>
<div class="d-inline-block me-3">
<a href="https://twitter.com/amaasrealestate">
<i class="fa-brands fa-twitter footer-links"></i>
</a>
</div>
<div class="d-inline-block me-3">
<a href="https://api.whatsapp.com/message/UZV7GQTD6S7FA1">
<i class="fa-brands fa-whatsapp footer-links"></i>
</a>
</div>
<div class="d-inline-block me-3">
<a href="https://www.youtube.com/channel/UCKftYeW9JhMnSlUM8ORun6w">
<i class="fa-brands fa-youtube footer-links"></i>
</a>
</div>
<div class="d-inline-block me-3">
<a href="https://www.instagram.com/amaasrealestate/">
<i class="fa-brands fa-instagram footer-links"></i>
</a>
</div>
<div class="d-inline-block me-3">
<a href="https://www.linkedin.com/company/amaasrealestate/">
<i class="fa-brands fa-linkedin-in footer-links"></i>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="bg-footer text-center text-white fw-bold fs-12 py-4 footer-border-top">
All rights reserved to Amaas Company © 2022
</div>
<!-- Bootstrap JS-->
<script src="js/bootstrap.bundle.min.js"></script>
<!-- Pages JS Common-->
<script src="js/common.js"></script>
</body>
</html>