Inches to Meters (in to m) Conversion - 1 inch is 0.0254 m (2024)

Home » Calculators » Inches to Meters

1 Inch is equal to 0.03 Meter

  • Centimeter
  • Decimeter
  • Feet
  • Inch
  • Kilometer
  • Meter
  • Micrometer
  • Millimeter
  • Yard
  • Nanometer

We use inches to measure clothes and metres to measure distances, lengths, and heights. This concept is quite simple, and you have likely heard about inches being used to describe the size of phone screens. If you’re wondering how to change inches into metres, you’re in the right place. It’s essential to be able to switch between these measurements, whether for large or small sizes. If ‘dimensional analysis’ sounds complex, it’s a fancy term for converting units.

This article will guide you through converting inches to metres, an important ability for handling different measurements.

What is Inch?

The Imperial and U.S. measurement systems use the inch as a unit of length measurement. The definition of an inch was last updated in 1959. It was a unit of measurement specified as being equal to 25.4 millimetres at the time. Twelve inches comprise a foot, while thirty-six inches comprise a yard. The word ‘inch’ comes from the Latin word ‘uncia.’ This is equivalent to one-twelfth of the Roman foot. The global yard is the foundation of the present definition. For your knowledge, 1 inch is taken from a person’s thumb width and used to measure display screen sizes.

What is Meter?

The metre is a crucial global unit for measuring length and is part of the metric system. According to the International System of Units (SI), it is the base unit of length and is the foundation for deriving other common measurement units. This crucial role not only standardises length measurements internationally but also facilitates the development of different measurement units, making it indispensable in scientific, engineering, and daily applications.

How to use Square Yards’ inches to meters conversion calculator?

It is viable and super convenient to use the conversion tool to convert from inches to meters. All you have to do is enter the inch value into the input box to find out the accurate value in meters.

Relation Between Inch and Meter

Inch and meter are part of units of length; however, the slight difference is that inches are standard units of length in the imperial system whereas meter is of length in the metric system. The most feasible option is to convert from inch to mtr since the best attribute of a meter is it can effortlessly be converted to other different units. The relation between inch and meter is quite simple. 1 meter equates to 39.3700787 inches.

How to Convert Inch to Meter

Convertinginches to metersis actually a simple affair. To understand the basics of the conversion process, know the direct formula and also how many inches are present in a meter.

You should remember that 1 inch equates to 0.0254 meters. Hence, you will have to multiply the inch values by 0.0254 for arriving at the final figure. This is all you need to do to convert inches to m.

If you are pondering how many inches are there in a meter, then let us tell you 1 inch is equivalent to 0.0254 meters, hence use this in the conversion process. For converting inches to meters, divide by 39. 3700787 or multiply the inch value by 0.0254.

1 inch is equivalent to 0.0254 meters

Hence, 1 meter is equivalent to 39.3701 inches.

For Example, to find out how many meters are there in 36 inches, multiply 36 by 0.0254 to obtain the value of 0.9144.

Now, remember that distance (d) in meters is equivalent to the distance d in inches that gives out 0.0254 times.

Hence, d (m) = d (length of value) x 0.0254

For Example: To Convert 60 inches into meters

Divide 60 by 39.37 to attain the value in the meter that is 1.524.

  • Convert 72 inches in meters

Divide 72 by 39.37 to get the exact value of 1.8288 in meters.

  • Convert 36 inches to meters

Simply, divide 36 by 39.37, to obtain the accurate value in the meter that is 0.9144.

  • Convert 72 inches in meters

Divide 72 inches by 39.37 to attain the value in a meter that is not more than 1.8288.

Inch to Meter Conversion Formula & Examples

The formula for convertinginches to metersis quite straightforward.

M = in/39.370

In other words, m=inch39.370

Going by this formula, suppose you are converting 20 inches to meters. The answer will be 0.508 meters.

For the conversion of 1 inch to meter, divide the length value by 39.37.

1 inch ÷ 39.37 = 0.0254 meter

For Example:

To convert 80 inches in meters:

Use the formula: meter = inch/39.37

m= 80 ÷ 39.37 = 2.032 meters

To convert 90 inches in meters:

meter= inch/39.37

m = 90 ÷ 39.37 = 2.286 meters

To convert 70 inches in meters:

m = in/39.37

m = 70 ÷ 39.37 = 1.778 meters

To convert 48 inches to meters:

m = in/39.37

m = 48 ÷ 39.37 = 1.2192 meters

Inch to Meter Conversion Table

