add reddit ad to map
parent
debfb07ab8
commit
f8b8580e8b
|
@ -33,11 +33,10 @@ 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 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
|
||||
h2.text-center Reddit or not, here we come
|
||||
img.thumbnail.img-center.img-responsive(src="http://i.imgur.com/lyd0bfM.jpg")
|
||||
h4.text-center Come ask questions and share your thoughts with our entire open source community on our subreddit.
|
||||
a.button.btn.btn-block.btn-primary(href="https://reddit.com/r/freecodecamp" target="_blank") Check it out
|
||||
.button-spacer
|
||||
.text-center
|
||||
a#hide-map-notice-button(href='#') Hide this forever
|
||||
|
@ -158,7 +157,7 @@ block content
|
|||
var username = !{JSON.stringify(user && user.username || '')};
|
||||
var lastCompleted = !{JSON.stringify(lastCompleted || false)}
|
||||
$(document).ready(function () {
|
||||
if (!localStorage || !localStorage.hideMediumNotice) {
|
||||
if (!localStorage || !localStorage.hideRedditNotice) {
|
||||
$("#map-notice").removeClass("hidden");
|
||||
}
|
||||
$("#hide-map-notice-button").on("click", function(e) {
|
||||
|
@ -167,6 +166,6 @@ block content
|
|||
setTimeout(function() {
|
||||
$("#map-notice").hide();
|
||||
}, 1000);
|
||||
localStorage.hideMediumNotice = "true";
|
||||
localStorage.hideRedditNotice = "true";
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue