blob: 02f6d570de94f58c0e9199dfd63e965ca71010d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
$(document).ready(function($) {
//toggle hide/show popup box
$(".min_max").click(function(e) {
$('.toggle_box').slideToggle();
if($(".min_max").hasClass("min_btn")) {
$(".min_max").removeClass("min_btn");
$(".min_max").addClass("max_btn");
} else {
$(".min_max").removeClass("max_btn");
$(".min_max").addClass("min_btn");
}
e.preventDefault();
e.stopPropogation();
});
/******************
COOKIE NOTICE
******************/
if(getCookie('show_cookie_message') != 'no')
{
$('#cookie_box').show();
}
$(".closee_btn").click(function()
{
$('#cookie_box').animate({opacity:0 }, "slow");
setCookie('show_cookie_message','no');
return false;
});
});
/*function setCookie(cookie_name, value) {
var today = new Date();
var expire = new Date();
expire.setTime(today.getTime() + ( 2 * 60 * 60 * 1000));
document.cookie = cookie_name+"="+escape(value) + ";expires="+expire.toGMTString();
}*/
function getCookie(cookie_name)
{
if (document.cookie.length>0)
{
cookie_start = document.cookie.indexOf(cookie_name + "=");
if (cookie_start != -1)
{
cookie_start = cookie_start + cookie_name.length+1;
cookie_end = document.cookie.indexOf(";",cookie_start);
if (cookie_end == -1)
{
cookie_end = document.cookie.length;
}
return unescape(document.cookie.substring(cookie_start,cookie_end));
}
}
return "";
}
|