From 2f35c0a70e30381c83f528839c1dac547c0f04e2 Mon Sep 17 00:00:00 2001 From: Tracker-Friendly Date: Wed, 14 Feb 2024 18:12:29 +0000 Subject: [PATCH] Make it only display on iOS --- static/css/style.css | 1 + static/js/main.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/static/css/style.css b/static/css/style.css index 651f426..53be75f 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -94,6 +94,7 @@ h4, h5, h6 { color: var(--text-color); + white-space: break-spaces; } h7 { diff --git a/static/js/main.js b/static/js/main.js index e60df44..998388c 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -614,4 +614,6 @@ removeBox.addEventListener("click", (event) => { } }); -displayError("To use PageBurger:\nSwipe Right on a note to open it\nSwipe left in the text boxes to return to notes\nClick on a note to highlight it") +if (isFirstTimeVisitor() && /iPhone|iPad|iPod/i.test(navigator.userAgent)) { + displayError("To use PageBurger:\n Swipe Right on a note to open it\n Swipe left in the text boxes to return to notes\n Click on a note to highlight it") +}