Thankyou

By Ipshita, 9 April, 2025
Unique URL
/open-day-thankyou
Components
HTML Content

.success-details h1 {
font-size: 20px;
}
#content ul{
list-style: none;
padding: 0px;
}
#content p
{
font-size: 18px;
font-family: "Roboto", sans-serif;
padding-top: 15px;
line-height: normal;
}
#content b
{
font-size: 20px;
}

.success-details h1,
li {
text-align: left;
}
.success-section .success-details-event {
max-width: 800px;
margin: 0 auto;
display: flex;
min-height: 337px;
border: 2px solid #E0E0E0;
border-radius: 20px;
padding: 50px;
flex-direction: column;
justify-content: normal;
text-align: left;
align-items: left;
}

.success-section .success-details-event h1 {
margin-bottom: 19px;
}

.success-section .success-details-event a {
color: #0d6efd;

}

.success-section .success-details-event a:hover {
text-decoration: underline;
}

@media(max-width: 600px) {
.success-section .success-details-event {
padding: 30px;
}
}

document.addEventListener("DOMContentLoaded", function () {
let submitted_webform = JSON.parse(sessionStorage.getItem("submitted_webform"));
console.log("Stored Data:", submitted_webform);

let newContent = '';
switch (submitted_webform?.program) {
case "BBA":
case "BBA - LL.B.":
case "BA - LL.B.":
case "BA (Hons.)":
case "BA":
case "B.Com.":
newContent = $('')
.append('Thank You for Registering for the UPES Open Day for '+submitted_webform?.program+ ' program at '+submitted_webform?.school+ '!').append('See you on April 21 at 9 am in Kandoli Campus, P.O. Kandoli, via-Prem Nagar, DehradunRegistration starts at 9 am | Session begins at 9:30 amWe’re excited to welcome you to our campus and give you a firsthand experience of life at UPES.');
break;
case "B.Tech.":
case "B.Des.":
case "B.Pharm":
case "B.Sc.":
case "BCA":
newContent = $('')
.append('Thank You for Registering for the UPES Open Day for '+submitted_webform?.program+ ' program at '+submitted_webform?.school+ '!').append('See you on April 22 at 9 am in Bidholi Campus, P.O. Bidholi, via-Prem Nagar, DehradunRegistration starts at 9 am | Session begins at 9:30 amWe’re excited to welcome you to our campus and give you a firsthand experience of life at UPES.');
break;
case "B.Sc. (Hons)":
if(submitted_webform?.school=='School of Liberal Studies and Media'){
newContent = $('')
.append('Thank You for Registering for the UPES Open Day for '+submitted_webform?.program+ ' program at '+submitted_webform?.school+ '!')
.append('See you on April 21 at 9 am in Kandoli Campus, P.O. Kandoli, via-Prem Nagar, DehradunRegistration starts at 9 am | Session begins at 9:30 amWe’re excited to welcome you to our campus and give you a firsthand experience of life at UPES.');
}
else if(submitted_webform?.school=='School of Advanced Engineering'){
newContent = $('')
.append('Thank You for Registering for the UPES Open Day for '+submitted_webform?.program+ ' program at '+submitted_webform?.school+ '!')
.append('See you on April 22 at 9 am in Bidholi Campus, P.O. Bidholi, via-Prem Nagar, DehradunRegistration starts at 9 am | Session begins at 9:30 amWe’re excited to welcome you to our campus and give you a firsthand experience of life at UPES.');
}
break;
default:
newContent = $('')
.append('Thank You for Registering for the UPES Open Day for '+submitted_webform?.program+ ' program at '+submitted_webform?.school+ '!')
.append('We’re excited to welcome you to our campus and give you a firsthand experience of life at UPES.');
break;
}

$('#content').html(newContent);

//sessionStorage.removeItem("submitted_webform")
});

No Index
0