Line 193: | Line 193: | ||
content:"•";/*\00b7*/ | content:"•";/*\00b7*/ | ||
padding-right:15px; | padding-right:15px; | ||
− | color: | + | color:white; /*#B81414*/ |
} | } | ||
Line 780: | Line 780: | ||
} | } | ||
} | } | ||
+ | |||
+ | if ("ontouchstart" in window || navigator.msMaxTouchPoints) | ||
+ | { | ||
+ | isTouch = true; | ||
+ | } else { | ||
+ | isTouch = false; | ||
+ | } | ||
+ | console.log(isTouch) | ||
// Clear sub menues | // Clear sub menues | ||
Line 787: | Line 795: | ||
} | } | ||
− | // Open sub | + | // Open sub menue |
− | + | var open_sub = function(e){ | |
var navig = e.target.className | var navig = e.target.className | ||
navig = navig.split(" ")[0] | navig = navig.split(" ")[0] | ||
Line 798: | Line 806: | ||
current_sub_bar.className = "active-sub"; | current_sub_bar.className = "active-sub"; | ||
} | } | ||
+ | } | ||
+ | |||
+ | // Open sub menues | ||
+ | $(document).ready(window.onmouseover=function(e) { | ||
+ | open_sub(e) | ||
}); | }); | ||
Revision as of 09:37, 9 August 2016