Temperature - Detailed Explanation, Heat vs Temperature, FAQs (2024)

Temperature is measured with a thermometer or a calorimeter. In other words, temperature determines the internal energy within a given system.

Relationship between Temperature and Kinetic Energy

Kinetic energy is the energy possessed by a body due to its motion. We see a range of kinetic energy in molecules because all molecules don’t move at the same speed. When a substance absorbs heat, the particles move faster, so the average kinetic energy and therefore the temperature increases.
As stated in the kinetic-molecular theory, the temperature of a substance is related to the average kinetic energy of the particles of that substance. When a substance is heated, some absorbed energy is stored within the particles, while some energy increases the motion of the particles. This is registered as an increase in the temperature of the substance.

Solids, liquids, and gases all have a temperature. The particles within a solid don’t move, but they have vibrational motion. The temperature increases when molecules vibrate faster. The melting point of a solid is the temperature at which the vibrational motion overcomes the forces of attraction holding the molecules in a solid formation.
Read More: Kinetic Theory of Gases

Heat vs Temperature

It is important to understand that heat and temperature are not the same. Although the two concepts are linked, they mean different things.
Heat describes the transfer of thermal energy between molecules within a system and it is measured in joules. An object can gain or lose heat, but it cannot have heat. Heat is not a property possessed by an object or system rather it is a measure of change.
Temperature describes the average kinetic energy of molecules within a material or system and is measured in Celsius (°C), Kelvin (K) and Fahrenheit (°F).
Concluding, we can say that heat is a transfer of thermal energy caused by a difference in temperature between molecules.

Temperature Measurement

As molecules are minuscule particles, we must use indirect methods to measure the kinetic energy of the molecules of a substance. As heat is added to the substance, the molecules move more rapidly. This increased motion causes a small increase in the volume, or amount of space, taken up by most materials. There are devices that use the expansion of a substance to give an indirect measure of temperature. Such devices are called thermometers.

How does a Thermometer Measure Temperature?

Thermometers are the most common instrument to measure temperature. The simplest of thermometers is the liquid thermometer. They are a thin glass tube filled with a small amount of mercury. Thermometers measure the temperature due to thermal expansion. An increase in the volume of substance because of the increase in the temperature is known as thermal expansion. A small change in the temperature causes changes in the volume of a liquid. However, this form of effect is maximised when the liquid expands within the thin tube of the thermometer. When mercury gets hotter, it increases in size by an amount that’s directly related to the temperature. So if the temperature increases by 20 degrees, the mercury expands and moves up the scale by twice as much as if the temperature increase is only 10 degrees.

Making a Celsius scale is easier because it’s based on the temperatures of ice and boiling water. These are the two fixed points. When we dip the thermometer into ice, we observe that the mercury level marks the lowest point on our scale i.e, 0°C. The mercury rises to the top of the thermometer and reads 100°C if we immerse it in boiling water. A thermometer’s scale is split into 100 equally spaced intervals between 0°C and 100°C.

What is the Temperature Sensor?

A temperature sensor is an RTD (Resistance Temperature Detector) or a thermocouple, that collects data about temperature from a particular source and converts the data into an understandable form for a device or an observer. Temperature sensors are used in many applications, such as food processing units and medical devices. The most common type of temperature sensor is the thermometer, which measures the temperature of solids, liquids, and gases. It is also a common type of temperature sensor, mostly used for non-scientific purposes because it is not so accurate. The following are a few temperature sensors besides the thermometer.

  • Thermocouples
  • Resistor temperature detectors
  • Thermistors
  • Infrared sensors
  • Semiconductors

Temperature Scales

Thermometers measure temperature according to well-defined scales of measurement. The three most common temperature scales are the Fahrenheit, Celsius, and Kelvin scales.

Temperature - Detailed Explanation, Heat vs Temperature, FAQs (1)

Celsius Scale & Fahrenheit Scale

The Celsius scale has a freezing point of water at 0ºC and the boiling point of water at 100ºC. On the Fahrenheit scale, the freezing point of water is at 32ºF and the boiling point is at 212ºF. The temperature difference of one degree Celsius is greater than a temperature difference of one degree Fahrenheit. One degree on the Celsius scale is 1.8 times larger than one degree on the Fahrenheit scale.

  • 180/100 = 9/5

Kelvin Scale

Kelvin scale is the most commonly used temperature scale in science. It is an absolute temperature scale defined to have 0 K at the lowest possible temperature, called absolute zero. The freezing and boiling points of water on this scale are 273.15 K and 373.15 K, respectively. Unlike other temperature scales, the Kelvin scale is an absolute scale. It is extensively used in scientific work. The Kelvin temperature scale possesses a true zero with no negative temperatures. It is the lowest temperature theoretically achievable and is the temperature at which the particles in a perfect crystal would become motionless.

Relationship between Different Temperature Scales

The relationship between the three temperature scales is given in the table below:

ConversionEquation
Celsius to Fahrenheit

\(\begin{array}{l}T_{F^o} = \frac{9}{5}T_{c^o}+32\end{array} \)

Fahrenheit to Celsius

\(\begin{array}{l}T_{C} = \frac{5}{9}T_{F}-32\end{array} \)

