Half Wave Rectifier - Definition, Working, Formula, Applications (2022)

  1. Physics
  2. Electric Circuit
  3. Half Wave Rectifier

PreviousNext

Half-wave rectifiers transform AC voltage to DC voltage. A halfwave rectifier circuit uses only one diode for the transformation. A halfwave rectifier is defined as a type of rectifier that allows only one-half cycle of an AC voltage waveform to pass while blocking the other half cycle. In this session, let us know in detail about the half-wave rectifier.

Table of Contents:
  • Half Wave Rectifier Circuit
  • Working of Half Wave Rectifier
  • Half Wave Rectifier Waveform
  • Half Wave Rectifier Capacitor Filter
  • Half Wave Rectifier Formula
    • Ripple Factor of Half Wave Rectifier
    • Efficiency of Halfwave rectifier
    • RMS value of Half Wave Rectifier
    • Form factor of a Halfwave Rectifier
  • Applications of Half Wave Rectifier
  • Disadvantages of Half Wave Rectifier
  • Frequently Asked Questions – FAQs

Half Wave Rectifier Circuit

A half-wave rectifier is the simplest form of the rectifier and requires only one diode for the construction of a halfwave rectifier circuit.

A halfwave rectifier circuit consists of three main components as follows:

  • A diode
  • A transformer
  • A resistive load

Given below is the half-wave rectifier diagram:

Half Wave Rectifier - Definition, Working, Formula, Applications (2)

Working of Half Wave Rectifier

In this section, let us understand how a half-wave rectifier transforms AC into DC.

  1. A high AC voltage is applied to the primary side of the step-down transformer. The obtained secondary low voltage is applied to the diode.
  2. The diode is forward biased during the positive half cycle of the AC voltage and reverse biased during the negative half cycle.
  3. The final output voltage waveform is as shown in the figure below:

Half Wave Rectifier - Definition, Working, Formula, Applications (3)

For better understanding, let us simplify the half-wave circuit by replacing the secondary transformer coils with a voltage source as shown below:

Half Wave Rectifier - Definition, Working, Formula, Applications (4)

For the positive half cycle of the AC source voltage, the circuit effectively becomes as shown below in the diagram:

Half Wave Rectifier - Definition, Working, Formula, Applications (5)

When the diode is forward biased, it acts as a closed switch. But, during the negative half cycle of the AC source voltage, the equivalent circuit becomes as shown in the figure below

Half Wave Rectifier - Definition, Working, Formula, Applications (6)

When a diode is reverse biased, it acts as an open switch. Since no current can flow to the load, the output voltage is equal to zero.

Half Wave Rectifier Waveform

The halfwave rectifier waveform before and after rectification is shown below in the figure.

Half Wave Rectifier - Definition, Working, Formula, Applications (7)

Half Wave Rectifier Capacitor Filter

The output waveform of a halfwave rectifier is a pulsating DC waveform. Filters in halfwave rectifiers are used to transform the pulsating waveform into constant DC waveforms. A capacitor or an inductor can be used as a filter.

The circuit diagram below shows how a capacitive filter is used with halfwave rectifier to smoothen out a pulsating DC waveform into a constant DC waveform.

Half Wave Rectifier - Definition, Working, Formula, Applications (8)

Similar Articles

  • Full Wave Rectifiers
  • Bridge Rectifiers

Half Wave Rectifier Formula

Ripple Factor of Half Wave Rectifier

Ripple factor determines how well a halfwave rectifier can convert AC voltage to DC voltage.

Ripple factor can be quantified using the following formula:

Half Wave Rectifier - Definition, Working, Formula, Applications (9)

The ripple factor of a halfwave rectifier is 1.21.

Efficiency of Halfwave rectifier

The efficiency of a halfwave rectifier is the ratio of output DC power to the input AC power.

The efficiency formula for halfwave rectifier is given as follows;

Half Wave Rectifier - Definition, Working, Formula, Applications (10)

RMS value of Half Wave Rectifier

The RMS value of the load current for a half-wave rectifier is given by the formula:

Half Wave Rectifier - Definition, Working, Formula, Applications (11)

Form factor of a Halfwave Rectifier

