-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
53 lines (33 loc) · 1.29 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
?>
<link href='http://fonts.googleapis.com/css?family=Cookie' rel='stylesheet' type='text/css'>
<body>
<header class="header-login-signup">
<div class="header-limiter">
<h1><a href="reset.php">🌌Gros<span>3D🌌</span></a>
</h1>
<nav>
<a href="contact.php">Nous contacter</a>
</nav>
<ul>
<li><a href="login_page.php">Login</a></li>
<li><a href="signup_page.php">Sign up</a></li>
</ul>
</div>
</header>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
var userMenu = $('.header-user-dropdown .header-user-menu');
userMenu.on('touchend', function (e) {
userMenu.addClass('show');
e.preventDefault();
e.stopPropagation();
});
// This code makes the user dropdown work on mobile devices
$(document).on('touchend', function (e) {
// If the page is touched anywhere outside the user menu, close it
userMenu.removeClass('show');
});
});
</script>