From bdc4154930b9e5f74e1a6b5f47dd8f7ecec9efe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 15 Dec 2019 19:00:29 +0100 Subject: [PATCH] Added custom TOC for mobile --- web/script_2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/script_2.js b/web/script_2.js index 8f0d6ee..a7913a7 100644 --- a/web/script_2.js +++ b/web/script_2.js @@ -262,7 +262,7 @@ if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine isMobile = true; } -if (isMobile) { +if (isMobile && window.screen.width < 768) { $(`code:contains(ToC)`).html(TOC_MOBILE); }