Example of Work
An object is horizontally dragged across the surface by a 100 N force acting parallel to the surface. Find out the amount of work done by the force in moving the object through a distance of 8 m.
Solution:
Given:
F = 100 N, d = 8 m
Since F and d are in the same direction, θ = 0, [θ is the angle of the force to the direction of movement], therefore
W = FdCos θ
W = 100 x 8 x Cos 0
W = 800 J [Since Cos 0 = 1]
Related Concepts
Introduction To Work Done |
Work Energy Theorem And Its Application |
What is Energy?
Energy is the ability to perform work. Energy can neither be created nor destroyed, and it can only be transformed from one form to another. The unit of Energy is the same as of Work, i.e. Joules. Energy is found in many things, and thus there are different types of energy.
All forms of energy are either kinetic or potential. The energy in motion is known as Kinetic Energy, whereas Potential Energy is the energy stored in an object and is measured by the amount of work done.
Types of Energy
Some other types of energy are given below:
- Mechanical energy
- Mechanical wave energy
- Chemical energy
- Electric energy
- Magnetic energy
- Radiant energy
- Nuclear energy
- Ionization energy
- Elastic energy
- Gravitational energy
- Thermal energy
- Heat Energy
Unit of Energy
The SI unit of energy is Joules (J), named in honour of James Prescott Joule.
Related Concepts
Different Forms Of Energy |
Types of Energy |
Law of Conservation of Energy |
Watch the video and solve NCERT exercise questions in the chapter Work and Energy Class 9
What is Power?
Power is a physical concept with several different meanings, depending on the context and the available information. We can define power as the rate of doing work, and it is the amount of energy consumed per unit of time.
Formula of Power
As discussed, power is the rate of doing work. Therefore, it can be calculated by dividing work done by time. The formula for power is given below.
\(\begin{array}{l}P = \frac{W}{t}\end{array} \)
Where, P is the power, W is the work done and t is the time taken.
Unit of Power
As power doesn’t have any direction, it is a scalar quantity. The SI unit of power is Joules per Second (J/s), which is termed as Watt. Watt can be defined as the power needed to do one joule of work in one second. The unit Watt is dedicated in honour of Sir James Watt, the developer of the steam engine.
Read the article below to learn the SI unit of power in detail.
Unit of Power
Example of Power
A garage hoist lifts a truck up 2 meters above the ground in 15 seconds. Find the power delivered to the truck. [Given: 1000 kg as the mass of the truck]
First we need to calculate the work done, which requires the force necessary to lift the truck against gravity:
F = mg = 1000 x 9.81 = 9810 N.
W = Fd = 9810N x 2m = 19620 Nm = 19620 J.
The power is P = W/t = 19620J / 15s = 1308 J/s = 1308 W.
Related Concept
Electrical Energy and Power
Work, Power and Energy Questions
- What is the relationship between work, energy and power?
- What happens to the energy as work is done?
- What is the difference between work, energy and power?
- Is energy transferred the same as work done?
- How does work affect an object’s energy?
- How are work, energy and power related to each other?
- How are force, energy and work related?
- What is the formula of work, energy and power?
- How do you calculate energy from power?
- Can force be converted into energy?
Video Explanation of Work, Energy and Power
Here is an engaging video explanation of Work, Energy and Power and the relationship between them.
Important Resources for Work, Energy and Power
NCERT Solutions Class 11 Physics Work, Energy and Power |
NCERT Solutions Class 9 Science Work and Energy |
NCERT Exemplar Class 9 Science Chapter 11 Work and Energy |
Work-Energy And Power Class 11 Notes |
Overview of Work, Energy and Power
What is Work, Energy and Power? | |
Work | |
Definition | The work done by a force is defined to be the product of component of the force in the direction of the displacement and the magnitude of this displacement. |
Formula | Work can be calculated by multiplying Force and Distance in the direction of force as follows W = F × d |
Unit | The SI unit of work is the Joule (J) |
Energy | |
Definition | Energy is defined as the capacity to do work. |
Formula | The energy stored in an object due to its position and height is known as potential energy and is given by the formula: P.E. = mgh |
Unit | The SI unit of energy is Joules (J). |
Power | |
Definition | Power is defined as the rate at which work is done. |
Formula | The formula for power is P = W/t |
Unit | The SI unit of power is Watt (W). |
Watch the video and solve complete exemplar questions in the chapter Work and Energy Class 9
Frequently Asked Questions
Q1
How are work, energy and power related to each other?
Work is the energy needed to apply a force to move an object a particular distance. Power is the rate at which that work is done.
Q2
What is the unit of work?
The unit of work is Joule.
Q3
What is the unit of energy?
The unit of energy is Joule.
Q4
What is the unit of power?
The unit of power is Watt.
Q5
Is power a scalar quantity?
Power is a scalar quantity because it is a ratio of two scalar quantities.
Watch this fun and engaging rapid fire session based on the topic Work, Energy and Power!
Work, Power and Energy is one of the important topics of JEE Main and JEE Advanced, watch the video and understand the type of questions asked from this topic!
Stay tuned to BYJU’S and Fall in Love with Learning!
Test your Knowledge on Work Energy Power
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
Your result is as below
0 out of 0 arewrong
0 out of 0 are correct
0 out of 0 are Unattempted
Login To View Results
Did not receive OTP?
Request OTP on
Login To View Results
PHYSICS Related Links | |
What Are The Different Sources Of Energy | Volume Definition Physics |
Elastic Potential Energy Spring Potential Energy | Calorimeter Uses |
Properties Of Nuclear Force | Types Of Inertia |
Anomalies Meaning In Telugu | Rms Value Of Ac Current |
Electric Cell Diagram | Numericals On Electricity |
Comments
Leave a Comment
-
Tumininu August 8, 2019 at 3:31 am
Lovely
Reply
-
Nikitha August 31, 2019 at 8:55 pm
Its so useful love this byju’s
Reply
-
Sujal October 18, 2020 at 9:31 am
👍
No need October 13, 2019 at 3:04 pm Very good explanation Reply
aliza ansari November 4, 2019 at 11:24 pm thanks Reply
HK November 9, 2019 at 12:11 pm nice Reply
Meghashyam January 18, 2020 at 6:21 pm Good Good Reply
Tejasvi Chourasia February 5, 2020 at 8:19 pm Excellent explaination done Reply
5 stars to BYJU’S
vaibhav March 2, 2020 at 5:52 pm it is very nice because it become easy. Reply
Emmanuel lomude March 3, 2020 at 8:21 am Enjoyable Reply
Ram March 18, 2020 at 11:32 am Very nice Reply
Lakshay Panwar April 28, 2020 at 10:51 am very nicely done Reply
mutund kalwiji May 7, 2020 at 7:05 pm well explained Reply
sanjay singh June 10, 2020 at 1:22 am really good platform to learn basic Reply
Tenzin Zomkit June 24, 2020 at 11:23 am Thanks a lot . It was very helpful . Lots of love for all your team . Reply
Samuel July 27, 2020 at 3:40 pm I really love this explanation Reply
Biradar Swastik Devidas August 18, 2020 at 9:34 am Thank you, this explanation is very useful for this topic. Reply
Netra Pareek September 13, 2020 at 1:10 pm Amazing! Today was my online class test, the content given here helped me a lot. I would like to give BYJU’S five stars. Reply
MANPREET September 13, 2020 at 5:53 pm Good explanation 👍👍👍👍👍👍 Reply
Siva October 3, 2020 at 10:24 pm Really good explanation Reply
It was very useful
Thank you so much
Dilip November 27, 2020 at 7:04 pm What a nice explanation! Reply
Natasha December 13, 2020 at 8:12 pm Very helpful Reply
Mohammad Umar December 16, 2020 at 8:33 am Thank You Reply
G Punnyashlok January 3, 2021 at 9:42 am Very nice Explanations with a better understanding of concepts. Was very helpful. Provided me with all types of revision strategies before exam Reply
Robert January 11, 2021 at 12:07 am Thanks so much byjus you are doing a good job,,👍 Reply
Simisola DSM January 21, 2021 at 7:06 pm Thanks very much this information was very useful but you did not put examples of power, energy and work. Reply
Yash Gajbhiye January 27, 2021 at 3:35 pm Thank u for helping, Really nice Reply
",i.after(m)}}else{i.find('button[type="submit"]').attr("disabled",!0).html("Submitting..");var p=i.serialize();p+="¤t_url="+escape(C_URL),jQuery.post(CONFIG.apis.db.popup_form_api,p,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())}};
',t=document.getElementsByTagName("HEAD")[0],r=document.createElement("link");r.rel="stylesheet",r.type="text/css",r.href="/wp-content/themes/html5blank-stable/styles/learn-portal-modal.min.css",t.appendChild(r),jQuery("body").append(o),jQuery("[learn-login-modal]").modal()}return!1}n=LP_LOGIN_POPUP_URL+`/byjus-classes?referrer=${encodeURIComponent(e.toString())}`;window.open(n,"_self")})),jQuery("[data-dropdown-more]").click((function(){-1!==jQuery("[data-dropdown-more]").text().indexOf("More")?(jQuery("[data-dropdown-less]").slideDown(),jQuery("[data-dropdown-more]").text("Less")):(jQuery("[data-dropdown-less]").slideUp(),jQuery("[data-dropdown-more]").text("More"))}))}})),document.querySelectorAll('[data-toggle="class"]').forEach((function(e,a){e.addEventListener("click",(function(e){e.preventDefault();var a=this.getAttribute("data-class-name"),n=document.querySelector(this.getAttribute("data-class-target"));if(n.className){var o=n.className.split(" ");if(-1!=o.indexOf(a)){var t=o.indexOf(a);o.splice(t,1)}else o.push(a);n.className=o.join(" ")}}))}));var isMobileTablet=navigator.isMobileTablet;function getParamValueByName(e,a){e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^]*)|&|#|$)").exec(a);return n&&n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):""}function replaceAll(e,a,n){return n.split(e).join(a)}function getParameterByName(e,a){a=a?"?"+a:window.location.search;var n=new RegExp("[?&]"+e.replace(/\[/g,"\\[").replace(/\]/g,"\\]")+"(?:=([^]*))?(?:[]|$)").exec(a);return n?n[1]?decodeURIComponent(n[1].replace(/\+/g," ")):"":null}isMobileTablet&&(document.querySelectorAll(".big-menu").forEach((function(e,a){const n=e.getElementsByClassName("primary-dropdown-menu-icon");e.addEventListener("click",(function(e){if(window.matchMedia("(min-width: 768px)").matches||0===n.length){this.classList.toggle("menu-open"),$(this).siblings().removeClass("menu-open")}}));for(const a of n)a.addEventListener("click",(function(a){a.stopPropagation(),e.classList.toggle("menu-open"),$(e).siblings().removeClass("menu-open")}))})),document.querySelectorAll(".sub").forEach((function(e,a){e.addEventListener("click",(function(e){jQuery(this).siblings().removeClass("menu-open-sub"),this.classList.toggle("menu-open-sub"),jQuery(this).parent().siblings().children("ul").toggle(!1),e.stopPropagation()}))}))),$(".sub").mouseenter((function(){$(this).find("ul").height()<340&&$(this).find("ul").addClass("right-popopen")})),$(".primary-dropdown-menu>ul>.sub>ul>.sub").mouseenter((function(){$(this).find("span").length&&$(this).find("ul").addClass("more-less-open")}));var isOpenDesktop={isOpen:!1,className:"data-header-search"},isOpenMobile={isOpen:!1,className:"data-header-search-mobile"};function disableSearch(e){return jQuery("["+e+"]").empty(),jQuery("["+e+"]").addClass("hidden"),jQuery("["+e+"]").removeClass("header-form-content-enable"),jQuery(".primary-top-navbar").removeClass("primary-top-navbar-search"),!1}function enableSearch(e,a){if(!1===a)return jQuery("["+e+"]").removeClass("hidden"),jQuery("["+e+"]").addClass("header-form-content-enable"),jQuery(".primary-top-navbar").addClass("primary-top-navbar-search"),jQuery("["+e+"]").append('
'),jQuery("input[name='s']").focus(),!0;var n=$(".header-searchbox"),o=$("[data-header-search-input]").val();return 0===(o=jQuery.trim(o).length)?(jQuery("["+e+"]").empty(),jQuery("["+e+"]").addClass("hidden"),jQuery("["+e+"]").removeClass("header-form-content-enable"),jQuery(".primary-top-navbar").removeClass("primary-top-navbar-search"),!1):(n.submit(),!0)}if(jQuery(document).ready((function(){var e=jQuery(".search-icon"),a=jQuery(".search-icon-mobile");e.click((function(){isOpenDesktop.isOpen=enableSearch(isOpenDesktop.className,isOpenDesktop.isOpen)})),a.click((function(){isOpenMobile.isOpen=enableSearch(isOpenMobile.className,isOpenMobile.isOpen)})),jQuery(".header-form-content").click((function(e){e.stopPropagation()}))})),jQuery(document).on("click",(function(e){jQuery(e.target).closest(".search-icon").length||jQuery(e.target).closest(".search-icon-mobile").length||(1==isOpenDesktop.isOpen?isOpenDesktop.isOpen=disableSearch(isOpenDesktop.className):1==isOpenMobile.isOpen&&(isOpenMobile.isOpen=disableSearch(isOpenMobile.className)))})),"jee"==INSTANCE_NAME||"neet"==INSTANCE_NAME){jQuery(".primary-top-navbar .navbar-brand img").attr("src","https://cdn1.byjus.com/byjusweb/img/akash-byjus-jee-neet-assets/akash_byjus_logo_22_6_21.jpg"),jQuery(".primary-navbar-header-collapse .primary-top-navbar-collapse-icon img.primary-mbl-logo").attr("src","https://cdn1.byjus.com/byjusweb/img/akash-byjus-jee-neet-assets/akash_byjus_logo_22_6_21.jpg"),jQuery(".primary-top-navbar .navbar-brand img").addClass("ak-bj-logo");var byjusHomeRedirectBtnDesktop=jQuery(".primary-tooltip"),byjusHomeRedirectBtnMobile=jQuery(".call-icon-mobile").parent();jQuery(".navbar-brand").attr("href","https://byjus.com"),jQuery(".primary-navbar-header .navbar-brand img").attr("src","https://cdn1.byjus.com/byjusweb/img/akash-byjus-jee-neet-assets/akash_byjus_logo_22_6_21.jpg"),jQuery(".primary-top-navbar .navbar-brand img").addClass("ak-bj-logo")}
Register with BYJU'S & Download Free PDFs
Register with BYJU'S & Watch Live Videos
"),!1):(a.removeClass("input-error"),a.addClass("input-valid"),!0)}function phoneNumberValidation(e,r,s,a,i,n,o=""){MOBILE_OTP_VALIDATER.isPhoneNumberVerified=!1,phoneNumberFromSendOtpResponse="";var t,d,l,p,_,T=jQuery(e),m=T.find("[data-phone-number-input]"),u=T.find("[data-otp-number-input]"),f=T.find("[data-otp-input-field-voice-call-option]"),E=T.find("[data-send-otp]"),A=T.attr("name"),O=jQuery(e).find("[data-otp-validated-img]"),v=jQuery("[data-remaining-fields-container]"),c="",g={};E.click(function(){if("undefined"!=typeof USER_DETAILS_INPUT_VALIDATORS?USER_DETAILS_INPUT_VALIDATORS.phoneValidation(m):UTILITIES.phoneValidation(m)){var e=m.val(),p={phoneNumber:e};if(""==o){if("IAS_QUESTIONS"==n?(c="DEFAULT_IAS_USER_LOCALSTORAGE",g=DEFAULT_IAS_USER_DETAILS):"blc-form"===n||"job-posting-form"===n||"sales-acknowledgement-form"===n||"service-counsel"===n||"blc-popup-form"===n?g.verifyKey=generateRandomID():"open-close-rank-jee-main"==n||"jee-neet-talk-to-counselor-form"==n||"sidebar-join-byjus-form"==n||"cat-rank-predictor"===n||"ias-register-now-pop-up-form"==n||"cat-register-now-pop-up-form"==n||(c="DEFAULT_COMMENT_BOX_LOCALSTORAGE",g=DEFAULT_USER_DETAILS),null!==getStorage(c))if(userFromStorage=JSON.parse(getStorage(c)),userFromStorage.verifyKey){var _=new Date,T=("0"+_.getFullYear()).slice(-2)+""+("0"+(_.getMonth()+1)).slice(-2)+("0"+_.getDate()).slice(-2);userFromStorage.verifyKey.substring(17,23)==T?g.verifyKey=userFromStorage.verifyKey:g.verifyKey=generateRandomID()}else g.verifyKey=generateRandomID();else"blc-form"===n||"job-posting-form"===n||"sales-acknowledgement-form"===n||"service-counsel"===n||"blc-popup-form"===n||("open-close-rank-jee-main"==n?(g.verifyKey=generateRandomID(),MOBILE_OTP_VALIDATER.storageSessionId=g.verifyKey):g.verifyKey=generateRandomID());"IAS_QUESTIONS"==n?DEFAULT_IAS_USER_DETAILS.verifyKey=g.verifyKey:"blc-form"===n||"job-posting-form"===n||"sales-acknowledgement-form"===n||"service-counsel"===n||"blc-popup-form"===n||"open-close-rank-jee-main"==n||"open-close-rank-neet-main"==n||"jee-neet-talk-to-counselor-form"==n||"sidebar-join-byjus-form"==n||"ias-register-now-pop-up-form"==n||"cat-register-now-pop-up-form"==n||(DEFAULT_USER_DETAILS.verifyKey=g.verifyKey),p.verifyKey=g.verifyKey}o?p.page=A:p.type=A,m.addClass("sending");var I=30;E.attr("disabled",!0),E.html('
Resend in '+I+"sec.
"),t=setInterval(function(){--I,I<=0&&(clearInterval(t),E.attr("disabled",!1),E.html("Resend OTP"),m.siblings(".input-error-msg").remove()),E.find("[data-otp-active-timer] span").html(I)},1e3),u.attr("disabled",!1).focus();var D=o?MOBILE_OTP_VALIDATER.apis.bcasSendOtp:MOBILE_OTP_VALIDATER.apis.sendOtp,L=o?0:"undefined"==typeof WT_OTP_ENCRYPTION_ENABLED_VAL||"undefined"==typeof WT_OTP_ENCRYPTED_DATA_AUTH_TOKEN_VAL||"undefined"==typeof WT_OTP_ENCRYPTED_DATA_KEY_VAL||"undefined"==typeof OTP_ENCRYPT_PAYLOAD_WT||0==WT_OTP_ENCRYPTION_ENABLED_VAL||""==WT_OTP_ENCRYPTED_DATA_AUTH_TOKEN_VAL||""==WT_OTP_ENCRYPTED_DATA_KEY_VAL?0:WT_OTP_ENCRYPTION_ENABLED_VAL;0==L||1==L&&OTP_ENCRYPT_PAYLOAD_WT.isTokenValid(OTP_ENCRYPT_PAYLOAD_WT.getToken())?jQuery.ajax({type:"POST",url:D,data:1==L?JSON.parse(OTP_ENCRYPT_PAYLOAD_WT.sendEncryptedData(JSON.stringify(p))):p,success:function(o,p,_){d=_.getResponseHeader("isverified"),l=_.getResponseHeader("reference-id"),MOBILE_OTP_VALIDATER.verifyToken="Bearer "+_.getResponseHeader("reference-id"),MOBILE_OTP_VALIDATER.verifyReference=_.getResponseHeader("reference-id"),MOBILE_OTP_VALIDATER.mobileNumber=e,o&&"error"===o.status?CS_UTILITIES.addToastMessage(0,"Something went wrong. Please try after some time"):o?"true"===d?(m.after('
'+o.message+"
"),E.addClass("d-none").addClass("hidden"),f.addClass("d-none").addClass("hidden"),m.attr("disabled",!0),m.addClass("otp-verified"),u.attr("disabled",!0),m.siblings(".input-error-msg").remove(),MOBILE_OTP_VALIDATER.isPhoneNumberVerified=!0,O.removeClass("hidden"),clearInterval(t),E.html("Send OTP"),E.attr("disabled",!1),"PDF_DOWNLOAD"===n&&v.length>0?(GA_FLAG&&ga("send","event","PDF downloaded successfully","PDF downloaded successfully","PDF downloaded successfully"),inputFieldManaged(e,r,s,a,i,n),v.removeClass("hidden")):"COMMENT"==n?inputFieldManaged(e,r,s,a,i,n):"alliance-form"===n?enableSliderInAllianceForm():"COMMENT"==n?inputFieldManaged(e,r,s,a,i,n):"open-close-rank-jee-main"===n?userCheckIfAlreadyExist(e,r,s,a,i,n):"IAS_QUESTIONS"==n&&void 0!==r&&void 0!==s?inputFieldManaged(e,r,s,a="",i="",n):"YOUTUBE_LIVE_VIDEO_REDIRECTION"===n&&v.length>0?(GA_FLAG&&ga("send","event","YouTube live video redirection is successful","YouTube live video redirection is successful","YouTube live video redirection is successful"),inputFieldManaged(e,r,s,a,i,n),v.removeClass("hidden")):"PDF_DOWNLOAD_LEAD_FORM_MODAL"===n&&v.length>0&&v.removeClass("hidden")):(f.removeClass("d-none").removeClass("hidden"),phoneNumberFromSendOtpResponse=o.number,E.addClass("resend"),MOBILE_OTP_VALIDATER.isPhoneNumberVerified=!1,m.after('
OTP has been Sent to '+e+"
"),"PDF_DOWNLOAD"===n&&v.length>0||"COMMENT"==n||"VIDEO"==n||"alliance-form"==n||"open-close-rank-jee-main"===n||"YOUTUBE_LIVE_VIDEO_REDIRECTION"===n&&v.length>0||"PDF_DOWNLOAD_LEAD_FORM_MODAL"===n&&v.length):CS_UTILITIES.addToastMessage(0,"Something went wrong. Please try after some time")},error:function(e,r,s){m.removeClass("sending"),m.siblings(".input-error-msg").remove(),m.after('
'+e.responseJSON.message+"
")}}):CS_UTILITIES.addToastMessage(0,"Session Expired")}else phoneNumberValidation(m)}),u.on("input",function(){if(!MOBILE_OTP_VALIDATER.isPhoneNumberVerified&&(u.siblings(".input-error-msg").remove(),this.isValid=otpValidation(u),this.isValid)){params={phoneNumber:phoneNumberFromSendOtpResponse,otp:u.val()},o?params.page=A:(params.type=A,params.Authorization="Bearer "+l),m.siblings(".input-error-msg").remove(),u.siblings(".input-error-msg").remove(),u.removeClass("input-error");var e=o?MOBILE_OTP_VALIDATER.apis.bcasVerifyOtp:MOBILE_OTP_VALIDATER.apis.verifyOtp,d=o?0:"undefined"==typeof WT_OTP_ENCRYPTION_ENABLED_VAL||"undefined"==typeof WT_OTP_ENCRYPTED_DATA_AUTH_TOKEN_VAL||"undefined"==typeof WT_OTP_ENCRYPTED_DATA_KEY_VAL||"undefined"==typeof OTP_ENCRYPT_PAYLOAD_WT||0==WT_OTP_ENCRYPTION_ENABLED_VAL||""==WT_OTP_ENCRYPTED_DATA_AUTH_TOKEN_VAL||""==WT_OTP_ENCRYPTED_DATA_KEY_VAL?0:WT_OTP_ENCRYPTION_ENABLED_VAL;0==d||1==d&&OTP_ENCRYPT_PAYLOAD_WT.isTokenValid(OTP_ENCRYPT_PAYLOAD_WT.getToken())?jQuery.ajax({type:"POST",url:e,data:1==d?JSON.parse(OTP_ENCRYPT_PAYLOAD_WT.sendEncryptedData(JSON.stringify(params))):params,beforeSend:function(e){o&&e.setRequestHeader("Authorization","Bearer "+l)},success:function(e,d,l){if(o)E.addClass("d-none").addClass("hidden"),f.addClass("d-none").addClass("hidden"),m.attr("disabled",!0),m.addClass("otp-verified"),u.attr("disabled",!0),m.siblings(".input-error-msg").remove(),O.removeClass("hidden"),MOBILE_OTP_VALIDATER.isPhoneNumberVerified=!0,clearInterval(t),E.html("Send OTP"),E.attr("disabled",!1),"alliance-form"===n&&enableSliderInAllianceForm();else if(p=l.getResponseHeader("otpverified"),"true"===p)if(E.addClass("d-none").addClass("hidden"),f.addClass("d-none").addClass("hidden"),m.attr("disabled",!0),m.addClass("otp-verified"),u.attr("disabled",!0),m.siblings(".input-error-msg").remove(),O.removeClass("hidden"),MOBILE_OTP_VALIDATER.isPhoneNumberVerified=!0,clearInterval(t),"blc-form"!=n&&"job-posting-form"!==n&&"service-counsel"!==n||setTimeout(function(){automateApplyNow()},1e3),E.html("Send OTP"),E.attr("disabled",!1),"PDF_DOWNLOAD"===n&&v.length>0)v.removeClass("hidden"),inputFieldManaged(m.val(),r,s,a,i,n);else if("COMMENT"==n)inputFieldManaged(m.val(),r,s,a,i,n);else if("VIDEO"==n)inputFieldManaged(m.val(),r,s,a,i,n);else if("IAS_QUESTIONS"===n)inputFieldManaged(m.val(),r,s,a="",i="",n);else if("COMMENT"==n)r.removeClass("hidden"),s.removeClass("hidden"),a.removeClass("hidden"),i.removeClass("hidden");else if("open-close-rank-jee-main"===n)userCheckIfAlreadyExist(m.val(),r,s,a,i,n);else if("YOUTUBE_LIVE_VIDEO_REDIRECTION"===n&&v.length>0)v.removeClass("hidden"),inputFieldManaged(m.val(),r,s,a,i,n);else if("PDF_DOWNLOAD_LEAD_FORM_MODAL"===n&&v.length>0)v.removeClass("hidden");else if("jee-neet-talk-to-counselor-form"==n)jQuery("[data-phone-number-input]").removeClass("input-error"),jQuery("[data-otp-validated-img]").removeClass("hidden");else if("sidebar-join-byjus-form"==n){let e=jQuery("#join-byjus-form-widget");e.find("[data-phone-number-input]").removeClass("input-error"),e.find("[data-phone-number-input]").addClass("input-valid"),e.find("[data-otp-validated-img]").removeClass("hidden")}else"ias-register-now-pop-up-form"==n?(jQuery("[data-phone-number-input]").removeClass("input-error"),jQuery("[data-otp-validated-img]").removeClass("hidden")):"cat-register-now-pop-up-form"==n&&(jQuery("[data-phone-number-input]").removeClass("input-error"),jQuery("[data-otp-validated-img]").removeClass("hidden"));else u.removeClass("input-error"),u.siblings(".input-error-msg").remove(),u.addClass("input-error"),u.after('
'+e.message+"
");"INTERACTIVE_QUIZ"==n&&checkexistinguser(params.phoneNumber,"","","","","INTERACTIVE_QUIZ")},error:function(e,r,s){var a;a=void 0!==e.responseJSON?e.responseJSON.message:e.statusText,u.removeClass("input-error"),u.siblings(".input-error-msg").remove(),u.addClass("input-error"),u.after('
'+a+"
")}}):CS_UTILITIES.addToastMessage(0,"Session Expired")}});var I=T.find("[data-otp-voice-call-cta]");I.on("click",function(){var e=jQuery(this),r=30;e.find("span").html(" "+r+"sec."),e.attr("disabled",!0),u.attr("disabled",!1).focus(),_=setInterval(function(){--r,r<=0?(clearInterval(_),e.find("span").html("Voice Call"),e.attr("disabled",!1)):e.find("span").html(" "+r+"sec.")},1e3)})}var MOBILE_OTP_VALIDATER={isPhoneNumberVerified:!1,isUserAlreadyExist:!1,mobileNumber:"",verifyToken:"",verifyReference:"",apis:{register:BCAS_API_BASE_URL+"api/acs/v1/register",sendOtp:COMMON_UTILS_ENDPOINT_KEY+"otp",pageInstanse:"ask-question-popup",verifyOtp:COMMON_UTILS_ENDPOINT_KEY+"otp-verify",bcasSendOtp:BCAS_API_BASE_URL+"api/acs/v2/send-otp",bcasVerifyOtp:BCAS_API_BASE_URL+"api/acs/v2/verify-otp",voiceOtp:BCAS_API_BASE_URL+"api/acs/voice"},storageSessionId:""};
')))}):d.click(function(e){e.preventDefault();var a=USER_DETAILS_INPUT_VALIDATORS.phoneValidation(t)&&USER_DETAILS_INPUT_VALIDATORS.nameValiadation(r)&&USER_DETAILS_INPUT_VALIDATORS.emailValidation(i)&&USER_DETAILS_INPUT_VALIDATORS.requiredValidation(o,"","Comment")&&USER_DETAILS_INPUT_VALIDATORS.cityValidation(n,"","City")&&USER_DETAILS_INPUT_VALIDATORS.requiredValidation(s,"","Grade");if(a&&MOBILE_OTP_VALIDATER.isPhoneNumberVerified){jQuery(".cb-error-msg, .cb-success-msg").remove(),jQuery(d).attr("disabled",!0).text("Posting..."),DEFAULT_USER_DETAILS.isUserAlreadyLoggedIn=!0,DEFAULT_USER_DETAILS.isMobileAlreadyVerified=!0,MOBILE_OTP_VALIDATER.verifyToken?DEFAULT_USER_DETAILS.authorization=MOBILE_OTP_VALIDATER.verifyToken:(userFromStorage=JSON.parse(getStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE")),authToken=userFromStorage.authorization,DEFAULT_USER_DETAILS.authorization=authToken),DEFAULT_USER_DETAILS.verifyKey||(userFromStorage=JSON.parse(getStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE")),DEFAULT_USER_DETAILS.verifyKey=userFromStorage.verifyKey),void 0===SESSION_ID&&(DEFAULT_USER_DETAILS.sessionId=generateRandomID()),void 0===SESSION_ID_SECONDARY&&(DEFAULT_USER_DETAILS.sessionIdSecondary=generateRandomID());var l={first_name:r.val(),mobile_number:t.val(),email_address:i.val(),category_type:"COMMENT",session_id:DEFAULT_USER_DETAILS.sessionId,session_id_secondary:DEFAULT_USER_DETAILS.sessionIdSecondary,grade:s.val(),city:n.val(),authorization:DEFAULT_USER_DETAILS.authorization,currentUrl:C_URL,Website_URL:C_URL,Platform:void 0!==navigator.isMobile?navigator.isMobile?"website_mobile":"website_desktop":"",Lead_Magnet_Type:"LEAVE_A_COMMENT_FORM",Device_Details:void 0!==navigator.detectDeviceAgent?navigator.detectDeviceAgent:"",Device_UserAgent:void 0!==navigator.userAgent?navigator.userAgent:""},m=author_submit_form=email_submit_form=captcha_submit_form=!1;u.find('button[name="submit"]').attr("disabled","disabled").val("Posting...").addClass("post-class"),u.find('textarea[name="comment"]').removeClass("cb-error");var _=u.find('textarea[name="comment"]').val().trim(),S=_.replace(/(<([^>]+)>)/gi,"_HTML_").trim(),A=S.split(" ").join("\n");A=A.replace(/^\s*(\[\s*url\s*=\s*)?(https?:\/\/)?(www\.|\S+?\.)(\S+?\.)?\S+\s*$\s*/gm,"_URL_").trim(),""===_||null==_?u.find('textarea[name="comment"]').after('Please enter comment.').addClass("cb-error"):""===S||-1!==S.indexOf("_HTML_")?u.find('textarea[name="comment"]').after('HTML tags are not allowed for comment.').addClass("cb-error"):""===A||-1!==A.indexOf("_URL_")?u.find('textarea[name="comment"]').after('Any external links or urls are not allowed.').addClass("cb-error"):m=!0;var E={},p=jQuery("#data-comment-form"),v=p.serializeArray();if(jQuery.each(v,function(e,a){E[a.name]=a.value,"_wp_unfiltered_html_comment"===a.name&&null!==a.value&&(c=!0)}),!1===c)if(u.find('input[name="author"]').removeClass("cb-error"),u.find('input[name="email"]').removeClass("cb-error"),0!==u.find('textarea[name="g-recaptcha-response"]').length){var I=u.find('textarea[name="g-recaptcha-response"]').val().trim();""===I||null==I?u.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;m&&captcha_submit_form?(MOBILE_OTP_VALIDATER.verifyToken?E.authorization=MOBILE_OTP_VALIDATER.verifyToken:(userFromStorage=JSON.parse(getStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE")),authToken=userFromStorage.authorization,E.authorization=authToken),E.comment=S,E.author=r.val(),E.email=i.val(),E.mobileNumber=l.mobile_number,delete E.city,delete E.grade,E.ajax_comment_request=1,jQuery.post(BASE_URL+"wp-comments-post.php",E,function(e){if(u.find('button[name="submit"]').attr("disabled",!1).val("Post Comment").removeClass("post-class"),null!=e){var a=JSON.parse(e);"success"===a.status&&a.response?(c?addGAEvent(USER_DETAILS_CONFIG.isUserAlreadyExist,"created Successfully"):(o.val(""),addGAEvent(USER_DETAILS_CONFIG.isUserAlreadyExist,"created Successfully"),0!==u.find('textarea[name="g-recaptcha-response"]').length&&grecaptcha.reset(),jQuery(d).attr("disabled",!1).text("Post Comment"),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.')),r.attr("disabled",!1).parent().removeClass("hidden"),i.attr("disabled",!1).parent().removeClass("hidden"),s.attr("disabled",!1).parent().removeClass("hidden"),n.attr("disabled",!1).parent().removeClass("hidden"),c||jQuery.ajax({type:"POST",url:USER_DETAILS_CONFIG.apis.userCreateUpdateUrl,data:l,success:function(e){setStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE",JSON.stringify(DEFAULT_USER_DETAILS)),USER_DETAILS_CONFIG.isUserAlreadyExist=!0},error:function(e){console.log(e)}})):"invalid"===a.status&&a.response?(jQuery(d).text("Post Comment"),jQuery(".form-submit").after('Invalid Comment or User posted too many Comments')):"failed"===a.status&&a.response?(jQuery(d).text("Post Comment"),jQuery(".form-submit").after('Something went wrong, please refresh the page and try again')):(jQuery(d).attr("disabled",!1).text("Post Comment"),jQuery(".form-submit").after('Invalid Comment or User posted too many Comments'))}else jQuery(d).attr("disabled",!1).text("Post Comment"),jQuery(".form-submit").after('Something went wrong. Please try again after sometime.'),addGAEvent(USER_DETAILS_CONFIG.isUserAlreadyExist,"creation Failed")})):u.find('button[name="submit"]').attr("disabled",!1).val("Post Comment").removeClass("post-class")}else USER_DETAILS_INPUT_VALIDATORS.phoneValidation(t),USER_DETAILS_INPUT_VALIDATORS.nameValiadation(r),USER_DETAILS_INPUT_VALIDATORS.requiredValidation(o,"","Comment "),USER_DETAILS_INPUT_VALIDATORS.cityValidation(n,"","City"),USER_DETAILS_INPUT_VALIDATORS.requiredValidation(s,"","Grade"),USER_DETAILS_INPUT_VALIDATORS.emailValidation(i),USER_DETAILS_INPUT_VALIDATORS.phoneValidation(t)&&!MOBILE_OTP_VALIDATER.isPhoneNumberVerified&&(a=!1,r.removeClass("input-valid").addClass("input-error"),r.siblings(".input-error-msg").remove(),t.removeClass("input-valid").addClass("input-error"),t.siblings(".input-error-msg").remove(),t.after('
Validate your Mobile Number
'))})),getInputAccordingSessionID(e,t,l,m,r,i,n,s),t.on("input",function(){USER_DETAILS_INPUT_VALIDATORS.phoneValidation(this)}),o.on("input",function(){USER_DETAILS_INPUT_VALIDATORS.requiredValidation(this,"","Comment ")}),r.on("input",function(){USER_DETAILS_INPUT_VALIDATORS.nameValiadation(this)}),i.on("input",function(){USER_DETAILS_INPUT_VALIDATORS.emailValidation(this)}),s.on("input",function(){USER_DETAILS_INPUT_VALIDATORS.requiredValidation(this,"","Grade")}),n.on("input",function(){this.isValidInput=USER_DETAILS_INPUT_VALIDATORS.cityValidation,this.requiredName="City";var e=jQuery(this);USER_DETAILS_INPUT_VALIDATORS.cityValidation(e,"","City")}),n.on("change",function(){this.isValidInput=USER_DETAILS_INPUT_VALIDATORS.cityValidation,this.requiredName="City";var e=jQuery(this);USER_DETAILS_INPUT_VALIDATORS.cityValidation(e,"","City")})}}function addGAEvent(e,a){e?GA_FLAG&&ga("send","event","Post Comment Successful","Post Comment activity "+a+" By Existed User","URL: "+C_URL):GA_FLAG&&ga("send","event","Post Comment Successful","Post Comment activity "+a+" By New User","URL: "+C_URL)}function getInputAccordingSessionID(e,a,t,r,i,s,n,o){var d,l;if(null!==getStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE")&&(d=JSON.parse(getStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE")),l=d.sessionId,sessionIDSec=d.sessionIdSecondary,void 0!==l&&"undefined"!=typeof sessionIDSec)){var m={session_id:l,session_id_secondary:sessionIDSec};jQuery.ajax({type:"POST",url:USER_DETAILS_CONFIG.apis.userChecBySessionIDUrl,data:m,success:function(e){e.success&&(a.val(e.data.mobile).attr("disabled",!0),t.addClass("hidden"),r.removeClass("hidden"),i.val(e.data.name).attr("disabled",!1).parent().removeClass("hidden"),s.val(e.data.email).attr("disabled",!1).parent().removeClass("hidden"),n.val(e.data.city).attr("disabled",!1).parent().removeClass("hidden"),o.val(e.data.grade).attr("disabled",!1).parent().removeClass("hidden"),MOBILE_OTP_VALIDATER.isPhoneNumberVerified=d.isMobileAlreadyVerified,USER_DETAILS_CONFIG.isUserAlreadyExist=!0,USER_DETAILS_CONFIG.userDetails=e.data)},error:function(e){console.log(e)}})}}var SESSION_ID,SESSION_ID_SECONDARY,DEFAULT_USER_DETAILS={author:"",email:"",mobile:"",isUserAlreadyLoggedIn:!1,isMobileAlreadyVerified:!1,sessionId:"",sessionIdSecondary:"",authorization:"",verifyKey:""},USER_DETAILS_CONFIG={isUserAlreadyExist:!1,apis:{userChecBySessionIDUrl:BASE_URL+"wp-json/spidy/v1/get_user_by_session_id_api/",userCheckUrl:BASE_URL+"wp-json/spidy/v1/user_check_api/?wp-json_allow",userCreateUpdateUrl:BASE_URL+"wp-json/spidy/v1/user_create_update_api/?wp-json_allow",city:{url:BCAP_API_BASE_URL+"api/geo_dimensions/india_state_city_list/?limit="+INDIA_STATE_CITY_LIST_LIMIT_VAL,method:"GET"}},userDetails:""},USER_DETAILS_INPUT_VALIDATORS={getParameterByName:function(e,a){a=a?"?"+a:window.location.search;var t=new RegExp("[?&]"+e.replace(/\[/g,"\\[").replace(/\]/g,"\\]")+"(?:=([^]*))?(?:[]|$)").exec(a);return t?t[1]?decodeURIComponent(t[1].replace(/\+/g," ")):"":null},requiredValidation:function(e,a,t){var r=jQuery(e),i=r.val(),s="";return r.siblings(".input-error-msg").remove(),i&&null!==i||(s=t+" is required."),s?(r.addClass("input-error").removeClass("input-valid"),r.after('
'+s+"
"),!1):(r.removeClass("input-error"),r.addClass("input-valid"),!0)},emailValidation:function(e,a){var t=jQuery(e),r=t.val(),i="",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 t.siblings(".input-error-msg").remove(),r&&null!==r?r.match(s)||(i="Email-id is not valid."):i="Email-id is required.",i?(t.addClass("input-error").removeClass("input-valid"),t.after('
'+i+"
"),!1):(t.removeClass("input-error"),t.addClass("input-valid"),!0)},nameValiadation:function(e,a,t){var r=jQuery(e),i=r.val(),s=t||"Name",n="",o=/^[a-zA-Z][a-zA-Z\-\ \.]{2,}$/i;return r.siblings(".input-error-msg").remove(),n=i&&null!==i?i.length<=2?"Name should be minimum 3 characters.":i.match(o)?"":"Accepts alphabets only.":s+" is required.",n?(r.addClass("input-error").removeClass("input-valid"),r.after('
'+n+"
"),!1):(r.removeClass("input-error"),r.addClass("input-valid"),!0)},phoneValidation:function(e,a){var t=jQuery(e),r=t.val(),i="",s=/^\d{10}$/,n=/^\d{1,10}$/;if(t.siblings(".input-error-msg").remove(),r&&null!==r)if(r.match(n))r.match(s)||(i="Mobile No. should be 10 digits.");else{let e=t.val().replace(/[^0-9]+/g,"");t.val(e),i=t.val()?"Mobile No. should be 10 digits.":"Mobile No. is required."}else i="Mobile No. is required.";return i?(t.addClass("input-error").removeClass("input-valid"),t.after('
'+i+"
"),!1):(t.removeClass("input-error"),t.addClass("input-valid"),!0)},ajaxCall:function(e,a,t,r){jQuery.ajax({type:e,url:a,crossDomain:!0,data:t,headers:{"content-type":"application/x-www-form-urlencoded"},success:function(e){r&&r(e)},error:function(e){r&&r(e)}})},cities:[],cityAutoSuggestions:function(e){var a;USER_DETAILS_INPUT_VALIDATORS.ajaxCall(USER_DETAILS_CONFIG.apis.city.method,USER_DETAILS_CONFIG.apis.city.url,"",function(e){e.results.length&&(a=e.results,USER_DETAILS_INPUT_VALIDATORS.cities=e.results)});var t=jQuery("["+e+"]"),r=t.find("input");r.on("input",function(){0;var e=jQuery(this).val().toLowerCase(),i="";if(t.find("ul").remove(),e.length>=1){var s=jQuery.grep(a,function(a,t){return 0===a.city.toLowerCase().indexOf(e)});s.length&&(s.every(function(a,t){return i+='
",6!==t}),t.append("
- "+i+"
"))}t.find("ul>li>a").on("click",function(e){e.stopPropagation(),r.val(jQuery(this).text()),t.find("ul").remove(),0,r[0].isValidInput(r)})}),jQuery("body").on("click",function(){t.find("ul").remove(),0})},cityValidation:function(e,a,t){if(USER_DETAILS_INPUT_VALIDATORS.requiredValidation(e,a,t)){if(!USER_DETAILS_INPUT_VALIDATORS.cities.length)return!0;if(USER_DETAILS_INPUT_VALIDATORS.cities.filter(function(a){return a.city.toLocaleLowerCase()==e.val()}).length)return e.siblings(".input-error-msg").remove(),e.removeClass("input-error"),e.addClass("input-valid"),!0;e.addClass("input-error").removeClass("input-valid"),e.after('
Should be selected from the list
')}return!1}};(function(){if(jQuery("#data-comment-form").length>0){commentForm("COMMENT");var e=jQuery("[data-name-field]"),a=jQuery("[data-email-field]"),t=jQuery("[data-grade-fg]"),r=jQuery("[data-city-fg]");e.length>0&&a.length>0&&phoneNumberValidation("#data-comment-form",e,a,t,r,"COMMENT"),USER_DETAILS_INPUT_VALIDATORS.cityAutoSuggestions("data-city-auto-suggestions-comment")}})(),window.onbeforeunload=function(){null!==getStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE")&&clearLocalStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE"),null!==getStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE_expiresIn")&&clearLocalStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE_expiresIn")};