平板和移动响应中的导航菜单栏消失,但在其他页面中显示导航菜单栏。导航菜单下拉“厨房页面”仅消失。这是我发现的错误:
“未捕获的类型错误:对象函数 (e,t){return new v.fn.init(e,t,n)} 没有方法‘格式’
(匿名函数)
o
p.fireWith
e.extend.ready
c.addEventListener。乙"
// validate Contact Form
var validator = $("#contactForm").validate({
rules: {
contactname: {
required: true,
minlength: 2
},
email: {
required: true,
email: true
},
message: {
required: true,
minlength: 10
}
},
messages: {
contactname: {
required: "Please enter your name",
minlength: jQuery.format("Your name needs to be at least {0} characters")
},
email: {
required: "Please enter a valid email address",
minlength: "Please enter a valid email address"
},
message: {
required: "You need to enter a message!",
minlength: jQuery.format("Enter at least {0} characters")
}
},
// set this class to error-labels to indicate valid fields
success: function(label) {
label.addClass("checked");
}
});
// Drop Down Menu
$('ul#main-menu').superfish({
delay: 600,
animation: {opacity:'show',height:'show'},
speed: 'fast',
autoArrows: true,
dropShadows: false
});
// Slides Loader
$(".slider").removeClass("slide-loader");
$(".slider-single").removeClass("slide-loader-single");
// Mobile Menu
// Create the dropdown base
$("<select />").appendTo("#main-menu-wrapper");
// Create default option "Go to..."
$("<option />", {
"selected": "selected",
"value" : "",
"text" : "Go to..."
}).appendTo("#main-menu-wrapper select");
// Populate dropdown with menu items
$("#main-menu a").each(function() {
var el = $(this);
$("<option />", {
"value" : el.attr("href"),
"text" : el.text()
}).appendTo("#main-menu-wrapper select");
});
// To make dropdown actually work
$("#main-menu-wrapper select").change(function() {
window.location = $(this).find("option:selected").val();
});