Skip to content

Tag: flask

Display file to user after conversion

I would like to write a service for converting files from one format to another (something similar at https://convertio.co/mp4-gif/) . I already have a file upload button that allows the user to upload a file from their device to the site. There is a box that displays the file name, size, desired format for c…

HTML if else condition for printing items in list

I’m making a website with flask, and I pass in a list. My .html file has this code: Now if list.length == 0 I want it to just do something like instead. How do I make an if statement to check if the list is empty, and if it is then I print error on the website, if it is

How to recreate google keep note

I tried to create my own notes for the school project. And I ran into some problems, I am using contentEditable for the note-taking part and it auto-generates divs. I tried to remove them with not much luck. Html JavaScript In this code, you have to press space twice but the bigger problem is when you try to …

change value with AlpineJS

I’m making a website and learning AlpineJS. I’m trying to make a custom ‘checkbox’ (from tailwindcss) to make people agree to the Terms of Service. Now there’s probably already a better way to do this custom checkbox because now I’m replacing the entire checkbox when you cl…