{"id":2,"date":"2026-04-14T23:03:23","date_gmt":"2026-04-14T23:03:23","guid":{"rendered":"https:\/\/mejanni-ye.com\/majidzawmah\/?page_id=2"},"modified":"2026-05-14T04:11:07","modified_gmt":"2026-05-14T04:11:07","slug":"sample-page","status":"publish","type":"page","link":"https:\/\/mejanni-ye.com\/majidzawmah\/?page_id=2","title":{"rendered":"Sample Page"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"2\" class=\"elementor elementor-2\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4b02c5f e-flex e-con-boxed tmpcoder-jarallax-no tmpcoder-parallax-no tmpcoder-particle-no tmpcoder-sticky-section-no e-con e-parent\" data-id=\"4b02c5f\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-10cd27c e-con-full e-flex tmpcoder-jarallax-no tmpcoder-parallax-no tmpcoder-particle-no tmpcoder-sticky-section-no e-con e-child\" data-id=\"10cd27c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-857f913 e-con-full e-flex tmpcoder-jarallax-no tmpcoder-parallax-no tmpcoder-particle-no tmpcoder-sticky-section-no e-con e-child\" data-id=\"857f913\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-243c0976 e-flex e-con-boxed tmpcoder-jarallax-no tmpcoder-parallax-no tmpcoder-particle-no tmpcoder-sticky-section-no e-con e-parent\" data-id=\"243c0976\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;video&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-7b84fdbe elementor-widget elementor-widget-text-editor\" data-id=\"7b84fdbe\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t\n<p class=\"wp-block-paragraph\">This is an example page. It&#8217;s different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Hi there! I&#8217;m a bike messenger by day, aspiring actor by night, and this is my website. I live in Los Angeles, have a great dog named Jack, and I like pi\u00f1a coladas. (And gettin&#8217; caught in the rain.)<\/p>\n<\/blockquote>\n\n<p class=\"wp-block-paragraph\">&#8230;or something like this:<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.<\/p>\n<\/blockquote>\n\n<p class=\"wp-block-paragraph\">As a new WordPress user, you should go to <a href=\"https:\/\/mejanni-ye.com\/majidzawmah\/wp-admin\/\">your dashboard<\/a> to delete this page and create new pages for your content. Have fun!<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-27aa574 elementor-button-align-stretch elementor-widget elementor-widget-form\" data-id=\"27aa574\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;step_next_label&quot;:&quot;Next&quot;,&quot;step_previous_label&quot;:&quot;Previous&quot;,&quot;button_width&quot;:&quot;20&quot;,&quot;step_type&quot;:&quot;number_text&quot;,&quot;step_icon_shape&quot;:&quot;circle&quot;}\" data-widget_type=\"form.default\">\n\t\t\t\t\t\t\t<form class=\"elementor-form\" method=\"post\" id=\"new_Form_id\" name=\"New Form\" aria-label=\"New Form\">\n\t\t\t<input type=\"hidden\" name=\"post_id\" value=\"2\"\/>\n\t\t\t<input type=\"hidden\" name=\"form_id\" value=\"27aa574\"\/>\n\t\t\t<input type=\"hidden\" name=\"referer_title\" value=\"Sample Page\" \/>\n\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"queried_id\" value=\"2\"\/>\n\t\t\t\n\t\t\t<div class=\"elementor-form-fields-wrapper elementor-labels-above\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-text elementor-field-group elementor-column elementor-field-group-name_id elementor-col-100\">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"form-field-name_id\" class=\"elementor-field-label\">\n\t\t\t\t\t\t\t\tName\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input size=\"1\" type=\"text\" name=\"form_fields[name_id]\" id=\"form-field-name_id\" class=\"elementor-field elementor-size-md  elementor-field-textual\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-email elementor-field-group elementor-column elementor-field-group-email_id elementor-col-100 elementor-field-required\">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"form-field-email_id\" class=\"elementor-field-label\">\n\t\t\t\t\t\t\t\tEmail\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input size=\"1\" type=\"email\" name=\"form_fields[email_id]\" id=\"form-field-email_id\" class=\"elementor-field elementor-size-md  elementor-field-textual\" required=\"required\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-text elementor-field-group elementor-column elementor-field-group-message_id elementor-col-100\">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"form-field-message_id\" class=\"elementor-field-label\">\n\t\t\t\t\t\t\t\tMessage\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input size=\"1\" type=\"text\" name=\"form_fields[message_id]\" id=\"form-field-message_id\" class=\"elementor-field elementor-size-md  elementor-field-textual\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-text elementor-field-group elementor-column elementor-field-group-location elementor-col-100\">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"form-field-location\" class=\"elementor-field-label\">\n\t\t\t\t\t\t\t\tLocation\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input size=\"1\" type=\"text\" name=\"form_fields[location]\" id=\"form-field-location\" class=\"elementor-field elementor-size-md  elementor-field-textual\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-hidden elementor-field-group elementor-column elementor-field-group-loc elementor-col-100\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<input size=\"1\" type=\"hidden\" name=\"form_fields[loc]\" id=\"form-field-loc\" class=\"elementor-field elementor-size-md  elementor-field-textual\" value=\"15.330593, 44.226929\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-group elementor-column elementor-field-type-submit elementor-col-20 e-form__buttons\">\n\t\t\t\t\t<button class=\"elementor-button elementor-size-md\" type=\"submit\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-icon\">\n\t\t\t\t\t\t\t\t\t<svg aria-hidden=\"true\" class=\"e-font-icon-svg e-fas-ice-cream\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M368 160h-.94a144 144 0 1 0-286.12 0H80a48 48 0 0 0 0 96h288a48 48 0 0 0 0-96zM195.38 493.69a31.52 31.52 0 0 0 57.24 0L352 288H96z\"><\/path><\/svg>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Send<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/button>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/form>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-a372273 e-flex e-con-boxed tmpcoder-jarallax-no tmpcoder-parallax-no tmpcoder-particle-no tmpcoder-sticky-section-no e-con e-parent\" data-id=\"a372273\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d1129de elementor-widget elementor-widget-html\" data-id=\"d1129de\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<script>\r\ndocument.querySelector(\"#calculateBtn\").addEventListener(\"click\", async function () {\r\n\r\n    let office = \"44.226929,15.330593\"; \/\/ \u0645\u0648\u0642\u0639\u0643\r\n\r\n    let input = document.querySelector(\"#form-field-location\");\r\n    let address = input.value;\r\n\r\n    if (!address) {\r\n        alert(\"Please enter location\");\r\n        return;\r\n    }\r\n\r\n    try {\r\n        \/\/ \u062a\u062d\u0648\u064a\u0644 \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0625\u0644\u0649 \u0625\u062d\u062f\u0627\u062b\u064a\u0627\u062a\r\n        let geo = await fetch(`https:\/\/nominatim.openstreetmap.org\/search?format=json&q=${address}`);\r\n        let geoData = await geo.json();\r\n\r\n        if (geoData.length === 0) {\r\n            alert(\"Location not found\");\r\n            return;\r\n        }\r\n\r\n        let lat = geoData[0].lat;\r\n        let lon = geoData[0].lon;\r\n\r\n        \/\/ \u062d\u0633\u0627\u0628 \u0627\u0644\u0645\u0633\u0627\u0641\u0629\r\n        let route = await fetch(`https:\/\/router.project-osrm.org\/route\/v1\/driving\/${office};${lon},${lat}?overview=false`);\r\n        let routeData = await route.json();\r\n\r\n        let distance = routeData.routes[0].distance \/ 1609;\r\n\r\n        let cost;\r\n\r\n        if (distance <= 10) {\r\n            cost = distance * 5;\r\n        } else if (distance <= 20) {\r\n            cost = (10 * 5) + ((distance - 10) * 7);\r\n        } else if (distance <= 30) {\r\n            cost = (10 * 5) + (10 * 7) + ((distance - 20) * 10);\r\n        } else {\r\n            cost = \"Contact Manager\";\r\n        }\r\n\r\n        document.getElementById(\"result\").innerHTML =\r\n            \"Distance: \" + distance.toFixed(2) + \" miles<br>\" +\r\n            \"Travel Cost: $\" + cost;\r\n\r\n    } catch (e) {\r\n        alert(\"Error calculating distance\");\r\n    }\r\n\r\n});\r\n<\/script>\r\n\r\n<button onclick=\"calculatePrice()\">Calculate Price<\/button>\r\n\r\n<div id=\"result\"><\/div>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-2226a7c e-flex e-con-boxed tmpcoder-jarallax-no tmpcoder-parallax-no tmpcoder-particle-no tmpcoder-sticky-section-no e-con e-parent\" data-id=\"2226a7c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-2bd1b6c elementor-widget elementor-widget-html\" data-id=\"2bd1b6c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<button id=\"calculateBtn\" style=\"padding:10px 20px;background:#0073e6;color:white;border:none;border-radius:5px;\">\r\nGet Distance\r\n<\/button>\r\n\r\n<div id=\"result\" style=\"margin-top:10px;font-weight:bold;\"><\/div>\r\n\r\n<script>\r\ndocument.querySelector(\"#calculateBtn\").addEventListener(\"click\", async function () {\r\n\r\n    let officeLat = 27.878336;   \/\/ \u2705 latitude\r\n    let officeLon = -82.745499;  \/\/ \u2705 longitude\r\n\r\n    let address = document.querySelector(\"#form-field-location\").value;\r\n\r\n    if (!address) {\r\n        alert(\"Please enter location\");\r\n        return;\r\n    }\r\n\r\n    try {\r\n        let geo = await fetch(`https:\/\/nominatim.openstreetmap.org\/search?format=json&q=${encodeURIComponent(address)}`);\r\n        let geoData = await geo.json();\r\n\r\n        if (!geoData.length) {\r\n            alert(\"Location not found\");\r\n            return;\r\n        }\r\n\r\n        let lat = parseFloat(geoData[0].lat);\r\n        let lon = parseFloat(geoData[0].lon);\r\n\r\n        \/\/ \u2705 \u062d\u0633\u0627\u0628 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0645\u0628\u0627\u0634\u0631\u0629 (\u0628\u062f\u0648\u0646 route)\r\n        function getDistance(lat1, lon1, lat2, lon2) {\r\n            let R = 6371; \r\n            let dLat = (lat2 - lat1) * Math.PI\/180;\r\n            let dLon = (lon2 - lon1) * Math.PI\/180;\r\n\r\n            let a = \r\n                Math.sin(dLat\/2) * Math.sin(dLat\/2) +\r\n                Math.cos(lat1 * Math.PI\/180) * Math.cos(lat2 * Math.PI\/180) *\r\n                Math.sin(dLon\/2) * Math.sin(dLon\/2);\r\n\r\n            let c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));\r\n\r\n            return R * c;\r\n        }\r\n\r\n        let distanceKm = getDistance(officeLat, officeLon, lat, lon);\r\n        let distanceMiles = distanceKm * 0.621;\r\n\r\n        document.getElementById(\"result\").innerHTML =\r\n            \"Distance: \" + distanceMiles.toFixed(2) + \" miles\";\r\n\r\n    } catch (error) {\r\n        alert(\"Error calculating distance\");\r\n        console.log(error);\r\n    }\r\n\r\n});\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>This is an example page. It&#8217;s different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this: Hi there! I&#8217;m a bike messenger [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-2","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mejanni-ye.com\/majidzawmah\/index.php?rest_route=\/wp\/v2\/pages\/2","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mejanni-ye.com\/majidzawmah\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mejanni-ye.com\/majidzawmah\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mejanni-ye.com\/majidzawmah\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mejanni-ye.com\/majidzawmah\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2"}],"version-history":[{"count":27,"href":"https:\/\/mejanni-ye.com\/majidzawmah\/index.php?rest_route=\/wp\/v2\/pages\/2\/revisions"}],"predecessor-version":[{"id":217,"href":"https:\/\/mejanni-ye.com\/majidzawmah\/index.php?rest_route=\/wp\/v2\/pages\/2\/revisions\/217"}],"wp:attachment":[{"href":"https:\/\/mejanni-ye.com\/majidzawmah\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}