add medium ad to replace reddit one

This commit is contained in:
Quincy Larson
2015-11-01 23:43:24 -08:00
parent 3b04646dff
commit 89b92c87cc

View File

@ -33,13 +33,14 @@ block content
.spacer .spacer
if (user && user.progressTimestamps.length > 100) if (user && user.progressTimestamps.length > 100)
#map-notice.col-xs-12.col-md-8.col-md-offset-2.hidden #map-notice.col-xs-12.col-md-8.col-md-offset-2.hidden
h2.text-center We have a subreddit h2.text-center Black, white, and read all over
img.thumbnail.img-center.img-responsive(src="http://i.imgur.com/lyd0bfM.jpg") a(href="http://i.imgur.com/UfBkxQw.png" data-lightbox="img-enlarge")
h4.text-center We welcome you to come ask questions and share your thoughts with our entire open source community. img.thumbnail.img-center.img-responsive(src="http://i.imgur.com/UfBkxQw.png")
a.button.btn.btn-block.btn-primary(href="https://reddit.com/r/freecodecamp" target="_blank") Check it out 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 .button-spacer
.text-center .text-center
a#hide-map-notice-button(href='#') Hide this a#hide-map-notice-button(href='#') Hide this forever
.spacer .spacer
.row .row
.col-xs-12.col-sm-8.col-sm-offset-2 .col-xs-12.col-sm-8.col-sm-offset-2
@ -144,7 +145,7 @@ block content
var username = !{JSON.stringify(user && user.username || '')}; var username = !{JSON.stringify(user && user.username || '')};
var lastCompleted = !{JSON.stringify(lastCompleted || false)} var lastCompleted = !{JSON.stringify(lastCompleted || false)}
$(document).ready(function () { $(document).ready(function () {
if (!localStorage || !localStorage.hideRedditNotice) { if (!localStorage || !localStorage.hideMediumNotice) {
$("#map-notice").removeClass("hidden"); $("#map-notice").removeClass("hidden");
} }
$("#hide-map-notice-button").on("click", function() { $("#hide-map-notice-button").on("click", function() {
@ -152,6 +153,6 @@ block content
setTimeout(function() { setTimeout(function() {
$("#map-notice").hide(); $("#map-notice").hide();
}, 1000); }, 1000);
localStorage.hideRedditNotice = "true"; localStorage.hideMediumNotice = "true";
}); });
}); });