update site
This commit is contained in:
parent
ce329df39b
commit
d226ea067b
3 changed files with 53 additions and 34 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 2.8 KiB |
|
|
@ -34,14 +34,19 @@ $(function() {
|
|||
});
|
||||
});
|
||||
|
||||
$("ul.menu-list li").click(function(e) {
|
||||
if (e.target.tagName === "LI") {
|
||||
console.log($(this).find("a"));
|
||||
window.location = $(this).find("a").attr("href");
|
||||
$("ul.menu-list").mousedown(function(e) {
|
||||
if (e.button === 1) {
|
||||
e.preventDefault();
|
||||
}
|
||||
else if (e.target.tagName === "P" || e.target.tagName === "IMG") {
|
||||
var anchor = $(e.target).siblings();
|
||||
window.location = anchor.attr("href");
|
||||
});
|
||||
|
||||
$("ul.menu-list li").click(function(e) {
|
||||
if (e.target.tagName !== "A") {
|
||||
var href = $(this).find("a").attr("href");
|
||||
if (e.button == 1)
|
||||
window.open(href, "_blank");
|
||||
else
|
||||
window.location = href;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue