| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <div class="mid">
- <div class="divider">
- <nav id="list-menu" class="l" data-dir="{{ $.context.Param "languagedir" | default "ltr" }}">
- {{ if $.context.Param "enableMenu" }}
- {{ partial "main/sections/list-menu.html" .context }}
- {{ end }}
- </nav>
- <article id="list-main" class="m" data-dir="{{ $.context.Param "languagedir" | default "ltr" }}">
- {{ partial "main/sections/list-main.html" .context }}
- {{ if .section_to_display }}
- {{ partial "main/sections/list-section.html" (dict "section_to_display" .section_to_display) }}
- {{ end }}
- {{ partial "main/component/pagination-single.html" .context }}
- </article>
- <section id="list-side" class="r" data-dir="{{ $.context.Param "languagedir" | default "ltr" }}">
- </section>
- </div>
- </div>
- <script>
- var listSide = document.getElementById('list-side');
- var listMain = document.getElementById('list-main');
- var listMenu = document.getElementById('list-menu');
- var switchElem = document.querySelector('.switch');
- enquire.register("screen and (max-width:1280px)", {
- match: function () {
- listSide.className = 'r';
- listMain.className = 'm';
- listMenu.className = 'l';
- },
- unmatch: function () {
- listSide.className = 'r';
- listMain.className = 'm';
- listMenu.className = 'l';
- },
- }).register("screen and (max-width:960px)", {
- match: function () {
- listSide.className = 'hide';
- listMain.className = 'mr';
- listMenu.className = 'l';
- switchElem.className = 'hide';
- },
- unmatch: function () {
- listSide.className = 'r';
- listMain.className = 'm';
- listMenu.className = 'l';
- switchElem.className = 'switch';
- },
- }).register("screen and (max-width:600px)", {
- match: function () {
- listSide.className = 'hide';
- listMain.className = 'lmr';
- listMenu.className = 'hide';
- switchElem.className = 'hide';
- },
- unmatch: function () {
- listSide.className = 'hide';
- listMain.className = 'mr';
- listMenu.className = 'l';
- switchElem.className = 'hide';
- },
- });
- </script>
|