diff --git a/frontend/src/components/manage/PanelCreationForm.svelte b/frontend/src/components/manage/PanelCreationForm.svelte index 5b20d95..81785a7 100644 --- a/frontend/src/components/manage/PanelCreationForm.svelte +++ b/frontend/src/components/manage/PanelCreationForm.svelte @@ -147,8 +147,8 @@
- - + +
@@ -269,21 +269,6 @@ }; } - // Function to validate image URL - function validateImageUrl(url) { - const validExtensions = ['.gif', '.jpg', '.jpeg', '.png', '.webp']; - return validExtensions.some(ext => url.endsWith(ext)); - } - - // Function to handle input validation - function handleImageUrlInput(event) { - const url = event.target.value; - if (url && !validateImageUrl(url)) { - alert('Invalid image URL. Please use a URL ending with .gif, .jpg, .jpeg, .png, or .webp'); - event.target.value = ''; - } - } - function updateColour() { data.colour = colourToInt(tempColour); }