Celsius to Kelvin

\(\begin{array}{l}T_{K} = T_{C^o}+273.15\end{array} \)

Kelvin to Celsius

\(\begin{array}{l}T_{C^o} = T_{K}-273.15\end{array} \)

Fahrenheit to Kelvin

\(\begin{array}{l}T_{K} = \frac{5}{9}(T(F^0)-32)+273.15\end{array} \)

Kelvin to Fahrenheit

\(\begin{array}{l}T_{F^0} = \frac{9}{5}(T(K)-273.15)+32\end{array} \)

Example 1: Converting different temperature scales
The room temperature is generally defined to be 25ºC. What is the room temperature in ºF? What is the room temperature in K?

Solution for 1: To convert from Celsius to Fahrenheit,

we use the equation:

\(\begin{array}{l}T_{F^o} = \frac{9}{5}T_{c^o}+32\end{array} \)

Substituting the values in the equation, we get

\(\begin{array}{l}T_{F^o} = \frac{9}{5}T_{25^o \,C}+32=77^0\,F\end{array} \)

Solution for 2: To convert from Celsius to Kelvin,

we use the equation:

\(\begin{array}{l}T_{K} = T_{C^o}+273.15\end{array} \)

Substituting the values in the equation, we get

\(\begin{array}{l}T_{K} = T_{25^o\,C}+273.15=298\,K\end{array} \)

Thermal Equilibrium

Did you know that thermometers take their own temperature, not the temperature of the object they are measuring?

Thermometers work on the fact that any two systems placed in thermal contact (meaning heat transfer can occur between them) will reach the same temperature. The heat will flow from the hotter object to the cooler object until they reach the same temperature. The objects are then said to be in thermal equilibrium, and no further changes will occur. Systems interact and change because of temperature differences, and these changes stop once their temperatures are the same. Thermal equilibrium is established when two bodies are in contact with each other and can freely exchange energy.

Absolute Temperature

Absolute temperature is the temperature of a body on a scale where 0 is considered as absolute zero. Kelvin is one of the most common absolute temperature scales. The temperature at which a body is in the lowest possible energy state is called absolute zero. When molecules reach this extreme temperature, their motion drops to zero value. In the case of molecules, their kinetic energy will reduce to zero or negligible. Absolute zero is also the lowest temperature that a gas thermometer can detect. At this temperature, no conventional electronic devices work, and no living organisms can survive.

Effects of Temperature

An increase or decrease in temperature causes various changes in the physical and chemical processes of life. Some of those are given below-

  • It affects the solubility, density, vapour pressure and physical properties of various materials along with the electrical conductivity
  • The rate of a chemical reaction is also affected by the temperature.
  • The thermal radiation from the surface of objects is also affected by temperature.

Watch the video and learn more about room temperature

Temperature - Detailed Explanation, Heat vs Temperature, FAQs (2)

Frequently Asked Questions – FAQs

Q1

Do substances expand or contract as they get hotter?

As the temperature rises, substances expand. Heat causes the molecules and atoms of a body to vibrate faster. As the atoms vibrate faster, the space between atoms increases. The motion and spacing of the particles determine the state of matter of the substance. The end result of increased molecular motion is that the object expands and takes up more space.

Q2

Which state of matter has the highest temperature?

Gas has the highest temperature.

Q3

Which temperature scale is the most common throughout the world?

Celsius is the most common temperature scale in the world.

Q4

What is the coldest temperature possible?

Absolute zero is the coldest temperature possible.

Q5

Which temperature scale is most commonly used by scientists?

Kelvin is the most commonly used temperature scale by scientists.

Stay tuned to BYJU’S and Fall in Love with Learning!

Test your Knowledge on Temperature

Q5

Temperature - Detailed Explanation, Heat vs Temperature, FAQs (3)

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
Fermi Paradox Difference Between Science And Technology
Helmholtz Free Energy How To Make A Fireproof Balloon?
Si Unit Of Momentum Who Are Called As Visually Impaired?
Si Unit For Volume Raman Scattering
Difference Between Fuse And Circuit Breaker Flux Units

Comments

Leave a Comment

Temperature - Detailed Explanation, Heat vs Temperature, FAQs (5)

",i.after(m)}}else{i.find('button[type="submit"]').attr("disabled",!0).html("Submitting..");var p=i.serialize();p+="&current_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+='

  • '+a.city.toLowerCase().replace(e,""+e+"")+"
  • ",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")};

    Temperature - Detailed Explanation, Heat vs Temperature, FAQs (2024)
    Top Articles
    Latest Posts
    Article information

    Author: Chrissy Homenick

    Last Updated:

    Views: 6185

    Rating: 4.3 / 5 (54 voted)

    Reviews: 93% of readers found this page helpful

    Author information

    Name: Chrissy Homenick

    Birthday: 2001-10-22

    Address: 611 Kuhn Oval, Feltonbury, NY 02783-3818

    Phone: +96619177651654

    Job: Mining Representative

    Hobby: amateur radio, Sculling, Knife making, Gardening, Watching movies, Gunsmithing, Video gaming

    Introduction: My name is Chrissy Homenick, I am a tender, funny, determined, tender, glorious, fancy, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.