{"id":5862,"date":"2025-09-04T10:42:48","date_gmt":"2025-09-04T15:42:48","guid":{"rendered":"https:\/\/madlysane.com\/?page_id=5862"},"modified":"2025-09-04T10:42:48","modified_gmt":"2025-09-04T15:42:48","slug":"mini-parenting-playbook","status":"publish","type":"page","link":"https:\/\/madlysane.site\/en\/mini-parenting-playbook\/","title":{"rendered":"Mini Parenting Playbook"},"content":{"rendered":"\n<!-- Mini Parenting Playbook with Free PDF + Optional Donation -->\n<div id=\"playbook-widget\" style=\"max-width:500px;margin:20px auto;padding:20px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;box-shadow:0 4px 12px rgba(0,0,0,0.05);\">\n  <h2 style=\"margin-top:0;color:#1f2937;\">Mini Parenting Playbook<\/h2>\n  <p style=\"color:#475569;\">Select your child\u2019s age range to see actionable tips. You\u2019ll get a free, personalized PDF \u2014 and if it helps, we invite you to donate $1 to support more resources like this.<\/p>\n\n  <label for=\"age-range\" style=\"display:block;margin-top:12px;font-weight:600;\">Select your child\u2019s age range:<\/label>\n  <select id=\"age-range\" style=\"width:100%;padding:8px;margin-top:4px;border:1px solid #cbd5e1;border-radius:8px;\">\n    <option value=\"\">&#8212; Choose an age range &#8212;<\/option>\n    <option value=\"toddler\">Toddler (1\u20133)<\/option>\n    <option value=\"preschool\">Preschool (3\u20135)<\/option>\n    <option value=\"school\">School Age (6\u201312)<\/option>\n    <option value=\"teen\">Teen (13+)<\/option>\n  <\/select>\n\n  <div id=\"playbook-result\" style=\"display:none;margin-top:20px;padding:15px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;\">\n    <h3 style=\"margin-top:0;color:#1f2937;\">Your Mini Playbook<\/h3>\n    <ul id=\"tips-list\" style=\"color:#334155;padding-left:20px;\"><\/ul>\n    <button id=\"download-btn\" style=\"margin-top:16px;width:100%;padding:10px;background:#2563eb;color:#fff;font-weight:700;border:none;border-radius:8px;cursor:pointer;\">\n      Download Your Free PDF\n    <\/button>\n\n    <!-- Donation -->\n    <div id=\"donate-prompt\" style=\"display:none;margin-top:16px;padding:12px;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:8px;\">\n      <p style=\"margin:0;color:#065f46;\"><strong>Did this help?<\/strong> If you found value in your playbook, consider donating $1 to support more free tools for parents.<\/p>\n      <a href=\"https:\/\/www.paypal.com\/donate\/?custom_amount=&#038;amount=&#038;hosted_button_id=6SLFQVVMMHXEJ\" target=\"_blank\" style=\"display:inline-block;margin-top:8px;padding:8px 12px;background:#10b981;color:#fff;font-weight:700;border-radius:8px;text-decoration:none;\">Donate $1<\/a>\n    <\/div>\n\n    <!-- Social Share -->\n    <div id=\"share-buttons\" style=\"display:none;margin-top:16px;\">\n      <p style=\"margin:0 0 8px;color:#334155;\">Share your playbook:<\/p>\n      <a id=\"share-fb\" href=\"#\" target=\"_blank\" style=\"margin-right:8px;\">Facebook<\/a>\n      <a id=\"share-tw\" href=\"#\" target=\"_blank\" style=\"margin-right:8px;\">Twitter\/X<\/a>\n      <a id=\"share-wa\" href=\"#\" target=\"_blank\">WhatsApp<\/a>\n    <\/div>\n  <\/div>\n<\/div>\n\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jspdf\/2.5.1\/jspdf.umd.min.js\"><\/script>\n<script>\n  const tips = {\n    toddler: [\n      \"Offer two simple choices to build independence.\",\n      \"Narrate what you see them doing to build language skills.\",\n      \"Keep routines predictable to reduce meltdowns.\"\n    ],\n    preschool: [\n      \"Use play to teach problem solving and sharing.\",\n      \"Praise effort, not just results.\",\n      \"Give clear, short instructions and check for understanding.\"\n    ],\n    school: [\n      \"Involve them in setting household rules.\",\n      \"Encourage hobbies that build confidence.\",\n      \"Model healthy screen habits.\"\n    ],\n    teen: [\n      \"Listen more than you lecture.\",\n      \"Negotiate boundaries together.\",\n      \"Support their independence while staying connected.\"\n    ]\n  };\n\n  const ageSelect = document.getElementById('age-range');\n  const resultDiv = document.getElementById('playbook-result');\n  const tipsList = document.getElementById('tips-list');\n  const downloadBtn = document.getElementById('download-btn');\n  const donatePrompt = document.getElementById('donate-prompt');\n  const shareButtons = document.getElementById('share-buttons');\n\n  ageSelect.addEventListener('change', () => {\n    const age = ageSelect.value;\n    if (!age) {\n      resultDiv.style.display = 'none';\n      return;\n    }\n    tipsList.innerHTML = '';\n    tips[age].forEach(t => {\n      const li = document.createElement('li');\n      li.textContent = t;\n      tipsList.appendChild(li);\n    });\n    resultDiv.style.display = 'block';\n    donatePrompt.style.display = 'none';\n    shareButtons.style.display = 'none';\n  });\n\n  downloadBtn.addEventListener('click', () => {\n    const age = ageSelect.value;\n    if (!age) return;\n\n    const { jsPDF } = window.jspdf;\n    const doc = new jsPDF();\n\n    \/\/ Header\n    doc.setFillColor(37, 99, 235);\n    doc.rect(0, 0, 210, 20, 'F');\n    doc.setTextColor(255, 255, 255);\n    doc.setFontSize(16);\n    doc.text(\"MadlySane.com \u2014 Mini Parenting Playbook\", 10, 13);\n\n    \/\/ Body\n    doc.setTextColor(0, 0, 0);\n    doc.setFontSize(14);\n    doc.text(`Age Range: ${ageSelect.options[ageSelect.selectedIndex].text}`, 10, 30);\n    doc.setFontSize(12);\n    doc.text(\"Action Plan Checklist:\", 10, 40);\n    tips[age].forEach((tip, i) => {\n      doc.text(`\u2610 ${tip}`, 10, 50 + i * 10);\n    });\n\n    \/\/ Weekly Goal\n    doc.text(\"This Week\u2019s Goal: ___________________________\", 10, 90);\n    doc.text(\"Reflection: _________________________________\", 10, 100);\n\n    \/\/ Tracker Table\n    doc.text(\"7-Day Progress Tracker:\", 10, 115);\n    const days = [\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\",\"Sun\"];\n    days.forEach((day, i) => {\n      doc.text(`${day}: ______`, 10 + (i % 4) * 50, 125 + Math.floor(i \/ 4) * 10);\n    });\n\n    \/\/ Footer\n    doc.setFontSize(10);\n    doc.setTextColor(100, 100, 100);\n    doc.text(\"\u00a9 \" + new Date().getFullYear() + \" MadlySane.com \u2014 For more resources, visit MadlySane.com\", 10, 280);\n\n    doc.save(`Parenting_Playbook_${age}.pdf`);\n\n    \/\/ Show donation + share\n    donatePrompt.style.display = 'block';\n    shareButtons.style.display = 'block';\n\n    \/\/ Set share links\n    const shareText = encodeURIComponent(`I just got my free Mini Parenting Playbook for ${ageSelect.options[ageSelect.selectedIndex].text} from MadlySane.com!`);\n    const shareUrl = encodeURIComponent(window.location.href);\n    document.getElementById('share-fb').href = `https:\/\/www.facebook.com\/sharer\/sharer.php?u=${shareUrl}&quote=${shareText}`;\n    document.getElementById('share-tw').href = `https:\/\/twitter.com\/intent\/tweet?text=${shareText}&url=${shareUrl}`;\n    document.getElementById('share-wa').href = `https:\/\/api.whatsapp.com\/send?text=${shareText}%20${shareUrl}`;\n  });\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>Mini Parenting Playbook Select your child\u2019s age range to see actionable tips. You\u2019ll get a free, personalized PDF \u2014 and if it helps, we invite you to donate $1 to support more resources like this. Select your child\u2019s age range: &#8212; Choose an age range &#8212;Toddler (1\u20133)Preschool (3\u20135)School Age (6\u201312)Teen (13+) Your Mini Playbook Download [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-5862","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/madlysane.site\/en\/wp-json\/wp\/v2\/pages\/5862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/madlysane.site\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/madlysane.site\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/madlysane.site\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/madlysane.site\/en\/wp-json\/wp\/v2\/comments?post=5862"}],"version-history":[{"count":5,"href":"https:\/\/madlysane.site\/en\/wp-json\/wp\/v2\/pages\/5862\/revisions"}],"predecessor-version":[{"id":5869,"href":"https:\/\/madlysane.site\/en\/wp-json\/wp\/v2\/pages\/5862\/revisions\/5869"}],"wp:attachment":[{"href":"https:\/\/madlysane.site\/en\/wp-json\/wp\/v2\/media?parent=5862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}