Projekt

Obecné

Profil

Stáhnout (5 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="menu-item text-headline" href="{{ url('/') }}">
10
                {{ __('general.home') }}
11
            </a>
12
            <a class="menu-item text-headline" href="{{ route('login') }}">
13
                {{ __('general.login') }}
14
            </a>
15
        </li>
16
        @if (Route::has('register'))
17
            <li class="nav-item">
18
                <a class="menu-item text-headline" href="{{ route('register') }}">
19
                    {{ __('general.register') }}
20
                </a>
21
            </li>
22
        @endif
23
    @else
24
        <li class="nav-item separator">
25
            <a class="menu-item text-headline" href="{{ url('/') }}">
26
                {{ __('general.home') }}
27
            </a>
28

    
29
            <a class="menu-item text-headline" href="{{ url('/categories') }}">
30
                {{ __('general.topics') }}
31
            </a>
32

    
33
            <a class="menu-item text-headline" href="{{ url('/artefact') }}">
34
                {{ __('general.artefacts') }}
35
            </a>
36

    
37
            <a class="menu-item text-headline" href="{{ url('/favartefacts') }}">
38
                {{ __('general.favourite_artefacts') }}
39
            </a>
40

    
41
            <a class="menu-item text-headline" href="{{ url('/favmetadata') }}">
42
                {{ __('general.favourite_metadata') }}
43
            </a>
44

    
45
            <a class="menu-item text-headline" href="{{ url('/charts') }}">
46
                {{ __('general.charts') }}
47
            </a>
48

    
49
        </li>
50
        <li class="nav-item down">
51
            <a class="menu-item text-headline" href="{{ url('/czech') }}">
52
                {{ __('general.cs') }}
53
            </a>
54
            <a class="menu-item text-headline" href="{{ route('logout') }}" onclick="
55
            event.preventDefault();
56
            document.getElementById('logout-form').submit();">
57
                {{ __('logout') }}
58
            </a>
59

    
60
            <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
61
                @csrf
62
            </form>
63
        </li>
64
    @endguest
65

    
66
</div>
67

    
68
<nav class="navbar navbar-expand-md navbar-light top-bar">
69
    <span class="arrow arrow-right" onclick="openNav()"></span>
70
    @if(!Request::is('login')&&!Request::is('register'))
71
        <a for="logo" class="logo-kaplicky kaplicky" href="{{ url('/') }}">
72
            {{ __('general.kaplicky') }}
73
        </a>
74
    @endif
75
    <div class="bar-desktop">
76
        <a class="menu-item text-headline-desktop" href="{{ url('/') }}">
77
            {{ __('general.home') }}
78
        </a>
79

    
80
        <a class="menu-item text-headline-desktop" href="{{ url('/categories') }}">
81
            {{ __('general.topics') }}
82
        </a>
83

    
84
        <a class="menu-item text-headline-desktop" href="{{ url('/artefact') }}">
85
            {{ __('general.artefacts') }}
86
        </a>
87

    
88
        <a class="menu-item text-headline-desktop" href="{{ url('/favartefacts') }}">
89
            {{ __('general.favourite_artefacts') }}
90
        </a>
91

    
92
        <a class="menu-item text-headline-desktop" href="{{ url('/favmetadata') }}">
93
            {{ __('general.favourite_metadata') }}
94
        </a>
95

    
96
        <a class="menu-item text-headline-desktop" href="{{ url('/charts') }}">
97
            {{ __('general.charts') }}
98
        </a>
99

    
100
        <a class="menu-item text-headline-desktop" href="{{ url('/czech') }}">
101
            {{ __('general.cs') }}
102
        </a>
103
        <a class="menu-item text-headline-desktop" href="{{ route('logout') }}" onclick="
104
            event.preventDefault();
105
            document.getElementById('logout-form').submit();">
106
            {{ __('logout') }}
107
        </a>
108

    
109
        <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
110
            @csrf
111
        </form>
112
    </div>
113
</nav>
114
{{--<label for="logo" class="col-md-12 kaplicky" style="display: inline-block; text-align: center; padding: 1.25rem; padding-bottom: 0">{{ __('kaplicky') }}</label>
115
{{--<label for="logo" class="col-md-4 kaplicky">{{ __('kaplicky') }}</label>--}}
116
{{--<a class="navbar-brand kaplicky" href="{{ url('/') }}">
117
    {{  __('kaplicky') }}
118
</a>--}}
119

    
120
<script>
121
    function openNav() {
122
        var x = window.matchMedia("(max-width: 540px)")
123
        if (x.matches) {
124
            document.getElementById("sidebar").style.width = "50vw";
125
        } else {
126
            document.getElementById("sidebar").style.width = "250px";
127
        }
128
    }
129

    
130
    function closeNav() {
131
        document.getElementById("sidebar").style.width = "0";
132
    }
133
</script>
134

    
135
<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
136
<script>
137
    $(function () {
138
        $('a').each(function () {
139
            if ($(this).prop('href') == window.location.href) {
140
                $(this).addClass('active');// $(this).parents('a').addClass('active');
141
            }
142
        });
143
    });
144
</script>
(2-2/2)