S
S
Sergey Miller2019-02-16 18:14:46
JavaScript
Sergey Miller, 2019-02-16 18:14:46

How to write a cookie script that will determine if the user has visited the page?

There is a page that displays its children (other pages, site on modx Revo ).
You click in the output on any page and go to it. In the output of child pages, there is a gray
svg checkmark before each page . It is necessary to track if the user has moved to such and such a page, then on the main page (where all the child pages are displayed) before the corresponding svg page, the checkmark has become green (a css class has been added, for example). And if this user logged out , and then logged in, then the checkmark remained green .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Exploding, 2019-02-16
@blackseabreathe

Maybe just use what is already ready and working since the time of the dinosaurs: a: link, a: visited, a: hover, a: active?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question