Thermometers: Types, How to Use a Thermometer, and FAQs (2023)

type of thermometer

Below are the different types of thermometers that we use on a daily basis:

  • Thermometer/Medical Thermometer
  • laboratory thermometer
  • Digital Thermometer
  • infrared ear thermometer
  • Mercury thermometer
  • alcohol in glass thermometer
  • Constant pressure gas thermometer
  • constant volume thermometer
  • Platinum Resistance Thermometer
  • thermocouple thermometer
  • pyrometer thermometer

thermometer

Thermometers: Types, How to Use a Thermometer, and FAQs (1)
  • Clinical thermometers are used for clinical purposes.
  • It was developed for measuring human body temperature.
  • It is a long, thin glass tube with a bulb containing mercury at the end.
  • normal human bodytemperature37°C, fluctuating from 35°C to 42°C. Therefore, the clinical thermometer has a range of 35°C to 42°C.
  • Mercury levels indicate our body temperature in degrees Celsius.
  • Since mercury is a toxic element, these thermometers are now being replaced by digital thermometers.

notes:Thermometers must be sanitized before use to allow for a safe, clean inspection.

How to read the thermometer reading?

  • The thermometer is cleaned with water at room temperature.
  • It took some jolts. We noticed that yanking lowered the mercury levels. We make sure it stays below the 37°C or 98°F mark of normal human body temperature.
  • Then place the thermometer under the tongue or under the arm to get a reading on the thermometer.
  • Then hold the thermometer close to the eye, as shown in Figure 3, to see the correct reading.
  • Record the temperature difference indicated between the two larger marks. In addition, the number of divisions between these markers (indicated by smaller markers) is also recorded. For example the larger marker reads 10 and the divisor is 5, then each divisor reads a value equal to 10/5 = 20
    Thermometers: Types, How to Use a Thermometer, and FAQs (2)
  • We note the value of the larger marker that the mercury line crosses (98 in Example 1 of Figure 4). Then record the number of divisions the mercury line crosses (3 in this example). This value is now multiplied by the value of one cell (0.2 in this case). Therefore, the temperature reading is 98 + (3×2) = 98.6.

laboratory thermometer

  • Since thermometers cannot be used to measure temperature outside of the human body, we need a special type of thermometer for other purposes.
  • Laboratory thermometers, commonly known as laboratory thermometers, are used to measure temperatures other than body temperature.
  • The temperature range is -10°C to 110°C.
  • Laboratory thermometer use:
    • Designed for laboratory purposes
      • check boiling point
      • check freezing point
      • Check the temperature of other substances.
      • Check the temperature of the solvent, not the clinical temperature.
Thermometers: Types, How to Use a Thermometer, and FAQs (3)

Weather reporters also use high and low thermometers to measure the highest and lowest temperatures in a place.

Learn more about thermometers,thermal energyand temperature, through BYJU's engaging video lectures.

Digital Thermometer

  • These thermometers measure temperature through an electronic circuit.
  • The captured information is sent to a microchip for processing and displayed digitally on a digital screen.
  • They are easy to use, inexpensive and accurate.
  • A digital thermometer can be considered an advanced thermometer for measuring body temperature.

How to use a digital thermometer?

  • Turn on the thermometer and click until the number zero appears on the display.
  • Place the tip of the thermometer under your armpit.
  • Wait a few seconds, and then you will hear the alarm beep from the thermometer.
  • Remove the thermometer and check the temperature on the display.
  • After use, clean the tip of the thermometer with cotton and rubbing alcohol.

infrared ear thermometer

  • Checking body temperature using the inside of the ear is calledTympanic temperature
  • This method is common when it is time to take a child's temperature because it is quick.
  • Infrared thermometers capture temperature in the form of infrared energy emitted by a heat source.

How to use an infrared ear thermometer?

  • The tip of the thermometer should be placed in the ear, pointing towards the nose.
  • The power button on the thermometer should be pressed until a signal is heard.
  • Read the temperature value.
  • Remove the thermometer from the ear and clean the tip with cotton wool and rubbing alcohol.
  • Make sure the thermometer is not used on ears that contain a lot of wax.
  • Thermometers such as mercury thermometers, glass alcohol thermometers, constant pressure gas thermometers, and platinum resistance thermometers are all designed based on technology.

