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