Похожие чаты

Hi, I'm actually working with something and i have some

info stored in a markdown, i can show it to the user and it works good, but i need a way to store the progress of what the user read so when the user come back again can continue reading where he left, as the format is markdown i don't have something like pages to store the number and use that, so, I was thinking in something like using the actual element that is has the focus state, in a copy of all the book delete all the other elements after the one that has the focus state, and use the length of the copy as the progress
how you think i should do it?

2 ответов

22 просмотра

I don't know what's the best practice to implement such thing, since there is no page to store the latest state, one thing that came to my mind was using Intersection Observer API, through this API you can set a threshold for how much of the page has been visible to the user, hence knowing which positions to save in local storage then recovering them after next visit.

Jv- Автор вопроса
Ali Souri
I don't know what's the best practice to implement...

Hi, thanks for the answer, we have been doing something similar but without the intersection Observer API, i will take a look at this, thanks

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта