Home › Forums › JavaScript › Need help with Enquire.js › Reply To: Need help with Enquire.js
December 17, 2013 at 6:01 pm
#158558
mikes02
Participant
OK so I switched it to this and it seems to be working now, but my question is, how would I set it up so that if it’s not min-width: 64em I can append something else instead?
//Slider
$(".hero .col3").hover(function () {
$(this).find('.drawer-inner').stop(true, true).slideDown(100);
}, function(){
$(this).find('.drawer-inner').stop(true, true).slideUp(100);
});
//Home Page 3 Columns
enquire.register("screen and (min-width: 64em)", {
match : function() {
$(".drawer").show();
},
unmatch : function() {
$(".drawer").hide();
}
});