Watch the video below to learn how temperature affects things around us

Thermometers: Types, How to Use a Thermometer, and FAQs (4)

Mercury thermometer

  • These thermometers are not used in some departments because they are easily broken.
  • Mercury is a toxic liquid that can be a health hazard.
  • Mercury thermometers are used to give accurate temperature readings.
  • It is used to take armpit, oral and rectal temperatures.

alcohol in glass thermometer

  • These are thermometers made of sealed glass.
  • Glass alcohol thermometers show temperature by how much mercury or alcohol reaches the mark.
  • Temperature is indicated by a change in liquid.
  • Because of the danger of contact with mercury, the alcohol in glass thermometers has colored alcohol.

Constant pressure gas thermometer

  • Constant pressure gas thermometers work under constant pressure and volume conditions.
  • Constant pressure gas thermometers provide high accuracy measurements and are used to regulate other thermometers.

Constant volume gas thermometer

  • In a constant volume gas thermometer, the pressure increases as the temperature increases.
  • The constant volume gas thermometer measures temperatures in the range 0k to 500k.

Platinum Resistance Thermometer

  • Platinum resistance thermometers use a platinum wire connected to a resistance to measure temperature.
  • Typically, these thermometers are used to measure the outside temperature.
  • Platinum resistance thermometers are slow but give accurate readings.
  • As the temperature increases, the resistance of the material in the thermometer increases.
  • Platinum resistance thermometers measure temperatures in the range of 500 K to 2300 K.

As the temperature increases, the resistance of the material in the thermometer increases. Platinum resistance thermometers measure temperatures in the range of 500 K to 2300 K.

thermocouple thermometer

  • These devices are used to measure temperature quickly.
  • It is used in laboratories.
  • Resistors are used in devices to generate a voltage that varies according to the temperature of the connection.
  • It also measures temperatures in the range of 500K to 2300K.

pyrometer thermometer

  • The thermometer operates according to Stefan's law.
  • This device measures the temperature of the thermal radiation emitted by an object.
  • These thermometers can be used without touching an object.
  • Pyrometer thermometers measure temperatures greater than 2000 K.

Read more about: Calories and Classification

Frequently Asked Questions - Frequently Asked Questions

Q1

What are the properties of alcohol used in thermometers?

The following are the properties of alcohol for thermometers:

  • The freezing point should be below -112°C.
  • The boiling point should be 78°C.
  • The color of the alcohol should be bright.
  • It should be a good thermal insulator.
  • Measuring high temperatures should be possible.

Q2

How do I know if a thermometer is accurate?

To check that the thermometer is accurate, we need to plunge the stem of the thermometer into the ice water so that the stem is at least an inch deep but not touching the glass. Wait a minute or less for the thermometer to register a reading of the ice water. A thermometer is said to be accurate if it reads 32°F or 0°C.

the third quater

Who is the father of the thermometer?

Daniel Gabriel Fahrenheit is considered the father of the thermometer. He was a German physicist who devoted his life to science and invention. The modern mercury thermometer was invented by Fahrenheit. He is also credited with inventing the mercury-in-glass thermometer.

fourth quarter

Why is mercury a good choice for a thermometer?

Mercury is liquid at room temperature and has the highest expansion coefficient. Therefore, even the slightest temperature change is worth noting. Additionally, the boiling point of mercury makes it suitable for measuring higher temperatures. Another reason for using mercury in thermometers is that it does not stick to glass surfaces and has a shiny appearance.

Test Your Knowledge of Clinical Laboratory Thermometers

ask5

Thermometers: Types, How to Use a Thermometer, and FAQs (5)

Test your understanding of this concept by answering some MCQs. Click "Start Quiz" to get started!

Select the correct answer and click the "Finish" button
Check your score and answers at the end of the quiz

Congratulations!

Visit BYJU’S for all physics related inquiries and study materials

Your result is as follows

0outside of0wrong

0outside of0is correct

0outside of0untried

Login to view results

