Lines 13-31
enquire.register("screen and (max-width:608px)", {
Link Here
|
13 |
|
13 |
|
14 |
enquire.register("screen and (min-width:768px)", { |
14 |
enquire.register("screen and (min-width:768px)", { |
15 |
match : function() { |
15 |
match : function() { |
16 |
$(".menu-collapse").show(); |
16 |
facetMenu( "show" ); |
17 |
}, |
17 |
}, |
18 |
unmatch : function() { |
18 |
unmatch : function() { |
19 |
$(".menu-collapse").hide(); |
19 |
facetMenu( "hide" ); |
20 |
} |
20 |
} |
21 |
}); |
21 |
}); |
22 |
|
22 |
|
|
|
23 |
function facetMenu( action ){ |
24 |
if( action == "show" ){ |
25 |
$(".menu-collapse-toggle").unbind("click", facetHandler ) |
26 |
$(".menu-collapse").show(); |
27 |
} else { |
28 |
$(".menu-collapse-toggle").bind("click", facetHandler ).removeClass("menu-open"); |
29 |
$(".menu-collapse").hide(); |
30 |
} |
31 |
} |
32 |
|
33 |
var facetHandler = function(e){ |
34 |
e.preventDefault(); |
35 |
$(this).toggleClass("menu-open"); |
36 |
$(".menu-collapse").toggle(); |
37 |
}; |
38 |
|
23 |
$(document).ready(function(){ |
39 |
$(document).ready(function(){ |
24 |
$(".close").click(function(){ |
40 |
$(".close").click(function(){ |
25 |
window.close(); |
41 |
window.close(); |
26 |
}); |
42 |
}); |
27 |
$(".focus").focus(); |
43 |
$(".focus").focus(); |
28 |
|
44 |
|
|
|
45 |
if( $(window).width() < 768 ){ |
46 |
facetMenu("hide"); |
47 |
} |
48 |
|
29 |
// clear the basket when user logs out |
49 |
// clear the basket when user logs out |
30 |
$("#logout").click(function(){ |
50 |
$("#logout").click(function(){ |
31 |
var nameCookie = "bib_list"; |
51 |
var nameCookie = "bib_list"; |
Lines 46-56
$(document).ready(function(){
Link Here
|
46 |
mem.removeAttr("style"); |
66 |
mem.removeAttr("style"); |
47 |
} |
67 |
} |
48 |
}); |
68 |
}); |
49 |
$(".menu-collapse-toggle").on("click",function(e){ |
69 |
|
50 |
e.preventDefault(); |
|
|
51 |
$(this).toggleClass("menu-open"); |
52 |
$(".menu-collapse").toggle(); |
53 |
}); |
54 |
$(".loginModal-trigger").on("click",function(e){ |
70 |
$(".loginModal-trigger").on("click",function(e){ |
55 |
e.preventDefault(); |
71 |
e.preventDefault(); |
56 |
$("#loginModal").modal("show"); |
72 |
$("#loginModal").modal("show"); |
57 |
- |
|
|