mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-08 18:41:00 +08:00
68 lines
2.0 KiB
HTML
68 lines
2.0 KiB
HTML
{{ define "main" }}
|
|
<div class="mid">
|
|
<div class="divider">
|
|
|
|
<nav id="single-menu" class="l" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
|
|
</nav>
|
|
|
|
<article id="list-main" class="m" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
|
|
{{ if $.Param "enableBlogBreadcrumb" }}
|
|
{{ partial "main/component/breadcrumb.html" . }}
|
|
{{ end }}
|
|
{{ partial "main/component/toggle-sidebar.html" . }}
|
|
{{ partial "main/sections/list-main.html" . }}
|
|
{{ partial "main/component/pagination-single.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 = 'r';
|
|
listMain.className = 'lm';
|
|
singleMenu.className = 'hide';
|
|
},
|
|
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 = 'r';
|
|
listMain.className = 'lm';
|
|
singleMenu.className = 'hide';
|
|
|
|
},
|
|
});
|
|
</script>
|
|
{{ end }} |