{"id":1465,"date":"2026-10-11T20:57:53","date_gmt":"2026-10-11T12:57:53","guid":{"rendered":"https:\/\/360mediskin.com\/?page_id=1465"},"modified":"2026-11-19T13:09:58","modified_gmt":"2026-11-19T05:09:58","slug":"review-output","status":"publish","type":"page","link":"https:\/\/360mediskin.com\/zh\/review-output\/","title":{"rendered":"Review Output"},"content":{"rendered":"\n<!-- Load HTML2Canvas -->\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/html2canvas\/1.4.1\/html2canvas.min.js\"><\/script>\n\n<div style=\"max-width: 600px; margin: 20px auto; padding: 20px; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); background: #ffffff; text-align: center; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;\">\n\n  <h2 style=\"color: #111827; margin-bottom: 6px; font-size: 22px; font-weight: 800;\">Your Review &amp; Studio Image \ud83c\udf89<\/h2>\n  <p style=\"color: #6B7280; margin-bottom: 20px; font-size: 14px;\">Customize your photo layout, badge colors, and filters before sharing!<\/p>\n\n  <!-- PHOTO STUDIO CONTAINER -->\n  <div id=\"photo-container\" style=\"display:none; margin-bottom: 25px; background: #F9FAFB; padding: 16px; border-radius: 12px; border: 1px solid #E5E7EB;\">\n    \n    <!-- CANVAS CARD (MERGED OUTPUT) -->\n    <div id=\"canvas-card\" style=\"position: relative; background: #000000; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.15); line-height: 0; width: 100%; aspect-ratio: 1 \/ 1;\">\n      \n      <!-- Dynamic Photo Grid Container -->\n      <div id=\"photo-grid\" style=\"display: grid; width: 100%; height: 100%; padding: 0; margin: 0; background: #000; transition: filter 0.3s ease; box-sizing: border-box;\">\n        <!-- Images dynamically populate here -->\n      <\/div>\n\n      <!-- Slogan Badge Text Overlay -->\n      <div id=\"slogan-badge-wrapper\" style=\"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 85%; text-align: center; pointer-events: none; z-index: 10;\">\n        <span id=\"overlay-slogan-text\" style=\"display: inline-block; padding: 10px 16px; border-radius: 8px; background: rgba(0, 0, 0, 0.7); color: #ffffff; font-size: 18px; font-weight: 900; line-height: 1.3; font-family: sans-serif; box-shadow: 0 4px 12px rgba(0,0,0,0.4); text-transform: uppercase; word-break: break-word;\">\n          \u2728 Loved My Experience at 360 Medi Skin \u2728\n        <\/span>\n      <\/div>\n\n    <\/div>\n\n    <!-- CONTROLS TOOLBAR -->\n    <div style=\"margin-top: 18px; text-align: left; background: #ffffff; padding: 14px; border-radius: 10px; border: 1px solid #E5E7EB;\">\n      \n      <!-- 1. Layout Chooser -->\n      <p style=\"font-weight: 700; font-size: 13px; color: #374151; margin: 0 0 8px 0; text-transform: uppercase; letter-spacing: 0.5px;\">1. Photo Layout<\/p>\n      <div style=\"display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px;\">\n        <button id=\"layout-btn-1\" onclick=\"setLayout('1')\" style=\"padding: 10px; border: 1px solid #D1D5DB; background: #fff; color: #374151; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: 0.2s;\">1 Square<\/button>\n        <button id=\"layout-btn-2\" onclick=\"setLayout('2')\" style=\"padding: 10px; border: 1px solid #D1D5DB; background: #fff; color: #374151; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: 0.2s;\">2 Side<\/button>\n        <button id=\"layout-btn-3\" onclick=\"setLayout('3')\" style=\"padding: 10px; border: 1px solid #D1D5DB; background: #fff; color: #374151; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: 0.2s;\">3 Featured<\/button>\n        <button id=\"layout-btn-4\" onclick=\"setLayout('4')\" style=\"padding: 10px; border: 1px solid #77CDD0; background: #77CDD0; color: #fff; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: 0.2s;\">4 Grid<\/button>\n      <\/div>\n\n      <!-- 2. Slogan Input -->\n      <p style=\"font-weight: 700; font-size: 13px; color: #374151; margin: 0 0 8px 0; text-transform: uppercase; letter-spacing: 0.5px;\">2. Edit Slogan Text<\/p>\n      <input type=\"text\" id=\"slogan-input\" oninput=\"updateSloganText()\" value=\"\u2728 Loved My Experience at 360 Medi Skin \u2728\" placeholder=\"Write custom slogan...\" style=\"width: 100%; padding: 10px; border-radius: 6px; border: 1px solid #D1D5DB; font-size: 13px; box-sizing: border-box; margin-bottom: 14px;\">\n\n      <!-- 3. Font Style & Swatches -->\n      <p style=\"font-weight: 700; font-size: 13px; color: #374151; margin: 0 0 8px 0; text-transform: uppercase; letter-spacing: 0.5px;\">3. Font Style &amp; Palette<\/p>\n      \n      <!-- Font Family Buttons -->\n      <div style=\"display: flex; gap: 6px; margin-bottom: 12px;\">\n        <button id=\"font-btn-sans\" onclick=\"setFont('sans-serif', 'sans')\" style=\"flex:1; padding: 8px; border: 1px solid #77CDD0; background: #77CDD0; color: #fff; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; transition: 0.2s;\">Modern<\/button>\n        <button id=\"font-btn-serif\" onclick=\"setFont('Georgia, serif', 'serif')\" style=\"flex:1; padding: 8px; border: 1px solid #D1D5DB; background: #fff; color: #374151; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; transition: 0.2s;\">Serif<\/button>\n        <button id=\"font-btn-impact\" onclick=\"setFont('Impact, sans-serif', 'impact')\" style=\"flex:1; padding: 8px; border: 1px solid #D1D5DB; background: #fff; color: #374151; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; transition: 0.2s;\">Impact<\/button>\n      <\/div>\n\n      <!-- Badge Background Swatches with Traffic Sign Clear Icon -->\n      <div style=\"margin-bottom: 10px;\">\n        <span style=\"font-size: 11px; font-weight: bold; color: #6B7280; display: block; margin-bottom: 6px;\">Badge Color:<\/span>\n        <div style=\"display: flex; gap: 8px; align-items: center;\">\n          <div style=\"display: flex; gap: 6px; align-items: center; overflow-x: auto; white-space: nowrap;\">\n            <span onclick=\"setBadgeBg('#000000')\" style=\"min-width: 24px; width: 24px; height: 24px; border-radius: 50%; background: #000; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; display: inline-block;\"><\/span>\n            <span onclick=\"setBadgeBg('#77CDD0')\" style=\"min-width: 24px; width: 24px; height: 24px; border-radius: 50%; background: #77CDD0; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; display: inline-block;\"><\/span>\n            <span onclick=\"setBadgeBg('#FF6B00')\" style=\"min-width: 24px; width: 24px; height: 24px; border-radius: 50%; background: #FF6B00; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; display: inline-block;\"><\/span>\n            <span onclick=\"setBadgeBg('#E1306C')\" style=\"min-width: 24px; width: 24px; height: 24px; border-radius: 50%; background: #E1306C; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; display: inline-block;\"><\/span>\n            <span onclick=\"setBadgeBg('#10B981')\" style=\"min-width: 24px; width: 24px; height: 24px; border-radius: 50%; background: #10B981; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; display: inline-block;\"><\/span>\n            <span onclick=\"setBadgeBg('#4B5563')\" style=\"min-width: 24px; width: 24px; height: 24px; border-radius: 50%; background: #4B5563; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; display: inline-block;\" title=\"Soft Grey\"><\/span>\n            \n            <!-- Circular Traffic Sign \"Clear \/ Transparent\" Button -->\n            <button onclick=\"setTransparentBadge()\" style=\"width: 26px; height: 26px; border-radius: 50%; border: 2px solid #DC2626; background: #FFFFFF; color: #DC2626; font-size: 13px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; flex-shrink: 0; box-shadow: 0 0 0 1px #ccc;\" title=\"Transparent Badge\">\n              \ud83d\udeab\n            <\/button>\n          <\/div>\n        <\/div>\n      <\/div>\n\n      <!-- Font Color Swatches -->\n      <div style=\"margin-bottom: 14px;\">\n        <span style=\"font-size: 11px; font-weight: bold; color: #6B7280; display: block; margin-bottom: 6px;\">Font Color:<\/span>\n        <div style=\"display: flex; gap: 6px; align-items: center; overflow-x: auto; white-space: nowrap; padding-bottom: 4px;\">\n          <span onclick=\"setFontColor('#FFFFFF')\" style=\"min-width: 24px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; display: inline-block;\"><\/span>\n          <span onclick=\"setFontColor('#FFD700')\" style=\"min-width: 24px; width: 24px; height: 24px; border-radius: 50%; background: #FFD700; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; display: inline-block;\"><\/span>\n          <span onclick=\"setFontColor('#000000')\" style=\"min-width: 24px; width: 24px; height: 24px; border-radius: 50%; background: #000000; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; display: inline-block;\"><\/span>\n          <span onclick=\"setFontColor('#77CDD0')\" style=\"min-width: 24px; width: 24px; height: 24px; border-radius: 50%; background: #77CDD0; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; display: inline-block;\"><\/span>\n          <span onclick=\"setFontColor('#E5E7EB')\" style=\"min-width: 24px; width: 24px; height: 24px; border-radius: 50%; background: #E5E7EB; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; display: inline-block;\" title=\"Soft Gray\"><\/span>\n          <span onclick=\"setFontColor('#38BDF8')\" style=\"min-width: 24px; width: 24px; height: 24px; border-radius: 50%; background: #38BDF8; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; display: inline-block;\" title=\"Soft Blue\"><\/span>\n          <span onclick=\"setFontColor('#FB7185')\" style=\"min-width: 24px; width: 24px; height: 24px; border-radius: 50%; background: #FB7185; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; display: inline-block;\" title=\"Coral Pink\"><\/span>\n        <\/div>\n      <\/div>\n\n      <!-- 4. Photo Filters -->\n      <p style=\"font-weight: 700; font-size: 13px; color: #374151; margin: 0 0 8px 0; text-transform: uppercase; letter-spacing: 0.5px;\">4. Photo Filter<\/p>\n      <div style=\"display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;\">\n        <button id=\"filter-btn-normal\" onclick=\"setFilter('none', 'normal')\" style=\"padding: 8px; border: 1px solid #77CDD0; background: #77CDD0; color: #fff; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; transition: 0.2s;\">Normal<\/button>\n        <button id=\"filter-btn-bright\" onclick=\"setFilter('brightness(1.1) contrast(1.05)', 'bright')\" style=\"padding: 8px; border: 1px solid #D1D5DB; background: #fff; color: #374151; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; transition: 0.2s;\">Bright<\/button>\n        <button id=\"filter-btn-warm\" onclick=\"setFilter('sepia(0.2) saturate(1.2)', 'warm')\" style=\"padding: 8px; border: 1px solid #D1D5DB; background: #fff; color: #374151; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; transition: 0.2s;\">Warm<\/button>\n        <button id=\"filter-btn-soft\" onclick=\"setFilter('contrast(0.95) brightness(1.05)', 'soft')\" style=\"padding: 8px; border: 1px solid #D1D5DB; background: #fff; color: #374151; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; transition: 0.2s;\">Soft<\/button>\n      <\/div>\n\n    <\/div>\n\n    <!-- Download Button -->\n    <button id=\"download-btn\" onclick=\"downloadMergedImage()\" style=\"margin-top: 15px; background-color: #77CDD0; color: white; padding: 14px 24px; border: none; border-radius: 8px; font-size: 15px; font-weight: bold; cursor: pointer; transition: 0.2s; width: 100%;\">\n      \u2b07\ufe0f Download Custom Photo\n    <\/button>\n  <\/div>\n\n  <!-- EDITABLE REVIEW TEXT BOX -->\n  <div style=\"background: #F9FAFB; border: 2px dashed #77CDD0; border-radius: 10px; padding: 18px; text-align: left; margin: 20px 0; position: relative;\">\n    <span style=\"position: absolute; top: -11px; right: 15px; background: #77CDD0; color: white; font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: bold;\">\n      \u270f\ufe0f Tap to Edit Review\n    <\/span>\n    <p id=\"review-text\" contenteditable=\"true\" style=\"margin: 0; color: #111827; font-size: 15px; line-height: 1.6; white-space: pre-line; outline: none;\">\n      Loading your 360MediSkin personalized review&#8230;\n    <\/p>\n  <\/div>\n\n  <!-- COPY BUTTON -->\n  <button id=\"copy-btn\" onclick=\"copyReviewText()\" style=\"background-color: #10B981; color: white; padding: 14px 28px; border: none; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.2s; width: 100%; margin-bottom: 20px;\">\n    \ud83d\udccb Copy Review Text\n  <\/button>\n\n  <!-- SOCIAL MEDIA QUICK LINKS -->\n  <div style=\"padding-top: 15px; border-top: 1px solid #E5E7EB;\">\n    <p style=\"font-weight: 700; color: #4B5563; margin-bottom: 12px; font-size: 14px;\">\n      Select platform to post your review:\n    <\/p>\n    \n    <div style=\"display: flex; flex-direction: column; gap: 10px;\">\n      \n      <!-- 2x2 Grid for Xiaohongshu, Facebook, Instagram, TikTok -->\n      <div style=\"display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;\">\n        <a href=\"https:\/\/xhslink.com\/m\/1fODVNxlsTD\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"position: relative; z-index: 99; background-color: #FF2442; color: white; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: bold; text-decoration: none; display: block;\">\n          \ud83d\udcd5 \u5c0f\u7ea2\u4e66\n        <\/a>\n\n        <!-- Facebook (Desktop New Tab & Mobile Fix) -->\n        <a href=\"https:\/\/www.facebook.com\/BedazzleBeautyAesthetic\" onclick=\"if (!\/Mobi|Android\/i.test(navigator.userAgent)) { window.open(this.href, '_blank'); return false; } else { window.location.href=this.href; return false; }\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"position: relative; z-index: 99; background-color: #1877F2; color: white; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: bold; text-decoration: none; display: block; text-align: center;\">\n          \ud83d\udc4d Facebook\n        <\/a>\n\n        <a href=\"https:\/\/www.instagram.com\/360_medi_skin\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"position: relative; z-index: 99; background-color: #E1306C; color: white; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: bold; text-decoration: none; display: block;\">\n          \ud83d\udcf8 Instagram\n        <\/a>\n\n        <a href=\"https:\/\/www.tiktok.com\/@360_medi_skin\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"position: relative; z-index: 99; background-color: #000000; color: white; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: bold; text-decoration: none; display: block;\">\n          \ud83c\udfb5 TikTok\n        <\/a>\n      <\/div>\n\n      <!-- Full-Width Google Review Button at Bottom -->\n      <a id=\"google-btn\" href=\"#\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"position: relative; z-index: 99; background-color: #4285F4; color: white; padding: 14px; border-radius: 8px; font-size: 15px; font-weight: bold; text-decoration: none; display: block; text-align: center;\">\n        \u2b50 Google Review\n      <\/a>\n\n    <\/div>\n  <\/div>\n<\/div>\n\n<script>\nlet globalImageList = [];\n\nfunction getUrlParameter(name) {\n    name = name.replace(\/[\\[]\/, '\\\\[').replace(\/[\\]]\/, '\\\\]');\n    var regex = new RegExp('[\\\\?&]' + name + '=([^&#]*)');\n    var results = regex.exec(window.location.search || window.location.hash || window.location.href);\n    if (!results) return null;\n    try {\n        return decodeURIComponent(results[1].replace(\/\\+\/g, ' '));\n    } catch(e) {\n        return unescape(results[1].replace(\/\\+\/g, ' '));\n    }\n}\n\nfunction updateSloganText() {\n    const val = document.getElementById('slogan-input').value;\n    document.getElementById('overlay-slogan-text').innerText = val || \"\u2728 360 MEDI SKIN \u2728\";\n}\n\nfunction setFont(fontFamily, key) {\n    document.getElementById('overlay-slogan-text').style.fontFamily = fontFamily;\n    ['sans', 'serif', 'impact'].forEach(k => {\n        const btn = document.getElementById('font-btn-' + k);\n        if (k === key) {\n            btn.style.background = '#77CDD0';\n            btn.style.color = '#fff';\n            btn.style.borderColor = '#77CDD0';\n        } else {\n            btn.style.background = '#fff';\n            btn.style.color = '#374151';\n            btn.style.borderColor = '#D1D5DB';\n        }\n    });\n}\n\nfunction setFontColor(colorHex) {\n    document.getElementById('overlay-slogan-text').style.color = colorHex;\n}\n\nfunction setBadgeBg(colorHex) {\n    const badge = document.getElementById('overlay-slogan-text');\n    badge.style.background = colorHex;\n    badge.style.boxShadow = '0 4px 12px rgba(0,0,0,0.4)';\n    badge.style.textShadow = 'none';\n}\n\nfunction setTransparentBadge() {\n    const badge = document.getElementById('overlay-slogan-text');\n    badge.style.background = 'transparent';\n    badge.style.boxShadow = 'none';\n    badge.style.textShadow = '0px 2px 8px rgba(0,0,0,0.9)';\n}\n\nfunction setFilter(filterCss, key) {\n    document.getElementById('photo-grid').style.filter = filterCss;\n    ['normal', 'bright', 'warm', 'soft'].forEach(k => {\n        const btn = document.getElementById('filter-btn-' + k);\n        if (k === key) {\n            btn.style.background = '#77CDD0';\n            btn.style.color = '#fff';\n            btn.style.borderColor = '#77CDD0';\n        } else {\n            btn.style.background = '#fff';\n            btn.style.color = '#374151';\n            btn.style.borderColor = '#D1D5DB';\n        }\n    });\n}\n\nfunction renderImages(urls, mode) {\n    const photoGrid = document.getElementById('photo-grid');\n    photoGrid.innerHTML = '';\n\n    for (let i = 1; i <= 4; i++) {\n        const btn = document.getElementById('layout-btn-' + i);\n        if (i == mode) {\n            btn.style.background = '#77CDD0';\n            btn.style.color = '#fff';\n            btn.style.borderColor = '#77CDD0';\n        } else {\n            btn.style.background = '#fff';\n            btn.style.color = '#374151';\n            btn.style.borderColor = '#D1D5DB';\n        }\n    }\n\n    let activeUrls = [...urls];\n\n    if (mode === '1') {\n        photoGrid.style.gridTemplateColumns = '1fr';\n        photoGrid.style.gridTemplateRows = '1fr';\n        activeUrls = activeUrls.slice(0, 1);\n    } else if (mode === '2') {\n        photoGrid.style.gridTemplateColumns = 'repeat(2, 1fr)';\n        photoGrid.style.gridTemplateRows = '1fr';\n        activeUrls = activeUrls.slice(0, 2);\n    } else if (mode === '3') {\n        photoGrid.style.gridTemplateColumns = 'repeat(2, 1fr)';\n        photoGrid.style.gridTemplateRows = '1fr 1fr';\n        activeUrls = activeUrls.slice(0, 3);\n    } else {\n        photoGrid.style.gridTemplateColumns = 'repeat(2, 1fr)';\n        photoGrid.style.gridTemplateRows = 'repeat(2, 1fr)';\n        activeUrls = activeUrls.slice(0, 4);\n    }\n\n    activeUrls.forEach((url, idx) => {\n        const img = document.createElement('img');\n        img.crossOrigin = \"anonymous\";\n        img.src = url;\n        img.style.width = '100%';\n        img.style.height = '100%';\n        img.style.objectFit = 'cover';\n        img.style.minHeight = '0';\n        img.style.display = 'block';\n\n        if (mode === '3' && idx === 0) {\n            img.style.gridColumn = '1 \/ span 2';\n        }\n\n        photoGrid.appendChild(img);\n    });\n}\n\nfunction setLayout(mode) {\n    if (globalImageList.length > 0) {\n        renderImages(globalImageList, mode);\n    }\n}\n\ndocument.addEventListener(\"DOMContentLoaded\", function() {\n    \/\/ 1. Render Review Text\n    const reviewText = getUrlParameter('review');\n    if (reviewText && reviewText.trim() !== '') {\n        document.getElementById('review-text').innerText = reviewText;\n    }\n\n    \/\/ 2. Dynamic Branch Google Link Mapping (Trimmed to handle trailing spaces like Damansara%20Utama%20)\n    const rawBranch = getUrlParameter('branch');\n    const branchName = rawBranch ? rawBranch.trim() : '';\n    const googleBtn = document.getElementById('google-btn');\n    const branchGoogleLinks = {\n        \"Taman Segar\": \"https:\/\/search.google.com\/local\/writereview?placeid=ChIJ-38Au7c1zDERUs2EwQ8IzRs\",\n        \"Bukit Jalil\": \"https:\/\/search.google.com\/local\/writereview?placeid=ChIJsZVHIeFLzDER_kgJJXom3Tc\",\n        \"Mahkota Cheras\": \"https:\/\/search.google.com\/local\/writereview?placeid=ChIJXRGlh5c0zDERhpMeziY9dJE\",\n        \"Taman Desa\": \"https:\/\/search.google.com\/local\/writereview?placeid=ChIJJeqMopNLzDER9cjaGnwQzPM\",\n        \"Damansara Utama\": \"https:\/\/search.google.com\/local\/writereview?placeid=ChIJ20pzzTVJzDERgsNFE-PqH6Q\"\n    };\n\n    if (branchName && branchGoogleLinks[branchName]) {\n        googleBtn.href = branchGoogleLinks[branchName];\n    } else {\n        googleBtn.href = \"https:\/\/search.google.com\/local\/writereview?placeid=ChIJ-38Au7c1zDERUs2EwQ8IzRs\"; \/\/ Default to Taman Segar HQ\n    }\n\n    \/\/ 3. Multi-Image Studio Initialization\n    const rawImageParam = getUrlParameter('image');\n    if (rawImageParam) {\n        const decodedParam = rawImageParam.trim();\n        if (decodedParam && decodedParam !== 'null' && decodedParam !== 'undefined') {\n            \n            if (decodedParam.includes('jotform.com\/uploads\/')) {\n                const lastSlashIdx = decodedParam.lastIndexOf('\/');\n                const baseUrl = decodedParam.substring(0, lastSlashIdx + 1);\n                const fileNamesString = decodedParam.substring(lastSlashIdx + 1);\n                globalImageList = fileNamesString.split(',').map(name => baseUrl + name.trim()).filter(n => n.length > 0);\n            } else {\n                globalImageList = decodedParam.split(',').map(url => url.trim()).filter(u => u.length > 0);\n            }\n\n            if (globalImageList.length > 0) {\n                renderImages(globalImageList, '4');\n                document.getElementById('photo-container').style.display = 'block';\n            }\n        }\n    }\n});\n\nfunction downloadMergedImage() {\n    const cardElement = document.getElementById('canvas-card');\n    const downloadBtn = document.getElementById('download-btn');\n    \n    downloadBtn.innerText = \"\u23f3 Generating Image...\";\n    \n    html2canvas(cardElement, {\n        useCORS: true,\n        allowTaint: true,\n        scale: 2\n    }).then(canvas => {\n        const link = document.createElement('a');\n        link.download = '360-Medi-Skin-Review.png';\n        link.href = canvas.toDataURL('image\/png');\n        link.click();\n        \n        downloadBtn.innerText = \"\u2705 Downloaded!\";\n        setTimeout(() => {\n            downloadBtn.innerText = \"\u2b07\ufe0f Download Custom Photo\";\n        }, 3000);\n    }).catch(err => {\n        console.error(\"Download error:\", err);\n        downloadBtn.innerText = \"\u274c Download Failed\";\n    });\n}\n\nfunction copyReviewText() {\n    const reviewText = document.getElementById('review-text').innerText;\n    navigator.clipboard.writeText(reviewText).then(function() {\n        const copyBtn = document.getElementById('copy-btn');\n        copyBtn.innerText = \"\u2705 Copied to Clipboard!\";\n        copyBtn.style.backgroundColor = \"#059669\";\n        setTimeout(function() {\n            copyBtn.innerText = \"\ud83d\udccb Copy Review Text\";\n            copyBtn.style.backgroundColor = \"#10B981\";\n        }, 3000);\n    });\n}\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Your Review &amp; Studio Image \ud83c\udf89 Customize your photo layout, badge colors, and filters before sharing! \u2728 Loved My Experience at 360 Medi Skin \u2728 1. Photo Layout 1 Square 2 Side 3 Featured 4 Grid 2. Edit Slogan Text 3. Font Style &amp; Palette Modern Serif Impact Badge Color: \ud83d\udeab Font Color: 4. Photo [&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-1465","page","type-page","status-publish","hentry"],"blocksy_meta":{"has_hero_section":"disabled","content_style_source":"custom","vertical_spacing_source":"custom","content_area_spacing":"none","styles_descriptor":{"styles":{"desktop":"[data-prefix=\"single_page\"] [class*=\"ct-container\"] > article[class*=\"post\"] {--has-boxed:var(--false);--has-wide:var(--true);}","tablet":"","mobile":""},"google_fonts":[],"version":6},"disable_header":"yes","disable_footer":"yes"},"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/360mediskin.com\/zh\/wp-json\/wp\/v2\/pages\/1465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/360mediskin.com\/zh\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/360mediskin.com\/zh\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/360mediskin.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/360mediskin.com\/zh\/wp-json\/wp\/v2\/comments?post=1465"}],"version-history":[{"count":37,"href":"https:\/\/360mediskin.com\/zh\/wp-json\/wp\/v2\/pages\/1465\/revisions"}],"predecessor-version":[{"id":1507,"href":"https:\/\/360mediskin.com\/zh\/wp-json\/wp\/v2\/pages\/1465\/revisions\/1507"}],"wp:attachment":[{"href":"https:\/\/360mediskin.com\/zh\/wp-json\/wp\/v2\/media?parent=1465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}