Chapter 3
Chapter 3
Chapter 3
"contactPoint": {
"@type": "ContactPoint",
"telephone": "8823099888",
"contactType": "technical support",
"areaServed": "IN",
"availableLanguage": ["en","Hindi"]
}
}
</script>
<style>
input {
font-family: dmsans;
}
select {
font-family: dmsans;
}
label{
font-family: dmsans;
}
@font-face {
font-family: 'dmsans';
src: url(/assets/fonts/dmsans/DMSans-Regular.woff);
}
.mob-brad{
background-color:rgb(22,179,241);
color:white;
padding:7px;
border-radius:25px;
}
@media screen and (min-width: 320px) and (max-width: 500px){
.mob-brad{
font-size:10px;
}
.brad-third{
margin-top:10px;
}
}
@media screen and (min-width: 501px) and (max-width: 768px){
.brad-third{
margin-top:10px;
}
}
.form-group.abc {
margin-bottom: 2%;
}
p.tc {
MARGIN-TOP: 1%;
MARGIN-BOTTOM: 3%;
}
.sweet-alert h2 {
font-size: 25px !important;
color: red !important;
}
.sweet-alert button.cancel {
background-color: #17b3f1 !important;
}
}
.hover-card:hover{background-color:rgb(255,102,0) !important;}
.hover-card:hover>a.btn{background-color:white;}
.eyeIcon{
float: right;
margin-top: -27px;
margin-right: 10px;
}
@media only screen and (max-device-width: 767px){
.PurchaseButtonClose{width:83% !important;}
.PurchaseButtonClose2{width:90% !important; margin-right: 15px !important; margin-
top: 20px;}
.NotRegisterYet{
justify-content: center;
display: grid;
}
.LoginRow{margin: 0% 0% 0% 0% !important;}
.LoginModalBody{padding: 15px 6px !important; }
.cookieDiv{
width:80% !important;;
right:3% !important;
}
.cookie-text{font-size:15px !important;}
.cookieCross{font-size:30px !important;}
}
.cookieDiv{
z-index:1000;
padding:1% 0% 1% 1%;
bottom:5%;
width:30%;
position:fixed;
background-color:white;
right:2%;
opacity:0.75;
}
@media only screen and (max-device-width: 1024px) and (min-device-width: 768px) and
(orientation:portrait){
.cookieDiv{
width:50% !important;;
right:3% !important;
}
}
@media only screen and (max-device-width: 1024px) and (min-device-width: 768px) and
(orientation:landscape){
.cookieDiv{
width:37% !important;;
right:3% !important;
}
}
.forgotpass{
color:rgb(0,0,255) !important;
font-weight:100 !important;
}
.forgotpass:hover{font-weight:700 !important;}
</style>
<style>
.start-header {
color: white;
}
.start-header.scroll-on {
background-color: #fff;
color: black;
box-shadow: 0 5px 10px 0 rgba(138, 155, 165, .15);
padding: 10px 0;
-webkit-transition: all .3s ease-out;
transition: all .3s ease-out
}
.navbar-brand img.after-scroll-logo {
height: 80px;
width: auto;
display: none;
-webkit-transition: all .3s ease-out;
transition: all .3s ease-out
}
.navigation-wrap {
position: fixed;
width: 100%;
top: 0;
left: 0;
padding-top: 20px;
padding-bottom: 10px;
z-index: 300;
-webkit-transition: all .3s ease-out;
transition: all .3s ease-out
}
.navigation-wrap.bg-light.start-header.start-style {
position: relative
}
.megamenu {
position: static
}
.megamenu>.dropdown-menu {
width: 100%
}
.navbar-brand img.before-scroll-logo {
height: 60px;
width: auto;
display: block;
-webkit-transition: all .3s ease-out;
transition: all .3s ease-out
}
.navbar-toggler {
float: right;
border: none;
padding-right: 0
}
.navbar-toggler:active, .navbar-toggler:focus {
outline: 0
}
.navbar-light .navbar-toggler-icon {
width: 24px;
height: 17px;
background-image: none;
position: relative;
border-bottom: 1px solid #000;
transition: all .3s linear
}
.navbar-light .navbar-toggler-icon:after {
top: 8px
}
.navbar-toggler[aria-expanded=true] .navbar-toggler-icon:after {
transform: rotate(45deg)
}
.navbar-toggler[aria-expanded=true] .navbar-toggler-icon:before {
transform: translateY(8px) rotate(-45deg)
}
.navbar-toggler[aria-expanded=true] .navbar-toggler-icon {
border-color: transparent
}
.nav-link {
color: inherit !important;
font-weight: 500;
transition: all .2s linear;
position: relative;
padding: 5px 0 !important;
display: inline-block
}
.nav-item:hover .nav-link {
color: black !important
}
.nav-item:after {
position: absolute;
bottom: -5px;
left: 0;
width: 100%;
height: 2px;
content: '';
background-color: #8167a9;
opacity: 0;
transition: all .2s linear
}
.nav-item:hover:after {
bottom: 0;
opacity: 1
}
.nav-item.active:hover:after {
opacity: 0
}
ul li ul:hover, ul li:hover>ul {
visibility: visible;
opacity: 1;
display: block
}
.nav-item {
position: relative;
transition: all .2s linear
}
/* .ipadChildsafe{ */
/* position: absolute; */
/* width: 5%; */
/* top:3%; */
/* left:17%; */
/* } */
/* @media only screen and (max-device-width: 767px){ */
/* .ipadChildsafe{ */
/* width: 13%; */
/* top: 7%; */
/* left: 72%; */
/* } */
/* } */
/* @media only screen and (max-device-width: 900px) and (min-device-width: 768px)
{ */
/* .ipadChildsafe{ */
/* width: 9%; */
/* top: 3%; */
/* left: 34%; */
/* } */
/* } */
/* @media only screen and (max-device-width: 1025px) and (min-device-width: 901px){
*/
/* .ipadChildsafe{ */
/* width: 7%; */
/* top: 2%; */
/* left: 27%; */
/* } */
/* } */
@media only screen and (min-device-width: 1167px) {
.navbar {
height: 40px;
}
}
.icscWriterList {
height: 350px;
overflow-y: scroll;
}
.font-dmsans {
font-family: 'dmsans' !important;
}
.dropdown-submenu>a.removearrow:after {
display: none;
}
/* .searchinput{ */
/* border-top-left-radius: 1.25rem !important; */
/* border-bottom-left-radius: 1.25rem !important; */
/* border-top-right-radius: 1.25rem !important; */
/* border-bottom-right-radius: 1.25rem !important; */
/* border:1px solid coral; */
/* } */
/* .searchinput{ */
/* background-color:white; */
/* padding:3px; */
/* } */
.searchinput {
background-color: white;
padding: 3px;
border-radius: 30px;
border: 2px solid lightgray;
}
</style>
<header>
<div class="navigation-wrap bg-light start-header start-style ">
<!-- <div class="container-fluid"> -->
<!-- <div class="row"> -->
<!-- <div class="col-12"> -->
</div></li>
<div class="dropdown-menu">
<a class="dropdown-item font-dmsans"
href="https://praadisedu.com/in"><img
alt="India Flag"
src="/assets/images/india_flag.svg"
style="width: 30px; font-size: 11px;">
India</a> <a
class="dropdown-item font-dmsans"
href="https://praadisedu.com/us"><img alt="USA
Flag"
src="/assets/images/us_flag.svg"
style="width: 30px; font-size: 11px;">
United States</a>
<!--
<a class="dropdown-item" -->
</div>
</li>
</ul>
</div>
</nav>
<!-- </div> -->
<!-- </div> -->
<!-- </div> -->
</div>
</header>
<script>
const $dropdown = $(".dropdown");
const $dropdownToggle = $(".dropdown-toggle");
const $dropdownMenu = $(".dropdown-menu");
const showClass = "show";
</div>
<div class="modal-body">
<div class="container-fluid">
<div class="row">
</div>
</div>
</div>
</div>
<!-- /.card -->
</a>
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container -->
<div class="row">
<div class="col-sm-12">
<button type="button" class="close
PurchaseButtonClose2" data-dismiss="modal" style="padding: 10px; background: #f60;
color: #fff; border-radius: 5px; width: 93%; font-weight: normal; margin-right:
30px; opacity: 1; " id="register-bottom-close">Close</button>
</div>
<br>
<br>
</div>
</div>
</div>
</div>
</div>
<!-- login Modal -->
<div class="modal fade" id="Login-model-combine" role="dialog" tabindex="-1"
style="overflow-y: scroll;">
<div class="modal-dialog modal-lg">
<div class="modal-content custom-login">
<div class="modal-header-custom">
<button type="button" class="close" data-dismiss="modal">
<img src="/assets/new_images/login_img/cross.png"
alt="close button" class="login-model-img-cross">
</button>
</div>
<div class="modal-body LoginModalBody">
<div class="container-fluid">
<div class="row LoginRow" style="margin: -3% 1% -2%
5%;">
</div>
</div>
<!-- /.card -->
</div>
<!-- /.col-sm-4 -->
<div class="col-sm-6 app">
<div class="card mb-3 hover-card">
<!-- set a width on the image
otherwise it will expand to full width -->
<img class="card-img-top"
src="/assets/new_images/login_img/praadisedu.png" alt="The Best Learning App for
Student" width="400">
<div class="card-body model">
</div>
</div>
<!-- /.card -->
</div>
<!-- <div class="col-sm-12 NotRegisterYet"> -->
<!-- <p style="display: inline;">Not
Registered yet? Click here to </p> -->
<option value="1">India</option>
<option value="2">USA</option>
<option value="3">UAE</option>
<option value="4">Kuwait</option>
<option value="5">Saudi</option>
<option value="6">Qatar</option>
<option value="7">Oman</option>
<option value="8">Bahrain</option>
<option
value="1">India</option>
<option
value="2">USA</option>
<option
value="3">UAE</option>
<option
value="4">Kuwait</option>
<option
value="5">Saudi</option>
<option
value="6">Qatar</option>
<option
value="7">Oman</option>
<option
value="8">Bahrain</option>
</select>
</div>
<div id="s_state_div" class="form-group input-
group mb-3 navbar" style="display: none;">
<div class="input-group-prepend">
<label class="input-group-text f-13
grp-txt country sum" for="">State</label>
</div>
<select class="custom-select f-13 input-
01" id="s_state">
<option selectedSelect...></option>
</select>
</div>
<div class="form-group input-group mb-3">
<div class="input-group-prepend">
<label class="input-group-text f-13
grp-txt country" for="">Class</label>
</div>
<select class="custom-select f-13 input-
01" id="s_school_class" name="schoolClassId">
<option selected>Select...</option>
</select>
</div>
<div class="form-group input-group mb-3">
<div class="input-group-prepend">
<label class="input-group-text f-13
grp-txt country" for="">Package</label>
</div>
<select class="custom-select f-13 input-
01" id="s_package_type" name="packageTypeId">
<option selected>Select...</option>
</select>
</div>
<div class="form-group input-group mb-3">
<div class="input-group-prepend">
<label class="input-group-text f-13
grp-txt country" for="">Curriculum</label>
</div>
<select class="custom-select f-13 input-
01" id="s_package" name="appPackageId">
<option selected>Select...</option>
</select>
</div>
<div class="form-group my-4 tc">
<button id="switch_package" type="submit"
class="btn btn-primary switch">Switch</button>
</div>
<input type="hidden" id="registrationId"
name="registrationId" value="" /> <input type="hidden" name="deviceType"
value="WEB" />
</form>
</div>
</div>
<!-- card.// -->
</div>
</div>
</div>
<!-- update User Name And Password Modal -->
</div>
</div>
</div>
<style>
.four-zero-four {
background:
url('/assets/new_images/four_zero.png');
background-repeat: no-repeat;
}
a.btn.btn-default.back-home-new {
background: #3a6eb7 !important;
border: 2px solid #ffffff !important;
color: #fff !important;
outline: 0;
margin-top: 5px;
margin-bottom: 5px;
}
</style>
<section class="four-zero-four">
<div class="container small-sec">
<div class="row">
<div class="col-sm-12 text-center">
<h1>404</h1>
<h2>Page Not Found</h2>
</div>
<!-- end col -->
</div>
<!-- end row -->
</div>
<!-- end container -->
<div class="backbutton text-center">
<a href="/" class="btn btn-default back-home-new"><i class="fa fa-
angle-left"></i> Go Back Home</a>
</div>
<!-- end btn -->
</section>
<footer>
<div class="footer" style="left: 0; bottom: 0; background-color: #222; color:
white; text-align: left;">
<div class="container">
<div class="row">
<div class="col-sm">
<h5 style="color: #fff;">Address:</h5>
<hr class="address" style="margin: 16px 1px;">
<h5 style="color: #fff;">USA Headquarters</h5>
<p style="color: #fff;">
Praadis Technologies Inc. , 475 Wall Street,
<br> Princeton, NJ 08540
</p>
</div>
<div class="col-sm">
<h5 style="color: #fff;">Contact No:</h5>
<hr class="contact_no" style="margin: 16px 1px;">
<p style="color: #fff;">
<span class="css-sprite-Icons_0007_call-answer-
copy"></span><a href="tel:+1-732-447-6000" class="contact_link">+1-732 447 6000</a>
<br>
</div>
</div>
</div>
</div>
<div class="footer blue-ctn" style="padding-top: 15px; background-color:
#17b3f1; text-align: center; color: #ffffff; font-weight: normal;">
© Copyright 2024 | Praadis Education (<a href="/" target="_blank"
style="color: #fff;">Best Learning App</a>) | Powered by Praadis Technologies
Inc.</a>
</div>
</footer>
<!-- loader -->
<div id="loader" class="loader" style="display: none; opacity: 50%;"></div>
<script defer="true" src="/assets/js/jquery-migrate-3.0.1.min.js"></script>
<script defer="true" src="/assets/js/popper.min.js"></script>
<script defer="true" src="/assets/js/bootstrap.min.js"></script>
<script defer="true" src="/assets/js/jquery.easing.1.3.js?v=410"></script>
<script defer="true" src="/assets/js/jquery.waypoints.min.js?v=257"></script>
<script defer="true" src="/assets/js/jquery.stellar.min.js?v=367"></script>
<script defer="true" src="/assets/js/jquery.magnific-popup.min.js?v=592"></script>
<script defer="true" src="/assets/js/aos.js?v=454"></script>
<script defer="true" src="/assets/js/script.js"></script>
<script defer="true" src="/assets/js/owl.carousel.min.js?v=973"></script>
<script defer="true" src="/assets/js/scrollax.min.js?v=709"></script>
<script defer="true" src="/assets/js/main.js"></script>
<script defer="true" src="/assets/includes/js/chart.min.js?v=501"></script>
<script defer="true" src="/assets/js/switch_package.js?v=905"></script>
<script defer="true"
src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.js"
async="true"></script>
<script defer="true" src="/assets/js/lazyload.js?v=887"></script>
<script async="true">
var mainURL = "/";
var registrationId = '';
var token = $("meta[name='_csrf']").attr("content");
var header = "X-CSRF-TOKEN";
var ipAddress = null;
var latitude = null;
var longitude = null;
var isPurchaseApp = null;
$.ajax({
url : 'https://api.ipify.org',
async : false,
success : function(data) {
ipAddress = data;
$.ajax({
url : '/ajax/latlong/'
+ ipAddress,
async : false,
success : function(data) {
$("#latitude").val(data.data.latitude);
$("#longitude").val(data.data.longitude);
latitude = data.data.latitude;
longitude = data.data.longitude;
}
});
}
});
// Restricts input for each element in the set of matched elements to the
given inputFilter.
(function($) {
$.fn.inputFilter = function(inputFilter) {
return this
.on(
"input keydown keyup mousedown mouseup
select contextmenu drop",
function() {
if (inputFilter(this.value)) {
this.oldValue = this.value;
this.oldSelectionStart =
this.selectionStart;
this.oldSelectionEnd =
this.selectionEnd;
} else if
(this.hasOwnProperty("oldValue")) {
this.value = this.oldValue;
this.setSelectionRange(
this.oldSelectionStart,
this.oldSelectionEnd);
}
});
};
}(jQuery));
$("#subscribe").attr("disabled", true);
if (!appCountryId || !/^\d+
$/.test(appCountryId)) {
alert("Please select valid country.");
$("#subscribe").attr("disabled", false);
return;
}
if (!schoolClassId || !/^\d+
$/.test(schoolClassId)) {
alert("Please select valid school
class.");
$("#subscribe").attr("disabled", false);
return;
}
if (!appPackageId || !/^\d+
$/.test(appPackageId)) {
alert("Please select valid app
package.");
$("#subscribe").attr("disabled", false);
return;
}
if (!registrationId || !/^\d+
$/.test(registrationId)) {
alert("Data is not valid. Try Again.");
$("#subscribe").attr("disabled", false);
return;
}
$("#loader").show();
$
.ajax({
url : "/subscription/",
data : JSON.stringify(data),
type : 'POST',
contentType :
'application/json',
success : function(result) {
console.log(result);
if (result.status == 1)
{
alert("You are
subscribed successfully.");
if (typeof
result.data.registrationPackages !== 'undefined'
&&
Object
.keys(result.data.registrationPackages).length > 0
&&
typeof result.data.packageHistories !== 'undefined'
&&
Object
.keys(result.data.packageHistories).length > 0) {
var
studentId = null;
$
.each(
result.data.packageHistories,
function(i, obj) {
studentId = obj.id;
});
if
(isPurchaseApp != null
window.location.href = "/packages?countryCode="
+ countryCode
+ "&appCountry="
+ appCountry
+ "&schoolClass="
+ schoolClass
+ "&appPackage="
+ appPackageName
+ "&schoolClassId="
+ schoolClassId1;
} else {
window.location.href = "/ui/dashboard?studentId="
+ studentId;
}
} else {
$
("#subscription_modal").modal(
'show');
$
("#subscribe").attr(
"disabled", false);
}
} else {
alert(result.error);
$
("#subscribe").attr("disabled",
false);
}
},
fail : function(xhr,
textStatus,
errorThrown) {
alert(xhr.responseText);
$
("#subscribe").attr("disabled", false);
},
complete : function(result) {
$("#loader").hide();
}
});
});
</script>
<script async="true">
var mobilenumber = null;
$("#send_otpsat")
.on(
"click",
function(e) {
e.preventDefault();
if (isEmptyOrSpaces(firstName)) {
//alert("Please enter your firstName.");
return;
}
if (isEmptyOrSpaces(countryCode)) {
//alert("Please select country code.");
return;
}
if (isEmptyOrSpaces(mobile)) {
//alert("Please enter mobile no.");
return;
}
$
("#countrycode5").attr('readonly',
'readonly');
$
("#mobile5").attr('readonly',
'readonly');
$
("#send_otpsat1").attr("disabled",
true);
/* $
("#register").attr("disabled", false); */
alert("Verification code
sent on your mobile number.");
} else {
alert("Error in sending
verification code. please try again!!");
$
("#send_otpsat").attr("disabled",
false);
}
});
// add error callback also here later
});
$("#send_otpsat1")
.on(
"click",
function(e) {
e.preventDefault();
if (isEmptyOrSpaces(countryCode)) {
alert("Please select country code.");
return;
}
if (isEmptyOrSpaces(mobile)) {
alert("Please enter mobile no.");
return;
}
mobile = countryCode + mobile;
mobilenumber = mobile;
$("#send_otpsat1").attr("disabled", true);
// send otp
var response = sendOtps(mobile);
response
.success(function(result) {
console.log(result);
if (result != null &&
result.status == 1) {
countdown('timer_sat',
'send_otpsat1');
$
("#countrycode5").attr('readonly',
'readonly');
$
("#mobile5").attr('readonly',
'readonly');
$
("#send_otpsat1").attr("disabled",
true);
/* $
("#register").attr("disabled", false); */
alert("Verification code
sent on your mobile number.");
} else {
alert("Error in sending
verification code. please try again!!");
$
("#send_otpsat1").attr("disabled",
false);
}
});
// add error callback also here later
});
$("#verify_otp1")
.click(
function(e) {
e.preventDefault();
console.log(result.type);
/*
alert("Verified"); */
$
('#form12').submit();
} else if (result !=
null
&&
result.type == 'error'
&&
result.message == 'otp_expired') {
});
</script>
<!-- <script async="true">
function sendOtp(mobile){
return $.ajax({
url: "/ajax/sendOTP?mobile="+ mobile,
type: 'POST',
success: callback,
async: true
});
}
</script> -->
<script async="true">
var token = $("meta[name='_csrf']").attr("content");
var header = "X-CSRF-TOKEN";
function sendOtps(mobile,email) {
/* alert("captcha "+captcha); */
//alert("MObile "+mobile+"email "+email);
var body = {
mobile : mobile,
email : email
};
/* var body = { mobile : mobile , captcha : captcha }; */
/* var body = '{mobile:'+mobile+',captcha:'+captcha+'}' */
return $.ajax({
url : "/registration/sendOTPWeb",
type : 'POST',
data : body,
/* success: callback, */
async : true
});
}
</script>
<script async="true">
function sendOtp(mobile, username) {
console.log("sendOtpusername" + username)
return $.ajax({
url : "/ajax/sendOTP?mobile="
+ mobile + "&username=" + username,
type : 'POST',
async : true
});
}
</script>
<script async="true">
function sendOTPForgetPassword(username) {
return $
.ajax({
url : "/ajax/sendOTPForgetPassword?username="
+ username,
type : 'POST',
async : true
});
}
</script>
<script async="true">
function sendOTPForgetUsername(mobile) {
return $
.ajax({
url : "/ajax/sendOTPForgetUsername?mobile="
+ mobile,
type : 'POST',
async : true
});
}
</script>
<script async="true">
function forgetUsername(mobile) {
return $
.ajax({
url : "/ajax/forgetUsername?mobile="
+ mobile,
type : 'POST',
async : true
});
}
</script>
<script async="true">
function isJson(str) {
try {
JSON.parse(str);
} catch (e) {
return false;
}
return true;
}
function isEmptyOrSpaces(str) {
return (!str || 0 === str.length);
}
$.fn.serializeObject = function() {
var o = {};
var a = this.serializeArray();
$.each(a, function() {
if (o[this.name] !== undefined) {
if (!o[this.name].push) {
o[this.name] = [ o[this.name] ];
}
o[this.name].push(this.value || '');
} else
o[this.name] = this.value || '';
});
return o;
};
</script>
<script type="text/javascript" async="true">
var appState = null;
$("#app_country")
.change(
function(e) {
e.preventDefault();
result.data,
function(key,
element) {
stateHtml = stateHtml
+ '<option value='+element.id+'>'
+ element.name
+ '</option>';
countryId = element.id;
console
.log(countryId);
$(
"#appCountryId1")
.val(
countryId);
});
$
("#app_state").html(stateHtml);
if (typeof
result.data !== 'undefined'
&&
result.data.length > 1) {
$
("#app_state_div").show();
} else {
$
("#app_state").val(countryId);
appState = $
("#app_state")
.val();
handleAppState(appState);
$
("#app_state_div").hide();
}
}
},
complete : function() {
$("#loader").hide();
}
});
});
</script>
<script type="text/javascript" async="true">
$("#app_state").change(function(e) {
e.preventDefault();
appState = this.value;
handleAppState(appState);
});
function handleAppState(appStateId) {
$.ajax({
url : "/school-class?appState="
+ appStateId,
type : 'GET',
dataType : 'json',
async : true,
success : function(result) {
console.log(result);
if (result != null && result.status == 1) {
var schoolClassHtml = '<option
value="">Select</option>';
$.each(result.data, function(key, element) {
schoolClassHtml = schoolClassHtml
+ '<option value='+element.id+'>'
+ element.name + '</option>';
});
$("#app_package_id").html(
'<option value="">Select</option>');
$("#school_class").html(schoolClassHtml);
}
},
complete : function() {
$("#loader").hide();
}
});
}
$("#school_class")
.change(
function(e) {
e.preventDefault();
//var schoolClassId = $
("#appCountryId1").val();
var schoolClassId = this.value;
$
.ajax({
url :
"/app_package_school_class/find-distinct-app-package-by-shool-class-id?shoolClass="
+ schoolClassId,
type : 'GET',
dataType : 'json',
async : true,
success : function(result) {
if (result != null
&&
result.status == 1) {
var appPackageHtml
= '<option value="">Select</option>';
$
.each(
result.data,
function(key,
element) {
appPackageHtml = appPackageHtml
+ '<option value='+element.id+'>'
+ element.name
+ '</option>';
if (element.name == "ICSE") {
appPackageHtml += "<option
disabled='disabled'>---------------------------------- </option>"
});
$
("#app_package_id").html(
appPackageHtml);
}
},
complete : function() {
$("#loader").hide();
}
});
});
</script>
$(document).ready(function() {
$("#app_country1").trigger("change");
})
$("#app_country2")
.change(
function(e) {
e.preventDefault();
result.data,
function(key,
element) {
stateHtml = stateHtml
+ '<option value='+element.id+'>'
+ element.name
+ '</option>';
countryId = element.id;
console
.log(countryId);
$(
"#appCountryId3")
.val(
countryId);
});
$
("#app_state2").html(stateHtml);
if (typeof
result.data !== 'undefined'
&&
result.data.length > 1) {
$
("#app_state_div").show();
} else {
$
("#app_state2").val(countryId);
appState = $
("#app_state2")
.val();
handleAppState2(countryId);
$
("#app_state_div").hide();
}
}
},
complete : function() {
$("#loader").hide();
}
});
});
</script>
appState = this.value;
handleAppState2(appState);
});
function handleAppState2(appStateId) {
$.ajax({
url : "/school-class?appState="
+ appStateId,
type : 'GET',
dataType : 'json',
async : true,
success : function(result) {
console.log(result);
if (result != null && result.status == 1) {
var schoolClassHtml = '<option
value="">Class</option>';
if (appStateId == 2) {
schoolClassHtml = '<option
value="">Grade</option>';
} else {
schoolClassHtml = '<option
value="">Class</option>';
}
$.each(result.data, function(key, element) {
schoolClassHtml = schoolClassHtml
+ '<option value='+element.id+'>'
+ element.name + '</option>';
});
if (appStateId == 2) {
$("#app_package_id2").html(
'<option
value="">Curriculum</option>');
} else {
$("#app_package_id2").html(
'<option value="">Board</option>');
}
$("#school_class2").html(schoolClassHtml);
}
},
complete : function() {
$("#loader").hide();
}
});
}
$("#school_class2")
.change(
function(e) {
e.preventDefault();
var appStateId = $("#app_country2").val();
//var schoolClassId = $
("#appCountryId1").val();
var schoolClassId = this.value;
$
.ajax({
url :
"/app_package_school_class/find-distinct-app-package-by-shool-class-id?shoolClass="
+ schoolClassId,
type : 'GET',
dataType : 'json',
async : true,
success : function(result) {
if (result != null
&&
result.status == 1) {
var appPackageHtml
= '<option value="">Board</option>';
if (appStateId ==
2) {
result.data,
function(key,
element) {
appPackageHtml = appPackageHtml
+ '<option value='+element.id+'>'
+ element.name
+ '</option>';
if (element.name == "ICSE") {
appPackageHtml += "<option
disabled='disabled'>---------------------------------- </option>"
});
$
("#app_package_id2").html(
appPackageHtml);
}
},
complete : function() {
$("#loader").hide();
}
});
});
</script>
<script async="true">
var subscriptionFlag = $
{
subscriptionFlag
};
if (subscriptionFlag)
$("#subscription_modal").modal('show');
</script>
<script type="text/javascript" async="true">
var btn = $('#moveTop');
$(window).scroll(function() {
if ($(window).scrollTop() > 300) {
btn.addClass('topup');
} else {
btn.removeClass('topup');
}
});
btn.on('click', function(e) {
e.preventDefault();
$('html, body').animate({
scrollTop : 0
}, '300');
});
</script>
<script type="text/javascript" async="true">
(function($) {
"use strict";
$(function() {
var header = $(".start-style");
$(window).scroll(function() {
var scroll = $(window).scrollTop();
})(jQuery);
</script>
<script type="text/javascript" async="true">
$(".dropdown-menu, dropdown-submenu").on("mouseleave", function() {
$(".dropdown-menu").removeClass("show");
});
$("#examMaterial").on("click", function() {
$(".dropdown-menu").removeClass("show");
$(".dropdown-toggle").removeClass("show");
});
</script>
<script type="text/javascript" async="true">
$("#examMaterial").click(function() {
$(".dropdown-toggle").click();
});
$("#pages").click(function() {
$(".dropdown-toggle").click();
});
</script>
<script type="text/javascript" async="true">
$(".dropdown").click(function() {
$(".nav-item").removeClass("show");
});
$("il").click(function() {
$(this).parent.removeClass("show");
});
</script>
<script type="text/javascript" async="true">
if (!Object.keys) {
Object.keys = (function() {
'use strict';
var hasOwnProperty = Object.prototype.hasOwnProperty,
hasDontEnumBug = !({
toString : null
}).propertyIsEnumerable('toString'), dontEnums = [ 'toString',
'toLocaleString', 'valueOf', 'hasOwnProperty',
'isPrototypeOf', 'propertyIsEnumerable',
'constructor' ], dontEnumsLength = dontEnums.length;
return function(obj) {
if (typeof obj !== 'function'
&& (typeof obj !== 'object' || obj === null)) {
throw new TypeError('Object.keys called on non-
object');
}
if (hasDontEnumBug) {
for (i = 0; i < dontEnumsLength; i++) {
if (hasOwnProperty.call(obj, dontEnums[i])) {
result.push(dontEnums[i]);
}
}
}
return result;
};
}());
}
</script>
<script type="text/javascript" async="true">
var url = window.location.href;
var element = url.substring((url.lastIndexOf("#") + 1), url.length);
/* console.log("hello"+element); */
if (element == 'junior-app') {
$('html, body').animate({
scrollTop : $("#" + element).offset().top - 210
}, 2000);
} else if (element == 'parent-app') {
$('html, body').animate({
scrollTop : $("#" + element).offset().top - 250
}, 2000);
} else if (element == 'senior-app') {
$('html, body').animate({
scrollTop : $("#" + element).offset().top - 200
}, 2000);
}
</script>
<script async="true">
$('#forgot_password').on("click", function() {
document.getElementById("new_password").value = "";
document.getElementById("confirm_password").value = "";
document.getElementById("user-name").value = "";
})
$("#loginNowBtn").on("click", function() {
$("#regPopUp").trigger('click');
$("#firstPopupClose").trigger('click');
});
</script>
<script type="text/javascript" async="true">
$(".logoutButton")
.on(
"click",
function() {
console.log("logoutButton");
swal(
{
title : "Are you sure you
want to Logout ?",
type : "warning",
dangerMode : true,
showCancelButton : true,
confirmButtonClass : 'btn-
danger',
confirmButtonColor :
'#DD6B55',
confirmButtonText : 'Yes, I
am sure!',
cancelButtonText : "Continue
to site.",
closeOnConfirm : false,
closeOnCancel : false
},
function(isConfirm) {
if (isConfirm) {
swal("Logout!",
"Thanks for
visit our site.",
"success");
window.location.href =
"/logout";
} else {
swal("Cancelled",
"Continue to site.",
"error");
}
});
});
</script>
<script async="true">
$(document).ready(
function() {
$('.modal').on('hidden.bs.modal', function() {
$(this).find("input,textarea").val('').end();
});
$('#model-register-senior').on('hidden.bs.modal',
function() {
$("#otpHiddenDiv1").hide();
$("#name").removeAttr('readonly');
$("#cEmail").removeAttr('readonly');
$("#mobile").removeAttr('readonly');
$("#send_otp").attr("disabled", false);
$("#register").attr("disabled", true);
$(".ds").show();
});
$("#ref").click(function() {
window.location.reload();
});
$(".modal").on(
"show.bs.modal",
function() {
if ($(this).attr('id') !=
"PracticeObjective"
&& $(this).attr('id') !=
"correctModal"
&& $(this).attr('id') !=
"incorrectModal") {
// alert($
(this).attr('id'));
$(".modal").modal("hide");
$(this).show();
}
});
});
</script>
<script type="text/javascript">
$(".search")
.click(
function() {
$('#myform2').html('');
$('#sizes').html('');
var question1 = $("#form1").val();
var ht = '/ask-an-expert/question?questions='
+ question1;
$("#sendquestion").attr('href', ht);
});
</script>
</body>
</html>