Yeah of course it is an untenable implementation. It's a jumping off point for learning. It's the simplest and easiest implementation to conceptualize.
The next step would be, how do I do this without having to effectively having a copy of the page with a different image every time.
You said you had "no idea how to approach this". So I'm just giving you the FIRST idea. If you know JS and it's so obvious why the heck are you asking this question???
View all comments
Show parent comment
1
u/nullptr_0x 8d ago
Yeah of course it is an untenable implementation. It's a jumping off point for learning. It's the simplest and easiest implementation to conceptualize.
The next step would be, how do I do this without having to effectively having a copy of the page with a different image every time.
You said you had "no idea how to approach this". So I'm just giving you the FIRST idea. If you know JS and it's so obvious why the heck are you asking this question???