Inches[in]Meters[m]Inches to Meters[in to m]
1 in0.0254 m1 Inch to M is equal to 0.0254
2 in0.0508 m2 Inches is equal to 0.0508 Meters
3 in0.0762 m3 Inches is equal to 0.0762 Meters
4 in0.1016 m4 Inches is equal to 0.1016 Meters
5 in0.127 m5 Inches is equal to 0.127 Meters
6 in0.1524 m6 inches to meters is equal to 0.1524 Meters
7 in0.1778 m7 Inches is equal to 0.1778 Meters
8 in0.2032 m8 Inches is equal to 0.2032 Meters
9 in0.2286 m9 Inches is equal to 0.2286 Meters
10 in0.254 m10 Inches is equal to 0.254 Meters
11 in0.2794 m11 Inches is equal to 0.2794 Meters
12 in0.3048 m12 Inches is equal to 0.3048 Meters
13 in0.3302 m13 Inches is equal to 0.3302 Meters
14 in0.3556 m14 Inches is equal to 0.3556 Meters
15 in0.381 m15 Inches is equal to 0.381 Meters
16 in0.4064 m16 Inches is equal to 0.4064 Meters
17 in0.4318 m17 Inches is equal to 0.4318 Meters
18 in0.4572 m18 Inches is equal to 0.4572 Meters
19 in0.4826 m19 Inches is equal to 0.4826 Meters
20 in0.508 m20 Inches is equal to 0.508 Meters
21 in0.5334 m21 Inches is equal to 0.5334 Meters
22 in0.5588 m22 Inches is equal to 0.5588 Meters
23 in0.5842 m23 Inches is equal to 0.5842 Meters
24 in0.6096 m24 inches to meters is equal to 0.6096 Meters
25 in0.635 m25 Inches is equal to 0.635 Meters
26 in0.6604 m26 Inches is equal to 0.6604 Meters
27 in0.6858 m27 Inches is equal to 0.6858 Meters
28 in0.7112 m28 Inches is equal to 0.7112 Meters
29 in0.7366 m29 Inches is equal to 0.7366 Meters
30 in0.762 m30 inches to meters is equal to 0.762
31 in0.7874 m31 Inches is equal to 0.7874 Meters
32 in0.8128 m32 Inches is equal to 0.8128 Meters
33 in0.8382 m33 Inches is equal to 0.8382 Meters
34 in0.8636 m34 Inches is equal to 0.8636 Meters
35 in0.889 m35 Inches is equal to 0.889 Meters
36 in0.9144 m36 Inches is equal to 0.9144 Meters
37 in0.9398 m37 Inches is equal to 0.9398 Meters
38 in0.9652 m38 Inches is equal to 0.9652 Meters
39 in0.9906 m39 Inches is equal to 0.9906 Meters
40 in1.016 m40 Inches is equal to 1.016 Meters
41 in1.0414 m41 Inches is equal to 1.0414 Meters
42 in1.0668 m42 Inches is equal to 1.0668 Meters
43 in1.0922 m43 Inches is equal to 1.0922 Meters
44 in1.1176 m44 Inches is equal to 1.1176 Meters
45 in1.143 m45 Inches is equal to 1.143 Meters
46 in1.1684 m46 Inches is equal to 1.1684 Meters
47 in1.1938 m47 Inches is equal to 1.1938 Meters
48 in1.2192 m48 inches in meters is equal to 1.2192
49 in1.2446 m49 Inches is equal to 1.2446 Meters
50 in1.27 m50 Inches is equal to 1.27 Meters
51 in1.2954 m51 Inches is equal to 1.2954 Meters
52 in1.3208 m52 Inches is equal to 1.3208 Meters
53 in1.3462 m53 Inches is equal to 1.3462 Meters
54 in1.3716 m54 Inches is equal to 1.3716 Meters
55 in1.397 m55 Inches is equal to 1.397 Meters
56 in1.4224 m56 Inches is equal to 1.4224 Meters
57 in1.4478 m57 Inches is equal to 1.4478 Meters
58 in1.4732 m58 Inches is equal to 1.4732 Meters
59 in1.4986 m59 Inches is equal to 1.4986 Meters
60 in1.524 m60 Inches is equal to 1.524 Meters
61 in1.5494 m61 Inches is equal to 1.5494 Meters
62 in1.5748 m62 Inches is equal to 1.5748 Meters
63 in1.6002 m63 Inches is equal to 1.6002 Meters
64 in1.6256 m64 Inches is equal to 1.6256 Meters
65 in1.651 m65 Inches is equal to 1.651 Meters
66 in1.6764 m66 Inches is equal to 1.6764 Meters
67 in1.7018 m67 Inches is equal to 1.7018 Meters
68 in1.7272 m68 Inches is equal to 1.7272 Meters
69 in1.7526 m69 Inches is equal to 1.7526 Meters
70 in1.778 m70 Inches is equal to 1.778 Meters
71 in1.8034 m71 Inches is equal to 1.8034 Meters
72 in1.8288 m72 Inches is equal to 1.8288 Meters
73 in1.8542 m73 Inches is equal to 1.8542 Meters
74 in1.8796 m74 Inches is equal to 1.8796 Meters
75 in1.905 m75 Inches is equal to 1.905 Meters
76 in1.9304 m76 Inches is equal to 1.9304 Meters
77 in1.9558 m77 Inches is equal to 1.9558 Meters
78 in1.9812 m78 Inches is equal to 1.9812 Meters
79 in2.0066 m79 Inches is equal to 2.0066 Meters
80 in2.032 m80 Inches is equal to 2.032 Meters
81 in2.0574 m81 Inches is equal to 2.0574 Meters
82 in2.0828 m82 Inches is equal to 2.0828 Meters
83 in2.1082 m83 Inches is equal to 2.1082 Meters
84 in2.1336 m84 Inches is equal to 2.1336 Meters
85 in2.159 m85 Inches is equal to 2.159 Meters
86 in2.1844 m86 Inches is equal to 2.1844 Meters
87 in2.2098 m87 Inches is equal to 2.2098 Meters
88 in2.2352 m88 Inches is equal to 2.2352 Meters
89 in2.2606 m89 Inches is equal to 2.2606 Meters
90 in2.286 m90 Inches is equal to 2.286 Meters
91 in2.3114 m91 Inches is equal to 2.3114 Meters
92 in2.3368 m92 Inches is equal to 2.3368 Meters
93 in2.3622 m93 Inches is equal to 2.3622 Meters
94 in2.3876 m94 Inches is equal to 2.3876 Meters
95 in2.413 m95 Inches is equal to 2.413 Meters
96 in2.4384 m96 Inches is equal to 2.4384 Meters
97 in2.4638 m97 Inches is equal to 2.4638 Meters
98 in2.4892 m98 Inches is equal to 2.4892 Meters
99 in2.5146 m99 Inches is equal to 2.5146 Meters
100 in2.54 m100 Inches to meters is equal to 2.54 Meters

