mandrasch,

Small coding challenge for #WebDev #JavaScript

How would you solve the following in 2024?

  • Server provides a list of destinations (JSON or data-xyz="" attributes), no pagination
  • rendered as card grid
  • JS: on click --> open modal with more details

Codepen: https://codepen.io/matthias_vie/pen/KKEeMLr

Would love to use Svelte, but want to achieve it without extra build step (legacy project).

Thought about #htmx and Template Fragments https://htmx.org/essays/template-fragments/? Any recommendations for a clean solution?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • webdev
  • DreamBathrooms
  • mdbf
  • ethstaker
  • magazineikmin
  • cubers
  • rosin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • khanakhh
  • kavyap
  • InstantRegret
  • Durango
  • JUstTest
  • everett
  • tacticalgear
  • modclub
  • anitta
  • cisconetworking
  • tester
  • ngwrru68w68
  • GTA5RPClips
  • normalnudes
  • megavids
  • Leos
  • provamag3
  • lostlight
  • All magazines