A DC motor is an electrical machine that converts electrical energy into mechanical energy. In a DC motor, the input electrical energy is the direct current which is transformed into the mechanical rotation. In this session, let us know what is a DC motor, types of DC motor and their applications.
A DC motor is defined as a class of electrical motors that convert direct current electrical energy into mechanical energy.
From the above definition, we can conclude that any electric motor that is operated using direct current or DC is called a DC motor. We will understand the DC motor construction and how a DC motor converts the supplied DC electrical energy into mechanical energy in the next few sections.
DC Motor Diagram
Different Parts of a DC Motor
A DC motor is composed of the following main parts::
Armature or Rotor
The armature of a DC motor is a cylinder of magnetic laminations that are insulated from one another. The armature is perpendicular to the axis of the cylinder. The armature is a rotating part that rotates on its axis and is separated from the field coil by an air gap.
Field Coil or Stator
A DC motor field coil is a non-moving part on which winding is wound to produce a magnetic field. This electro-magnet has a cylindrical cavity between its poles.
Commutator and Brushes
Commutator
The commutator of a DC motor is a cylindrical structure that is made of copper segments stacked together but insulated from each other using mica. The primary function of a commutator is to supply electrical current to the armature winding.
Brushes
The brushes of a DC motor are made with graphite and carbon structure. These brushes conduct electric current from the external circuit to the rotating commutator. Hence, we come to understand that the commutator and the brush unit are concerned with transmitting the power from the static electrical circuit to the mechanically rotating region or the rotor.
DC Motor Working
In the previous section, we discussed the various components of a DC motor. Now, using this knowledge let us understand the working of DC motors.
A magnetic field arises in the air gap when the field coil of the DC motor is energised. The created magnetic field is in the direction of the radii of the armature. The magnetic field enters the armature from the North pole side of the field coil and “exits” the armature from the field coil’s South pole side.
The conductors located on the other pole are subjected to a force of the same intensity but in the opposite direction. These two opposing forces create a torque that causes the motor armature to rotate.
Working principle of DC motor
When kept in a magnetic field, a current-carrying conductor gains torque and develops a tendency to move. In short, when electric fields and magnetic fields interact, a mechanical force arises. This is the principle on which the DC motors work.
DC motors have a wide range of applications ranging from electric shavers to automobiles. To cater to this wide range of applications, they are classified into different types based on the field winding connections to the armature as:
Self Excited DC Motor
Separately Excited DC Motor
Now, let us discuss the various types of DC Motors in detail.
Self Excited DC Motor
In self-excited DC motors, the field winding is connected either in series or parallel to the armature winding. Based on this, the self-excited DC motor can further be classified as:
Shunt wound DC motor
Series wound DC motor
Compound wound DC motor
Shunt wound DC motor
In a shunt wound motor, the field winding is connected parallel to the armature as shown in the figure.
Series wound DC motor
In a series wound DC motor, the field winding is connected in series with the armature winding as shown in the figure.
Compound wound DC motor
DC motors having both shunt and series field winding is known as Compound DC motor, as shown in the figure. The compound motor is further divided into:
Cumulative Compound Motor
Differential Compound Motor
In a cumulative compound motor, the magnetic flux produced by both the windings is in the same direction. In a differential compound motor, the flux produced by the series field windings is opposite to the flux produced by the shunt field winding.
Separately Excited DC Motor
In a separately excited DC motor, the field coils are energised from an external source of DC supply as shown in the figure.
Brushed DC Motor vs Brushless DC Motor
A brushless DC motor, also known as synchronous DC motor, unlike brushed DC motors, do not have a commutator. The commutator in a brushless DC motor is replaced by an electronic servomechanism that can detect and adjust the angle of the rotor.
A brushed DC motor features a commutator that reverses the current every half cycle and creates single direction torque. While brushed DC motors remain popular, many have been phased out for more efficient brushless models in recent years.
Applications of DC Motor
The applications of different types of DC motors are listed below:
Shunt DC Motors
Owing to the fairly constant speed and medium starting torque of shunt DC motors, they are used in the following applications:
Centrifugal and reciprocating pumps
Lathe machines
Blowers and Fans
Drilling machines
Milling machines
Machine tools
Series DC Motors
Owing to the high starting torque and variable speed of series DC motors, they are used in the following applications:
Conveyors
Hoists, Elevators
Cranes
Electric Locomotives
Cumulative Compound DC motors
Owing to the high starting torque of cumulative compound DC motors, they are used in the following applications:
Shears
Heavy Planers
Rolling mills
Elevators
Frequently Asked Questions on DC Motor
Can a DC motor run on AC?
Yes, the DC series motor runs on single-phase AC supply. This is because the torque, which varies as the product of the armature and field current, is always positive. Thus, a positive average torque causes the motor to rotate.
What is a Universal motor?
A universal motor is a special type of motor that can run on either DC or single-phase AC supply.
When is a DC motor preferred over an AC motor?
When precise control is needed, DC motors offer a wide range of possibilities concerning speed control. Due to this reason, industrial machinery that requires high precision works with DC motors.
DC motors offer excellent response characteristics when starting, stopping and reversing their spin direction.
The energy stored in the batteries of electric vehicles is in the form of DC. Hence, DC motors are compatible with electric vehicles.
When was the DC motor invented?
William Sturgeon invented the first DC motor in 1886.
Why are DC ceiling fans better?
DC motor fans use 70% less energy than a standard AC fan.
DC motor fans are less noisy.
DC motor fans have more speed options than an AC motor fan.
Stay tuned to BYJU’S and Fall in Love with Learning!
Test your knowledge on DC motor
Q5
Put your understanding of this concept to test by answering a few MCQs. Click ‘Start Quiz’ to begin!
Select the correct answer and click on the “Finish” button Check your score and answers at the end of the quiz
Congrats!
Visit BYJU’S for all Physics related queries and study materials
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);if(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),!c.isInStateTrue())return clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-mo.width?"left":"left"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null,a.$element=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.7",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'
'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.7",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(void 0===e[a+1]||b .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.7",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return e=a-d&&"bottom"},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);
/*calc.js start*/
function approximateFractions(e){var r=!1;0>e&&(e=-e,r=!0);for(var a,t=[0,1],s=[1,0],n=getMaxNumerator(e),i=e,l=NaN,o=2;1e3>o;o++){var f=Math.floor(i);if(t[o]=f*t[o-1]+t[o-2],Math.abs(t[o])>n)break;if(s[o]=f*s[o-1]+s[o-2],a=t[o]/s[o],a==l)break;if(a==e)break;l=a,i=1/(i-f)}return r&&(t[o]=-t[o]),[t[o],s[o]]}function getMaxNumerator(e){var r=null,a=e.toString().indexOf("E");-1==a&&(a=e.toString().indexOf("e")),r=-1==a?e.toString():e.toString().substring(0,a);var t=null,s=r.toString().indexOf(".");-1==s?t=r:0==s?t=r.substring(1,r.length):s0&&n%2==0;c--)n/=2;for(var c=f;c>0&&n%5==0;c--)n/=5;return n}function str_repeat(e,r){for(var a=[];r>0;a[--r]=e);return a.join("")}function sprintf(){for(var e,r,a,t,s,n=0,i=arguments[n++],l=[],o="";i;){if(r=/^[^\x25]+/.exec(i))l.push(r[0]);else if(r=/^\x25{2}/.exec(i))l.push("%");else{if(!(r=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(i)))throw"Huh ?!";if(null==(e=arguments[r[1]||n++])||void 0==e)throw"Too few arguments.";if(/[^s]/.test(r[7])&&"number"!=typeof e)throw"Expecting number but found "+typeof e;switch(r[7]){case"b":e=e.toString(2);break;case"c":e=String.fromCharCode(e);break;case"d":e=parseInt(e);break;case"e":e=r[6]?e.toExponential(r[6]):e.toExponential();break;case"f":e=r[6]?parseFloat(e).toFixed(r[6]):parseFloat(e);break;case"o":e=e.toString(8);break;case"s":e=(e=String(e))&&r[6]?e.substring(0,r[6]):e;break;case"u":e=Math.abs(e);break;case"x":e=e.toString(16);break;case"X":e=e.toString(16).toUpperCase()}e=/[def]/.test(r[7])&&r[2]&&e>=0?"+"+e:e,t=r[3]?"0"==r[3]?"0":r[3].charAt(1):" ",s=r[5]-String(e).length-o.length,a=r[5]?str_repeat(t,s):"",l.push(o+(r[4]?e+a:a+e))}i=i.substring(r[0].length)}return l.join("")}var jsCalc={ge:function(e){return document.getElementById(e)},error:0,mark:function(e,r){var a=jsCalc.ge(e);"error"==r?(a&&(a.style.border="2px solid #a00"),jsCalc.error=1):a&&(a.style.removeAttribute?a.style.removeAttribute("border"):a.style.removeProperty("border"))},geV:function(e){var r=jsCalc.ge(e);return r&&r.value.length>0?r.value:e in jsCalc.varcache[jsCalc.prefix]?jsCalc.varcache[jsCalc.prefix][e]:NaN},mapGet:function(e){return"_str"===e.substr(0,4)||"str"===e.substr(0,3)?jsCalc.geV(e):jsCalc.gefV(e)},gefV:function(e){var r=parseFloat(jsCalc.geV(e));return isNaN(r)?void jsCalc.mark(e,"error"):(jsCalc.mark(e,"default"),1*r)},sV:function(e,r){if(!jsCalc.error){var a=jsCalc.ge(e);if(jsCalc.varcache[jsCalc.prefix][e]=r,a){var t=jsCalc.ge(e+"_pow");if(t&&(t.style.display="none"),r+="",-1==r.indexOf("e")||"_str"==e.substr(0,4)){if("_str"!=e.substr(0,4)){var s=r.indexOf(".");s>=0&&r.length-s>3&&(r=sprintf("%0.3f",parseFloat(r)))}a.value=r;var n=Math.round(Math.max(a.value.length/1.5,3));a.style.width=Math.min(n,20)+"em"}else{if(!t){var t=document.createElement("div");t.className="oInp oOutp",t.style.display="inline-block",a.parentNode.insertBefore(t,a.nextSibling),r=r.replace(/e/," x 10")+"",t.innerHTML=r}a.style.display="none"}}}},cache:{},varcache:{},prefix:"",replaceVars:function(e){return e.replace(/#(_?[a-z]+)/g,"jsCalc.mapGet('$1')")},fX_sqrt:function(e){return 0>e?(jsCalc.error=1,alert("Square root of a negative number"),0):Math.sqrt(e)},replaceHFuncs:function(e){return e.replace(/Math\.sqrt/g,"jsCalc.fX_sqrt")},solve:function(prefix,ho,nocache){if(jsCalc.error=0,jsCalc.prefix=prefix,prefix in jsCalc.cache)var defns=jsCalc.cache[prefix];else{var s=jsCalc.geV(ho);0==s.length&&alert("Error, no definitions"),eval("var obj = "+s+";");for(var defns=obj.pop(),i=0;i0)for(var t=0;t
',CURRENT_SCROLL_TOP=jQuery(window).scrollTop(),WINDOW_WIDTH=jQuery(window).outerWidth(),WINDOW_HEIGHT=jQuery(window).outerHeight(),IS_MOBILE=WINDOW_WIDTHe.offset().top&&(e.css("height",e.find(".register-now-top-widget-container").outerHeight()+"px"),e.find(".register-now-top-widget-container").addClass("sticky"))},3e3);var HeaderlastScrollTop=0;jQuery(window).scroll(function(e){var t=jQuery(this).scrollTop();CURRENT_SCROLL_TOP=t;var i=jQuery("#register-now-top-widget-strip");t>HeaderlastScrollTop?(HeaderlastScrollTop>WINDOW_HEIGHT&&jQuery("#fixed-up-arrow").removeClass("hidden"),!jQuery(".header.fixed-header").length&&i.length&&(i.find(".register-now-top-widget-container").is(":visible")?t>i.offset().top&&(i.css("height",i.find(".register-now-top-widget-container").outerHeight()+"px"),i.find(".register-now-top-widget-container").addClass("sticky")):i.css("margin-top","0px"))):(HeaderlastScrollTop"+i.message+" Status:"+e.status+"("+e.statusText+")")},cache:!1,contentType:!1,processData:!1})},getData:function(e,t,i,a){jQuery.ajax({type:"GET",url:e,dataType:t,headers:{"content-type":"application/x-www-form-urlencoded"},success:function(e){MAIN.callAfterResponseFunction(e,i)},complete:function(){a&&MAIN.callAfterResponseFunction(null,a)},error:function(e,t,a,r){console.error("Unable to reach "+i+"\n An Event has thrown the following error: "+t+"--->"+a.message+" Status:"+e.status+"("+e.statusText+")")},cache:!1,contentType:!1,processData:!1})},callAfterResponseFunction:function(e,t){if(t){var i=t.split(".");if(i.length>1)switch(i[0]){case"WIDGETS":WIDGETS[i[1]](e);break;case"CS":CS[i[1]](e);break;case"CS_UTILITIES":CS_UTILITIES[i[1]](e);break;case"MAIN_UTILITIES":MAIN_UTILITIES[i[1]](e);break;case"MAIN":MAIN[i[1]](e);break;default:CS_ONLOAD[i[1]](e)}}},generateHref:function(e,t,i){e.preventDefault();var a=localStorage.getItem("UTM"),r=jQuery(t).attr("href");switch(a=a||"Organic",r=MAIN_UTILITIES.replaceAll("_UTM_CAMPAIGN_OR_INSTANCE_",MAIN_UTILITIES.getParamValueByName("utm_campaign",a)?MAIN_UTILITIES.getParamValueByName("utm_campaign",a):INSTANCE_NAME,r),r=MAIN_UTILITIES.replaceAll("_UTM_CAMPAIGN_TYPE_",MAIN_UTILITIES.getParamValueByName("utm_campaign",a)?"Paid":"Organic",r),r=MAIN_UTILITIES.replaceAll("_UTM_CAMPAIGN_ID_",MAIN_UTILITIES.getParamValueByName("utm_campaign_id",a),r),r=MAIN_UTILITIES.replaceAll("_UTM_CAMPAIGN_",MAIN_UTILITIES.getParamValueByName("utm_campaign",a),r),r=MAIN_UTILITIES.replaceAll("_UTM_ADSET_ID_",MAIN_UTILITIES.getParamValueByName("adset_id",a),r),r=MAIN_UTILITIES.replaceAll("_UTM_AD_ID_",MAIN_UTILITIES.getParamValueByName("ad_id",a),r),r=MAIN_UTILITIES.replaceAll("_UTM_CONTENT_",MAIN_UTILITIES.getParamValueByName("utm_content",a),r),r=MAIN_UTILITIES.replaceAll("_UTM_SITE_ID_",MAIN_UTILITIES.getParamValueByName("site_id",a),r),r=MAIN_UTILITIES.replaceAll("_UTM_PID_",MAIN_UTILITIES.getParamValueByName("pid",a),r),r=MAIN_UTILITIES.replaceAll("_UTM_TERM_",MAIN_UTILITIES.getParamValueByName("utm_term",a),r),jQuery(t).attr("href",r),window.location=r,i){case"register_popup":GA_FLAG&&(jQuery(t).attr("data-title")&&jQuery(t).attr("data-title").length?ga("send","event",jQuery(t).attr("data-title"),"popup click","popup click"):(jQuery(t).removeAttr("data-title"),ga("send","event","Register Widget Popup "+FORM_NAME,"popup click","popup click"))),CS_ONLOAD.triggerCleverTapEvent("click_register_for_free");break;case"register":GA_FLAG&&ga("send","event","Register Now sidebar click "+FORM_NAME,"widget click","widget click");break;case"ask_a_doubt":GA_FLAG&&ga("send","event","Ask a doubt sidebar click "+FORM_NAME,"widget click","widget click");break;case"top_banner":GA_FLAG&&(jQuery(t).attr("data-title")&&jQuery(t).attr("data-title").length?ga("send","event",jQuery(t).attr("data-title"),"banner click","banner click"):(jQuery(t).removeAttr("data-title"),ga("send","event","Top Banner Widget "+FORM_NAME,"banner click","banner click")));break;case"download_pdf":GA_FLAG&&ga("send","event","Download PDF widget","widget click",FORM_NAME);break;case"practice_bottom_popup":GA_FLAG&&ga("send","event","Practice Below Content Widget "+FORM_NAME,"widget click","widget click");break;case"practice_popup":GA_FLAG&&ga("send","event","Practice Sidenav Widget "+FORM_NAME,"widget click","widget click")}}},MAIN_UTILITIES={ajaxCall:function(e,t,i,a){jQuery.ajax({type:e,url:t,crossDomain:!0,data:i,headers:{"content-type":"application/x-www-form-urlencoded"},success:function(e){a&&a(e)},error:function(e){a&&a(e)}})},getParamValueByName:function(e,t){e=e.replace(/[\[\]]/g,"\\$&");var i=new RegExp("[?&]"+e+"(=([^]*)|&|#|$)"),a=i.exec(t);return a&&a[2]?decodeURIComponent(a[2].replace(/\+/g," ")):""},updateParamValueByName:function(e,t,i){var a=new RegExp("([?&])"+t+"=.*?(&|$)","i"),r=-1!==e.indexOf("?")?"&":"?";return e.match(a)?e.replace(a,"$1"+t+"="+i+"$2"):e+r+t+"="+i},nameValiadation:function(e,t,i){var a=jQuery(e),r=a.val(),s=i||"Name",n="",o=/^[a-zA-Z][a-zA-Z\-\ \.]{2,}$/i;return a.siblings(".input-error-msg").remove(),n=r&&null!==r?r.length'+n+"
"),!1):(a.removeClass("input-error"),a.addClass("input-valid"),!0)},phoneValidation:function(e,t){var i=jQuery(e),a=i.val(),r="",s=/^\d{10}$/;return i.siblings(".input-error-msg").remove(),a&&null!==a?a.match(s)||(r="Mobile No. should be 10 digits."):r="Mobile No. is required.",r?(i.addClass("input-error").removeClass("input-valid"),i.after('
'+r+"
"),!1):(i.removeClass("input-error"),i.addClass("input-valid"),!0)},percentageValidation:function(e,t){var i=jQuery(e),a=i.val(),r="",s=/\b(^3[5-9]$|^[4-9][0-9]$|100)\b/gm;return i.siblings(".input-error-msg").remove(),a&&null!==a?a.match(s)||(r="Percentage should be a Whole Number between 35 and 100"):r="Percentage is required.",r?(i.addClass("input-error").removeClass("input-valid"),i.after('
'+r+"
"),!1):(i.removeClass("input-error"),i.addClass("input-valid"),!0)},uploadSizeValidation:function(e,t){var i=jQuery(e);if((void 0===i.attr("data-optional")||!1===i.attr("data-optional"))&&i.prop("files")&&i.prop("files").length>0){var a=i.prop("files")[0].size,r=i.prop("files")[0].name.split(".").pop().toLowerCase(),s=5242880,n="";return i.siblings(".input-error-msg").remove(),a>=s&&(n="File must be less than 5 MB."),-1==jQuery.inArray(r,["pdf","doc","docx"])&&(n="Please upload only pdf,doc,docx format files."),n?(i.addClass("input-error").removeClass("input-valid"),i.after('
'+n+"
"),!1):(i.removeClass("input-error"),i.addClass("input-valid"),!0)}return!1},ctcValidation:function(e,t){var i=jQuery(e),a=i.val(),r="",s=/^\d{5,}$/,n=/^[0-9]*(?:\.\d{1,2})?$/;return i.siblings(".input-error-msg").remove(),a&&null!==a?n.test(a)?a.match(s)||(r="CTC should be minimum 5 digits."):r="CTC should be in numbers.":r="CTC is required.",r?(i.addClass("input-error").removeClass("input-valid"),i.after('
'+r+"
"),!1):(i.removeClass("input-error"),i.addClass("input-valid"),!0)},emailValidation:function(e,t){var i=jQuery(e),a=i.val(),r="",s=/^(([^()[\]\\.,;:\s@\"]+(\.[^()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,13}))$/;return i.siblings(".input-error-msg").remove(),a&&null!==a?a.match(s)||(r="Email-id is not valid."):r="Email-id is required.",r?(i.addClass("input-error").removeClass("input-valid"),i.after('
'+r+"
"),!1):(i.removeClass("input-error"),i.addClass("input-valid"),!0)},requiredValidation:function(e,t,i){var a=jQuery(e),r=a.val(),s="";return a.siblings(".input-error-msg").remove(),r&&null!==r||(s=i+" is required."),s?(a.addClass("input-error").removeClass("input-valid"),a.after('
')}return!1}},PAGE_FORM_POPUP_COOKIE=MAIN_UTILITIES.getCookie("56j5jkregistrationkl5kj7formrgt45popup7sub")||MAIN_UTILITIES.getCookie("pagebformypopupj"),WIDGETS={joinByjusFormSubmitForm:function(e,t){e.preventDefault();var i=jQuery(t);i.find('input[name="mx_Inbound_Enquiry_Date"]').val(MAIN_UTILITIES.getCurrentDateTime("yyyy-mm-dd hh:mm:ss-UTC"));var a=i.find(".form-group input"),r=i.find(".form-group select");if(i.find(".form-group input.input-valid").length==a.length&&i.find(".form-group select.input-valid")){CS_UTILITIES.addToastMessage("page-form-popup-and-widget-0","Form details are submitting.."),i.find('button[type="submit"]').attr("disabled",!0).html("Loading.."),i=MAIN_UTILITIES.getLSTableIdByGradeName(i);var s,n,o,l,u=i.serialize();s=MAIN_UTILITIES.getParameterByName("utm_source",C_URL),n=MAIN_UTILITIES.getParameterByName("utm_campaign",C_URL),o=MAIN_UTILITIES.getParameterByName("utm_content",C_URL),l=MAIN_UTILITIES.getParamValueByName("Website",u);var d=MAIN_UTILITIES.getParamValueByName("gclid",C_URL);function c(e){for(var t=e.split("&"),i=t.length,a=[],r=0;rCongrats! You're a step closer to your IAS dreamOur mentors shall get in touch with you soon to help you plan your preparation better. Good Luck!"):a=a+"
Thank you for connecting with BYJU'S!!,
Our Counsellors will get in touch with you soon and help you get started with your "+FORM_NAME+" Preparation",a+="
",i.after(a)}"register-popup-form-widget"==i.attr("id")?(MAIN_UTILITIES.setCookie("pagebformypopupj",1,15),GA_FLAG&&ga("send","event",INSTANCE_NAME+" Popup Form Successful","Form Submission activity created Successfully","URL: "+C_URL)):"join-byjus-form-widget"==i.attr("id")&&GA_FLAG&&ga("send","event",INSTANCE_NAME+" Lead Form Successful"," Lead Form Submission activity created Successfully","URL: "+C_URL)}else CS_UTILITIES.addToastMessage("page-form-popup-and-widget-0",e.responseJSON.message),"join-byjus-form-widget"==i.attr("id")?GA_FLAG&&ga("send","event",INSTANCE_NAME+" Lead Form Failed","Lead Form Submission activity created Failed","URL: "+C_URL):GA_FLAG&&ga("send","event",INSTANCE_NAME+" Popup Form Failed","Form Submission activity created Failed","URL: "+C_URL)}})}else e.preventDefault(),a.each(function(e,t){jQuery(t).blur()}),r.blur();if(GA_FLAG){var m=jQuery(t).attr("id");"register-popup-form-widget"===m?ga("send","event","Form Popup Button Click: "+FORM_NAME,"On Submitting Form","Form Values: "+jQuery(t).serialize()):"join-byjus-form-widget"===m&&(INSTANCEWISE_FORM_SUBMIT_EVENT.includes(INSTANCE_NAME)&&dataLayer.push({event:"form_submit_button_successful",form_name:"Join BYJU'S Learning Program"}),ga("send","event","Join BYJU'S Form Button Click: "+FORM_NAME,"On Submitting Form","Form Values: "+jQuery(t).serialize()))}},videoWidgetIndicator:function(e,t){var i=jQuery(e).attr("data-video"),a=t?jQuery(".video-widget"+t+" video"):jQuery(".video-widget").not(".big").find("video"),r=a.find("source");r.attr("src",i),a[0].load()},practiceWidgetSubmitForm:function(e,t,i){e.preventDefault()
;var a=MAIN_UTILITIES.getParameterByName("practice_widget",jQuery(t).serialize()),r=jQuery(t),s=r.find("button[type='submit']").attr("data-href");if(a){r.find(".input-error-msg").remove();var n=jQuery("#practice-widget-after-loggedin-popup"),o=jQuery("#practice-widget-before-loggedin-popup");"not-connected"!=MAIN_UTILITIES.getCookie("loggedin-status")?(o.find(".modal-title").addClass("hidden"),"true"===a?o.find(".modal-title.success").removeClass("hidden"):o.find(".modal-title.fail").removeClass("hidden"),o.find(".modal-footer>a").attr("href",s),o.modal("show")):(n.find(".modal-title").addClass("hidden"),"true"===a?n.find(".modal-title.success").removeClass("hidden"):n.find(".modal-title.fail").removeClass("hidden"),n.find(".modal-footer>a").attr("href",s),n.modal("show")),"practice"==i?(o.find(".modal-footer>a").attr("onclick","MAIN.generateHref(event, this, 'practice_bottom_popup')"),n.find(".modal-footer>a").attr("onclick","MAIN.generateHref(event, this, 'practice_bottom_popup')")):(o.find(".modal-footer>a").attr("onclick","MAIN.generateHref(event, this, 'practice_popup')"),n.find(".modal-footer>a").attr("onclick","MAIN.generateHref(event, this, 'practice_popup')"))}else r.append('
Select an option to proceed!
')},searchWidget:function(){function e(e,t){var i=e.val().trim();e.val(i);var a="",r=/\`|\~|\!|\@|\#|\$|\%|\^|\&|\*|\(|\)|\+|\=|\[|\{|\]|\}|\||\\|\'|\|\?|\/|\""|\;|\:/g;return e.siblings(".input-error-msg").remove(),i&&null!==i?-1!=i.indexOf("byjus.com/")?(i=i.split("byjus.com/")[1].split("/").join(" "),e.val(i.trim())):i.match(r)?a="Special characters not allowed.":i.length>50&&(a="Allowed maximum 50 characters only."):a="Search keyword is required.",a?(e.addClass("input-error").removeClass("input-valid"),e.after('
Take Quiz Again'),jQuery("[data-final-message]").show()),!0)}),l.on("click",function(){r=jQuery(this).parents("form").data("question"),currentCheckedVal=jQuery(this).closest(":has(ul li)").find("input[name=queName_"+r+"]:checked").val(),currentCheckedVal===s[r]&&(t+=a),n.removeClass("active"),jQuery("[data-final-result]").show().append("
Your final score is: "+t+" out of "+i+'
Take Quiz Again'),jQuery("[data-final-message]").show()})}},greCarousalText:function(){var e=jQuery("[data-gre-template]"),t=jQuery("[data-gre-carousal-text]"),i=jQuery("[data-gre-submit]"),a=jQuery("[data-reg-category]");if(0!=e.length){var r=jQuery("[data-carousal-gre]");r.on("slide.bs.carousel",function(){var e=jQuery(this).find(".active").index()+2,r="REGISTER FOR A Free ONLINE DEMO CLASS",s="Get FREE Class";2===e?(r="REGISTER NOW TO GET A FREE DEMO OF OUR SPECIAL VOCAB TOOL",s="SUBSCRIBE NOW",a.val("CAT 2")):3===e?(r="REGISTER NOW FOR AN INTRODUCTORY COUNSELLING CALL",s="SUBMIT",a.val("CAT 3")):4===e?(r="REGISTER HERE TO GET FREE LECTURES",s="SUBMIT",a.val("CAT 4")):5===e?(r="GET 7 DAYS FREE ACCESS TO OUT STUDY ANALYTICS",s="SUBMIT",a.val("CAT 5")):6===e&&(r="ATTEND A ROAD MAP SESSION TO PLAN YOUR MASTERS ABROAD",s="SUBMIT",a.val("CAT 6")),t.text(r),i.text(s)})}},campaignTypeChange:function(){var e=jQuery("form").find("[data-campaign-type]");if(e&&0!=e.length){var t="Organic";if(e.val(t),C_URL.indexOf("utm")>-1){t="Paid";e.val(t)}}},citiesDropdown:function(){var e=jQuery("form").find("[data-cities-list-input]"),t=jQuery("form").find("[data-cities-list]");e&&0!=e.length&&jQuery.ajax({type:"GET",dataType:"json",url:"https://s3-ap-southeast-1.amazonaws.com/subscriber.images/cities-json/cities.json",success:function(e){var i="";for(var a in e)i+="";i+="",t.append(i)}})},resumeUpload:function(){var e=jQuery("form[data-apply-form]");if(e&&0!=e.length){var t=BASE_URL+"apis/upload_to_s3/",i=(e.find("[data-file-upload-form]"),e.find("[data-file-upload-input]")),a=e.find("[data-google-file-path]"),r=e.find("[data-ls-file-path]"),s=e.attr("action"),n=e.attr("method").toUpperCase(),o=e.attr("data-cs-success-message");e.serialize();CS_ONLOAD.inputValidation(1,e),e.on("submit",function(e){var l=jQuery(this);if(e.preventDefault(),CS_ONLOAD.inputValidation(0,l)){var u=5242880,d=MAIN_UTILITIES.getParameterByName("referrer",C_URL);function c(e,t,i,a){jQuery.ajax({type:e,url:t,crossDomain:!0,data:i,headers:{"content-type":"application/x-www-form-urlencoded"},success:function(e){a&&a(e)},error:function(e){a&&a(e)}})}function m(e){var t=l.attr("data-cs-self-lead-try-msg");t=t||"Please try after sometime",CS_UTILITIES.removeToastMessage("apply-lead-form-121");e=JSON.parse(e);if(e&&"Success"==e.Status)c(n,s,p),l[0].reset(),l.find("input").removeClass("input-valid"),o?jQuery("#choose-your-app-sms-success-modal h5").html(o):jQuery("#choose-your-app-sms-success-modal h5").html("Form is submitted!"),jQuery("#choose-your-app-sms-success-modal").modal("show"),jQuery("#choose-your-app-sms-success-modal").on("hide.bs.modal",function(){CS_UTILITIES.addToastMessage("apply-lead-form-121",l.attr("data-redirecting-text")?l.attr("data-redirecting-text"):"Redirecting to life at byjus."),window.location.href="https://blog.byjus.com/life-at-byjus/"});else if(e&&"Error"==e.Status){var i=e.ExceptionMessage?e.ExceptionMessage:e.Message;CS_UTILITIES.addToastMessage("apply-lead-form-122",i)}else CS_UTILITIES.addToastMessage("ls-1",t)}if(p+=d?"&mx_Referral_Employee_Email="+d:"",""!=i.val()&&i.prop("files")[0].size>0&&i.prop("files")[0].size"+i.message+" Status:"+e.status+"("+e.statusText+")")},processData:!1})}else{p=l.serialize();var g="No resume";a.val(g),r.val(g),p=l.serialize();f=i.prop("files")[0];l.find("input[data-name-convention]").each(function(){jQuery(this).val(jQuery(this).siblings("[data-cs-common]").val())}),p=l.serialize();d=MAIN_UTILITIES.getParameterByName("referrer",C_URL);p+=d?"&mx_Referral_Employee_Email="+d:"",CS_UTILITIES.addToastMessage("apply-lead-form-121",l.attr("data-loading-text")?l.attr("data-loading-text"):"Loading.."),p=MAIN_UTILITIES.validatePostData(p),c("POST",CONFIG.apis.ls.create_or_update_lead,p,m),GA_FLAG&&ga("send","event","sendPageLevelForm","form submit","form submit")}}})}},genderChange:function(){var e=jQuery("form").find("[data-gender]"),t=jQuery("form").find("[data-gender-val]");e.each(function(){jQuery(this).on("click",function(){var e=jQuery(this).val();t.val(e)})})},deferImage:function(){jQuery("img.lazy-img").each(function(){var e=jQuery(this);e.fadeIn(),e.attr("src",e.attr("data-src"),e.removeAttr("data-src"),e.removeClass("lazy-img"))})},commentBoxWithGoogleCaptcha:function(){jQuery("#commentform").length&&jQuery("#commentform").submit(function(){event.preventDefault(),jQuery(".cb-error-msg, .cb-success-msg").remove();var e=author_submit_form=email_submit_form=captcha_submit_form=!1,t=jQuery(this);t.find('input[name="submit"]').attr("disabled","disabled").val("Posting...").addClass("post-class"),t.find('textarea[name="comment"]').removeClass("cb-error");var i=t.find('textarea[name="comment"]').val().trim(),a=i.replace(/(]+)>)/gi,"_HTML_").trim(),r=a.split(" ").join("\n");r=r.replace(/^\s*(\[\s*url\s*=\s*)?(https?:\/\/)?(www\.|\S+?\.)(\S+?\.)?\S+\s*$\s*/gm,"_URL_").trim(),""===i||null==i?t.find('textarea[name="comment"]').after('Please enter comment.').addClass("cb-error"):""===a||-1!==a.indexOf("_HTML_")?t.find('textarea[name="comment"]').after('HTML tags are not allowed for comment.').addClass("cb-error"):""===r||-1!==r.indexOf("_URL_")?t.find('textarea[name="comment"]').after('Any external links or urls are not allowed.').addClass("cb-error"):e=!0;var s=!1,n=t.serializeArray(),o={};if(jQuery.each(n,function(e,t){o[t.name]=t.value,"_wp_unfiltered_html_comment"===t.name&&null!==t.value&&(s=!0)}),!1===s){t.find('input[name="author"]').removeClass("cb-error"),t.find('input[name="email"]').removeClass("cb-error");var l=t.find('input[name="author"]').val().trim(),u=/^[a-z A-Z]*$/;""===l||null==l?t.find('input[name="author"]').after('Please enter your name.').addClass("cb-error"):!1===u.test(l)?t.find('input[name="author"]').after('Only alphabets are allowed.').addClass("cb-error"):(author_submit_form=!0,o.author=l);var d=t.find('input[name="email"]').val().trim(),c=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+\.[a-zA-Z]{2,4}$/i;if(""===d||null==d?t.find('input[name="email"]').after('Please enter your email address.').addClass("cb-error"):!1===c.test(d)?t.find('input[name="email"]').after('Please enter valid email address.').addClass("cb-error"):(email_submit_form=!0,o.email=d),0!==t.find('textarea[name="g-recaptcha-response"]').length){var m=t.find('textarea[name="g-recaptcha-response"]').val().trim();""===m||null==m?t.find(".g-recaptcha").append('Please check the captcha form.'):captcha_submit_form=!0}else captcha_submit_form=!0}else author_submit_form=!0,email_submit_form=!0,captcha_submit_form=!0;e&&author_submit_form&&email_submit_form&&captcha_submit_form?(o.comment=a,o.ajax_comment_request=1,jQuery.post(t.attr("action"),o,function(e){if(t.find('input[name="submit"]').attr("disabled",!1).val("Post Comment").removeClass("post-class"),null!=e){var i=JSON.parse(e);"success"===i.status&&i.response?(s?(window.location.href=i.response,window.location.reload(),GA_FLAG&&ga("send","event","Post Comment Successful","Post Comment activity created Successfully","URL: "+C_URL)):(t[0].reset(),0!==t.find('textarea[name="g-recaptcha-response"]').length&&grecaptcha.reset(),jQuery("#cancel-comment-reply-link").click(),jQuery(".form-submit").after('Thanks! Your comment has been submitted successfully. It will take some time to appear on the page.'),GA_FLAG&&ga("send","event","Post Comment Failed","Post Comment activity creation Failed","URL: "+C_URL)),GA_FLAG&&ga("send","event","Post Comment Successful","Post Comment activity created Successfully","URL: "+C_URL)):"invalid"===i.status&&i.response?(jQuery(".form-submit").after(''+i.response+""),GA_FLAG&&ga("send","event","Post Comment Invalid","Post Comment activity Invalid","URL: "+C_URL)):window.location.reload()}else jQuery(".form-submit").after('Something went wrong, please refresh the page and try again.')})):t.find('input[name="submit"]').attr("disabled",!1).val("Post Comment").removeClass("post-class")})},primaryHeaderReorderMenuItemsInMobile:function(){if(IS_WINDOW_BELLOW_992){var e=jQuery('#header-primary-menu a[href="/products/"]').parent();if(e&&!e.length)return;e.before(jQuery('#header-primary-menu a[href="/ncert-solutions/"]').parent()),e.before(jQuery('#header-primary-menu a[href="/education-boards-in-india/"]').parent()),e.before(jQuery('#header-primary-menu a[href="/jee/"]').parent())}},headerCompetitiveExamAddActiveClass:function(){var e,t=jQuery("#header-primary-menu>ul>li").length;if(IS_WINDOW_BELLOW_992>0&&t)for(let i=1;iul> li:nth-child("+i+")>a").text(),"COMPETITIVE EXAMS"===e&&jQuery("#header-primary-menu>ul> li:nth-child("+i+") ").addClass("active")},isCleverTapConfigured:function(){return"function"==typeof cleverTapProdTrigger},triggerCleverTapDefaultEvents:function(){cleverTapProdTrigger("pageview_Homepage"),jQuery("[data-clever-tap-event]").on("click",function(){$(this).attr("data-clever-tap-event")&&cleverTapProdTrigger($(this).attr("data-clever-tap-event"))})},triggerCleverTapEvent:function(e){this.isCleverTapConfigured()&&cleverTapProdTrigger(e)},salesCircleCityData:[],salesCircleCity:function(){null!=jQuery("select").attr("data-office-city-circle")&&jQuery.get(CONFIG.apis.db.city_office_circle_api,function(e,t){if("success"===t){salesCircleCityData=JSON.parse(e);var i='',a=[];salesCircleCityData&&salesCircleCityData.city_circle&&(a=salesCircleCityData.city_circle);for(var r=$.map(a,function(e,t){return[t]}),s=0;s'+r[s]+"";jQuery("[data-office-city-circle]").html(i)}})}},CS={ragQuizNextBtn:function(e){var t=jQuery("#rag-quiz"),i=jQuery(e),a=jQuery(e+" .item.active"),r='
Please select an option
';CS.ragQuizSuccessMessage(),a.find('input[type="radio"]:checked').length?(t.find(".input-error-msg").remove(),i.carousel("next"),jQuery("html, body").animate({scrollTop:jQuery("#rag-quiz").offset().top-30},400)):t.find(".rag-quiz-footer").append(r)},ragQuizPagination:function(e,t){if(e){var i=jQuery(t).val(),a=jQuery("#rag-quiz-carousel .item").length-1;iQuiz is Completed",a+="
You scored "+r+" point"+(r>1?"s":"")+" out of "+(t.find(".item").length-1)+" points.
';jQuery("body").append(i),jQuery("#toast-message-alert-"+e+" .toast-message-alert-close").click(function(){CS_UTILITIES.removeToastMessage(e)}),CS_UTILITIES.reArrangeToastMessages()},reArrangeToastMessages:function(){for(var e=CS_UTILITIES.toastMessageStack,t=20,i=0;i|\?|\/|\""|\;|\:/g;return e.siblings(".input-error-msg").remove(),i&&null!==i?-1!=i.indexOf("byjus.com/")?(i=i.split("byjus.com/")[1].split("/").join(" "),e.val(i.trim())):i.match(r)?a="Special characters not allowed.":i.length>50&&(a="Allowed maximum 50 characters only."):a="Search keyword is required.",a?(e.addClass("input-error").removeClass("input-valid"),e.after('
'+a+"
"),!1):(e.removeClass("input-error"),e.addClass("input-valid"),!0)}};jQuery(document).ready(function(){MOBILE_HEADER_SEARCH.searchAtQuestionCategoryMobileHeader(),jQuery("[data-ask-question-popup-button]").click(function(){CS.askQuestionPopupModalShow()}),jQuery(function(){jQuery('[data-toggle="popover"]').popover()}),jQuery(function(){jQuery(".arrow-button").click(function(){jQuery(".arrow-button").toggleClass("arrow-btn-up")})}),jQuery('a[href^="#"]').click(function(e){e.preventDefault(),document.location.hash=jQuery(this).attr("href").replace("#","")}),jQuery(".video-widget video").each(function(){jQuery(this).bind("ended",function(){jQuery(this).siblings(".video-widget-overlay").show()})}),jQuery(".clcbtn").click(function(){jsCalc.solve("","id_func_calc")});var e=sessionStorage.getItem("pageblevelynormaljpopupu"),t=sessionStorage.getItem("pageblevelyformjpopupu");jQuery("#register-modal-widget").length&&(jQuery("body").addClass("register-modal-widget-exist"),REGISTRATION_POPUP_SETTIMEUP=setTimeout(function(){jQuery("#pdf-download-register-modal").is(":visible")||(jQuery("#register-modal-widget").modal("show"),CS_ONLOAD.triggerCleverTapEvent("open_registration_popup"))},5e3),("NORMAL"==PAGE_POPUP_TYPE&&"1"===e||"FORM"==PAGE_POPUP_TYPE&&"1"===t||"FORM"==PAGE_POPUP_TYPE&&PAGE_FORM_POPUP_COOKIE)&&clearTimeout(REGISTRATION_POPUP_SETTIMEUP),jQuery("#register-modal-widget").on("hide.bs.modal",function(){"NORMAL"==PAGE_POPUP_TYPE?sessionStorage.setItem("pageblevelynormaljpopupu",1):"FORM"==PAGE_POPUP_TYPE&&sessionStorage.setItem("pageblevelyformjpopupu",1),CS_ONLOAD.triggerCleverTapEvent("close_registration_popup")}));var i=function(e){var t=!e.toElement&&!e.relatedTarget&&e.clientY *")),jQuery(".cb-comment-meta-data").addClass("cb-comment-gravatar")):(jQuery("#comment-for-desktop").append(jQuery("#comment-for-mobile > *")),jQuery(".cb-comment-meta-data").removeClass("cb-comment-gravatar")),jQuery("#wp-calendar").length&&(jQuery("#wp-calendar").removeClass("table").addClass("table"),jQuery("#wp-calendar>tbody>tr>td").not("td.pad,td#today").removeAttr("style").attr("style","border: 1px solid;border-radius: 5px !important;background: #813488;color: white;text-align: center;")),jQuery("#rag-quiz-carousel")&&jQuery("#rag-quiz-carousel").length&&CS_ONLOAD.ragQuiz(),jQuery(".table-responsive").length&&navigator.isMobile&&(CS_ONLOAD.swipeOnTable(),jQuery(window).scroll(function(){CS_ONLOAD.moveSwipeIconOnScroll()})),CS_ONLOAD.sessionQuiz(),CS_ONLOAD.sessionQuiztriggers(),CS_ONLOAD.midSideBySideSlider(),CS_ONLOAD.phoneValidationSendSms(),jQuery(".header li.has-sub").click(function(e){e.stopPropagation(),jQuery(this).toggleClass("active")}),jQuery("#header-primary-menu>ul>li").first().find("a").on("click",function(){"BOOK FREE CLASS"===jQuery(this).text()&&GA_FLAG&&ga("send","event","Book Free Class Primary Nav Click","Book Free Class Primary Nav Link Click","URL: "+C_URL)}),CS_ONLOAD.toMakePrimaryHeaderFixed(),CS_ONLOAD.selfFormSubmit(),CS_ONLOAD.contentPdfUrlsToLead(),CS_ONLOAD.toHideAllShareRow(),CS_ONLOAD.demoQuiz(),CS_ONLOAD.greCarousalText(),WIDGETS.searchWidget(),CS_ONLOAD.campaignTypeChange(),CS_ONLOAD.citiesDropdown(),CS_ONLOAD.resumeUpload(),CS_ONLOAD.genderChange(),CS_ONLOAD.generalLeadFormSubmit(),CS_ONLOAD.commentBoxWithGoogleCaptcha(),CS_ONLOAD.primaryHeaderReorderMenuItemsInMobile(),CS_ONLOAD.headerCompetitiveExamAddActiveClass(),jQuery("[data-datePicker]").length>0&&jQuery("[data-datePicker]").datepicker({format:"yyyy-mm-dd",orientation:"bottom"}).on("changeDate",function(){jQuery(this).datepicker("hide")}),CS_ONLOAD.isCleverTapConfigured()&&CS_ONLOAD.triggerCleverTapDefaultEvents(),CS_ONLOAD.salesCircleCity(),jQuery("[data-office-city-circle]").on("change",function(e){var t=jQuery("[data-office-city-circle]").val(),i='',a=[];salesCircleCityData&&salesCircleCityData.city_circle&&(a=salesCircleCityData.city_circle);for(var r=a[t],s=jQuery.map(r,function(e,t){return[e]}),n=0;n'+s[n]+"";jQuery("[data-office-circle]").html(i)});var s=jQuery(".join-byjus-form-widget");MAIN_UTILITIES.sidebarFormCityInputsValidation(s,"onInput"),MAIN_UTILITIES.cityAutoSuggestions(),MAIN_UTILITIES.countryBasedWigets()}),window.load=CS_ONLOAD.deferImage(),jQuery(".collapse").on("shown.bs.collapse",function(e){var t=jQuery(e.target).find(".table-overlay").length;tf&&h.css({position:"fixed",top:0,bottom:"auto"}),I=f&&("up"===e?i=f+h.outerHeight()-WINDOW_HEIGHT?"up"===e?i+WINDOW_HEIGHT>=h.outerHeight()+f&&i+WINDOW_HEIGHT=jQuery("[data-scroll-right-container]").outerHeight()+f?i+WINDOW_HEIGHT>=jQuery("[data-scroll-right-container]").outerHeight()+f&&i+WINDOW_HEIGHTn?"rightBlock":"leftBlock",d="rightBlock"===u?s:n,t.css({height:d+"px",position:"relative"}),i.css({height:d+"px",position:"relative"}),r.css({width:p+"px"}),a.css({width:c+"px"});var h="rightBlock"===u?r:a,g="rightBlock"===u?d-l:d-o,y=d+m-g,v=d+m,I=n=y&&CURRENT_SCROLL_TOP+WINDOW_HEIGHT=v&&h.css({position:"absolute",bottom:0});var _=0;jQuery(window).scroll(function(t){var i=jQuery(this).scrollTop();e(i>_?"down":"up",i),_=i})}if(!IS_MOBILE){var t=jQuery("[data-scroll-left]"),i=jQuery("[data-scroll-right]");if(t.length&&i.length){var a=t.find("[data-scroll-left-container]"),r=i.find("[data-scroll-right-container]");if(a.length&&r.length){var s=t.outerHeight(),n=i.outerHeight(),o=a.outerHeight(),l=r.outerHeight(),u=s>n?"rightBlock":"leftBlock",d="rightBlock"===u?s:n;jQuery(window).on("load resize",function(){e()}),jQuery(window).scroll(function(t){(Math.abs(a.outerHeight().toFixed(0)-o.toFixed(0))>50||Math.abs(r.outerHeight().toFixed(0)-l.toFixed(0))>50)&&(e(),o=a.outerHeight(),l=r.outerHeight())})}}}}(),jQuery(".modal").on("show.bs.modal",function(e){jQuery(this).find("img.lazy").each(function(){var e=jQuery(this);e.attr("src",e.attr("data-src")).removeAttr("data-src").removeClass("lazy")})}),jQuery("[data-apply-form-display]").on("click",function(e){jQuery("[data-fill-details]").show(),jQuery("[data-apply-form-display]").hide(),e.preventDefault()}),jQuery("[data-post-query-btn]").on("click",function(e){jQuery("[data-post-query-pop-up]").show(),jQuery("[data-post-query-btn]").hide(),e.preventDefault()}),jQuery("[data-apply-close]").on("click",function(e){jQuery("[data-fill-details]").hide(),jQuery("[data-apply-form-display]").show(),e.preventDefault()}),jQuery("[data-post-query-model-close]").on("click",function(e){jQuery("[data-post-query-pop-up]").hide(),jQuery("[data-post-query-btn]").show(),e.preventDefault()}),jQuery("[data-append-resume]").click(function(){jQuery(this).siblings('[name="file"]').click()}),jQuery("[data-resume-input]").on("change",function(){resNameOnChangeUpload(this)}),jQuery("#register-now-content-btn").on("click",function(){jQuery("#pdf-download-register-modal").is(":visible")||(jQuery("#register-modal-widget").modal("show"),jQuery("#register-popup-form-widget").find('input[data-name="mx_Source_of_Lead"]').val("Website Content"))});var slidePosition=1;VideoSlideShow(slidePosition),$(document).ready(function(){$(".bookfreeclass-close-btn").click(function(e){e.preventDefault(),$("#bookfreeclass-btn").remove()})});