タブレットとモバイル レスポンシブのナビゲーション メニュー バーは消えますが、他のページではナビゲーション メニュー バーが表示されます。ナビゲーションメニューのドロップダウン「ゲラページ」のみが消えます。そして、これは私が見つけたエラーです:
"Uncaught TypeError: Object function (e,t){return new v.fn.init(e,t,n)} has no method 'format'
(anonymous function)
o
p.fireWith
e.extend.ready
c.addEventListener. B"
// 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();
});