-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
384 lines (381 loc) · 30.8 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
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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Netflix</title>
<link rel="shortcut icon" href="https://www.netflix.com/in/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="./styles.css">
<link rel="stylesheet" href="./aos/aos.css">
<script src="aos/aos.js"></script>
</head>
<body>
<!---Header Section---->
<div class="header">
<nav>
<img src="images/Netflix.png" alt="logo" class="logo">
<div>
<span class="dropdown">
<button onclick="toggleDropdown()" class="language-btn dropbtn">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-translate" viewBox="0 0 16 16" style="align-items: center;">
<path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286zm1.634-.736L5.5 3.956h-.049l-.679 2.022z"/>
<path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zm7.138 9.995q.289.451.63.846c-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6 6 0 0 1-.415-.492 2 2 0 0 1-.94.31"/>
</svg>English ⯆
</button>
<div id="myDropdown" class="dropdown-content">
<a href="#" onclick="changeLanguage('en')">English</a>
<a href="#" onclick="changeLanguage('hi')">Hindi</a>
</div>
</span>
<button class="red-btn"><a href="sign_in.html">Sign in</a></button>
</div>
</nav>
<div class="header-content">
<h1 class="header-title">Unlimited Movies, TV Shows & more.</h1>
<h3>Watch anywhere. Cancel anytime.</h3>
<p>Ready to watch? Enter your email to create or restart your membership.</p>
<form class="email-signup" id="emailForm">
<input type="email" placeholder="Email address" required id="email" onblur="validateEmail()">
<button type="submit" onclick="click_function(value)">Get Started </button>
</form>
</div>
</div>
<!--Header section End-->
<!--Features Box-->
<div class="features-box">
<div class="row_1st card-1-padding" data-aos="zoom-in-up" data-aos-duration="2000">
<div class="text_column padding">
<h2 class="feature-title">Enjoy on your TV,</h2>
<p>Watch on smart TVs, PlayStation, Xbox, Chromecast, Apple TV, Blu-ray players and more.</p>
</div>
<div class="img_column card-1">
<img src="images/feature-1.png" alt="">
<video class="video-1" autoplay="" playsinline="" muted="" loop="" <source src="videos/video2.m4v" type="video/mp4"></video>
</div>
</div>
<div class="row_1st" data-aos="fade-right" data-aos-duration="2000">
<div class="img_column">
<img src="images/feature-2.png" alt="">
</div>
<div class="text_column">
<h2 class="feature-title">Download your shows to watch offline</h2>
<p>Save your favourites easily and always have something to watch.</p>
</div>
</div>
<div class="row_1st card-3-padding" data-aos="flip-left" data-aos-duration="2000">
<div class="text_column">
<h2 class="feature-title">Watch everywhere</h2>
<p>Stream unlimited movies and TV shows on your phone, tablet, laptop, and TV.</p>
</div>
<div class="img_column card-3">
<img src="images/feature-3.png" alt="">
<video class="video-1" autoplay="" playsinline="" muted="" loop="" <source src="videos/video-devices-in.m4v" type="video/mp4"></video>
</div>
</div>
<div class="row_1st" data-aos="slide-up" data-aos-duration="2000">
<div class="img_column">
<img src="images/feature-4.png" alt="">
</div>
<div class="text_column">
<h2 class="feature-title">Create profiles for kids</h2>
<p>Send children on adventures with their favourite characters in a space made just for them—free with your membership.</p>
</div>
</div>
</div>
<!--Features Box End-->
<!--FAQ Sections-->
<div class="faq-box">
<h2>Frequently Asked Question</h2>
<ul class="accordion">
<li>
<input type="radio" name="accordion" id="first">
<label for="first">What is Netflix ?</label>
<div class="content">
<p>Netflix is a streaming service that offers a wide variety of award-winning TV shows, movies, anime, documentaries and more – on thousands of internet-connected devices.
You can watch as much as you want, whenever you want, without a single ad – all for one low monthly price. There's always something new to discover, and new TV shows and movies are added every week!</p>
</div>
</li>
<li>
<input type="radio" name="accordion" id="second">
<label for="second">How much does Netflix cost ?</label>
<div class="content">
<p>Watch Netflix on your smartphone, tablet, Smart TV, laptop, or streaming device, all for one fixed monthly fee. Plans range from ₹149 to ₹649 a month. No extra costs, no contracts.</p>
</div>
</li>
<li>
<input type="radio" name="accordion" id="third">
<label for="third">Where Can I watch ?</label>
<div class="content">
<p>Watch anywhere, anytime. Sign in with your Netflix account to watch instantly on the web at netflix.com from your personal computer or on any internet-connected device that offers the Netflix app, including smart TVs, smartphones, tablets, streaming media players and game consoles.
You can also download your favourite shows with the iOS, Android, or Windows 10 app. Use downloads to watch while you're on the go and without an internet connection. Take Netflix with you anywhere.</p>
</div>
</li>
<li>
<input type="radio" name="accordion" id="fourth">
<label for="fourth">How do I cancel ?</label>
<div class="content">
<p>Netflix is flexible. There are no annoying contracts and no commitments. You can easily cancel your account online in two clicks. There are no cancellation fees – start or stop your account anytime.</p>
</div>
</li>
<li>
<input type="radio" name="accordion" id="fifth">
<label for="fifth">What can I watch on Netflix ?</label>
<div class="content">
<p>Netflix has an extensive library of feature films, documentaries, TV shows, anime, award-winning Netflix originals, and more. Watch as much as you want, anytime you want.</p>
</div>
</li>
<li>
<input type="radio" name="accordion" id="sixth">
<label for="sixth">Is Netflix good for Kids ?</label>
<div class="content">
<p>The Netflix Kids experience is included in your membership to give parents control while kids enjoy family-friendly TV shows and films in their own space.
Kids profiles come with PIN-protected parental controls that let you restrict the maturity rating of content kids can watch and block specific titles you don’t want kids to see.</p>
</div>
</li>
</ul>
<small>
<p class="header-text">Ready to watch? Enter your email to create or restart your membership.</p>
</small>
<form class="email-signup">
<input type="email" placeholder="Email address" required>
<button type="submit">Get Started </button>
</form>
</div>
<!--FAQ Sections End-->
<!---Footer Start-->
<div class="footer">
<h3>Questions ? Call 000-6394-8738</h3>
<div class="row_1st">
<div class="row_2nd">
<span class="col">
<a href="#">FAQ</a>
<a href="#">Investor Relations</a>
<a href="#">Privacy</a>
<a href="#">Speed Test</a>
</span>
<span class="col">
<a href="#">Help Centre</a>
<a href="#">Jobs</a>
<a href="#">Cookie Preferences</a>
<a href="#">Legal Notice</a>
</span>
</div>
<div class="row_2nd">
<div class="col">
<a href="#">Account</a>
<a href="#">Ways to Watch</a>
<a href="#">Corporate Information</a>
<a href="#">Only on Netflix</a>
</div>
<div class="col">
<a href="#">Media Centre</a>
<a href="#">Terms of Use</a>
<a href="#">Contact Us</a>
</div>
</div>
</div>
<button onclick="toggleDropdown()" class="language-btn dropbtn"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-translate" viewBox="0 0 16 16" style="align-items: center;">
<path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286zm1.634-.736L5.5 3.956h-.049l-.679 2.022z"/>
<path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zm7.138 9.995q.289.451.63.846c-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6 6 0 0 1-.415-.492 2 2 0 0 1-.94.31"/>
</svg>English ⯆
</button>
<div id="myDropdown2" class="dropdown-content">
<a href="#" onclick="changeLanguage('en')">English</a>
<a href="#" onclick="changeLanguage('hi')">Hindi</a>
</div>
<p class="row-p">Netflix India</p>
</div>
<!---Footer End-->
<script lang="JavaScript">
AOS.init();
function validateEmail() {
// Get the email input value and element
const emailInput = document.getElementById('email');
const emailValue = emailInput.value;
// Check if the message div already exists
let messageElement = document.getElementById(':r1:');
if (emailValue.includes('@') && emailValue.includes('.')) {
// Remove the message div if it exists and the email is valid
if (messageElement) {
messageElement.remove();
}
// Add valid class to email input and remove invalid class
emailInput.classList.add('valid');
emailInput.classList.remove('invalid');
} else {
if (!messageElement) {
// Create the message div if it does not exist
messageElement = document.createElement('div');
messageElement.id = ':r1:';
messageElement.setAttribute('data-uia', 'field-email+validationMessage');
messageElement.className = 'default-ltr-cache-0 ea3diy30';
// Apply inline styles to align left and make text red
messageElement.style.textAlign = 'left';
messageElement.style.color = 'red';
// Create the SVG element
const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
svg.setAttribute('fill', 'none');
svg.setAttribute('width', '16');
svg.setAttribute('height', '16');
svg.setAttribute('viewBox', '0 0 16 16');
svg.setAttribute('role', 'img');
svg.setAttribute('data-icon', 'CircleXSmall');
svg.setAttribute('aria-hidden', 'true');
svg.className = 'default-ltr-cache-0 e1vkmu651';
// Create the path element for the SVG
const path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
path.setAttribute('fill-rule', 'evenodd');
path.setAttribute('clip-rule', 'evenodd');
path.setAttribute('d', 'M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM4.46967 5.53033L6.93934 8L4.46967 10.4697L5.53033 11.5303L8 9.06066L10.4697 11.5303L11.5303 10.4697L9.06066 8L11.5303 5.53033L10.4697 4.46967L8 6.93934L5.53033 4.46967L4.46967 5.53033Z');
path.setAttribute('fill', 'currentColor');
// Append path to SVG
svg.appendChild(path);
// Append SVG to messageElement
messageElement.appendChild(svg);
// Set the error message text
messageElement.appendChild(document.createTextNode('Email is required.'));
// Append the messageElement after the form
document.getElementById('emailForm').insertAdjacentElement('afterend', messageElement);
} else {
// Update the message based on the email input
if (!emailValue.includes('@')) {
if (emailValue.includes('.')) {
messageElement.textContent = 'Please enter a valid email';
} else {
messageElement.textContent = 'Email is required';
}
} else {
messageElement.textContent = 'Please enter a valid email';
}
}
// Add the invalid class to email input and remove valid class
emailInput.classList.add('invalid');
emailInput.classList.remove('valid');
}
}
// Define translations
const translations = {
'en': {
'header-title': 'Unlimited Movies, TV Shows & more.',
'header-subtitle': 'Watch anywhere. Cancel anytime.',
'header-text': 'Ready to watch? Enter your email to create or restart your membership.',
'feature-1-title': 'Enjoy on your TV,',
'feature-1-text': 'Watch on smart TVs, PlayStation, Xbox, Chromecast, Apple TV, Blu-ray players and more.',
'feature-2-title': 'Download your shows to watch offline',
'feature-2-text': 'Save your favourites easily and always have something to watch.',
'feature-3-title': 'Watch everywhere',
'feature-3-text': 'Stream unlimited movies and TV shows on your phone, tablet, laptop, and TV.',
'feature-4-title': 'Create profiles for kids',
'feature-4-text': 'Send children on adventures with their favourite characters in a space made just for them—free with your membership.',
'faq-title': 'Frequently Asked Question',
'faq-1-question': 'What is Netflix ?',
'faq-1-answer': 'Netflix is a streaming service that offers a wide variety of award-winning TV shows, movies, anime, documentaries and more – on thousands of internet-connected devices. You can watch as much as you want, whenever you want, without a single ad – all for one low monthly price. There\'s always something new to discover, and new TV shows and movies are added every week!',
'faq-2-question': 'How much does Netflix cost ?',
'faq-2-answer': 'Watch Netflix on your smartphone, tablet, Smart TV, laptop, or streaming device, all for one fixed monthly fee. Plans range from ₹149 to ₹649 a month. No extra costs, no contracts.',
'faq-3-question': 'Where Can I watch ?',
'faq-3-answer': 'Watch anywhere, anytime. Sign in with your Netflix account to watch instantly on the web at netflix.com from your personal computer or on any internet-connected device that offers the Netflix app, including smart TVs, smartphones, tablets, streaming media players and game consoles. You can also download your favourite shows with the iOS, Android, or Windows 10 app. Use downloads to watch while you\'re on the go and without an internet connection. Take Netflix with you anywhere.',
'faq-4-question': 'How do I cancel ?',
'faq-4-answer': 'Netflix is flexible. There are no annoying contracts and no commitments. You can easily cancel your account online in two clicks. There are no cancellation fees – start or stop your account anytime.',
'faq-5-question': 'What can I watch on Netflix ?',
'faq-5-answer': 'Netflix has an extensive library of feature films, documentaries, TV shows, anime, award-winning Netflix originals, and more. Watch as much as you want, anytime you want.',
'faq-6-question': 'Is Netflix good for Kids ?',
'faq-6-answer': 'The Netflix Kids experience is included in your membership to give parents control while kids enjoy family-friendly TV shows and films in their own space. Kids profiles come with PIN-protected parental controls that let you restrict the maturity rating of content kids can watch and block specific titles you don’t want kids to see.',
'footer-text': 'Questions ? Call 000-6394-8738',
'footer-netflix': 'Netflix India'
},
'hi': {
'header-title': 'अनलिमिटेड मूवीज़, टीवी शोज़ और अधिक।',
'header-subtitle': 'कहीं भी देखें। कभी भी रद्द करें।',
'header-text': 'देखने के लिए तैयार हैं? अपनी सदस्यता बनाने या फिर से शुरू करने के लिए अपना ईमेल दर्ज करें।',
'feature-1-title': 'अपने टीवी पर आनंद लें,',
'feature-1-text': 'स्मार्ट टीवी, प्लेस्टेशन, एक्सबॉक्स, क्रोमकास्ट, एप्पल टीवी, ब्लू-रे प्लेयर्स और बहुत कुछ पर देखें।',
'feature-2-title': 'ऑफलाइन देखने के लिए अपने शोज़ डाउनलोड करें',
'feature-2-text': 'अपनी पसंदीदा चीज़ों को आसानी से सहेजें और हमेशा देखने के लिए कुछ रखें।',
'feature-3-title': 'हर जगह देखें',
'feature-3-text': 'अपने फोन, टैबलेट, लैपटॉप और टीवी पर अनलिमिटेड मूवीज़ और टीवी शोज़ स्ट्रीम करें।',
'feature-4-title': 'बच्चों के लिए प्रोफाइल बनाएं',
'feature-4-text': 'बच्चों को उनके पसंदीदा पात्रों के साथ रोमांच पर भेजें—आपकी सदस्यता के साथ मुफ्त में।',
'faq-title': 'अक्सर पूछे जाने वाले प्रश्न',
'faq-1-question': 'नेटफ्लिक्स क्या है?',
'faq-1-answer': 'नेटफ्लिक्स एक स्ट्रीमिंग सेवा है जो पुरस्कार विजेता टीवी शो, मूवीज़, एनीमे, डॉक्यूमेंट्रीज़ और अधिक की एक विस्तृत श्रृंखला प्रदान करती है - हजारों इंटरनेट से जुड़े उपकरणों पर। आप जितना चाहें देख सकते हैं, जब चाहें, बिना किसी विज्ञापन के - एक कम मासिक मूल्य के लिए। हमेशा कुछ नया खोजने के लिए होता है, और हर सप्ताह नए टीवी शो और मूवीज़ जोड़ी जाती हैं!',
'faq-2-question': 'नेटफ्लिक्स की लागत कितनी है?',
'faq-2-answer': 'अपने स्मार्टफोन, टैबलेट, स्मार्ट टीवी, लैपटॉप या स्ट्रीमिंग डिवाइस पर नेटफ्लिक्स देखें, सभी एक निश्चित मासिक शुल्क पर। योजनाएं ₹149 से ₹649 प्रति माह तक होती हैं। कोई अतिरिक्त लागत नहीं, कोई अनुबंध नहीं।',
'faq-3-question': 'मैं कहाँ देख सकता हूँ?',
'faq-3-answer': 'कहीं भी, कभी भी देखें। अपने नेटफ्लिक्स खाते के साथ साइन इन करें और नेटफ्लिक्स ऐप के साथ किसी भी इंटरनेट से जुड़े उपकरण पर तुरंत वेब पर देखें, जिसमें स्मार्ट टीवी, स्मार्टफोन, टैबलेट, स्ट्रीमिंग मीडिया प्लेयर और गेम कंसोल शामिल हैं। आप अपने पसंदीदा शोज़ को iOS, एंड्रॉयड या विंडोज 10 ऐप के साथ डाउनलोड भी कर सकते हैं। यात्रा करते समय और बिना इंटरनेट कनेक्शन के देखने के लिए डाउनलोड का उपयोग करें। कहीं भी नेटफ्लिक्स ले जाएँ।',
'faq-4-question': 'मैं कैसे रद्द कर सकता हूँ?',
'faq-4-answer': 'नेटफ्लिक्स लचीला है। कोई परेशान करने वाला अनुबंध और कोई प्रतिबद्धताएँ नहीं हैं। आप ऑनलाइन दो क्लिक में आसानी से अपना खाता रद्द कर सकते हैं। कोई रद्द करने की फीस नहीं – कभी भी अपना खाता शुरू या बंद करें।',
'faq-5-question': 'मैं नेटफ्लिक्स पर क्या देख सकता हूँ?',
'faq-5-answer': 'नेटफ्लिक्स में फीचर फिल्म, डॉक्यूमेंट्रीज़, टीवी शो, एनीमे, पुरस्कार विजेता नेटफ्लिक्स ओरिजिनल और अधिक की एक व्यापक लाइब्रेरी है। जितना चाहें देखें, जब चाहें देखें।',
'faq-6-question': 'नेटफ्लिक्स बच्चों के लिए अच्छा है?',
'faq-6-answer': 'नेटफ्लिक्स किड्स अनुभव आपकी सदस्यता में शामिल है ताकि माता-पिता को नियंत्रण मिल सके जबकि बच्चे परिवार के अनुकूल टीवी शो और फिल्मों का आनंद ले सकें। बच्चों के प्रोफाइल में PIN-प्रोटेक्टेड पेरेंटल कंट्रोल होते हैं जो आपको उन सामग्री की उम्र की रेटिंग को सीमित करने की अनुमति देते हैं जिन्हें बच्चे देख सकते हैं और विशिष्ट शीर्षकों को ब्लॉक कर सकते हैं जिन्हें आप नहीं चाहते कि बच्चे देखें।',
'footer-text': 'प्रश्न? कॉल 000-6394-8738',
'footer-netflix': 'नेटफ्लिक्स इंडिया'
}
};
// Function to change language
function changeLanguage(language) {
// Update page content based on selected language
document.querySelector('.header-content h1').textContent = translations[language]['header-title'];
document.querySelector('.header-content h3').textContent = translations[language]['header-subtitle'];
document.querySelector('.header-content p').textContent = translations[language]['header-text'];
// Update features box content
const features = document.querySelectorAll('.features-box .row_1st');
features[0].querySelector('.text_column h2').textContent = translations[language]['feature-1-title'];
features[0].querySelector('.text_column p').textContent = translations[language]['feature-1-text'];
features[1].querySelector('.text_column h2').textContent = translations[language]['feature-2-title'];
features[1].querySelector('.text_column p').textContent = translations[language]['feature-2-text'];
features[2].querySelector('.text_column h2').textContent = translations[language]['feature-3-title'];
features[2].querySelector('.text_column p').textContent = translations[language]['feature-3-text'];
features[3].querySelector('.text_column h2').textContent = translations[language]['feature-4-title'];
features[3].querySelector('.text_column p').textContent = translations[language]['feature-4-text'];
// Update FAQ section
document.querySelector('.faq-box h2').textContent = translations[language]['faq-title'];
const faqs = document.querySelectorAll('.faq-box .accordion li');
faqs[0].querySelector('label').textContent = translations[language]['faq-1-question'];
faqs[0].querySelector('.content p').textContent = translations[language]['faq-1-answer'];
faqs[1].querySelector('label').textContent = translations[language]['faq-2-question'];
faqs[1].querySelector('.content p').textContent = translations[language]['faq-2-answer'];
faqs[2].querySelector('label').textContent = translations[language]['faq-3-question'];
faqs[2].querySelector('.content p').textContent = translations[language]['faq-3-answer'];
faqs[3].querySelector('label').textContent = translations[language]['faq-4-question'];
faqs[3].querySelector('.content p').textContent = translations[language]['faq-4-answer'];
faqs[4].querySelector('label').textContent = translations[language]['faq-5-question'];
faqs[4].querySelector('.content p').textContent = translations[language]['faq-5-answer'];
faqs[5].querySelector('label').textContent = translations[language]['faq-6-question'];
faqs[5].querySelector('.content p').textContent = translations[language]['faq-6-answer'];
document.querySelector('small p').textContent = translations[language]['header-text'];
// Update footer content
document.querySelector('.footer h3').textContent = translations[language]['footer-text'];
document.querySelector('.footer .row-p').textContent = translations[language]['footer-netflix'];
// Update the language button text
const languageButton = document.querySelector('.language-btn');
if (language === 'en') {
languageButton.innerHTML = 'English ⯆';
} else if (language === 'hi') {
languageButton.innerHTML = 'हिन्दी ⯆';
}
// Close the dropdown
document.getElementById("myDropdown").classList.remove("show");
document.getElementById("myDropdown2").classList.remove("show")
}
// Function to toggle dropdown
function toggleDropdown() {
document.getElementById("myDropdown").classList.toggle("show");
document.getElementById("myDropdown2").classList.toggle("show")
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
if (!event.target.matches('.language-btn')) {
var dropdowns = document.getElementsByClassName("dropdown-content");
for (var i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
</script>
</body>
</html>