-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbcabus.js
More file actions
43 lines (40 loc) · 1.21 KB
/
bcabus.js
File metadata and controls
43 lines (40 loc) · 1.21 KB
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
$(document).ready(function() {
$favoriteList = $(".favoriteList");
$madeBy = $(".madeBy");
$closeMsg = $(".closeMadeBy");
$anni = $(".anniversaryBanner");
function getCookie(name) {
var dc = document.cookie;
var prefix = name + "=";
var begin = dc.indexOf("; " + prefix);
if (begin == -1) {
begin = dc.indexOf(prefix);
if (begin !== 0) return null;
}
else
{
begin += 2;
var end = document.cookie.indexOf(";", begin);
if (end == -1) {
end = dc.length;
}
}
return decodeURI(dc.substring(begin + prefix.length, end));
}
var favCookie = getCookie("favorite");
if (favCookie === null) {
Materialize.toast("Click the star to set a favorite town",6000);
}
/* var closeCookie = getCookie("madeby");
$closeMsg.click(function() {
$madeBy.slideUp(100);
}) */
$anni.click(function() {
$anni.slideUp(100);
})
$(".button-collapse").sideNav();
$('select').material_select();
$('input').change(function(){
$(this).removeClass('grey-text');
})
})