Projekt

Obecné

Profil

Stáhnout (3.31 KB) Statistiky
| Větev: | Tag: | Revize:
1
<div id="sidebar" class="sidenav">
2
    <a href="javascript:void(0)" class="arrow arrow-left" 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="dropdown-item text-headline" href="{{ url('/') }}">{{ __('Home') }}</a>
10
            <a class="dropdown-item text-headline" href="{{ route('login') }}">{{ __('Login') }}</a>
11
        </li>
12
        @if (Route::has('register'))
13
            <li class="nav-item">
14
                <a class="dropdown-item text-headline" href="{{ route('register') }}">{{ __('Register') }}</a>
15
            </li>
16
        @endif
17
    @else
18
        <li class="nav-item dropdown">
19
            <a class="dropdown-item text-headline" href="{{ url('/') }}">home</a>
20

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

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

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

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

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

    
31
        </li>
32
        <li class="nav-item dropdown separator">
33
            <a class="dropdown-item text-headline" href="{{ url('/czech') }}">česky</a>
34
        </li>
35
        <li class="nav-item dropdown">
36
            <a class="dropdown-item text-headline" href="{{ route('logout') }}"
37
               onclick="event.preventDefault();
38
                                                     document.getElementById('logout-form').submit();">
39
                {{ __('logout') }}
40
            </a>
41

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

    
48
</div>
49

    
50
<nav class="navbar navbar-expand-md navbar-light black shadow-sm top-bar">
51
    <span class="arrow arrow-right" onclick="openNav()"></span>
52
    @if(!Request::is('login')&&!Request::is('register'))
53
        <a for="logo" class="logo-kaplicky kaplicky" href="{{ url('/') }}">{{ __('kaplicky') }}</a>
54
    @endif
55
</nav>
56
{{--<label for="logo" class="col-md-12 kaplicky" style="display: inline-block; text-align: center; padding: 1.25rem; padding-bottom: 0">{{ __('kaplicky') }}</label>
57
{{--<label for="logo" class="col-md-4 kaplicky">{{ __('kaplicky') }}</label>--}}
58
{{--<a class="navbar-brand kaplicky" href="{{ url('/') }}">
59
    {{  __('kaplicky') }}
60
</a>--}}
61

    
62
<script>
63
    function openNav() {
64
        var x = window.matchMedia("(max-width: 540px)")
65
        if (x.matches) {
66
            document.getElementById("sidebar").style.width = "50vw";
67
        } else {
68
            document.getElementById("sidebar").style.width = "250px";
69
        }
70

    
71
    }
72

    
73
    function closeNav() {
74
        document.getElementById("sidebar").style.width = "0";
75
    }
76
</script>
77
<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
78
<script>
79
    $(function () {
80
        $('a').each(function () {
81
            if ($(this).prop('href') == window.location.href) {
82
                $(this).addClass('active');// $(this).parents('a').addClass('active');
83
            }
84
        });
85
    });
86
</script>
(2-2/2)