Didn't receive OTP?

Request OTP

Login to view results

Physics Related Links
what is a magnetic fieldDefinition of land wind
Sound needs a medium to travelResistivity and Resistance
energy band definitionRegulator Definition
define weatheringDifference Between Lenses and Mirrors
Examples of Electrical ConductorsKinetic definition

Comment

Comment

  1. Thermometers: Types, How to Use a Thermometer, and FAQs (7)
    Akajit RoyMay 3, 2020 at 7:40 pm

    It's a nice smart app

    reply

  2. Thermometers: Types, How to Use a Thermometer, and FAQs (8)
    SahajJune 28, 2020 at 9:58 am

    Great for understanding these topics.

    reply

  3. Thermometers: Types, How to Use a Thermometer, and FAQs (9)
    Sunak SakaJuly 10, 2020 at 10:00 am

    What an app, it's exciting. For the first time, I watched education in a visual way.

    reply

  4. Thermometers: Types, How to Use a Thermometer, and FAQs (10)
    Merinette Dupan ChengJuly 22, 2020 at 5:18 pm

    good explanation

    reply

  5. Thermometers: Types, How to Use a Thermometer, and FAQs (11)
    Aluquique AbyssAugust 10, 2020 at 9:45 pm

    very good

    reply

  6. Thermometers: Types, How to Use a Thermometer, and FAQs (12)
    Bumika MCSeptember 14, 2020 at 6:48 pm

    good explanation

    reply

  7. Thermometers: Types, How to Use a Thermometer, and FAQs (13)
    Lawrence VictorNovember 30, 2020 at 8:15 pm

    this is a good
    I love so much

    reply

Thermometers: Types, How to Use a Thermometer, and FAQs (14)

3 Free Live Classes, worth $999, with BYJU's Courses Bootcamp Program

",i.after(m)}}else{i.find('button[type="submit"]').attr("已禁用",!0).html("正在提交..");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("隐藏"),i.find(".register-form-widget -success-block").length)i.find(".register-form-widget-success-block").removeClass("隐藏");else{var r='

';"Pop-up window"==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 contacting BYJU'S!

“,r+=”
",r+=" A newsletter about lectures and crash courses will be shared with you shortly. ",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 has been 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 again later!")})}}else e.preventDefault(),a.each(function(e,t) {jQuery( t).blur()});GA_FLAG&&ga("Send", "Event", "Form Data"+s+"Button click: "+FORM_NAME,"When submitting the form", "Form value:"+jQuery( t). Serial ())}};

