Projekt

Obecné

Profil

Stáhnout (2.46 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

    
49
<span class="arrow arrow-right" onclick="openNav()"></span>
50
{{--<label for="logo" class="col-md-12 kaplicky" style="display: inline-block; text-align: center; padding: 1.25rem; padding-bottom: 0">{{ __('kaplicky') }}</label>
51
{{--<label for="logo" class="col-md-4 kaplicky">{{ __('kaplicky') }}</label>--}}
52
{{--<a class="navbar-brand kaplicky" href="{{ url('/') }}">
53
    {{  __('kaplicky') }}
54
</a>--}}
55

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

    
66
    }
67

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