Line 416: | Line 416: | ||
<li><a href="#">Achievements</a> | <li><a href="#">Achievements</a> | ||
<ul> | <ul> | ||
− | <li><a href=" | + | <li><a href="#">Medal Requirements</a></li> |
</ul> | </ul> | ||
</li> | </li> | ||
Line 660: | Line 660: | ||
<ul id="achievements-sub" > | <ul id="achievements-sub" > | ||
− | <li><a href=" | + | <li><a href="https://2016.igem.org/Team:DTU-Denmark/achievements">Medal Requirements</a></li> |
</ul> | </ul> | ||
Line 781: | Line 781: | ||
} | } | ||
− | if ("ontouchstart" in window | + | if ("ontouchstart" in window) |
{ | { | ||
isTouch = true; | isTouch = true; | ||
Line 787: | Line 787: | ||
isTouch = false; | isTouch = false; | ||
} | } | ||
− | + | console.log(isTouch) | |
// Clear sub menues | // Clear sub menues | ||
Line 809: | Line 809: | ||
// Open sub menues | // Open sub menues | ||
− | $(document).ready(window.onmouseover=function(e) { | + | $(document).ready(window.onmouseover = function(e) { |
open_sub(e) | open_sub(e) | ||
}); | }); | ||
+ | |||
+ | |||
+ | window.addEventListener('touchstart', function(){ | ||
+ | console.log() | ||
+ | }); | ||
// Open current sub menue when the window opens | // Open current sub menue when the window opens |
Revision as of 10:27, 9 August 2016