From 8336d4e71dfeb547c9f2fcbffbf00a96a7c19451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 15 Dec 2019 19:25:14 +0100 Subject: [PATCH] Mobile TOC test --- 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 7dff9d3..3dc9fb2 100644 --- a/web/script_2.js +++ b/web/script_2.js @@ -274,7 +274,7 @@ if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine isMobile = true; } -val TOC_SCREEN_WIDTH_CUTOFF = 300 +val TOC_SCREEN_WIDTH_CUTOFF = 400 if (isMobile && window.screen.width < TOC_SCREEN_WIDTH_CUTOFF) { $(`code:contains(ToC)`).html(TOC_MOBILE);