The form factor is the ratio between RMS value and average value and is given by the formula:

Half Wave Rectifier - Definition, Working, Formula, Applications (12)

Applications of Half Wave Rectifier

Here are a few common applications of half wave rectifiers:

  • They are used for signal demodulation purpose
  • They are used for rectification applications
  • They are used for signal peak applications

Disadvantages of Half Wave Rectifier

  • Power loss
  • Low output voltage
  • The output contains a lot of ripples

Frequently Asked Questions – FAQs

What is a halfwave rectifier?

The rectifier circuit that converts alternating current into the direct current is known as a halfwave rectifier circuit. The half-wave rectifier passes only one half of the input sine wave and rejects the other half.

Where is a halfwave rectifier used?

A half-wave rectifier is used in firing circuits and pulse generating circuits. Halfwave rectifiers are used along with step up and step down transformers to achieve the desired voltage.

How does a half-wave rectifier work?

Half wave rectifier circuit uses a PN junction to convert the supplied AC into DC. In a half-wave rectifier circuit, the load resistance is connected in series with the PN junction diode.

Is the half-wave rectifier better or the full-wave rectifier?

Full-wave rectifiers are more efficient than half-wave rectifiers. A full-wave rectifier passes twice as many waves as a half-wave rectifier. Hence, more of the input is transferred to the load.

What is the use of a filter in a half-wave rectifier?

This article discussed the Halfwave rectifiers and their nuances. Stay tuned to BYJU’S and Fall in Love with Learning to learn more concepts like this!

Why shouldn’t you touch electrical equipment with wet hands? Find out the answer to this question by watching the video.

Half Wave Rectifier - Definition, Working, Formula, Applications (13)

PHYSICS Related Links
Flux UnitsDifference Between Emission And Absorption Spectra
Si Unit Of Electric FluxUnit Of Distance
Difference Between Refrigeration And Air ConditioningMoment Of Inertia Units
Difference Between Kva And KwSpintronics
Cgs Unit Of ViscosityFermi Paradox

1 Comment

  1. ekanshSeptember 4, 2022 at 11:33 am

    Good

    Reply

Leave a Comment

Half Wave Rectifier - Definition, Working, Formula, Applications (15)

Half Wave Rectifier - Definition, Working, Formula, Applications (16)

Register For Free

',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-m

o.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
",i.after(u)}}else{i.find('button[type="submit"]').attr("disabled",!0).html("Submitting..");var m=i.serialize();m+="&current_url="+escape(C_URL),jQuery.post(CONFIG.apis.db.popup_form_api,m,function(e,t){if(e)if(e=JSON.parse(e),e.success){if(CS_UTILITIES.removeToastMessage("page-form-popup-and-widget-0"),i.addClass("hidden"),i.find(".register-form-widget-success-block").length)i.find(".register-form-widget-success-block").removeClass("hidden");else{var r='

';"Popup"==s?(r+='

',r+="
"):(r+='

',jQuery(".join-byjus-form-widget").find(".widget-content").children(":first-child").addClass("text-center")),jQuery("#register-modal-widget").addClass("submitted-successfully"),r+="

Thank you for connecting with BYJU'S!

",r+="
",r+=" Communications regarding lectures & crash courses will be shared with you soon.",r+="

",i.after(r)}"register-popup-form-widget"==i.attr("id")&&MAIN_UTILITIES.setCookie("pagebformypopupj",1,15),GA_FLAG&&ga("send","event",INSTANCE_NAME+" "+s+" Data Form Successful","Form Submission Data Stored","URL: "+C_URL)}else i.find('button[type="submit"]').attr("disabled",!1).html(d),CS_UTILITIES.addToastMessage("page-form-popup-and-widget-0",e.message),GA_FLAG&&ga("send","event",INSTANCE_NAME+" "+s+" Data Form Failed","Form Submission Data Failed","URL: "+C_URL);else i.find('button[type="submit"]').attr("disabled",!1).html(d),CS_UTILITIES.addToastMessage("page-form-popup-and-widget-0","Please try after sometime!")})}}else e.preventDefault(),a.each(function(e,t){jQuery(t).blur()});GA_FLAG&&ga("send","event","Form Data "+s+" Button Click: "+FORM_NAME,"On Submitting Form","Form Values: "+jQuery(t).serialize())}};

