aboutsummaryrefslogtreecommitdiffhomepage
path: root/trace_profile/perf.html
diff options
context:
space:
mode:
Diffstat (limited to 'trace_profile/perf.html')
-rw-r--r--trace_profile/perf.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/trace_profile/perf.html b/trace_profile/perf.html
index c0af88b..e9f735d 100644
--- a/trace_profile/perf.html
+++ b/trace_profile/perf.html
@@ -32,6 +32,7 @@
</head>
<body>
+ <div id="body-container">
<!-- Provide site root to javascript -->
<script>
var path_to_root = "../";
@@ -69,10 +70,12 @@
<!-- Hide / unhide sidebar before it is displayed -->
<script>
var html = document.querySelector('html');
- var sidebar = 'hidden';
+ var sidebar = null;
if (document.body.clientWidth >= 1080) {
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
sidebar = sidebar || 'visible';
+ } else {
+ sidebar = 'hidden';
}
html.classList.remove('sidebar-visible');
html.classList.add("sidebar-" + sidebar);
@@ -239,5 +242,6 @@ perf script --per-event-dump
<!-- Custom JS scripts -->
+ </div>
</body>
</html>