Похожие чаты

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 ответов

14 просмотров

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

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

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

Ясн. Но я всеравно к кедам отношусь с опасением. Чисто субьективное кедосозерцание. Что касаемо "восторга изяшности кед" так и не вкурил, хотя много слышал, пока не поставил с...
Артем Записной
30
They keep hyping $FUN but where's the progress? 🙄
Noah Noure
23
Btw guys very stupid question but i haven't researchd so js asking you pros . Can ltc be traced too? Literally point to pint to the user? And getting the banks blocked ? Exch...
20
type TObj = object procedure Init; virtual; end; TObj1 = object(TObj) procedure Init; override; end; procedure TObj1.Init; begin inherited; end; procedur...
Alexander 👋
29
Есть какой-нибудь для Delphi/FPC T*Compression(Decompression)Stream на базе LZ4/Zstd/любой другой быстрый(и хорошо сжимающий) алгоритм А ещё лучше в pure pascal А ещё лучше од...
notme
48
А чем вам питонисты не угодили?😂
.
79
Hey guys, did you see the new announcement about $Fun? 🔥
Filip Murphy
55
How can a minority hashrate chain defend from a fork-hopping ASIC miner? The problem: 1. A miner comes into your network, and mines at 60-70% hashrate. 2. After some time, th...
Kishniev
13
yeap, thanks guys for response, but I really like to understand does a pool created on curve.fi has the option or api or I can call a function of a smart contract to set excha...
Oleg Karoza
10
Hey people, how do I unstake from the old pool and stake in the new pool??
Dyldo Baggins
24
Карта сайта