From 4484f703aefd0d493674cb9b4a0c2a22cfa32664 Mon Sep 17 00:00:00 2001 From: Nate Bross Date: Tue, 23 Aug 2022 15:53:44 -0500 Subject: [PATCH 1/2] drop unused/usable portions update readme --- README.md | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8ff802b..1bda468 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,41 @@ # WebDLanding -Web-Direct landing page to suppress annoyances and route users to the appropriate solution. +Web-Direct Landing page for Wizard Web-Direct deployed solutions. + +## Features + +- `onbeforeunload` support. + +Best effort to warn users that refreshing the page, or otherwise navigating away will lose their place in the system. Support varies by browser. + +- Back button suppression / integration. + +Avoid back button taking the user out of the solution, and provide support for solutions to listen to the native browser back button and react accordingly. + +## Back Button Integration + +WebDLanding provides an opportunity for back button support to be added, by posting a message to child iframes that the back button was pressed. + +A sample of the web viewer content that must be provided on each layout: + +```html + + + + + + + + + + + + + +``` From fa85ce61565c027472f988fc6d982b9edd5a1477 Mon Sep 17 00:00:00 2001 From: Nate Bross Date: Tue, 23 Aug 2022 15:53:48 -0500 Subject: [PATCH 2/2] drop unused/usable portions update readme --- .vscode/settings.json | 1 + Controllers/BackButtonController.cs | 18 ------------------ Views/BackButton/Index.cshtml | 22 ---------------------- 3 files changed, 1 insertion(+), 40 deletions(-) delete mode 100644 Controllers/BackButtonController.cs delete mode 100644 Views/BackButton/Index.cshtml diff --git a/.vscode/settings.json b/.vscode/settings.json index 436bc4c..68dfd88 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -27,6 +27,7 @@ "cSpell.words": [ "HSTS", "iframe", + "iframes", "nlog" ] } \ No newline at end of file diff --git a/Controllers/BackButtonController.cs b/Controllers/BackButtonController.cs deleted file mode 100644 index 4888e16..0000000 --- a/Controllers/BackButtonController.cs +++ /dev/null @@ -1,18 +0,0 @@ -using Microsoft.AspNetCore.Mvc; - -namespace WebDLanding.Controllers; - -/// -/// Back Button Support Controller -/// -public class BackButtonController : Controller -{ - private readonly ILogger _logger; - - public BackButtonController(ILogger logger) - { - _logger = logger; - } - - public IActionResult Index() => View(); -} diff --git a/Views/BackButton/Index.cshtml b/Views/BackButton/Index.cshtml deleted file mode 100644 index c41adca..0000000 --- a/Views/BackButton/Index.cshtml +++ /dev/null @@ -1,22 +0,0 @@ -@{ - Layout = null; -} - - - - - - - - - - - - - \ No newline at end of file