'),jQuery("input[name='s']").focus(),!0;var r=$(".header-searchbox"),n=$("[data-header-search-input ]"),o=n.val();return o=jQuery.trim(o).length,0===o?(jQuery("["+e+"]").empty(),jQuery(" ["+e+"]").addClass("隐藏"),jQuery("["+e+"]").removeClass("header-form-content-enable"),jQuery(".primary-top-navbar ").removeClass("primary-top-navbar-search"),!1):(r.submit(),!0)}var privateBrowse,privateBrowse1,WINDOW_WIDTH=jQuery(window).outerWidth(),IS_MOBILE_HEADER=WINDOW_WIDTH <=767.99999?1:0;navigator.isMobileTablet=function(){var e,a=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+| meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox| netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(浏览器|链接)|沃达丰|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i |770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu| ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac |az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd )|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)| em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|基因|gf \-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta) |hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea |ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c| k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/| ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de |do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2) |n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)| nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl (ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2 -7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h \-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk \-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01| mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|至(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te) |vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\- | )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(a =!0),a}(),window.addEventListener("消息",e=>{try{let a=JSON.parse(e.data);"removeIframe"===a.type&&jQuery("[学习- login-modal]").modal("隐藏").data("bs.modal",null),"height"===a.type&&jQuery("[learn-login-modal] iframe").height(a .value)}catch(e){}},!1),isPrivateMode().then(function(e){privateBrowse=e}),ifIncognito(!0,()=>{privateBrowse1=!0}), ifIncognito(!1,()=>{privateBrowse1=!1});var checkAllCookieEnabled="";window.onload=function(){checkAllCookieEnabled=1==navigator.cookieEnabled},jQuery(document).ready(function( ){let e=window.location.pathname.split("/")[1]?window.location.pathname.split("/")[1]:"主页",a=""!=INSTANCE_NAME?INSTANCE_NAME :e;var r=BEP_REDIRECTION_LOGIN_BTN;""!=r&&null!=r?(jQuery("[data-learn-login-btn]").attr("href","javascript:void(0)"),jQuery ("[data-learn-login-btn]").on("click",function(e){e.preventDefault(),window.open(r,"_self")})):((1== LOGIN_POPUP_ENABLED||null==LOGIN_POPUP_ENABLED&&0==checkAllCookieEnabled)&&jQuery("[data-learn-login-btn]").attr("href","javascript:void(0)"),(1==LOGIN_POPUP_ENABLED&&null!=localStorage .getItem("learn_portal_user")||1==privateBrowse||1==privateBrowse1)&&jQuery("[data-learn-login-btn]").on("click",function(e){e.preventDefault( );var r=LP_LOGIN_POPUP_URL+`/byjus-classes?referrer=source%3Diframe%26mx_Campaign_Type%3Dlogin-button%26SourceMedium%3Dwebsite%26mx_Page_Category%3D${a}&source=iframe`;window.open(r,"_self") }),jQuery(document).on("hidden.bs.modal","[learn-login-modal]",function(){jQuery("[learn-login-modal]").remove()}) ,jQuery("[data-learn-login-btn]").on("click",function(e){if(e.preventDefault(),1==LOGIN_POPUP_ENABLED&&null==localStorage.getItem("learn_portal_user")) {var r=navigator.isMobileTablet;if(r||-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")||1==privateBrowse|| 1==privateBrowse1){var n=LP_LOGIN_POPUP_URL+`/byjus-classes?referrer=source%3Diframe%26mx_Campaign_Type%3Dlogin-button%26SourceMedium%3Dwebsite%26mx_Page_Category%3D${a}&source=iframe`;window.open(n, "_self")}else{var o=LP_LOGIN_POPUP_URL+`/account/login?referrer=source%3Diframe%26mx_Campaign_Type%3Dlogin-button%26SourceMedium%3Dwebsite%26mx_Page_Category%3D${a}&source=iframe`,t='

',i=document.getElementsByTagName("HEAD")[0],s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.href=" /wp-content/themes/html5blank-stable/styles/learn-portal-modal.min.css",i.appendChild(s),jQuery("body").append(t),jQuery("[学习登录-modal]").modal()}返回!1}n=LP_LOGIN_POPUP_URL+`/byjus-classes?referrer=source%3Diframe%26mx_Campaign_Type%3Dlogin-button%26SourceMedium%3Dwebsite%26mx_Page_Category%3D${a}&source=iframe` ;window.open(n,"_self")}),jQuery("[data-dropdown-more]").click(function(){-1!==jQuery("[data-dropdown-more]") .text().indexOf("更多")?(jQuery("[data-dropdown-less]").slideDown(),jQuery("[data-dropdown-more]").text("更少")) :(jQuery("[data-dropdown-less]").slideUp(),jQuery("[data-dropdown-more]").text("更多"))}))}),document.querySelectorAll(' [data-toggle="class"]').forEach(function(e,a){e.addEventListener("click",function(e){e.preventDefault();var a=this.getAttribute("data-类名"),r=document.querySelector(this.getAttribute("数据类目标"));if(r.className){var n=r.className.split(" ");if(-1 !=n.indexOf(a)){var o=n.indexOf(a);n.splice(o,1)}else n.push(a);r.className=n.join(" ")}} )});var isMobileTablet=navigator.isMobileTablet;isMobileTablet&&(document.querySelectorAll(".big-menu").forEach(function(e,a){const r=e.getElementsByClassName("primary-dropdown-menu-icon" );e.addEventListener("click",function(e){const a=window.matchMedia("(最小宽度: 768px)").matches;if(a||0===r.length){var n=this;n.classList.toggle("菜单打开"),$(this).siblings().removeClass("菜单打开")}});for(const a of r)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){var a=this;jQuery(this).siblings().removeClass("菜单- open-sub"),a.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"};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")}

  • share
  • share share
  • call us

