blob: 2215bded99247edd7b9fe8cf91a0ce6e78219b60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
<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/component/toggle-sidebar.html" .context }}
{{ 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');
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';
},
unmatch: function () {
listSide.className = 'r';
listMain.className = 'm';
listMenu.className = 'l';
},
}).register("screen and (max-width:600px)", {
match: function () {
listSide.className = 'hide';
listMain.className = 'lmr';
listMenu.className = 'hide';
},
unmatch: function () {
listSide.className = 'hide';
listMain.className = 'mr';
listMenu.className = 'l';
},
});
</script>
|