Eat, Drink, Shop Healthy Challenge

thumbnail Mega EDSH

label’).text()); $(“#bcpagetitle”).html(title.replace(“{0}”, “”)); } } //For directory item details page if ($(‘#catTitle’).length) { var title = “”; var url = “”; if ($(“.side-icos-lst.ico-medical li.active”).length) { title = $.trim($(“.side-icos-lst.ico-medical li.active”).text()); } if ($(“.side-icos-lst.ico-lifestyle li.active”).length) { title = $.trim($(“.side-icos-lst.ico-lifestyle li.active”).text()); } switch (title) { case “Bloodbanks”: url = $(location).attr(‘hostname’) + ‘/directory/blood-banks’; break; case “Clinics and Polyclinics”: url = $(location).attr(‘hostname’) + ‘/directory/clinics-and-polyclinics’; break; case “E-care Services”: url = “https://www.silverpages.sg/eldercare/searchByServices.aspx#.Vgi3ouyqqko”; break; case “Healthcare Professionals”: url = “https://www.moh.gov.sg/content/moh_web/home/medical-directory.html”; break; case “Hospitals”: url = $(location).attr(‘hostname’) + ‘/directory/hospitals’; break; case “Laboratories”: url = $(location).attr(‘hostname’) + ‘/directory/laboratories’; break; case “Retail Pharmacies”: url = $(location).attr(‘hostname’) + ‘/directory/retail-pharmacies’; break; case “Screening Centers”: url = $(location).attr(‘hostname’) + ‘/directory/hospitals’; break; case “Gyms @SG”: url = $(location).attr(‘hostname’) + ‘/directory/gyms’; break; case “Healthier Eateries”: url = $(location).attr(‘hostname’) + ‘/directory/healthier-eateries’; break; case “Parks @SG”: url = $(location).attr(‘hostname’) + ‘/directory/parks’; break; case “Quit Centres”: url = $(location).attr(‘hostname’) + ‘/directory/quit-centres’; break; case “Sports Facilities”: url = $(location).attr(‘hostname’) + ‘/directory/sports-facilities’; break; case “Water Sports Facilities”: url = $(location).attr(‘hostname’) + ‘/directory/water-sports-facilities’; break; } $(“#catTitle”).html(title); $(“#catUrl”).attr(“href”, validateOpenURL(url)); } }); function validateOpenURL(surl) { var url = parseURL(surl); var urlHostname = url.hostname.trim(); var homepage = “/” if (urlHostname == ”) { return surl; } else { if (urlHostname.toUpperCase() == location.hostname.trim().toUpperCase()) { return surl; } else return homepage; } } function parseURL(url) { var a = document.createElement(‘a’); a.href = url; return { source: url, protocol: a.protocol.replace(‘:’, ”), hostname: a.hostname, host: a.host, port: a.port, query: a.search, params: (function () { var ret = {}, seg = a.search.replace(/^?/, ”).split(‘&’), len = seg.length, i = 0, s; for (; i ]]]]>]]>

Eat, Drink, Shop Healthy Challenge

Enter the world of sure wins when you choose healthier.

Eat, Drink, Shop, Healthy CONTRIBUTED BY Health Promotion Board Health Promotion Board

136

Eat, Drink, Shop Healthy Challenge

Back to Top

Source

READ  Coronavirus updates: Fauci warns of 'stunning number of deaths'; LA county gets tough; defending Iditarod champ can't get dogs to Alaska - USA TODAY

Leave a Reply