',CURRENT_SCROLL_TOP=jQuery(window).scrollTop(),WINDOW_WIDTH=jQuery(window).outerWidth(),WINDOW_HEIGHT=jQuery(window).outerHeight(),IS_MOBILE=WINDOW_WIDTH<=767.99999?1:0,IS_WINDOW_BELLOW_992=WINDOW_WIDTH<=991.99999?1:0;jQuery(window).resize(function(){WINDOW_WIDTH=jQuery(window).outerWidth(),WINDOW_HEIGHT=jQuery(window).outerHeight(),CURRENT_SCROLL_TOP=jQuery(window).scrollTop(),IS_MOBILE=WINDOW_WIDTH<=767.99999?1:0,IS_WINDOW_BELLOW_992=WINDOW_WIDTH<=991.99999?1:0});var LEAD_POPUP_ARRAY=["CAT","GMAT","IAS","GRE","CAT Tablet","ME","Recruitment","Bank Exam","SSC Exam","RRB Exam","UPSC CAPF","Insurance Exams","Govt Exam"],PAGE_POPUP_TYPE=-1!==LEAD_POPUP_ARRAY.indexOf(FORM_NAME)?"FORM":"NORMAL";jQuery("#register-now-top-widget-strip").length&&setTimeout(function(){var e=jQuery("#register-now-top-widget-strip"),t=e.find(".register-now-top-widget-container"),i=jQuery(".header.fixed-header");t.removeClass("hidden"),i.length&&(t.css("top",i.outerHeight()+"px"),e.css("min-height",e.outerHeight()+"px"),t.addClass("sticky")),jQuery(window).scrollTop()>e.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<=WINDOW_HEIGHT&&jQuery("#fixed-up-arrow").addClass("hidden"),!jQuery(".header.fixed-header").length&&i.length&&t<=i.offset().top&&(i.removeAttr("style"),i.find(".register-now-top-widget-container").removeClass("sticky"))),HeaderlastScrollTop=t}),function(){function e(e,t,i){function a(e){var a=jQuery(e).scrollTop(),r=jQuery("img.lazy");i&&(r=r.not(i)),r.each(function(){var e=jQuery(this);e.fadeIn(),jQuery(this).offset().top<=a+t&&(e.attr("src",e.attr("data-src")),e.removeAttr("data-src"),e.removeClass("lazy"))})}a(e),jQuery(e).scroll(function(e){a(this)})}e(window,WINDOW_HEIGHT,".multiple-image-list-view .multiple-image-list-view-content img.lazy:not(.multiple-image-list-view .multiple-image-list-view-content img.lazy:nth-child(1))");var t=jQuery(".multiple-image-list-view .multiple-image-list-view-content").outerHeight();e(".multiple-image-list-view .multiple-image-list-view-content",t,null)}();var CONFIG={apis:{ls:{create_or_update_lead:BASE_URL+"apis/create_or_update_lead/",leads:COMMON_UTILS_ENDPOINT_KEY+"leads/",method:"POST"},db:{popup_form_api:BASE_URL+"wp-json/spidy/v1/popup_form_api/?wp-json_allow",interactive_questions:BASE_URL+"wp-json/spidy/v1/interactive_questions_api/?wp-json_allow",apply_page_post_api:BASE_URL+"wp-json/spidy/v1/apply_page_post_api/?wp-json_allow",city_office_circle_api:BASE_URL+"wp-json/spidy/v1/get_sales_city/?wp-json_allow",country_code_info:COUNTRY_CHECK_API},city:{url:BCAP_API_BASE_URL+"api/geo_dimensions/india_city_list_non_paginated",method:"GET"}}},MAIN={postData:function(e,t,i,a,r){jQuery.ajax({type:"POST",url:e,data:t,dataType:i,headers:{"content-type":"application/x-www-form-urlencoded"},success:function(e){MAIN.callAfterResponseFunction(e,a)},complete:function(){r&&MAIN.callAfterResponseFunction(null,r)},error:function(e,t,i,r){console.error("Unable to reach "+a+"\n An Event has thrown the following error: "+t+"--->"+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<=2?"Name should be minimum 3 characters.":r.match(o)?"":"Accepts alphabets only.":s+" is required.",n?(a.addClass("input-error").removeClass("input-valid"),a.after('