Register BYJU'S and download free PDF

Register BYJU'S and watch the live video

"),!1):(a.removeClass("输入错误"),a.addClass("输入有效"),!0)}函数phoneNumberValidation(e,r,s,a,i,n,t =""){MOBILE_OTP_VALIDATER.isPhoneNumberVerified=!1,phoneNumberFromSendOtpResponse="";var o,d,l,m,p,u=jQuery(e),v=u.find("[数据电话号码输入]"),f=u.find("[data-otp-number-input]"),c=u.find("[data-otp-input-field-voice-call-option]"),g= u.find("[data-send-otp]"),I=u.attr("name"),O=jQuery(e).find("[data-otp-validated-img]"),_= jQuery("[data-remaining-fields-container]"),E="",T={};g.click(function(){if("undefined"!=typeof USER_DETAILS_INPUT_VALIDATORS?USER_DETAILS_INPUT_VALIDATORS.phoneValidation(v): UTILITIES.phoneValidation(v)){var e=v.val(),m={phoneNumber:e};if(""==t){if("IAS_QUESTIONS"==n?(E="DEFAULT_IAS_USER_LOCALSTORAGE", T=DEFAULT_IAS_USER_DETAILS):"blc-form"===n||"job-posting-form"===n||"sales-acknowledgement-form"===n||"service-counsel"=== n||"blc-popup-form"===n?T.verifyKey=generateRandomID():"open-close-rank-jee-main"==n||"jee-neet-talk-to-counselor-表单"==n||"sidebar-join-byjus-form"==n||(E="DEFAULT_COMMENT_BOX_LOCALSTORAGE",T=DEFAULT_USER_DETAILS),null!==getStorage(E))if(userFromStorage=JSON.parse( getStorage(E)),userFromStorage.verifyKey){var p=new Date,u=("0"+p.getFullYear()).slice(-2)+""+("0"+(p.getMonth( )+1)).slice(-2)+("0"+p.getDate()).slice(-2);userFromStorage.verifyKey.substring(17,23)==u?T.verifyKey=userFromStorage. verifyKey:T.verifyKey=generateRandomID()}else T.verifyKey=generateRandomID();else"blc-form"===n||"职位发布-form"===n||"销售确认-form "===n||"服务顾问"===n||"blc-popup-form"===n||("open-close-rank-jee-main"==n?(T. verifyKey=generateRandomID(),MOBILE_OTP_VALIDATER.storageSessionId=T.verifyKey):T.verifyKey=generateRandomID());"IAS_QUESTIONS"==n?DEFAULT_IAS_USER_DETAILS.verifyKey=T.verifyKey:"blc-form"===n|| “职位发布表格”===n||“销售确认表格”===n||“服务顾问”===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||(DEFAULT_USER_DETAILS.verifyKey=T.verifyKey),m.verifyKey=T.verifyKey}t?m.page=I:m.type=I,v.addClass( "正在发送");var A=30;g.attr("已禁用",!0),g.html('

Resend'+A+"Second.

"),o=setInterval(function(){--A,A<=0&&(clearInterval(o),g.attr("Disabled",!1),g.html("Resend OTP"),v .siblings (".input-error-msg").remove()), g.find("[data-otp-active-timer] span").html(A)},1e3), f.attr(" disable" ,!1).focus();var b=t?MOBILE_OTP_VALIDATER.apis.bcasSendOtp:MOBILE_OTP_VALIDATER.apis.sendOtp;jQuery.ajax({type:"POST",url:b,data:m,success:function (t,m,p){d=p.getResponseHeader("verified"),l=p.getResponseHeader("reference id"),MOBILE_OTP_VALIDATER.verifyToken="bearer"+p.getResponseHeader("reference id"), MOBILE_OTP_VALIDATER .verifyReference=p.getResponseHeader("reference-id"),MOBILE_OTP_VALIDATER.mobileNumber=e,t&&"error"===t.status?CS_UTILITIES.addToastMessage(0,"A problem occurred. Please try again later"): t?"true"===d?(v.after('