Current Use of Inch

The inch is widely used throughout the globe including in Canada, the United States and the United Kingdom alike. It is also used in countries like Japan for measuring sizes of television screens and display units among other multifarious purposes.

Current Use of Meter

As stated earlier, the meter is the base unit for measuring length worldwide. It is also the fundamental length measuring unit in the SI. Hence it is used for a variety of applications in countries like the U.S. and UK. It equates to 39.37 inches within the British Imperial system and also within the system followed in the U.S.

You Might Also Like

Inches to Millimetersin to mm
Inches to Metersinch to m
Inches to Feetinches to ft
Centimeters to Inchescm to in

Frequently Asked Questions (FAQ)

How to calculate inches to meters?

You simply have to multiply the value in inches by 0.0254 for getting the final figure in meters.

How many inches are there in 1 meter?

1 meter has 39.3701 inches.

How many meters are there in 1 inch?

1 inch contains 0.0254 meters.

What is the formula for converting inches to meters?

The formula is M = in/39.370

What are the current uses of inches and meters?

Inch is widely used for measuring sizes of display units and television screens along with other objects. It is used in countries like the U.S. and UK along with Japan. On the other hand, the meter is the base unit for length measurements and is used almost everywhere in the world.

Inches to Meters (in to m) Conversion - 1 inch is 0.0254 m (1)

Samarjeet Chauhan

  • Calculators

'+ '

' + '

'; if(beatsresponse.SalesPersonProfilePic != undefined && beatsresponse.SalesPersonProfilePic != ""){ dev_Modal_agentModalBox = dev_Modal_agentModalBox + 'Inches to Meters (in to m) Conversion - 1 inch is 0.0254 m (2)'; }else{ dev_Modal_agentModalBox = dev_Modal_agentModalBox + '' + (typeof beatsresponse.SalesPersonName != 'undefined' ? beatsresponse.SalesPersonName.charAt(0).toUpperCase() : 'N/A') + ''; } dev_Modal_agentModalBox = dev_Modal_agentModalBox + '

' + '

'; dev_Modal_agentModalBox = dev_Modal_agentModalBox + '' + (typeof beatsresponse.SalesPersonName != 'undefined' ? beatsresponse.SalesPersonName : 'N/A') + '' + '' + beatsresponse.SalesPersonCountryCode + '-' + beatsresponse.SalesPersonContact + '' + '

    ' + '
  • Call Now
  • ' + '
  • WhatsApp
  • ' + '

'; if(redirecturl){ dev_Modal_agentModalBox = dev_Modal_agentModalBox + '

' + 'Take to My Personal Profile ' + '

'; } dev_Modal_agentModalBox = dev_Modal_agentModalBox + '

' + '

'; return dev_Modal_agentModalBox;}else{ var dev_Modal_agentModalBox = '

' + '

' + '

' + '' + thankyoumsg + ''; if(redirecturl){ dev_Modal_agentModalBox = dev_Modal_agentModalBox + '

' + ''+ 'Take to My Personal Profile ' + '

'; } dev_Modal_agentModalBox = dev_Modal_agentModalBox + '

' + '

'; return dev_Modal_agentModalBox;}}function getglobalAgentPopupHtmlForDSE (beatsresponse,redirecturl,whatsappurl,thankyoumsg){if(beatsresponse.SalesPersonName != undefined && beatsresponse.SalesPersonContact != undefined && beatsresponse.SalesPersonName != "" && beatsresponse.SalesPersonContact != ""){var dev_Modal_agentModalBox = '

' + '

'; if(beatsresponse.SalesPersonProfilePic != undefined && beatsresponse.SalesPersonProfilePic != ""){ dev_Modal_agentModalBox = dev_Modal_agentModalBox + 'Inches to Meters (in to m) Conversion - 1 inch is 0.0254 m (3)'; }else{ dev_Modal_agentModalBox = dev_Modal_agentModalBox + '' + (typeof beatsresponse.SalesPersonName != 'undefined' ? beatsresponse.SalesPersonName.charAt(0).toUpperCase() : 'N/A') + ''; }dev_Modal_agentModalBox = dev_Modal_agentModalBox + '

' + '' + (typeof beatsresponse.SalesPersonName != 'undefined' ? beatsresponse.SalesPersonName : 'N/A') + '' + '' + beatsresponse.SalesPersonCountryCode + '-' + beatsresponse.SalesPersonContact + '' + '

    ' + '
  • Call Now
  • ' + '
  • WhatsApp
  • ' + '

' + '

'; if(redirecturl){dev_Modal_agentModalBox = dev_Modal_agentModalBox + 'Take to My Personal Profile ';}dev_Modal_agentModalBox = dev_Modal_agentModalBox + "

";return dev_Modal_agentModalBox;}else{var dev_Modal_agentModalBox = '

' + '

'; dev_Modal_agentModalBox = dev_Modal_agentModalBox + '

' + thankyoumsg + '

'; if(redirecturl){dev_Modal_agentModalBox = dev_Modal_agentModalBox + 'Take to My Personal Profile ';}dev_Modal_agentModalBox = dev_Modal_agentModalBox + "

