From c245a4386268c98d212a04f6b2d9f6cd3ab54768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 15 Dec 2019 19:23:10 +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 3dc9fb2..7dff9d3 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 = 400 +val TOC_SCREEN_WIDTH_CUTOFF = 300 if (isMobile && window.screen.width < TOC_SCREEN_WIDTH_CUTOFF) { $(`code:contains(ToC)`).html(TOC_MOBILE);