'+t.message+"

"), g.addClass("d-none").addClass("hidden"), c.addClass("d-none").addClass("hidden"), v.attr("disabled",!0) ,v.addClass("otp-verified"),f.attr("Disabled",!0),v.siblings(".input-error-msg").remove(),MOBILE_OTP_VALIDATER.isPhoneNumberVerified=!0, O .removeClass("Hidden"), clearInterval(o), g.html("Send OTP"), g.attr("Disabled",!1), "PDF_DOWNLOAD"===n&&_.length>0?( GA_FLAG&&ga("send", "event", "PDF download success", "PDF download success", "PDF download success"), inputFieldManaged(e,r,s,a,i,n),_.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&&_.length>0?(GA_FLAG&&ga("Send", " Event", "YouTube Live Video Redirected Successfully", "YouTube Live Video Redirected Successfully", "YouTube Live Video Redirected Successfully"), inputFieldManaged(e,r,s,a,i,n),_.removeClass( "Hidden")):"PDF_DOWNLOAD_LEAD_FORM_MODAL"===n&&_.length>0&&_.removeClass("Hidden")):(c.removeClass("d-none").removeClass("Hidden"),phoneNumberFromSendOtpResponse=t.number , g.addClass("Resend"),MOBILE_OTP_VALIDATER.isPhoneNumberVerified=!1,v.after('

OTP sent to'+e+"

"),"PDF_DOWNLOAD"===n&&_.length>0||"Comment"==n||"Video"==n||"Affiliate Form"==n||"open-close-rank-jee- main"===n||"YOUTUBE_LIVE_VIDEO_REDIRECTION"===n&&_.length>0||"PDF_DOWNLOAD_LEAD_FORM_MODAL"===n&&_.length): CS_UTILITIES.addToastMessage(0,"A problem occurred. Please try again later")} ,error:function(e,r,s){v.removeClass("Sending"),v.siblings(".input-error-msg").remove(),v.after('

'+e.responseJSON.message+"

