sinerider icon indicating copy to clipboard operation
sinerider copied to clipboard

Display warning when loading sinerider using non-standard URL (social first-play xp)

Open grymmy opened this issue 2 years ago • 4 comments

Description

We need to

  1. Ensure that every time you are confirmed to have played the sinerider single-player game before, we save a browser cookie to persist that fact (i.e., when sinerider's document::onload() is called, IF the URL DOES NOT contain anything after the top-level domain (suggesting a standard Sinerider play), create a cookie.
  2. When sinerider's document::onload() is called, and IF the URL contains anything after the top-level domain (suggesting an entry path into sinerider that might be non-standard), check for the existence of the cookie in step no. 1, and if it does not exist: a) set the cookie so the popup doesn't display again and b) display a modal popup with the following copy:

"New to Sinerider? You may want to start by playing the full game at sinerider.com!".

Screenshots

No response

Additional information

No response

grymmy avatar May 01 '23 00:05 grymmy

@karamassie @polytroper Please approve the copy contained in this issue, I'd prefer having to do this once and only once.

grymmy avatar May 01 '23 00:05 grymmy

Yeah sounds great. Is it possible to have a direct link in the modal? Or perhaps we have one of the buttons on the modal open a new tab to sinerider.com?

polytroper avatar May 01 '23 21:05 polytroper

Yeah sounds great. Is it possible to have a direct link in the modal? Or perhaps we have one of the buttons on the modal open a new tab to sinerider.com?

A direct link as in the URL contained within copy should be a hyperlink? Yes that's fine. Please elaborate on the button that you speak of, where should it display what copy on the button and what behavior should it have?

grymmy avatar May 02 '23 01:05 grymmy

It would be either/or. I think a direct link in the copy is probable best, I just wasn't sure if it's possible to hyperlink in those modals. If that's possible ignore the button remark, that was just a possible alternative to hyperlinking

polytroper avatar May 02 '23 20:05 polytroper