skip to Main Content

Html – SvelteKit – Redirect after Form Submit

I have a problem with redirecting after submitting form in SvelteKit. I have some routes that needs authentication, before rendering it I'm checking if user is authenticated. routes │   ├── +page.svelte │   ├── login │   │   ├── +page.server.ts │   │  …

VIEW QUESTION

Html – Multiple labels, one submit

Code: const formSubmit = (event) => { event.preventDefault(); var data = new FormData(event.target); let formObject = Object.fromEntries(data.entries()); console.log(formObject); } <form onSubmit={formSubmit}> <table className="center"> <tr className="center"> <th>SSID:</th> <th><label><input type="text" name="name"/></label></th> </tr> <tr className="center"> <th>PASS:</th> <th><label><input type="text" name="name"/></label></th> </tr> </table> <input type="submit"…

VIEW QUESTION

Html – How does one make two divs both take up 50% of the screen while maintaining their height responsively?

.card--card.gradient, .card__inner.gradient { transform: perspective(0); } .card--card, .card--standard .card__inner { position: relative; box-sizing: border-box; } .card__inner { width: 100%; display: flex; flex-direction: column; flex: 1 1 50%; overflow: hidden; --ratio-percent: 99.77064220183487%; } .ratio { display: flex; position: relative; align-items: stretch;…

VIEW QUESTION
Back To Top
Search