")}})}else phoneNumberValidation(v)}), f.on("input", function(){if(!MOBILE_OTP_VALIDATER.isPhoneNumberVerified&&(f.siblings(".input-error-msg").remove() ,this.isValid=otpValidation(f),this.isValid)){params={phoneNumber:phoneNumberFromSendOtpResponse,otp:f.val()},t?params.page=I:(params.type=I,params.Authorization = "bearer"+l), v.siblings(".input-error-msg").remove(), f.siblings(".input-error-msg").remove(), f.removeClass("input -error");var e=t?MOBILE_OTP_VALIDATER.apis.bcasVerifyOtp:MOBILE_OTP_VALIDATER.apis.verifyOtp;jQuery.ajax({type:"POST",url:e,data:params,beforeSend:function(e){t&&e. setRequestHeader("authorization", "bearer"+l)}, success: function(e,d,l){if(t)g.addClass("d-none").addClass("hidden"), c.addClass ("d-none").addClass("Hidden"), v.attr("Disabled",!0), v.addClass("otp verification"), f.attr("Disabled",!0), v .siblings(".input-error-msg").remove(), O.removeClass("Hidden"), MOBILE_OTP_VALIDATER.isPhoneNumberVerified=!0, clearInterval(o), g.html("Send OTP"), g. attr("Disabled",!1), "Alliance Form"===n&&enableSliderInAllianceForm();else if(m=l.getResponseHeader("otpverified"),"true"===m){if(g.addClass ("d-none").addClass("hidden"),c.addClass("d-none").addClass("hidden"),v.attr("disabled",!0),v.addClass(" otp-verified"), f.attr("Disabled",!0), v.siblings(".input-error-msg").remove(), O.removeClass("Hidden"), MOBILE_OTP_VALIDATER.isPhoneNumberVerified= !0,clearInterval(o),"blc-form"!=n&&"Job Posting-form"!==n&&"Service Consultant"!==n||setTimeout(function(){automateApplyNow()},1e3 ), g.html("Send OTP"), g.attr("Disabled",!1), "PDF_DOWNLOAD"===n&&_.length>0)_.removeClass("Hidden"), inputFieldManaged(v.val ( ),r,s,a,i,n);else if("COMMENT"==n)inputFieldManaged(v.val(),r,s,a,i,n);else if("VIDEO"== n)inputFieldManaged(v.val(),r,s,a,i,n);else if("IAS_QUESTIONS"===n)inputFieldManaged(v.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(v.val(),r,s,a,i,n);else if("YOUTUBE_LIVE_VIDEO_REDIRECTION"=== n&&_.length>0)_.removeClass("hidden"),inputFieldManaged(v.val(),r,s,a,i,n);else if("PDF_DOWNLOAD_LEAD_FORM_MODAL"===n&&_.length>0) _ .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 is valid"),e. find("[data-otp-validated-img]").removeClass("hidden")}} else f.removeClass("Incorrect input"), f.siblings(". Input error message").remove(), f.addClass("Input error"), f.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,f.removeClass("input-error"),f.siblings(".input-error-msg").remove(),f.addClass( "输入错误"),f.after('

'+a+"

")}})}});var A=u.find("[data-otp-voice-call-cta]");A.on("click",function(){var e=jQuery(this) ,r=30;e.find("跨度").html("“+r+”seconds"), e.attr("disabled",!0), f.attr("disabled",!1).focus(), p=setInterval(function(){--r,r<=0? ( clearInterval(p),e.find("span").html("Voice call"),e.attr("Disabled",!1)):e.find("span").html("“+r+”秒。")},1e3)})}var MOBILE_OTP_VALIDATE={isPhoneNumberVerified:!1,isUserAlreadyExists:!1,mobileNumber:"",verifyToken:"",verifyReference:"",apis:{register:BCAS_API_BASE_URL+"api/acs /v1/directly“,sendotp:common_utils_endpoint_key+” otp“,pageInstance:“ ask-query-popup”,verifyotp:common_utils_endpoint_key+“ otp-verify”,bcassendotp:bcas_api_base_url+“ api/v2/v2/bcas s/v2/bc bcassendotp: L+ "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_VALIDA TORS.requiredValidation(o," ","评论")&&USER_DETAILS_INPUT_VALIDATORS.cityValidation(n,"","城市")&&USER_DETAILS_INPUT_VALIDATORS.requiredValidation(s,"","成绩");if(a&&MOBILE_OTP_VALIDATER.isPhoneNumberVerified){jQuery(".cb-error-msg, .cb-success-msg").remove(),jQuery(d).attr("已禁用",!0).text("发布..."),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),DEFA ULT_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_DE TAILS.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,等级:s.val(),city:n.val(),授权:DEFAULT_USER_DETAILS.authorization,currentUrl:C_URL},m=author_submit_form=email_submit_form=captcha_submit_form=!1;u.find('button[name="submit"] ').attr("已禁用","已禁用").val("正在发帖...").addClass("后课"),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 a comment.').addClass("cb-error"):""===S||-1!==S.indexOf("_HTML_")?u.find('textarea[name="comment"]').后('HTML tags do not allow comments.').addClass("cb-error"):""===A||-1!==A.indexOf("_URL_")?u.find('textarea[name="comment"]').后('No external links or URLs are allowed.').addClass("cb-error"):m=!0;var E={},p=jQuery("#data-comment-form"),I=p.serializeArray();if(jQuery.each (I,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-错误"),0!==u.find('textarea[name="g-recaptcha-response"]').length){var v=u.find('textarea[name="g-recaptcha-response") ]').val().trim();""===v||null==v?u.find(".g-recaptcha").append('Please check the captcha form.'):captcha_submit_form=!0}else captcha_submit_form=!0;elseauthor_submit_form=!0,email_submit_form=!0,captcha_submit_form=!0;m&&captcha_submit_form?(MOBILE_OTP_VALIDATER.verifyToken?E.authorization=MOBILE_OTP_VALIDA.verifyT oken:(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 a comment").removeClass("After 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 a comment"), jQuery("#cancel-comment-reply-link").click(), jQuery(".form-submit").after('Thanks! Your review has been successfully submitted. It will take a while 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.isUserAlreadyEx ist=!0} ,error:function(e){console.log(e)}})):"Invalid"===a.status&&a.response?(jQuery(d).text("Post a comment"),jQuery(".form -commit").after('Invalid comment or user posting too many comments')):"Failure"===a.status&&a.response?(jQuery(d).text("Post a comment"),jQuery(".form-submit").after('Something went wrong, please refresh the page and try again')):(jQuery(d).attr("Disabled",!1).text("Post a comment"),jQuery(".form-submit").after('Invalid comment or user posting too many comments'))}else jQuery(d).attr("Disabled",!1).text("Post a comment"),jQuery(".form-submit").after('Something went wrong. Please try again later.'),addGAEvent(USER_DETAILS_CONFIG.isUserAlreadyExist,"Create failed")})):u.find('button[name="submit"]').attr("Disabled",!1).val("Post a 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 message").remove(),t.removeClass("Input valid").addClass("Input error"), t.siblings( ".input-error-msg").remove(),t.after('

Verify your mobile number

'))})),getInputAccordingSessionID(e,t,l,m,r,i,n,s),t.on("输入",function(){USER_DETAILS_INPUT_VALIDATORS.phoneValidation(this)}),o.on ("输入",function(){USER_DETAILS_INPUT_VALIDATORS.requiredValidation(this,"","评论")}),r.on("输入",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,"","成绩")}),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,"","城市")})}} function addGAEvent(e,a){e?GA_FLAG&&ga("发送","事件","发表评论成功","发表评论活动"+a+"由现有用户","URL: "+C_URL):GA_FLAG&&ga("发送","事件","发表评论成功","新用户发表评论活动 "+a+"","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&&"未定义"!=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("已禁用",!0),t.addClass("隐藏"),r.removeClass("隐藏") ,i.val(e.data.name).attr("已禁用",!1).parent().removeClass("隐藏"),s.val(e.data.email).attr("已禁用", !1).parent().removeClass("隐藏"),n.val(e.data.city).attr("已禁用",!1).parent().removeClass("隐藏"),o.val (e.data.grade).attr("已禁用",!1).parent().removeClass("隐藏"),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={作者:"",电子邮件:"",手机:"",isUserAlreadyLoggedIn:!1, isMobileAlreadyVerified:!1,sessionId:"",sessionIdSecondary:"",授权:"",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,方法:"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+" 为必填项。"),s?(r.addClass("input-error").removeClass("input -有效"),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 invalid."):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?" The name should contain at least 3 characters. " :i.match(o)?"":"Only letters are accepted. ":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="The mobile phone number should be 10 digits.");else {let e=t.val().replace(/[^0-9]+/g,"");t.val(e), i=t.val()?" "The phone number should be 10 digits." :"Mobile phone number is required. "}else i="Mobile phone number is required. ";return i?(t.addClass("input-error").removeClass("input-valid"), t.after('

'+I+"

"),!1):(t.removeClass("输入错误"),t.addClass("输入有效"),!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)},错误:函数(e){r&&r(e)}})},城市:[],cityAutoSuggestions:函数(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("输入");r.on("输入",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("输入错误"),e.addClass("输入有效"),!0;e.addClass("输入错误").removeClass("输入有效"),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 calStorage("DEFAULT_COMMENT_BOX_LOCALSTORAGE_expiresIn")};

    References

    Top Articles
    Latest Posts
    Article information

    Author: Kieth Sipes

    Last Updated: 05/06/2023

    Views: 5693

    Rating: 4.7 / 5 (67 voted)

    Reviews: 90% of readers found this page helpful

    Author information

    Name: Kieth Sipes

    Birthday: 2001-04-14

    Address: Suite 492 62479 Champlin Loop, South Catrice, MS 57271

    Phone: +9663362133320

    Job: District Sales Analyst

    Hobby: Digital arts, Dance, Ghost hunting, Worldbuilding, Kayaking, Table tennis, 3D printing

    Introduction: My name is Kieth Sipes, I am a zany, rich, courageous, powerful, faithful, jolly, excited person who loves writing and wants to share my knowledge and understanding with you.