blob: ed5095f824476a6e0573f5f6b1c11ecc2607fcde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$(document).ready(function() {
if(window.location.search.substring(1).search("country_name") == -1) {
if (!$.cookie('has_seen_country_message')) {
$.ajax({
url: "/country_message",
dataType: 'html',
success: function(country_message){
if (country_message != ''){
$('#other-country-notice').html(country_message);
$('body:not(.front) #other-country-notice').show()
}
}
})
}
}
$('#other-country-notice').click(function() {
$('#other-country-notice').hide();
$.cookie('has_seen_country_message', 1, {expires: 365, path: '/'});
})
})
|