From c83f44cd69a227f873a026c01653ef434b6ae045 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Mon, 5 Jul 2021 19:10:20 +0200 Subject: viewer: viewer: optional user-defined markdown splash screen Code review changes --- viewer/ldgallery-viewer.7.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'viewer/ldgallery-viewer.7.md') diff --git a/viewer/ldgallery-viewer.7.md b/viewer/ldgallery-viewer.7.md index 5012e3b..1e914ff 100644 --- a/viewer/ldgallery-viewer.7.md +++ b/viewer/ldgallery-viewer.7.md @@ -92,13 +92,13 @@ initialTagDisplayLimit Set to -1 to disable the limit on suggestions. Defaults to 10. +splashScreen +: Displays an information notice before opening the gallery (see below). + An alternative viewer configuration file located in the viewer's directory can be loaded by specifying its name, without the ".json" extension, as a query parameter given before the page anchor; for example, some alternative configuration named "config_2.json" can be loaded with "http://gallery/?config_2#". -splashScreen -: Displays an information notice before opening the gallery (see below). - # SPLASH SCREEN CONFIGURATION @@ -106,9 +106,10 @@ splashScreen.resource : Absolute or relative path to the information notice. The user is prompted to explicitly acknowledge such notice before being allowed to browse the gallery. Rich text formatting is possible through the use of the [GitHub Flavoured Markdown syntax][GFM]. Inline HTML and CSS are also supported. + [GFM]: https://github.github.com/gfm/ -splashScreen.dontshowagainUID -: Optional unique ID; when set, the information notice will appear only the first time it is proposed to the user. To display the notice again, change this UID. +splashScreen.acknowledgmentKey +: Optional key; when set to an arbitrary string, the information notice will appear only the first time it is proposed to the user. Once the notice acknowledged, the key is saved to the device's local storage. To display the notice again, change this key to another value. When left empty, the notice will appear every time. splashScreen.buttonAcknowledgeLabel @@ -119,7 +120,6 @@ splashScreen.style : Optional CSS attributes for the information notice's container. String or JSON formats are supported. - [GFM]: https://github.github.com/gfm/ # CONFIGURATION EXAMPLE @@ -133,7 +133,7 @@ Viewer __config.json__: "initialTagDisplayLimit": 10, "splashScreen": { "resource": "./splashscreen.md", - "dontshowagainUID": "v001", + "acknowledgmentKey": "v001", "buttonAcknowledgeLabel": "I agree", "style": { "max-width": "45em", -- cgit v1.2.3