Projekt

Obecné

Profil

Stáhnout (2.38 KB) Statistiky
| Větev: | Tag: | Revize:
1
<div id="mySidenav" class="sidenav">
2
    <a href="javascript:void(0)" class="arrow arrow-left" s onclick="closeNav()"></a>
3
    <li class="nav-item"></li>
4
    <li class="nav-item"></li>
5
    <li class="nav-item"></li>
6
    <li class="nav-item"></li>
7
        @guest
8
        <li class="nav-item">
9
            <a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a>
10
        </li>
11
        @if (Route::has('register'))
12
        <li class="nav-item">
13
            <a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a>
14
        </li>
15
        @endif
16
        @else
17
        <li class="nav-item dropdown">
18
           {{-- <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
19
                {{ Auth::user()->name }} <span class="caret"></span>
20
            </a>
21

    
22
            <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">--}}
23
            <a class="dropdown-item text-headline" href="{{ url('/') }}">home</a>
24

    
25
            <a class="dropdown-item text-headline" href="{{ url('/categories') }}">topics</a>
26

    
27
            <a class="dropdown-item text-headline" href="{{ url('/artefact') }}">books</a>
28

    
29

    
30

    
31
                <a class="dropdown-item text-headline" href="{{ url('/favmetadata') }}">notes</a>
32

    
33
                <a class="dropdown-item text-headline" href="{{ url('/favartefacts') }}">charts</a>
34

    
35
                <a class="dropdown-item text-headline" href="{{ route('logout') }}"
36
                   onclick="event.preventDefault();
37
                                                     document.getElementById('logout-form').submit();">
38
                    {{ __('logout') }}
39
                </a>
40

    
41
                <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
42
                    @csrf
43
                </form>
44
            {{-- </div>--}}
45
        </li>
46
        @endguest
47

    
48
</div>
49

    
50
<span class="arrow arrow-right" onclick="openNav()"></span>
51

    
52
<script>
53
    function openNav() {
54
        var x = window.matchMedia("(max-width: 540px)")
55
        if(x.matches){
56
            document.getElementById("mySidenav").style.width = "50vw";
57
        }
58
        else{
59
            document.getElementById("mySidenav").style.width = "250px";
60
        }
61

    
62
    }
63

    
64
    function closeNav() {
65
        document.getElementById("mySidenav").style.width = "0";
66
    }
67
</script>
(2-2/2)