-
Notifications
You must be signed in to change notification settings - Fork 0
/
PremiumServices.js
147 lines (117 loc) · 5.68 KB
/
PremiumServices.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
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
import navbar from "./component/navbar.js";
document.querySelector(".main_container").innerHTML=navbar();
import footer from "./component/footer.js";
document.querySelector("#footer746").innerHTML=footer();
let popup=document.getElementById("popup");
document.querySelector("#benifitsbtn>a").addEventListener("click",(e)=>{
e.preventDefault();
// openPopup();
console.log('dadad')
let image=document.querySelector(".popup>div:first-child>img");
image.src="https://media.monsterindia.com/trex/public/default/images/career-services/featured-profile-services.png";
let h2=document.querySelector(".popup>div:last-child>h2");
h2.innerText="FEATURED PROFILE";
let h1=document.querySelector(".popup>div:last-child>h1");
h1.innerText="Benifits";
let p1=document.querySelector("#one");
p1.innerText="Your profile is upfront when recruiters search candidate like you";
let p2=document.querySelector("#two");
p2.innerText="You are showcased as an active job seeker who is keenly looking";
let p3=document.querySelector("#three");
p3.innerText="Increase your chances of getting shortlisted in an interview";
let button=document.querySelector("#starting_amount");
button.innerText="Starting at Rs.1999";
popup.classList.add("open-popup")
})
document.querySelector("#closepopup").addEventListener("click",(e)=>{
e.preventDefault();
// closePopup();
popup.classList.remove("open-popup")
window.location.reload();
})
document.querySelector("#benifitsbtn2>a").addEventListener("click",(e)=>{
e.preventDefault();
// openPopup();
console.log('dadad');
let image=document.querySelector(".popup>div:first-child>img");
image.src="https://media.monsterindia.com/trex/public/default/images/career-services/resume-writing-services.png";
let h2=document.querySelector(".popup>div:last-child>h2");
h2.innerText="RESUME WRITING";
let h1=document.querySelector(".popup>div:last-child>h1");
h1.innerText="Benifits";
let p1=document.querySelector("#one");
p1.innerText="Clearly Stated Objective Targeting the job you're looking for";
let p2=document.querySelector("#two");
p2.innerText="Work History in the right chronological order";
let p3=document.querySelector("#three");
p3.innerText="Highlight your education background and key skills";
let p4=document.querySelector("#four");
p4.innerText="Use of Keywords in a way that Aplication Tracker ranks you";
let p5=document.querySelector("#five");
p5.innerText="A Cover letter that helps you get to the interview stage";
let button=document.querySelector("#starting_amount");
button.innerText="Starting at Rs.2499";
popup.classList.add("open-popup")
})
document.querySelector("#benifitsbtn3>a").addEventListener("click",(e)=>{
e.preventDefault();
// openPopup();
console.log('dadad');
let image=document.querySelector(".popup>div:first-child>img");
image.src="https://media.monsterindia.com/trex/public/default/images/career-services/resume-writing-services.png";
let h2=document.querySelector(".popup>div:last-child>h2");
h2.innerText="CAREER BOOSTER";
let h1=document.querySelector(".popup>div:last-child>h1");
h1.innerText="Benifits";
let p1=document.querySelector("#one");
p1.innerText="Use of Keywords in a way that Aplication Tracker ranks you";
let p2=document.querySelector("#two");
p2.innerText="Get professionally written resume which helps you get your dream job";
let button=document.querySelector("#starting_amount");
button.innerText="Starting at Rs.3999";
popup.classList.add("open-popup")
})
document.querySelector("#callMeBack").addEventListener("click",(e)=>{
e.preventDefault();
console.log("inside");
document.querySelector(".form").innerHTML=null;
let img=document.createElement("img");
img.src="https://media.monsterindia.com/trex/public/default/images/career-services/career-contactUs/success.svg";
img.style.height="200px";
img.style.marginTop="60px";
let h2=document.createElement("h2");
h2.innerText="Thank You";
h2.style.textAlign="center";
let p=document.createElement("p");
p.innerText="We’ve received your request and will call you back within 48 hours.";
p.style.textAlign="center";
document.querySelector(".form").append(img,h2,p);
})
let popup2=document.getElementById("chatbot");
document.querySelector("#chatbotDiv").addEventListener("click",()=>{
console.log("inside");
popup2.classList.add("open-popup")
})
document.querySelector("#closeChatbot").addEventListener("click",()=>{
console.log("inside");
popup2.classList.remove("open-popup")
})
know={
"Hello":"         Hi there! Are you looking for a Job change?",
"Who are you?":"      I am Robot",
"How are you?":"      I am fine",
"No":"      Understood! There is special discount of upto 30% on our Paid Career Services. Would you like to explore?",
"Yes":"      Let me connect to an Agent. To begin with, Can you please share your name?",
"Subhajit Saha":"Hi Subhajit!. Thanks for your patience please wait while the line is beign connected to one of our agents....."
};
let talk=()=>{
var user=document.getElementById("userBox").value;
document.getElementById("userBox").value="";
document.getElementById("chatLog").innerHTML+=user+"<br>";
if (user in know){
document.getElementById("chatLog").innerHTML+=know[user]+"<br>";
}
else{
document.getElementById("chatLog").innerHTML+="      I dont understand...<br>";
}
}