'+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('

'+s+"

"),!1):(a.removeClass("input-error"),a.addClass("input-valid"),!0)},getParameterByName:function(e,t){t=t?"?"+t:window.location.search;var i=new RegExp("[?&]"+e.replace(/\[/g,"\\[").replace(/\]/g,"\\]")+"(?:=([^]*))?(?:[]|$)").exec(t);return i?i[1]?decodeURIComponent(i[1].replace(/\+/g," ")):"":null},updateQueryStringParameter: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},getCurrentDateTime:function(e){var t=new Date,i=t.getHours(),a=t.getMinutes(),r=t.getSeconds();i=i>12?i-12:i,i=1==i.toString().length?"0"+i:i,a=1==a.toString().length?"0"+a:a,r=1==r.toString().length?"0"+r:r;var s=t.getFullYear();s=1==s.toString().length?"0"+s:s;var n=t.getMonth()+1;n=1==n.toString().length?"0"+n:n;var o=t.getDate();if(o=1==o.toString().length?"0"+o:o,"yyyy-mm-dd hh:mm:ss"===e)return s+"-"+n+"-"+o+" "+i+":"+a+":"+r;if("yyyy-mm-dd hh:mm:ss-UTC"===e){i=t.getUTCHours(),a=t.getUTCMinutes(),r=t.getUTCSeconds(),i=i>12?i-12:i,i=1==i.toString().length?"0"+i:i,a=1==a.toString().length?"0"+a:a,r=1==r.toString().length?"0"+r:r;n=t.getUTCMonth()+1;n=1==n.toString().length?"0"+n:n;var l=t.getUTCDate();l=1==l.toString().length?"0"+l:l;o=t.getUTCFullYear();return o=1==o.toString().length?"0"+o:o,o+"-"+n+"-"+l+" "+i+":"+a+":"+r}return o+"/"+n+"/"+s+" "+i+":"+a+" "+(t.getHours()>=12?"PM":"AM")},getTime:function(e){var t=new Date,i=t.getHours(),a=t.getMinutes(),r=t.getSeconds(),s=i>=12?" PM":" AM";return e||(i%=12,i=i||12),i=i<10?"0"+i:i,a=a<10?"0"+a:a,r=r<10?"0"+r:r,i+":"+a+":"+r+s},setCookie:function(e,t,i){var a=new Date;a.setTime(a.getTime()+24*i*60*60*1e3);var r="expires="+a.toGMTString();document.cookie=e+"="+t+";"+r+";path=/"},getCookie:function(e){for(var t=e+"=",i=decodeURIComponent(document.cookie),a=i.split(";"),r=0;r