";return dev_Modal_agentModalBox;}}function afterglobalVerification(countryCode,mobile,beatsresponse,pageCategory,formboxid,formid,changeNumberformid,otpboxformid,modalpopupid,redirecturl,isdsepage , propAmcData, propAmcType , PriceHisoryPageData){ if(globaltimeinterval){ clearInterval(globaltimeinterval); } $("#"+otpboxformid).removeClass('active'); $("#"+formboxid).removeClass('active'); $(".overLayBox,body").addClass("active"); $(".homeFormBox h3").text('Contact Our Real Estate Experts'); $("#dev_ModalBox").addClass("active"); if(isdsepage == true){ $("#" + formid).addClass("active"); $("#" + otpboxformid).removeClass("active"); $("#" + changeNumberformid).removeClass("active"); $("#" + modalpopupid).removeClass("active"); } if(beatsresponse.SalesPersonName != undefined && beatsresponse.SalesPersonContact != undefined && beatsresponse.SalesPersonName != "" && beatsresponse.SalesPersonContact != ""){ var whatsapptext = "Hi " + beatsresponse.SalesPersonName + ",%0A%0A" + "I got connected to you on Squareyards.com.%0A%0ALook forward to your assistance " + "in my home search and ownership journey. Please get back to me so we can take " + "this ahead." + " Thanks."; let whatsappUrl = 'https://web.whatsapp.com/'if(isMobileBrowser()){whatsappUrl = 'https://api.whatsapp.com/'}let whatsappurl = whatsappUrl+"send?phone=" + beatsresponse.SalesPersonCountryCode + beatsresponse.SalesPersonContact + "&text=" + whatsapptext + "&source=&data="; var dev_Modal_agentModalBox = ""; if(isdsepage == true){ dev_Modal_agentModalBox = getglobalAgentPopupHtmlForDSE(beatsresponse,redirecturl,whatsappurl); }else{ dev_Modal_agentModalBox = getglobalAgentPopupHtml(beatsresponse,redirecturl,whatsappurl); } $("#" + modalpopupid).html(dev_Modal_agentModalBox); $("#"+formid).removeClass("active"); $('body').on('click','div.closeAgentModalPopup',function() { $('div.agentModalBox').removeClass('active') $('div.overLayBox,body').removeClass('active')$('#dev_ModalBox').html('');$('#dev_ModalBox').removeClass('active');$('.MapForm').removeClass('active') $("#"+formid).removeClass("active"); }); if(isdsepage == true){ $("#" + modalpopupid).addClass("active"); $(".gblPpup .gblOrflw, .ldBxClsBtn").off("click"); $(".gblPpup .gblOrflw, .ldBxClsBtn").on("click", function() {$(".gblPpup, body,div.overLayBox").removeClass("active");});if(formid.indexOf("_dsepopup") == -1){$("#"+formid).removeClass("active");} }else{ $("#"+formboxid).parent(".popupForm.active").removeClass('active'); } }else{ var thankyoumsg = "Thank You For Showing Interest, We'll Assign One Of Our Property Expert and Get Back to You Shortly."; var dev_Modal_agentModalBox = ""; if(isdsepage == true){ dev_Modal_agentModalBox = getglobalAgentPopupHtmlForDSE(beatsresponse,redirecturl,'',thankyoumsg); }else{ dev_Modal_agentModalBox = getglobalAgentPopupHtml(beatsresponse,redirecturl,'',thankyoumsg); } $("#" + modalpopupid).html(dev_Modal_agentModalBox); $("#"+formid).removeClass("active"); $('body').on('click','div.closeAgentModalPopup',function() { $('div.agentModalBox').removeClass('active') $('div.overLayBox,body').removeClass('active')$('#dev_ModalBox').html('');$('#dev_ModalBox').removeClass('active');$('.MapForm').removeClass('active'); $("#"+formid).removeClass("active"); }); if(isdsepage == true){ $("#" + modalpopupid).addClass("active"); if(formid.indexOf("_dsepopup") == -1){$("#"+formid).removeClass("active");}$(".gblPpup .gblOrflw, .ldBxClsBtn").off("click"); $(".gblPpup .gblOrflw, .ldBxClsBtn").on("click", function() {$(".gblPpup, body,div.overLayBox").removeClass("active");$("#"+formid).removeClass("active");}); }else{ $("#"+formboxid).parent(".popupForm.active").removeClass('active'); } } $('#' + formid)[0].reset();var city = $('#' + formid +' input#dev_inputelement').attr('placeholder')$('#ddlLocation').val(city); $('#' + otpboxformid)[0].reset();$("#" + changeNumberformid)[0].reset();$('body,.homePageLeadFormOverLay').removeClass("active");$('.gblPpup.pricehistoryUnlock').removeClass('active')if (isMobileBrowser()) {$('.position-sticky').removeClass('active');} $('#loaderBox').hide();}function jsonEncrypt(target){ string = unescape(encodeURIComponent(JSON.stringify(target).replace(/₹/g,''))); var newString = '', char, nextChar, combinedCharCode; for (var i = 0; i < string.length; i += 2) { char = string.charCodeAt(i); if ((i + 1) < string.length) { nextChar = string.charCodeAt(i + 1) - 31; combinedCharCode = char + "" + nextChar.toLocaleString('en', { minimumIntegerDigits: 2 }); newString += String.fromCharCode(parseInt(combinedCharCode, 10)); } else { newString += string.charAt(i); } } newString = btoa(unescape(encodeURIComponent(newString))); return { 'reqData': newString};}function globalsendOtp(formboxid,formid,changenoid,otpboxformid,isdsepage,baseurl,modalpopupid,pageCategory) { $('#loaderBox').show(); $(".homePageLeadFormOverLay .homeFormBox h3").text('Verify your Number'); $(".homePageLeadFormSingle .homeFormBox h3").text('Verify your Number'); let data = []; $("#" + otpboxformid + " .otpError").html(''); var buildingId = $("input[name='buildingId']").val(); $("#" + formid + " .sendotpError").html(''); data = $('#'+ formid).serializeArray(); if (buildingId != undefined) {data.push({'name' : 'builderId' , 'value' : buildingId }) } let name = $("#" + formid + " input[name='name']").val(); let email = $("#" + formid + " input[name='email']").val(); let location = $("#" + formid + " select[name='location']").val(); let propertyId = $('#' + formid).find('input[name="DotcomProjectId"]').val(); let unitId = $('#' + formid).find("input[name='unitId']").val(); let filteredData = {} data.filter(v => { filteredData[v.name] = v.value; }); $.ajax({ type:"POST", url: baseUrl +'lead/globalsendotp-v2', data:jsonEncrypt(filteredData), success: function(data){if(data.status){ let otpBox; $("#" + formboxid).removeClass("changenumber"); $("#" + otpboxformid + " #otpMobile_contactform").html('+'+filteredData.countryCode+'-'+filteredData.mobile); $("#" + formboxid).removeClass('active').addClass('active'); // $("#" + formid).css("display","none"); $("#" + formid).addClass("active"); if(isdsepage == true){ $("#" + formid).addClass("active"); $("#" + otpboxformid).addClass("active"); $("#" + changenoid).removeClass("active"); $("#" + modalpopupid).removeClass("active"); } global_run_clock(otpboxformid,15); $("#" + otpboxformid + " span.resend").hide(); setTimeout(function() { $("#" + otpboxformid + " span.resend").show(); }, (1*60*1000)); otpBox = $("#" + formboxid); building_id = data.builderId; if(data.otp){ var otp = data.otp.toString(); if(otp.length == 4){ otpBox.find("input[name=otp_contactform]").val(otp); } }else{ otpBox.find("input[name=otp_contactform]").val(''); } }else{ alert(data.message);// helperJS.alertBox('error',data.message); } $('#loaderBox').hide(); } });// $.post(baseUrl +'resale'+'/send-broker-detail-otp-v2',filteredData,function(data){// if(data.status){ // let otpBox; // $("#" + formboxid).removeClass("changenumber"); // $("#" + otpboxformid + " #otpMobile_contactform").html('+'+filteredData.countryCode+'-'+filteredData.mobile); // $("#" + formboxid).removeClass('active').addClass('active'); // // $("#" + formid).css("display","none"); // alert(formid);// $("#" + formid).addClass("active"); // if(isdsepage == true){ // $("#" + otpboxformid).addClass("active"); // $("#" + changenoid).removeClass("active"); // $("#" + modalpopupid).removeClass("active"); // } // global_run_clock(otpboxformid,15); // $("#" + otpboxformid + " span.resend").hide(); // setTimeout(function() { // $("#" + otpboxformid + " span.resend").show(); // }, (1*60*1000)); // otpBox = $("#" + formboxid);// building_id = data.builderId; // if(data.otp){ // var otp = data.otp.toString(); // if(otp.length == 4){ // otpBox.find("input[name=otp_contactform]").val(otp); // } // }else{ // otpBox.find("input[name=otp_contactform]").val(''); // } // }else{// alert(data.message);// // helperJS.alertBox('error',data.message); // } // $('#loaderBox').hide();// });} function getLmsCountryLocation() { var allcodes = []; $.each(countryLocationData, function(index, value) { if(allcodes.indexOf(value.code) == -1){ $(".ddlCountryCode").append( '

