From 89b92c87ccb10b20003df0ba8811a586d50d1d3f Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Sun, 1 Nov 2015 23:43:24 -0800 Subject: [PATCH] add medium ad to replace reddit one --- server/views/challengeMap/show.jade | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/server/views/challengeMap/show.jade b/server/views/challengeMap/show.jade index 81e80307a1..e4eda1f201 100644 --- a/server/views/challengeMap/show.jade +++ b/server/views/challengeMap/show.jade @@ -33,13 +33,14 @@ block content .spacer if (user && user.progressTimestamps.length > 100) #map-notice.col-xs-12.col-md-8.col-md-offset-2.hidden - h2.text-center We have a subreddit - img.thumbnail.img-center.img-responsive(src="http://i.imgur.com/lyd0bfM.jpg") - h4.text-center We welcome you to come ask questions and share your thoughts with our entire open source community. - a.button.btn.btn-block.btn-primary(href="https://reddit.com/r/freecodecamp" target="_blank") Check it out + h2.text-center Black, white, and read all over + a(href="http://i.imgur.com/UfBkxQw.png" data-lightbox="img-enlarge") + img.thumbnail.img-center.img-responsive(src="http://i.imgur.com/UfBkxQw.png") + h4.text-center Our open source community now has a camper-run Medium publication. Read the best articles from your fellow campers, and even publish your own. + a.button.btn.btn-block.btn-primary(href="https://medium.freecodecamp.com" target="_blank") Check it out .button-spacer .text-center - a#hide-map-notice-button(href='#') Hide this + a#hide-map-notice-button(href='#') Hide this forever .spacer .row .col-xs-12.col-sm-8.col-sm-offset-2 @@ -144,7 +145,7 @@ block content var username = !{JSON.stringify(user && user.username || '')}; var lastCompleted = !{JSON.stringify(lastCompleted || false)} $(document).ready(function () { - if (!localStorage || !localStorage.hideRedditNotice) { + if (!localStorage || !localStorage.hideMediumNotice) { $("#map-notice").removeClass("hidden"); } $("#hide-map-notice-button").on("click", function() { @@ -152,6 +153,6 @@ block content setTimeout(function() { $("#map-notice").hide(); }, 1000); - localStorage.hideRedditNotice = "true"; + localStorage.hideMediumNotice = "true"; }); });