Projekt

Obecné

Profil

Stáhnout (2.5 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"> &#160;</li>
4
    <li class="nav-item"> &#160;</li>
5
    <li class="nav-item"> &#160;</li>
6
    <li class="nav-item"> &#160;</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
            <a class="dropdown-item text-headline" href="{{ url('/favartefacts') }}">my books</a>
30

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

    
33

    
34

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

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

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

    
50
</div>
51

    
52
<span class="arrow arrow-right" onclick="openNav()"></span>
53

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

    
64
    }
65

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