" ); allcodes.push(value.code); } }); $(".ddlLocation").not(".property-m").append( '

' ); if (countryLocationData[0].locations.length > 0) { countryLocationData[0].locations.forEach(function(element) { $(".ddlLocation").append( '

" ); }); }}function onChangeLmsCountryCode(countryCodeControl,locationId,formid){ let _code = $(countryCodeControl) .find("option:selected") .val(); if (countryLocationData !== undefined && countryLocationData) { $("#" + formid + " #"+locationId).empty(); let _selectedLoc = countryLocationData.filter(f => f.code == _code)[0]; if (_selectedLoc.locations.length > 0) { _selectedLoc.locations.forEach(function(element) { $("#"+ formid + " #" + locationId).append( '

" ); }); let _selcity= helperJS.getCookie('_selcity'); if(_selcity && parseInt(_selcity.id)>0) _selcity.name = _selcity.name.charAt(0).toUpperCase() + _selcity.name.slice(1); $("#" + formid + " #"+locationId).val(_selcity.name); } else { $("#" + formid + " #"+locationId).append( '

" ); } } } function initializeCityAutocompleteComboBox (formid,elementid,containerid){$.widget("custom.combobox", { _create: function() { this.wrapper = $( "" ) .addClass( "custom-combobox" ) .insertAfter( this.element ); this.element.hide(); this._createAutocomplete(); this._createShowAllButton(); var placeholderset = false; $("#" + formid + " #dev_drodownarrow").hover(function(){ if(placeholderset == false && $("#" + formid + " #" + elementid).val() != null && $("#" + formid + " #" + elementid).val() != ""){ $("#" + formid + " #dev_inputelement").attr("placeholder",$("#" + formid + " #" + elementid).val()); placeholderset = true; } if(placeholderset == true){ if($("#" + formid + " #dev_inputelement").val() == null || $("#" + formid + " #dev_inputelement").val() == ''){ $("#" + formid + " #dev_inputelement").val($("#" + formid + " #dev_inputelement").attr("placeholder")) }else{ $("#" + formid + " #dev_inputelement").val(''); placeholderset = false; } } }); /* $("#" + formid + " #dev_inputelement").focus(function(){ var isclosed = $("#" + formid + " #" + containerid).find("ul").css("display") == "none"; // if($("#"+ formid + " #dev_inputelement").val() == ''){ if(isclosed){ $("#" + formid + " #dev_inputelement").autocomplete( "search", "" ); }else{ $("#" + formid + " #" + containerid).find("ul").css("display","none"); } // } }); */ }, _createAutocomplete: function() { var selected = this.element.children( ":selected" ), value = selected.val() ? selected.text() : ""; this.input = $( "" ) .appendTo( this.wrapper ) .val( value ) .attr( "title", "" ) .addClass( "custom-combobox-input ui-widget ui-widget-content ui-state-default ui-corner-left dev_inputelement" ) .autocomplete({ delay: 0, minLength: 0, source: $.proxy( this, "_source" ), appendTo: $("#" + formid + " #" + containerid), }) .tooltip({ classes: { "ui-tooltip": "ui-state-highlight" } }); this._on( this.input, { autocompleteselect: function( event, ui ) { ui.item.option.selected = true; this._trigger( "select", event, { item: ui.item.option }); $("#" + formid + " #dev_inputelement").attr("placeholder",$("#" + formid + " #" + elementid).val()); }, autocompletechange: "_removeIfInvalid" }); $("#" + formid + " #" + containerid).find("ul").addClass("drop-downcity"); }, _createShowAllButton: function() { var input = this.input, wasOpen = false; $( "" ) .attr( "tabIndex", -1 ) /* .attr( "title", "Show All Items" ) .tooltip() */ .appendTo( this.wrapper ) .button({ icons: { primary: "ui-icon-triangle-1-s" }, text: false }) .removeClass( "ui-corner-all" ) .addClass( "custom-combobox-toggle ui-corner-right" ) .on( "mousedown", function() { wasOpen = input.autocomplete( "widget" ).is( ":visible" ); }) .on( "click", function() { input.trigger( "focus" ); // Close if already visible if ( wasOpen ) { return; } // Pass empty string as value to search for, displaying all results input.autocomplete( "search", "" ); }); }, _source: function( request, response ) { var matcher = new RegExp( $.ui.autocomplete.escapeRegex(request.term), "i" ); var textarr = []; response( this.element.children( "option" ).map(function() { var text = $( this ).text(); if(textarr.indexOf(text) == -1){ textarr.push(text); if ( this.value && ( !request.term || matcher.test(text) ) ) return { label: text, value: text, option: this }; } }) ); }, _removeIfInvalid: function( event, ui ) { // Selected an item, nothing to do if ( ui.item ) { return; } // Search for a match (case-insensitive) var value = this.input.val(), valueLowerCase = value.toLowerCase(), valid = false; this.element.children( "option" ).each(function() { if ( $( this ).text().toLowerCase() === valueLowerCase ) { this.selected = valid = true; return false; } }); // Found a match, nothing to do if ( valid ) { return; } // Remove invalid value this.input .val( "" ) // .attr( "title", value + " didn't match any item" ) // .tooltip( "open" ); this.element.val( "" ); /* this._delay(function() { this.input.tooltip( "close" ).attr( "title", "" ); }, 2500 ); */ this.input.autocomplete( "instance" ).term = ""; }, _destroy: function() { this.wrapper.remove(); this.element.show(); } }); $("#" + formid + " #" + elementid).combobox(); } function initializeLazyLoad(){ var imageObserver = new IntersectionObserver((entries, imgObserver) => { entries.forEach((entry) => { if (entry.isIntersecting) { var lazyImage = entry.target; if(lazyImage.src.replace(baseUrl,'') != encodeURI(lazyImage.dataset.src ? lazyImage.dataset.src.replace(baseUrl,'') : '')){ lazyImage.src = lazyImage.dataset.src; } } }) }); var arr = document.querySelectorAll('img.lazy') arr.forEach((v) => { imageObserver.observe(v); }); } function homePageContactFormBtnClick(selectedtabval){$.post("https://www.squareyards.com/home/homepageleadformoverlay", function(data){$("#dev_contact_form_v1").html(data); globalfn.enableButtons(); $('.homePageLeadFormOverLay').addClass('active'); var selectedtab = $(".homePageLeadFormOverLay .homeFormBox .propTab.fixedTab").attr("tabval"); if(selectedtabval){ selectedtab = selectedtabval; $(".homePageLeadFormOverLay .homeFormBox .propTabBox").hide(); }else{ $('.homePageLeadFormOverLay .homeFormBox .propTabBox').show(); } var formdata = {"selectedtab":selectedtab}; opencontacthomeformv1(formdata);}); /* $.ajax({ async: true, dataType: "html", contentType: "application/json", success: function(data, textStatus) { $("#dev_contact_form_v1").html(data); $('.homePageLeadFormOverLay').addClass('active'); var selectedtab = $(".homePageLeadFormOverLay .homeFormBox .propTab.fixedTab").attr("tabval"); var formdata = {"selectedtab":selectedtab}; opencontacthomeformv1(formdata); }, error:function(error){ console.log(error); }, type: "POST", url: "https://www.squareyards.com/home/homepageleadformoverlay" }); */ } function homePageContactFormBtnClickForSingle(){$.post("https://www.squareyards.com/home/homepageleadformoverlay", function(data){$("#dev_contact_form_v1").html(data); globalfn.enableButtons();$("#dev_home_propertytabbox").remove();$('.homePageLeadFormOverLay').addClass("homePageLeadFormSingle");$('.homePageLeadFormOverLay').removeClass('homePageLeadFormOverLay'); var selectedtab = "newproject"; if(window.location.href.endsWith("-decart") == true || window.location.href.endsWith("-decart/") == true){ selectedtab = "homeinterior"; } var formdata = {"selectedtab":selectedtab}; opencontacthomeformv1(formdata);}); /* $.ajax({ async: true, dataType: "html", contentType: "application/json", success: function(data, textStatus) { $("#dev_contact_form_v1").html(data); $('.homePageLeadFormOverLay').addClass('active'); var selectedtab = $(".homePageLeadFormOverLay .homeFormBox .propTab.fixedTab").attr("tabval"); var formdata = {"selectedtab":selectedtab}; opencontacthomeformv1(formdata); }, error:function(error){ console.log(error); }, type: "POST", url: "https://www.squareyards.com/home/homepageleadformoverlay" }); */ } function homeFormBoxCloseBtnClick(){ $('.homePageLeadFormOverLay').removeClass('active'); } function propertyTabClick(tabval){ var propertytabdata = [{"name":"Buy","tabval":"newproject","icon":"hti-icon1"},{"name":"Rent","tabval":"rental","icon":"hti-icon2"},{"name":"Home Loan","tabval":"homeloan","icon":"hti-icon4"},{"name":"Home Interior","tabval":"homeinterior","icon":"hti-icon5"}]; var selectedtabdata_arr = propertytabdata.filter(function(e){return e.tabval == tabval}); var othertabdata_arr = propertytabdata.filter(function(e){return e.tabval != tabval}); var propertytabboxhtml = ""; if(selectedtabdata_arr.length > 0){ var selectedtabdata = selectedtabdata_arr[0]; propertytabboxhtml = propertytabboxhtml + '

