mirror of
https://github.com/tonytins/tomas.git
synced 2025-03-21 15:21:21 +00:00
deploy: aaaad6faf9
This commit is contained in:
parent
01ef604533
commit
49dec67afb
7 changed files with 19 additions and 7 deletions
4
404.html
4
404.html
|
@ -72,10 +72,12 @@
|
||||||
<!-- Hide / unhide sidebar before it is displayed -->
|
<!-- Hide / unhide sidebar before it is displayed -->
|
||||||
<script>
|
<script>
|
||||||
var html = document.querySelector('html');
|
var html = document.querySelector('html');
|
||||||
var sidebar = 'hidden';
|
var sidebar = null;
|
||||||
if (document.body.clientWidth >= 1080) {
|
if (document.body.clientWidth >= 1080) {
|
||||||
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
|
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
|
||||||
sidebar = sidebar || 'visible';
|
sidebar = sidebar || 'visible';
|
||||||
|
} else {
|
||||||
|
sidebar = 'hidden';
|
||||||
}
|
}
|
||||||
html.classList.remove('sidebar-visible');
|
html.classList.remove('sidebar-visible');
|
||||||
html.classList.add("sidebar-" + sidebar);
|
html.classList.add("sidebar-" + sidebar);
|
||||||
|
|
|
@ -71,10 +71,12 @@
|
||||||
<!-- Hide / unhide sidebar before it is displayed -->
|
<!-- Hide / unhide sidebar before it is displayed -->
|
||||||
<script>
|
<script>
|
||||||
var html = document.querySelector('html');
|
var html = document.querySelector('html');
|
||||||
var sidebar = 'hidden';
|
var sidebar = null;
|
||||||
if (document.body.clientWidth >= 1080) {
|
if (document.body.clientWidth >= 1080) {
|
||||||
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
|
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
|
||||||
sidebar = sidebar || 'visible';
|
sidebar = sidebar || 'visible';
|
||||||
|
} else {
|
||||||
|
sidebar = 'hidden';
|
||||||
}
|
}
|
||||||
html.classList.remove('sidebar-visible');
|
html.classList.remove('sidebar-visible');
|
||||||
html.classList.add("sidebar-" + sidebar);
|
html.classList.add("sidebar-" + sidebar);
|
||||||
|
|
|
@ -22,7 +22,7 @@ a > .hljs {
|
||||||
the screen on small screens. Without it, dragging on mobile Safari
|
the screen on small screens. Without it, dragging on mobile Safari
|
||||||
will want to reposition the viewport in a weird way.
|
will want to reposition the viewport in a weird way.
|
||||||
*/
|
*/
|
||||||
overflow-x: hidden;
|
overflow-x: clip;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Menu Bar */
|
/* Menu Bar */
|
||||||
|
|
|
@ -71,10 +71,12 @@
|
||||||
<!-- Hide / unhide sidebar before it is displayed -->
|
<!-- Hide / unhide sidebar before it is displayed -->
|
||||||
<script>
|
<script>
|
||||||
var html = document.querySelector('html');
|
var html = document.querySelector('html');
|
||||||
var sidebar = 'hidden';
|
var sidebar = null;
|
||||||
if (document.body.clientWidth >= 1080) {
|
if (document.body.clientWidth >= 1080) {
|
||||||
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
|
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
|
||||||
sidebar = sidebar || 'visible';
|
sidebar = sidebar || 'visible';
|
||||||
|
} else {
|
||||||
|
sidebar = 'hidden';
|
||||||
}
|
}
|
||||||
html.classList.remove('sidebar-visible');
|
html.classList.remove('sidebar-visible');
|
||||||
html.classList.add("sidebar-" + sidebar);
|
html.classList.add("sidebar-" + sidebar);
|
||||||
|
|
|
@ -71,10 +71,12 @@
|
||||||
<!-- Hide / unhide sidebar before it is displayed -->
|
<!-- Hide / unhide sidebar before it is displayed -->
|
||||||
<script>
|
<script>
|
||||||
var html = document.querySelector('html');
|
var html = document.querySelector('html');
|
||||||
var sidebar = 'hidden';
|
var sidebar = null;
|
||||||
if (document.body.clientWidth >= 1080) {
|
if (document.body.clientWidth >= 1080) {
|
||||||
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
|
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
|
||||||
sidebar = sidebar || 'visible';
|
sidebar = sidebar || 'visible';
|
||||||
|
} else {
|
||||||
|
sidebar = 'hidden';
|
||||||
}
|
}
|
||||||
html.classList.remove('sidebar-visible');
|
html.classList.remove('sidebar-visible');
|
||||||
html.classList.add("sidebar-" + sidebar);
|
html.classList.add("sidebar-" + sidebar);
|
||||||
|
|
|
@ -72,10 +72,12 @@
|
||||||
<!-- Hide / unhide sidebar before it is displayed -->
|
<!-- Hide / unhide sidebar before it is displayed -->
|
||||||
<script>
|
<script>
|
||||||
var html = document.querySelector('html');
|
var html = document.querySelector('html');
|
||||||
var sidebar = 'hidden';
|
var sidebar = null;
|
||||||
if (document.body.clientWidth >= 1080) {
|
if (document.body.clientWidth >= 1080) {
|
||||||
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
|
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
|
||||||
sidebar = sidebar || 'visible';
|
sidebar = sidebar || 'visible';
|
||||||
|
} else {
|
||||||
|
sidebar = 'hidden';
|
||||||
}
|
}
|
||||||
html.classList.remove('sidebar-visible');
|
html.classList.remove('sidebar-visible');
|
||||||
html.classList.add("sidebar-" + sidebar);
|
html.classList.add("sidebar-" + sidebar);
|
||||||
|
|
|
@ -71,10 +71,12 @@
|
||||||
<!-- Hide / unhide sidebar before it is displayed -->
|
<!-- Hide / unhide sidebar before it is displayed -->
|
||||||
<script>
|
<script>
|
||||||
var html = document.querySelector('html');
|
var html = document.querySelector('html');
|
||||||
var sidebar = 'hidden';
|
var sidebar = null;
|
||||||
if (document.body.clientWidth >= 1080) {
|
if (document.body.clientWidth >= 1080) {
|
||||||
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
|
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
|
||||||
sidebar = sidebar || 'visible';
|
sidebar = sidebar || 'visible';
|
||||||
|
} else {
|
||||||
|
sidebar = 'hidden';
|
||||||
}
|
}
|
||||||
html.classList.remove('sidebar-visible');
|
html.classList.remove('sidebar-visible');
|
||||||
html.classList.add("sidebar-" + sidebar);
|
html.classList.add("sidebar-" + sidebar);
|
||||||
|
|
Loading…
Add table
Reference in a new issue