Add SOTM advert

This commit is contained in:
Tom Hughes 2014-09-04 15:25:56 +01:00
parent 2d26d1f764
commit 15a7276a9f
5 changed files with 58 additions and 0 deletions

View file

@ -154,6 +154,15 @@ $(document).ready(function () {
$.cookie("_osm_location", OSM.locationCookie(map), { expires: expiry, path: "/" });
});
if ($.cookie('_osm_sotm') == 'hide') {
$('#sotm').hide();
}
$('#sotm .close').on('click', function() {
$('#sotm').hide();
$.cookie("_osm_sotm", 'hide', { expires: expiry });
});
if ($.cookie('_osm_welcome') == 'hide') {
$('.welcome').hide();
}