Projekt

Obecné

Profil

Stáhnout (2.3 KB) Statistiky
| Větev: | Tag: | Revize:
1
<div id="sidebar" 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 class="dropdown-item text-headline" href="{{ url('/') }}">home</a>
19

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

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

    
24
            <a class="dropdown-item text-headline" href="{{ url('/favartefacts') }}">my books</a>
25

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

    
28

    
29

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

    
32

    
33

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

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

    
46
</div>
47

    
48
<span class="arrow arrow-right" onclick="openNav()"></span>
49
{{--<label for="logo" class="col-md-4 kaplicky">{{ __('kaplicky') }}</label>--}}
50
{{--<a class="navbar-brand kaplicky" href="{{ url('/') }}">
51
    {{  __('kaplicky') }}
52
</a>--}}
53

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

    
64
    }
65

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