' + selectedtabdata["name"] + '

'; } if(othertabdata_arr.length > 0){ propertytabboxhtml = propertytabboxhtml + '

'; for(var i=0;i

' + othertabdata["name"] + '
'; } propertytabboxhtml = propertytabboxhtml + '

'; } $("#dev_home_propertytabbox").html(propertytabboxhtml); if(tabval == "rental"){ $("#dev_contactformhomev1 .formBox form#ClientInfoForm_dsepopup").find("#domesticCampId").val(6532); $("#dev_contactformhomev1 .formBox form#ClientInfoForm_dsepopup").find("#internationalCampId").val(6532); }else{ $("#dev_contactformhomev1 .formBox form#ClientInfoForm_dsepopup").find("#domesticCampId").val(277); $("#dev_contactformhomev1 .formBox form#ClientInfoForm_dsepopup").find("#internationalCampId").val(600); } var formdata = {"selectedtab":tabval}; opencontacthomeformv1(formdata); } function agentContactFormV1(id,userType,formdivid,formdata){if($("#" + formdivid + " .formBox").length <= 0){ $.post(baseUrl + "loadagentcontactform",formdata,function(data){ $("#" + formdivid).html(data); globalfn.enableButtons(); agentform.init(id,userType,formdivid); }); }else{ globalfn.enableButtons(); agentform.init(id,userType,formdivid); } } function opencontacthomeformv1(formdata){ $('#loaderBox').show(); $.post("https://www.squareyards.com/getcontactformbyselectedtab", formdata, function(data){ $("#dev_contactformhomev1").html(data); globalfn.enableButtons(); $("#dev_contactformhomev1 .formBox").css("padding","0"); setTimeout(()=>{ if(formdata.selectedtab == "homeloan" || formdata.selectedtab == "homeinterior"){ if(formdata.selectedtab == "homeloan"){ // agentContactForm("COMMON_LOAN","urbanMoney","dev_popupform_agent"); agentContactFormV1("COMMON_LOAN","urbanMoney","dev_popupform_agent",formdata); setTimeout(() => { $(".formBox #confirmOtp").addClass("Home_Lead_Loan") }, 1000); }else{ // agentContactForm(0,"interior","dev_popupform_agent"); agentContactFormV1(0,"interior","dev_popupform_agent",formdata); setTimeout(() => { $(".formBox #confirmOtp").addClass("Home_Lead_Interiors") }, 1000); } }else{ $(".homePageLeadFormOverLay .homeFormBox h3").text('Contact Our Real Estate Experts');$(".homePageLeadFormSingle .homeFormBox h3").text('Contact Our Real Estate Experts');$(".ldBxClsBtn,.ldBxH5").remove(); initializeContactForm_popup(); setTimeout(()=>{ if($("#dev_inputelement").val() == ''){ $("#dev_inputelement").val('Select City'); } }); if(formdata.selectedtab == "newproject"){ $("#confirmOtp_contactform").addClass("Home_Lead_Buy") } else{ $("#confirmOtp_contactform").addClass("Home_Lead_Rent") } if($("form#ClientInfoForm_dsepopup select#ddlCountryCode").attr("data-value") != undefined && $("form#ClientInfoForm_dsepopup select#ddlCountryCode").attr("data-value") != "" && $("form#ClientInfoForm_dsepopup select#ddlCountryCode").attr("data-value") != null){ var countrycodeval = $("form#ClientInfoForm_dsepopup select#ddlCountryCode").attr("data-value"); $("form#ClientInfoForm_dsepopup select#ddlCountryCode").val(countrycodeval); } } }) initializeLazyLoad(); }); /* $.ajax({ async: true, dataType: "html", contentType: "application/json", data:JSON.stringify(formdata), success: function(data, textStatus) { }, error:function(error){ console.log(error); }, type: "POST", url: "https://www.squareyards.com/getcontactformbyselectedtab" }); */ $('#loaderBox').hide(); } var RegexCountryCode = { "+91" : "^\\+91[6789]\\d{9}$", "+61" : "^\\+61[0-9]{8,9}$", "+852": "^\\+852\\d{8}$", "+968": "^\\+968\\d{7}$", "+974": "^\\+974\\d{7}$", "+65" : "^\\+65\\d{8}$", "+971": "^\\+971\\d{9}$", "+44" : "^\\+44\\d{10}$", "+1" : "^\\+1\\d{10}$", "+27" : "^\\+27\\d{9}$", "+60" : "^\\+60\\d{8,9}$", "+64" : "^\\+64\\d{8,9}$", "+66" : "^\\+66\\d{8,9}$", "+966": "^\\+966\\d{9}$", "+31" : "^\\+31\\d{9}$", "+973": "^\\+973\\d{7}$", "+54" : "^\\+54\\d{10}$", "+43" : "^\\+43\\d{9}$", "+880": "^\\+880\\d{10}$", "+32" : "^\\+32\\d{9}$", "+55" : "^\\+55\\d{10,11}$", "+86" : "^\\+86\\d{11}$", "+385": "^\\+385\\d{9}$", "+420": "^\\+420\\d{9}$", "+45" : "^\\+45\\d{8}$", "+1809" : "^\\+1809\\d{7}$", "+20" : "^\\+20\\d{10}$", "+358": "^\\+358\\d{9}$", "+679": "^\\+679\\d{7}$", "+33" : "^\\+33\\d{9}$", "+49" : "^\\+49\\d{10}$", "+30" : "^\\+30\\d{10}$", "+592": "^\\+592\\d{7}$", "+36" : "^\\+36\\d{9}$", "+62" : "^\\+62\\d{9,11}$", "+353": "^\\+353\\d{9}$", "+972": "^\\+972\\d{9}$", "+39" : "^\\+39\\d{10}$", "+81" : "^\\+81\\d{9}$", "+962": "^\\+962\\d{9}$", "+82" : "^\\+82\\d{9,10}$", "+965": "^\\+965\\d{7}$", "+853": "^\\+853\\d{8}$", "+52" : "^\\+52\\d{10}$", "+212": "^\\+212\\d{9}$", "+47" : "^\\+47\\d{8}$", "+48" : "^\\+48\\d{9}$", "+351": "^\\+351\\d{9}$", "+40" : "^\\+40\\d{9}$", "+7" : "^\\+7\\d{10}$", "+34" : "^\\+34\\d{9}$", "+46" : "^\\+46\\d{9}$", "+41" : "^\\+41\\d{9}$", "+1868": "^\\+1868\\d{7}$", "+216" : "^\\+216\\d{8}$", "+90" : "^\\+90\\d{10}$", "+84" : "^\\+84\\d{9}$" }; var globalfn = { enableButtons:() => { setTimeout(() => { $("form").find("#contactBtn").removeAttr("disabled"); $("form").find("#_submit").removeAttr("disabled"); $("form").find("#submit").removeAttr("disabled"); $("form").find("#send_otp_btn").removeAttr("disabled"); },500); },validateMobile:(formid) => { // Get the selected country code and mobile number input field const countryCode = $("#" + formid).find("#ddlCountryCode option:selected, #ddlCountryCodechangeNumber option:selected ,#ddlCountryCodeAgent option:selected ").text(); const mobileNumber = $("#" + formid).find("#mobile").val(); // Validate the mobile number based on the country code const isValidMobile = validateMobileByCountryCode(countryCode, mobileNumber); if(isValidMobile == false){ $("#" + formid).find("#contactBtn").attr("disabled","disabled"); $("#" + formid).find("#_submit").attr("disabled","disabled"); $("#" + formid).find("#submit").attr("disabled","disabled"); $("#" + formid).find("#send_otp_btn").attr("disabled","disabled"); }else{ // checkValidity(formid); globalfn.enableButtons(); } function validateMobileByCountryCode(countryCode, mobileNumber) {return RegexCountryCode ? new RegExp(RegexCountryCode[countryCode]).test(countryCode + mobileNumber) : false; } function checkValidity(formid) { setTimeout(() => { const isValid = document.getElementById(formid).checkValidity(); if(isValid == true){ $("#" + formid + " #contactBtn").removeAttr("disabled"); $("#" + formid + " #_submit").removeAttr("disabled"); $("#" + formid + " #submit").removeAttr("disabled"); $("#" + formid + " #send_otp_btn").removeAttr("disabled"); }else{ $("#" + formid + " #contactBtn").attr("disabled","disabled"); $("#" + formid + " #_submit").attr("disabled","disabled"); $("#" + formid + " #submit").attr("disabled","disabled"); $("#" + formid + " #send_otp_btn").attr("disabled","disabled"); } }); } }}

Inches to Meters (in to m) Conversion - 1 inch is 0.0254 m (2024)
Top Articles
Latest Posts
Article information

Author: Kieth Sipes

Last Updated:

Views: 6210

Rating: 4.7 / 5 (67 voted)

Reviews: 82% 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.