", 'lat': 43.1069259, 'lng': -77.42431619999999 } ]); $(document).ready(function () { var width = $('.google-map').width() + 2; $(window).scroll(function () { if ($(this).scrollTop() > 100) { $('.google-map').css('width', width + 'px').addClass('fixed'); } else { $('.google-map').removeClass('fixed').css('width', '100%'); } }); }); $("#text-body").on('focus input', function () { this.style.height = (this.scrollHeight) + "px"; }); $(document).ready(function () { const API_URL = 'near-me.auto-repair.shop'; $('#send-form').on('submit', function (event) { event.preventDefault(); }); $('#send-request-btn').on('click', function (event) { var $shop_id = $("input[name=shopId]"); var $email = $("input[name=emailFrom]"); var $textBody = $("textarea[name=textBody]"); event.preventDefault(); $.ajax({ type: "GET", url: 'http://' + API_URL + '/shop/send', data: { 'emailFrom': $email.val(), 'textBody': $textBody.val(), 'shopId': parseInt($shop_id.val()) }, success: function () { $('#basicModal').modal('toggle'); } }); }); });