From 811d41aa3d11c0bcc617e23de6bc79a917c37df1 Mon Sep 17 00:00:00 2001 From: "eoghan.conlon" Date: Sat, 5 Aug 2023 16:49:48 +0100 Subject: [PATCH] Reformating code to standard #3 --- src/register.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/register.html b/src/register.html index cfd3079..9fcead2 100644 --- a/src/register.html +++ b/src/register.html @@ -9,11 +9,11 @@

Sign-up

-
+
-
+
- +

@@ -24,11 +24,11 @@ const formEl = document.getElementById("register"); formEl.addEventListener('submit', (listener) => formHandler(listener)); - function formHandler(listener){ + function formHandler(listener) { listener.preventDefault(); const formData = new FormData(formEl); const pass = formData.get("pass"); - if(pass === formData.get("confirm")) { + if (pass === formData.get("confirm")) { const url = new URL(window.location.href); const urlParam = new URLSearchParams(url.search); const auth = urlParam.get("auth");