-
Notifications
You must be signed in to change notification settings - Fork 0
/
netflix_landingpage.js
35 lines (32 loc) · 1.03 KB
/
netflix_landingpage.js
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
function getStarted(email_id) {
let email = document.getElementById(email_id).value;
if (email) {
alert(`With ${email} login/sign-up process begins`);
} else {
alert('Invalid Email. Provide a valid email to get started');
}
document.getElementById(email_id).value = '';
}
function getSignedIn() {
alert('Sign in on Netflix..! Have fun watching!');
}
function toogleShow(dd_menu) {
if (document.getElementById(dd_menu).className === 'dropdown-menu show') {
document.getElementById(dd_menu).className = 'dropdown-menu';
} else {
document.getElementById(dd_menu).className = 'dropdown-menu show';
}
}
function toogleFaq(question_id, answer_id) {
var description = document.getElementById(answer_id);
var button = document.getElementById(question_id);
if (description.style.display === 'none') {
description.style.display = 'block';
button.innerText = 'x';
} else {
description.style.display = 'none';
button.innerText = '+';
}
button = null;
answer = null;
}