-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html.min
1 lines (1 loc) · 5.43 KB
/
index.html.min
1
<!doctype html><html lang=en><meta name=robots content=noindex><meta name=viewport content='width=device-width,initial-scale=1'><meta charset=UTF-8><title>Diet Doctor Communication Preference Center</title><link href='https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap' rel=stylesheet><style>body{font-family:Inter,sans-serif;font-weight:400;font-size:16.7px}input[type=checkbox]{transform:scale(1.5)}select{font-size:18px}</style><body style='max-width:640px;margin:0 auto;padding:1rem'><a href=https://www.dietdoctor.com/ target=_top>⬅️ Return to Diet Doctor</a><br><svg width=48 height=64 viewBox='0 0 48 64' fill=none xmlns=http://www.w3.org/2000/svg style=margin-top:1rem><path d='M15.9326 0H0V8.00167H15.9326C29.1301 8.00167 39.8248 18.7439 39.8248 32C39.8248 45.2561 29.1234 55.9983 15.9326 55.9983H0V64H15.9326C33.5248 64 47.7911 49.6703 47.7911 32C47.7911 14.3297 33.5248 0 15.9326 0Z' fill=#1A1A1A /><path d='M31.8585 32C31.8585 23.1648 24.7287 15.9967 15.9259 15.9967H0V47.9967H15.9326C24.7287 48.0033 31.8585 40.8352 31.8585 32ZM7.96629 23.9983H15.9326C20.334 23.9983 23.8989 27.5791 23.8989 32C23.8989 36.4209 20.334 40.0017 15.9326 40.0017H7.96629V23.9983Z' fill=#1A1A1A /></svg><h1>Diet Doctor<br>Communication Preference Center 📢</h1><form action={{preference_center_submit_url}} method=POST accept-charset=UTF-8><ul style=display:flex;flex-direction:column;padding:0><li style=display:flex;flex-direction:row;justify-items:center;justify-content:space-between;margin-top:1rem;display:none><label for=email_global>Global Subscription State:</label> <select id=email_global name='{% form_field_name :email_global_state %}'><option value=opted_in>✅ Subscribed<option value=unsubscribed>❌ Unsubscribed</select><li style=display:flex;flex-direction:row;justify-items:center;justify-content:space-between;margin-top:1rem><label for=english_newsletter style=font-weight:500>🇺🇸 English - Newsletter:</label> <select id=english_newsletter name='{% form_field_name :subscription_group 84e6f8c3-a99a-4da8-9e16-9207785a7a44 %}'><option value=subscribed>✅ Subscribed<option value=unsubscribed>❌ Unsubscribed</select><li style=display:flex;flex-direction:row;justify-items:center;justify-content:space-between;margin-top:1rem><label for=english_program_diabetes style=font-weight:500>🇺🇸 English - Program - Diabetes:</label> <select id=english_program_diabetes name='{% form_field_name :subscription_group 3d5e83eb-bbbe-4f92-b7ad-a1e1f82d7129 %}'><option value=subscribed>✅ Subscribed<option value=unsubscribed>❌ Unsubscribed</select><li style=display:flex;flex-direction:row;justify-items:center;justify-content:space-between;margin-top:1rem><label for=english_program_new_me_reset style=font-weight:500>🇺🇸 English - Program - New Me Reset:</label> <select id=english_program_new_me_reset name='{% form_field_name :subscription_group 42ea2104-2eee-4be0-a205-6d1261c60a8e %}'><option value=subscribed>✅ Subscribed<option value=unsubscribed>❌ Unsubscribed</select><li style=display:flex;flex-direction:row;justify-items:center;justify-content:space-between;margin-top:1rem><label for=swedish_newsletter style=font-weight:500>🇸🇪 Swedish (Svenska) - Newsletter (Nyhetsbrev):</label> <select id=swedish_newsletter name='{% form_field_name :subscription_group c25c484c-7848-4a94-91e3-31619e656c69 %}'><option value=subscribed>✅ Subscribed<option value=unsubscribed>❌ Unsubscribed</select><li style=display:flex;flex-direction:row;justify-items:center;justify-content:space-between;margin-top:1rem><label for=swedish_program_diabetes style=font-weight:500>🇸🇪 Swedish (Svenska) - Program - Diabetes:</label> <select id=swedish_program_diabetes name='{% form_field_name :subscription_group b0907bac-b00c-4834-99b3-35d42445c496 %}'><option value=subscribed>✅ Subscribed<option value=unsubscribed>❌ Unsubscribed</select><li style=display:flex;flex-direction:row;justify-items:center;justify-content:space-between;margin-top:1rem><label for=spanish_newsletter style=font-weight:500>🇪🇸 Spanish (Español) - Newsletter (Boletín):</label> <select id=spanish_newsletter name='{% form_field_name :subscription_group 552354e8-2192-4bbc-b3eb-83723be5c183 %}'><option value=subscribed>✅ Subscribed<option value=unsubscribed>❌ Unsubscribed</select></ul><input type=submit value='💾 Save Preferences' style=font-size:1.6rem;margin-top:4px><br></form><script>function updateSubscriptionStatus(elementId,status){console.log('elementId',elementId),console.log('status',status);var element=document.getElementById(elementId);element?'subscribed'===status?(element.value='subscribed',element.checked=true):'opted_in'===status?(element.value='opted_in',element.checked=true):(element.value='unsubscribed',element.checked=false):console.error('Element not found:',elementId)}updateSubscriptionStatus('english_newsletter','{{ subscribed_state.${ 84e6f8c3-a99a-4da8-9e16-9207785a7a44 } }}'),updateSubscriptionStatus('english_program_diabetes','{{ subscribed_state.${ 3d5e83eb-bbbe-4f92-b7ad-a1e1f82d7129 } }}'),updateSubscriptionStatus('english_program_new_me_reset','{{ subscribed_state.${ 42ea2104-2eee-4be0-a205-6d1261c60a8e } }}'),updateSubscriptionStatus('swedish_newsletter','{{ subscribed_state.${ c25c484c-7848-4a94-91e3-31619e656c69 } }}'),updateSubscriptionStatus('swedish_program_diabetes','{{ subscribed_state.${ b0907bac-b00c-4834-99b3-35d42445c496 } }}'),updateSubscriptionStatus('spanish_newsletter','{{ subscribed_state.${ 552354e8-2192-4bbc-b3eb-83723be5c183 } }}')</script>