diff --git a/assets/js/communities-of-practice.js b/assets/js/communities-of-practice.js index 2500c5639b..4553fc1a98 100644 --- a/assets/js/communities-of-practice.js +++ b/assets/js/communities-of-practice.js @@ -57,4 +57,10 @@ document.addEventListener("DOMContentLoaded", function() { } setMeetingTimes(); -}); \ No newline at end of file +}); + +function setSlackLink(slackLink) { + console.log("before:", slackLink); + localStorage.setItem("slackLink", slackLink); + console.log('after:', localStorage.getItem("slackLink")); +} \ No newline at end of file diff --git a/pages/communities-of-practice.html b/pages/communities-of-practice.html index cb03a5f279..bceaa826e5 100644 --- a/pages/communities-of-practice.html +++ b/pages/communities-of-practice.html @@ -71,7 +71,8 @@
+ The link below goes to a Slack channel inside Hack for LA's Slack Workspace. + If you are a member of our community already, selecting the link below will take to the channel. +
+ {% assign slackLink = localStorage.getItem('slackLink') %} + + {% include svg/icon-slack.svg %} + Join Slack Channel + ++ If you are not yet a member of our community, please see our + Getting Started + page to join. +
+