0)if(e.indexOf("mx_Course_Name")>-1){var i=e.indexOf("mx_Course_Name"),a=e.indexOf("=",i);if(!e.substring(a+1,a+2).match(/^[A-Za-z0-9]+$/)){var r=e.substring(0,a+1),s=this.getCoursNameFromPath(location.pathname);t=r+s+e.substring(a+1,e.length+1)}}else{var n="&mx_Course_Name="+this.getCoursNameFromPath(location.pathname);t+=n}return t},getCoursNameFromPath:function(e){for(var t={k3:"K3",k9:"K9",k12:"K12","class-1":"K3","class-2":"K3","class-3":"K3","class-4":"K9","class-5":"K9","class-6":"K9","class-7":"K9","class-8":"K9","class-9":"K9","class-10":"K12","class-11":"K12","class-12":"K12",jee:"JEE",cat:"CAT",gre:"GRE",gmat:"GMAT",ias:"IAS"},i=Object.keys(t),a=e.toLowerCase(),r=-1,s=0;s-1&&(r=s);return r>-1?t[i[r]]:"NA"},getLSTableIdByGradeName:function(e){var t=e.find('[name="grade"]');if(null!==t.val()){var i=t.find("option:selected").attr("data-value");if(i){var a=i.split("_");"undefined"!=a[0]&&e.find('[name="mx_Course_Name"]').val(a[0]),"undefined"!=a[1]&&e.find('[name="MXHOrgCode"]').val(a[1]),"undefined"!=a[2]&&e.find('[name="MXHLandingPageId"]').val(a[2])}}return e},otpValidation:function(e){var t=jQuery(e),i=t.val(),a="message",r=/^\d{4}$/,s=/^\d{1,4}$/,n=/^\d{1,6}/,o=i.match(n),l=o&&o.length>=1&&o[0];return t.siblings(".input-error-msg").remove(),i.match(s)?i&&null!==i?i.match(r)?(a="",e[0].parameterName="otp"):a="OTP should be 4 digits.":a="OTP is required.":(t.val(l),a="Enter only numbers"),a?(t.addClass("input-error").removeClass("input-valid"),t.after('

'+a+"

"),!1):(t.removeClass("input-error"),t.addClass("input-valid"),!0)},sidebarFormCityInputsValidation:function(e,t){var i=jQuery(e),a=i.find("input, select").not('[type="hidden"]'),r=[];return a.each(function(e,i){var a=jQuery(i),r=a.attr("name");switch(r){case"FirstName":this.isValidInput=MAIN_UTILITIES.nameValiadation;break;case"Phone":this.isValidInput=MAIN_UTILITIES.phoneValidation,this.requiredName="Phone No.";break;case"mx_City":this.isValidInput=MAIN_UTILITIES.cityValidation,this.requiredName="City";break;case"grade":this.isValidInput=MAIN_UTILITIES.requiredValidation,this.requiredName="Grade";break;case"EmailAddress":this.isValidInput=MAIN_UTILITIES.emailValidation;break;default:this.isValidInput=null}"onInput"===t&&a.on("input blur",function(){this.isValidInput&&(this.isValid=this.isValidInput(jQuery(this),null,this.requiredName))})}),!r.length},countryBasedWigets:function(){var e={page_type:"all",url_path:window.location.href,place:""};MAIN_UTILITIES.ajaxCall(CONFIG.apis.ls.method,CONFIG.apis.db.country_code_info,e,function(e){if(e.success&&"US"==e.data.country_code&&"::1"!=e.data.requested_ip&&"127.0.0.1"!=e.data.requested_ip){var t=JSON.parse(COUNTRY_INFO);if(t.length>0)for(let e=0;eHalf Wave Rectifier - Definition, Working, Formula, Applications (17)'):jQuery(".top-banner-widget").html("')),"REGISTER_POPUP"==t[e].type&&(jQuery("#register-modal-widget").find(".img-with-text-block").html('Half Wave Rectifier - Definition, Working, Formula, Applications (19)'),navigator.isMobileTablet?jQuery("#register-modal-widget").find(".btn-white-bg-block").html("'+t[e].cta_title+""):jQuery("#register-modal-widget").find(".btn-white-bg-block").html("'+t[e].cta_title+"")),"SIDEBAR_REGISTER"==t[e].type&&(navigator.isMobileTablet?jQuery(".register-free-widget").find(".widget-content").html("'):jQuery(".register-free-widget").find(".widget-content").html("')),"SIDEBAR_CUSTOM_BANNER"==t[e].type&&(navigator.isMobileTablet?jQuery(".dynamic-country-widget").find(".widget-content").html("'):jQuery(".dynamic-country-widget").find(".widget-content").html("'))}}})},cities:[],cityAutoSuggestions:function(){var e;MAIN_UTILITIES.ajaxCall(CONFIG.apis.city.method,CONFIG.apis.city.url,"",function(t){t&&(e=t,MAIN_UTILITIES.cities=t)});var t=jQuery("[data-city-auto-suggestions]"),i=t.find("input");i.on("input",function(){0;var a=jQuery(this).val().toLowerCase(),r="";if(t.find("ul").remove(),a.length>=1){var s=jQuery.grep(e,function(e,t){return 0===e.city.toLowerCase().indexOf(a)});s.length&&(s.every(function(e,t){return r+='
  • '+e.city.toLowerCase().replace(a,""+a+"")+"
  • ",6!==t}),t.append("
      "+r+"
    "))}t.find("ul>li>a").on("click",function(e){e.stopPropagation(),i.val(jQuery(this).text()),t.find("ul").remove(),0,i[0].isValidInput(i)})}),jQuery("body").on("click",function(){t.find("ul").remove(),0})},cityValidation:function(e,t,i){if(JOIN_BYJUS_CITY_INSTANCE.includes(INSTANCE_NAME))return!0;var a=e.val();if(MAIN_UTILITIES.requiredValidation(e,t,i)){var r=/[ `!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/;if(!MAIN_UTILITIES.cities.length)return!0;if(MAIN_UTILITIES.cities.filter(function(t){return t.city.toLocaleLowerCase()==e.val()}).length)return e.siblings(".input-error-msg").remove(),e.removeClass("input-error"),e.addClass("input-valid"),!0;if(isNaN(a)){if(!r.test(e.val()))return!0;e.addClass("input-error").removeClass("input-valid"),e.after('

    Should accept Alphabets only

    ')}else e.addClass("input-error").removeClass("input-valid"),e.after('

    Should accept Alphabets only

    ')}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-1&&JOIN_BYJUS_CITY_INSTANCE.includes(INSTANCE_NAME)||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);u+="&SourceCampaign="+(n||"")+"&SourceMedium="+(s||"")+"&SourceContent="+(o||"")+(d?"&mx_Gclid="+d:"");var c=localStorage.getItem("firstVisitedURL");function m(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 p=jQuery(t).attr("id");"register-popup-form-widget"===p?ga("send","event","Form Popup Button Click: "+FORM_NAME,"On Submitting Form","Form Values: "+jQuery(t).serialize()):"join-byjus-form-widget"===p&&(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('

    '+a+"

    "),!1):(e.removeClass("input-error"),e.addClass("input-valid"),!0)}var t=jQuery("#search-widget input"),i=jQuery("#search-widget form");t.on("blur change",function(a){e(t,i)}),i.submit(function(a){e(t,i)?GA_FLAG&&ga("send","event","SearchWidget","On search form submit","Search Keyword: "+t.val()+",Page Url: "+C_URL):a.preventDefault()});var a=jQuery("#search-bar-m input"),r=jQuery("#search-bar-m form");a.on("blur change",function(t){e(a,r)}),r.submit(function(i){e(a,r)?GA_FLAG&&ga("send","event","SearchWidget","On search form submit","Search Keyword: "+t.val()+",Page Url: "+C_URL):i.preventDefault()})},popupFormSubmitData:function(e,t){EXAM_POPUP_FORM.popupFormSubmitData(e,t)},applyPageFormSubmitData:function(e,t){e.preventDefault();var i=jQuery(t),a=i.find(".form-group input");if(i.find(".form-group input.input-valid").length==a.length){var r=i.find('button[type="submit"]').html();i.find('button[type="submit"]').attr("disabled",!0).html("Submitting..");var s=i.serialize();s+="&current_url="+escape(C_URL),jQuery.post(CONFIG.apis.db.apply_page_post_api,s,function(e,t){if(e)if(e=JSON.parse(e),e.success){if(CS_UTILITIES.removeToastMessage("page-form-popup-and-widget-0"),i.addClass("hidden"),i.find(".register-form-widget-success-block").length)i.find(".register-form-widget-success-block").removeClass("hidden");else{var a='

    ';jQuery("#register-modal-widget").addClass("submitted-successfully"),a+='

    Thank you for sending your query across.

    ',a+="
    ",a+='

    We have successfully received it and our team will be getting back to you shortly for further assistance.

    ',a+="

    ",i.after(a)}GA_FLAG&&ga("send","event","Apply Page - Post Query Submission Succeed","Form Submission Data Stored","URL: "+C_URL)}else GA_FLAG&&ga("send","event","Apply Page - Post Query Submission Failed","Form Submission Data Failed","URL: "+C_URL);else i.find('button[type="submit"]').attr("disabled",!1).html(r),CS_UTILITIES.addToastMessage("page-form-popup-and-widget-0","Please try after sometime!")})}else e.preventDefault(),a.each(function(e,t){jQuery(t).blur()})}},CS_ONLOAD={swipeOnTable:function(){jQuery(".table-responsive").each(function(e){var t,i=jQuery(this),a=i.find("td").length,r=i.find("tr").length,s=i.find("tr").outerWidth(),n=i.parent().hasClass("table-responsive"),o=Math.round(a/r);if(i.attr("id","table-num-"+(e+1)),o<3?(jQuery("#table-num-"+(e+1)).removeClass("table-responsive"),jQuery("#table-num-"+(e+1)).find("td").css("word-break","initial")):t='

    Swipe left

    ',s>WINDOW_WIDTH&&!n){i.addClass("tablemodel"),i.append(t),1===r&&i.find(".swipe-left-icon").addClass("swipe-icon-small"),this.addEventListener("touchstart",c,{passive:!0}),this.addEventListener("touchmove",m,{passive:!0});var l=null,u=null;function d(e){return e.touches||e.originalEvent.touches}function c(e){var t=d(e)[0];l=t.clientX,u=t.clientY}function m(e){if(l&&u){var t=e.touches[0].clientX,i=e.touches[0].clientY,a=l-t,r=u-i;Math.abs(a)>Math.abs(r)&&a>0&&jQuery(this).removeClass("tablemodel"),l=null,u=null}}}})},moveSwipeIconOnScroll:function(){jQuery(".tablemodel").each(function(){var e=jQuery(this),t=e.find("tr").length,i=jQuery(window).scrollTop(),a=e.offset().top,r=e.outerHeight(),s=a+r-77;ele_icon_top=i-a,t>10&&(i>=a&&s>i?e.find(".swipe-left").addClass("swipeFix"):e.find(".swipe-left").removeClass("swipeFix"),s>i?e.find(".swipe-left").removeClass("fixToTableBottom"):e.find(".swipe-left").addClass("fixToTableBottom"))})},ragQuiz:function(){jQuery("#rag-quiz-carousel").on("slid.bs.carousel",function(){var e=jQuery(this).find(".item.active").index()+1,t=jQuery("#rag-quiz-carousel .item").length-1;e<=t&&jQuery("#rag-quiz .rag-quiz-header input").val(e)})},sessionQuizOneTimeRegisterFlag:0,sessionQuizChapterButtonClicked:"",sessionQuizTotalChapter:jQuery("[data-session-multiple-quiz-chapter-control]").length,sessionQuiztriggers:function(){jQuery("[data-session-multiple-quiz-chapter-control]").click(function(){jQuery("#session-multiple-quiz-solutions-chapter-"+ +CS_ONLOAD.sessionQuizChapterButtonClicked.split("_")[1]).collapse("hide");var e=jQuery(this).attr("data-session-multiple-quiz-chapter-control");CS_ONLOAD.sessionQuizChapterButtonClicked=jQuery(this).attr("id"),jQuery("#multi-quiz-header-name").text(jQuery(this).text()),CS_ONLOAD.sessionMultiQuiz(e)})},sessionQuizKeyAnswers:[],sessionMultiQuiz:function(e){e&&(jQuery.get(e).done(function(e){if(e){function t(e,t){var i="";if(t&&t.length>0){i+="<"+e+">";for(var a=0;a

    "+t[a]+"";i+=""+e+">"}return i}function i(e,t){var i="";if(e&&e.length>0)for(var a=0;a

    Top Articles

    Latest Posts

    Article information

    Author: Terrell Hackett

    Last Updated: 08/12/2022

    Views: 6121

    Rating: 4.1 / 5 (72 voted)

    Reviews: 95% of readers found this page helpful

    Author information

    Name: Terrell Hackett

    Birthday: 1992-03-17

    Address: Suite 453 459 Gibson Squares, East Adriane, AK 71925-5692

    Phone: +21811810803470

    Job: Chief Representative

    Hobby: Board games, Rock climbing, Ghost hunting, Origami, Kabaddi, Mushroom hunting, Gaming

    Introduction: My name is Terrell Hackett, I am a gleaming, brainy, courageous, helpful, healthy, cooperative, graceful person who loves writing and wants to share my knowledge and understanding with you.