{"id":2726,"date":"2025-07-12T01:47:19","date_gmt":"2025-07-11T22:17:19","guid":{"rendered":"https:\/\/www.royalshishe.ir\/?page_id=2726"},"modified":"2025-07-12T01:47:21","modified_gmt":"2025-07-11T22:17:21","slug":"%d9%85%d8%ad%d8%a7%d8%b3%d8%a8%d9%87-%d9%82%db%8c%d9%85%d8%aa-%d9%be%d8%a7%d8%b1%d8%aa%db%8c%d8%b4%d9%86-%d8%b4%db%8c%d8%b4%d9%87-%d8%a7%db%8c-%d8%b1%d9%88%db%8c%d8%a7%d9%84-%d8%b4%db%8c%d8%b4%d9%87","status":"publish","type":"page","link":"https:\/\/www.royalshishe.ir\/","title":{"rendered":"\u0645\u062d\u0627\u0633\u0628\u0647 \u0642\u06cc\u0645\u062a \u067e\u0627\u0631\u062a\u06cc\u0634\u0646 \u0634\u06cc\u0634\u0647 \u0627\u06cc \u0631\u0648\u06cc\u0627\u0644 \u0634\u06cc\u0634\u0647"},"content":{"rendered":"<p><!DOCTYPE html><br \/>\n<html lang=\"fa\" dir=\"rtl\"><br \/>\n<head><br \/>\n  <meta charset=\"UTF-8\" \/><br \/>\n  <title>\u0645\u062d\u0627\u0633\u0628\u0647 \u0642\u06cc\u0645\u062a \u067e\u0627\u0631\u062a\u06cc\u0634\u0646 \u0634\u06cc\u0634\u0647\u200c\u0627\u06cc | \u0631\u0648\u06cc\u0627\u0644 \u0634\u06cc\u0634\u0647<\/title><br \/>\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \/>\n  <link href=\"https:\/\/fonts.googleapis.com\/css2?family=Vazirmatn&#038;display=swap\" rel=\"stylesheet\" \/>\n  <script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jspdf\/2.5.1\/jspdf.umd.min.js\"><\/script><\/p>\n<style>\n    * {\n      box-sizing: border-box;\n    }\n    body {\n      font-family: 'Vazirmatn', sans-serif;\n      background: #f7fbf9;\n      margin: 0;\n      padding: 18px;\n      color: #204d3a;\n      direction: rtl;\n      user-select: none;\n    }\n    .form-box {\n      background: #ffffff;\n      padding: 24px 22px;\n      border-radius: 18px;\n      box-shadow: 0 8px 30px rgba(32, 77, 58, 0.1);\n      max-width: 470px;\n      margin: 18px auto;\n      border: 2px solid #a5d6a7;\n      transition: box-shadow 0.3s ease;\n    }\n    .form-box:hover {\n      box-shadow: 0 12px 40px rgba(32, 77, 58, 0.2);\n    }\n    h2 {\n      font-size: 22px;\n      font-weight: 700;\n      text-align: center;\n      margin-bottom: 22px;\n      color: #1b4d33;\n      letter-spacing: 0.06em;\n    }\n    label {\n      font-size: 14px;\n      margin-top: 14px;\n      display: block;\n      font-weight: 600;\n      color: #2f5c3b;\n      user-select: text;\n    }\n    input, select {\n      width: 100%;\n      font-size: 15px;\n      padding: 11px 14px;\n      margin-top: 6px;\n      border: 1.8px solid #90be6d;\n      border-radius: 12px;\n      color: #2b4c31;\n      transition: border-color 0.25s ease;\n    }\n    input:focus, select:focus {\n      outline: none;\n      border-color: #4caf50;\n      box-shadow: 0 0 8px #4caf5077;\n    }\n    small {\n      font-size: 12px;\n      color: #607d58;\n      margin-bottom: 8px;\n      display: block;\n      line-height: 1.4;\n      user-select: none;\n    }\n    button {\n      width: 100%;\n      padding: 14px;\n      font-size: 16px;\n      margin-top: 20px;\n      border: none;\n      border-radius: 14px;\n      cursor: pointer;\n      font-weight: 700;\n      background: linear-gradient(135deg, #6dbf47 0%, #388e3c 100%);\n      color: #f9fff9;\n      box-shadow: 0 6px 15px #66bb6aaa;\n      transition: background 0.3s ease, box-shadow 0.3s ease;\n      user-select: none;\n    }\n    button:hover {\n      background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);\n      box-shadow: 0 8px 20px #4caf5088;\n    }\n    #result {\n      font-size: 14px;\n      line-height: 2.2;\n      margin-top: 25px;\n      padding: 18px 14px;\n      background: #e8f6e9;\n      color: #2e7d32;\n      border-radius: 14px;\n      border: 1.5px dashed #a5d6a7;\n      white-space: pre-line;\n      user-select: text;\n      min-height: 100px;\n      font-weight: 600;\n      letter-spacing: 0.02em;\n      text-align: justify;\n    }\n    .note-box {\n      font-size: 13px;\n      margin-top: 30px;\n      padding: 18px 20px;\n      background: #dcedc8;\n      color: #33691e;\n      text-align: center;\n      border-radius: 14px;\n      border: 1.7px solid #aed581;\n      font-weight: 600;\n      letter-spacing: 0.04em;\n      line-height: 1.7;\n      user-select: none;\n      box-shadow: inset 0 0 12px #c5e1a5;\n    }\n    .btn-group {\n      display: flex;\n      gap: 10px;\n      margin-top: 22px;\n      flex-direction: column;\n    }\n    .btn-pdf {\n      background: linear-gradient(135deg, #8e24aa 0%, #6a1b9a 100%);\n      box-shadow: 0 5px 15px #ab47bcaa;\n      font-weight: 700;\n      user-select: none;\n    }\n    .btn-pdf:hover {\n      background: linear-gradient(135deg, #6a1b9a 0%, #4a148c 100%);\n      box-shadow: 0 7px 22px #7b1fa2cc;\n    }\n    .btn-wa {\n      background: linear-gradient(135deg, #25D366 0%, #1e7e34 100%);\n      box-shadow: 0 5px 15px #66bb6a99;\n      font-weight: 700;\n      user-select: none;\n    }\n    .btn-wa:hover {\n      background: linear-gradient(135deg, #1e7e34 0%, #145a22 100%);\n      box-shadow: 0 7px 22px #388e3cbb;\n    }\n  <\/style>\n<p><\/head><br \/>\n<body><\/p>\n<div class=\"form-box\">\n<h2> \u0645\u062d\u0627\u0633\u0628\u0647 \u0642\u06cc\u0645\u062a \u067e\u0627\u0631\u062a\u06cc\u0634\u0646 \u0634\u06cc\u0634\u0647\u200c\u0627\u06cc \u0631\u0648\u06cc\u0627\u0644 \u0634\u06cc\u0634\u0647<\/h2>\n<p>    <label for=\"length\">\ud83d\udccf \u0637\u0648\u0644 \u067e\u0627\u0631\u062a\u06cc\u0634\u0646 (\u0645\u062a\u0631):<\/label><br \/>\n    <input type=\"number\" id=\"length\" step=\"0.1\" placeholder=\"\u0645\u062b\u0644\u0627\u064b \u06f4.\u06f5\" \/><\/p>\n<p>    <label for=\"height\">\ud83d\udcd0 \u0627\u0631\u062a\u0641\u0627\u0639 \u067e\u0627\u0631\u062a\u06cc\u0634\u0646 (\u0645\u062a\u0631):<\/label><br \/>\n    <input type=\"number\" id=\"height\" step=\"0.1\" placeholder=\"\u0645\u062b\u0644\u0627\u064b \u06f2.\u06f7\" \/><\/p>\n<p>    <label for=\"partition_type\">\ud83d\udd18 \u0646\u0648\u0639 \u067e\u0627\u0631\u062a\u06cc\u0634\u0646:<\/label><br \/>\n    <select id=\"partition_type\"><option value=\"single\">\u062a\u06a9 \u062c\u062f\u0627\u0631\u0647<\/option><option value=\"double\">\u062f\u0648 \u062c\u062f\u0627\u0631\u0647<\/option><\/select><\/p>\n<p>    <label for=\"door_count\">\ud83d\udeaa \u062a\u0639\u062f\u0627\u062f \u062f\u0631\u0628 \u0634\u06cc\u0634\u0647\u200c\u0627\u06cc \u0628\u0627 \u06cc\u0631\u0627\u0642\u200c\u0622\u0644\u0627\u062a:<\/label><br \/>\n    <small><br \/>\n      \u0647\u0631 \u062f\u0631\u0628 \u0634\u0627\u0645\u0644 \u06a9\u0644\u0627\u0641 \u0622\u0644\u0648\u0645\u06cc\u0646\u06cc\u0648\u0645\u06cc\u060c \u06f2 \u0639\u062f\u062f \u0644\u0648\u0644\u0627 \u067e\u0627\u0631\u062a\u06cc\u0634\u0646\u06cc \u062f\u0631\u062c\u0647 \u06cc\u06a9 \u0686\u06cc\u0646\u06cc \u0648 \u06f1 \u0639\u062f\u062f \u062f\u0633\u062a\u06af\u06cc\u0631\u0647 \u0641\u0631\u0648\u062f\u06af\u0627\u0647\u06cc \u062f\u0631\u062c\u0647 \u06cc\u06a9 \u0686\u06cc\u0646\u06cc \u0645\u06cc\u200c\u0628\u0627\u0634\u062f.<br \/>\n    <\/small><br \/>\n    <input type=\"number\" id=\"door_count\" value=\"0\" min=\"0\" \/><\/p>\n<p>    <label for=\"discount_percent\">\ud83c\udf81 \u062f\u0631\u0635\u062f \u062a\u062e\u0641\u06cc\u0641 (\u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f):<\/label><br \/>\n    <input type=\"number\" id=\"discount_percent\" value=\"0\" min=\"0\" max=\"100\" \/><\/p>\n<p>    <button class=\"btn-calc\" onclick=\"calculatePrice()\">\ud83e\uddee \u0645\u062d\u0627\u0633\u0628\u0647 \u0642\u06cc\u0645\u062a<\/button><\/p>\n<div id=\"result\"><\/div>\n<div class=\"btn-group\">\n      <button class=\"btn-pdf\" onclick=\"generatePDF()\">\ud83d\udcc4 \u062f\u0631\u06cc\u0627\u0641\u062a PDF<\/button><br \/>\n      <button class=\"btn-wa\" onclick=\"sendWhatsApp()\">\ud83d\udcf2 \u0627\u0631\u0633\u0627\u0644 \u0648\u0627\u062a\u0633\u0627\u067e<\/button>\n    <\/div>\n<div class=\"note-box\">\n      \ud83d\udcac <strong>\u062a\u0648\u0636\u06cc\u062d \u0645\u0647\u0645:<\/strong><br \/>\n      \u0642\u06cc\u0645\u062a \u0646\u0647\u0627\u06cc\u06cc \u0634\u0627\u0645\u0644 \u0634\u06cc\u0634\u0647\u060c \u06cc\u0631\u0627\u0642\u200c\u0622\u0644\u0627\u062a\u060c \u0633\u0627\u062e\u062a\u060c \u0646\u0635\u0628 \u0648 \u062d\u0645\u0644 \u0627\u0633\u062a.<br \/>\n      \u0645\u0627 \u0628\u0627 \u062f\u0644 \u0648 \u062c\u0627\u0646 \u062f\u0631 \u06a9\u0646\u0627\u0631 \u0634\u0645\u0627 \u0647\u0633\u062a\u06cc\u0645 \u062a\u0627 \u0628\u0647\u062a\u0631\u06cc\u0646\u200c\u0647\u0627 \u0631\u0627 \u0628\u0633\u0627\u0632\u06cc\u0645.<br \/>\n      \u0647\u0631 \u0633\u0648\u0627\u0644\u06cc \u062f\u0627\u0634\u062a\u06cc\u060c \u0628\u0627 \u0639\u0634\u0642 \u067e\u0627\u0633\u062e\u06af\u0648 \u062e\u0648\u0627\u0647\u06cc\u0645 \u0628\u0648\u062f.\n    <\/div>\n<\/p><\/div>\n<p>  <script>\n    let latestSummary = \"\";<\/p>\n<p>    function calculatePrice() {\n      const length = parseFloat(document.getElementById(\"length\").value);\n      const height = parseFloat(document.getElementById(\"height\").value);\n      const type = document.getElementById(\"partition_type\").value;\n      const doorCount = parseInt(document.getElementById(\"door_count\").value);\n      const discountPercent = parseFloat(document.getElementById(\"discount_percent\").value);<\/p>\n<p>      if (isNaN(length) || isNaN(height) || length <= 0 || height <= 0) {\n        document.getElementById(\"result\").textContent = \"\u2757 \u0644\u0637\u0641\u0627\u064b \u0637\u0648\u0644 \u0648 \u0627\u0631\u062a\u0641\u0627\u0639 \u0645\u0639\u062a\u0628\u0631 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f\u061b \u0642\u0644\u0628\u0645 \u0628\u0631\u0627\u06cc\u062a \u0645\u06cc\u200c\u062a\u067e\u062f.\";\n        return;\n      }\n\n      const area = length * height;\n      const pricePerM2 = type === \"single\" ? 2400000 : 3600000;\n      const doorPrice = 11000000;\n\n      const partitionCost = area * pricePerM2;\n      const doorCost = doorCount * doorPrice;\n      const total = partitionCost + doorCost;\n      const discount = (discountPercent \/ 100) * total;\n      const final = total - discount;\n\n      latestSummary = `\ud83d\udd39  \u0645\u062d\u0627\u0633\u0628\u0647 \u0642\u06cc\u0645\u062a \u067e\u0627\u0631\u062a\u06cc\u0634\u0646 \u0634\u06cc\u0634\u0647 \u0627\u06cc \u0634\u0631\u06a9\u062a \u0631\u0648\u06cc\u0627\u0644 \u0634\u06cc\u0634\u0647  \n\ud83d\udd18 \u0646\u0648\u0639 \u067e\u0627\u0631\u062a\u06cc\u0634\u0646: ${type === \"single\" ? \"\u062a\u06a9 \u062c\u062f\u0627\u0631\u0647\" : \"\u062f\u0648 \u062c\u062f\u0627\u0631\u0647\"}  \n\ud83d\udccf \u0637\u0648\u0644: ${length} \u0645\u062a\u0631  \n\ud83d\udcd0 \u0627\u0631\u062a\u0641\u0627\u0639: ${height} \u0645\u062a\u0631  \n\u2795 \u0645\u0633\u0627\u062d\u062a: ${area.toFixed(2)} \u0645\u062a\u0631 \u0645\u0631\u0628\u0639  \n\ud83d\udcb0 \u0642\u06cc\u0645\u062a \u067e\u0627\u0631\u062a\u06cc\u0634\u0646 \u062b\u0627\u0628\u062a: ${partitionCost.toLocaleString()} \u062a\u0648\u0645\u0627\u0646  \n\ud83d\udeaa \u062f\u0631\u0628\u200c\u0647\u0627: ${doorCount} \u0639\u062f\u062f \u00d7 11,000,000 = ${doorCost.toLocaleString()} \u062a\u0648\u0645\u0627\u0646  \n\ud83c\udf81 \u062a\u062e\u0641\u06cc\u0641: ${discount.toLocaleString()} \u062a\u0648\u0645\u0627\u0646  \n\ud83d\udc8e \u0642\u06cc\u0645\u062a \u0646\u0647\u0627\u06cc\u06cc: ${final.toLocaleString()} \u062a\u0648\u0645\u0627\u0646`;\n\n      document.getElementById(\"result\").innerHTML = latestSummary.replace(\/\\n\/g, \"<br \/>\");\n    }<\/p>\n<p>    function generatePDF() {\n      if (!latestSummary) {\n        alert(\"\u0644\u0637\u0641\u0627\u064b \u0627\u0628\u062a\u062f\u0627 \u0645\u062d\u0627\u0633\u0628\u0647 \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f\u060c \u0639\u0632\u06cc\u0632\u0645.\");\n        return;\n      }\n      const { jsPDF } = window.jspdf;\n      const doc = new jsPDF();\n      doc.setFontSize(12);\n      doc.text(latestSummary, 10, 20);\n      doc.save(\"royal-shisheh-price.pdf\");\n    }<\/p>\n<p>    function sendWhatsApp() {\n      if (!latestSummary) {\n        alert(\"\u0644\u0637\u0641\u0627\u064b \u0627\u0628\u062a\u062f\u0627 \u0645\u062d\u0627\u0633\u0628\u0647 \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f\u060c \u062c\u0627\u0646 \u0645\u0646.\");\n        return;\n      }\n      const phone = \"989122390218\"; \/\/ \u0634\u0645\u0627\u0631\u0647 \u062e\u0648\u062f\u062a \u0631\u0627 \u0627\u06cc\u0646\u062c\u0627 \u0628\u06af\u0630\u0627\u0631\n      const encoded = encodeURIComponent(latestSummary);\n      window.open(`https:\/\/wa.me\/${phone}?text=${encoded}`, \"_blank\");\n    }\n  <\/script><br \/>\n<\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0645\u062d\u0627\u0633\u0628\u0647 \u0642\u06cc\u0645\u062a \u067e\u0627\u0631\u062a\u06cc\u0634\u0646 \u0634\u06cc\u0634\u0647\u200c\u0627\u06cc | \u0631\u0648\u06cc\u0627\u0644 \u0634\u06cc\u0634\u0647 \u0645\u062d\u0627\u0633\u0628\u0647 \u0642\u06cc\u0645\u062a \u067e\u0627\u0631\u062a\u06cc\u0634\u0646 \u0634\u06cc\u0634\u0647\u200c\u0627\u06cc \u0631\u0648\u06cc\u0627\u0644 \u0634\u06cc\u0634\u0647 \ud83d\udccf \u0637\u0648\u0644 \u067e\u0627\u0631\u062a\u06cc\u0634\u0646 (\u0645\u062a\u0631): \ud83d\udcd0 \u0627\u0631\u062a\u0641\u0627\u0639 \u067e\u0627\u0631\u062a\u06cc\u0634\u0646 (\u0645\u062a\u0631): \ud83d\udd18 \u0646\u0648\u0639 \u067e\u0627\u0631\u062a\u06cc\u0634\u0646: \u062a\u06a9 \u062c\u062f\u0627\u0631\u0647\u062f\u0648 \u062c\u062f\u0627\u0631\u0647 \ud83d\udeaa \u062a\u0639\u062f\u0627\u062f \u062f\u0631\u0628 \u0634\u06cc\u0634\u0647\u200c\u0627\u06cc \u0628\u0627 \u06cc\u0631\u0627\u0642\u200c\u0622\u0644\u0627\u062a: \u0647\u0631 \u062f\u0631\u0628 \u0634\u0627\u0645\u0644 \u06a9\u0644\u0627\u0641 \u0622\u0644\u0648\u0645\u06cc\u0646\u06cc\u0648\u0645\u06cc\u060c \u06f2 \u0639\u062f\u062f \u0644\u0648\u0644\u0627 \u067e\u0627\u0631\u062a\u06cc\u0634\u0646\u06cc \u062f\u0631\u062c\u0647 \u06cc\u06a9 \u0686\u06cc\u0646\u06cc \u0648 \u06f1 \u0639\u062f\u062f \u062f\u0633\u062a\u06af\u06cc\u0631\u0647 \u0641\u0631\u0648\u062f\u06af\u0627\u0647\u06cc \u062f\u0631\u062c\u0647 \u06cc\u06a9 \u0686\u06cc\u0646\u06cc \u0645\u06cc\u200c\u0628\u0627\u0634\u062f. \ud83c\udf81 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2726","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.royalshishe.ir\/index.php?rest_route=\/wp\/v2\/pages\/2726","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.royalshishe.ir\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.royalshishe.ir\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.royalshishe.ir\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.royalshishe.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2726"}],"version-history":[{"count":1,"href":"https:\/\/www.royalshishe.ir\/index.php?rest_route=\/wp\/v2\/pages\/2726\/revisions"}],"predecessor-version":[{"id":2729,"href":"https:\/\/www.royalshishe.ir\/index.php?rest_route=\/wp\/v2\/pages\/2726\/revisions\/2729"}],"wp:attachment":[{"href":"https:\/\/www.royalshishe.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}