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