At the point of writing this my Neocities site has over 5,000 updates, and if I had to guess I'd say half of them were because I spent so many hours trying to make a popup like this except more complicated. And guess what? In the end I failed. Completely! Utterly! There was supposed to be this cool Deltarune page that looked like a computer desktop and my thoughts on the game could be revealed in draggable popups that closed/opened. I tried searching Stack Overflow and I tried looking at other people's code and I tried finding websites where you could just download the whole setup and everything was one dead end after another. My code was a complicated mess. I had other features I wanted to add to that page and I had no idea how to code those either. Eventually I decided enough had been enough, and I gave up on the idea.
The experience was pretty humbling. Up until that point, whether it was through trial and error or pressing control U on other people's pages, I had managed to figure out every coding issue I encountered. I thought that if I just tried or searched hard enough any challenge was one I could figure out. In case you hadn't noticed, Neocities has hundreds of incredible sites (P.S.: if you haven't clicked on the butterfly on the shelf yet I suggest you go back and do that!). I wanted to be one of those incredible sites. This was the moment I realized that maybe I wasn't cut out for it.
But yeah, I write all this because I think there's a lesson in here, somewhere. While I could't get what I wanted, I did manage to make the boxes draggable and get the X in the upper right corner to work- it took me a lot of effort, and I still think it's pretty cool. I also found a way to set up my site that I think works better for me. Less javascript and more absolute positioning of images, which is 100 times easier. Maybe if I kept at it I could've figured it out, but at this point I don't care- I'm pretty happy with how my site is now. I might add a more functional Deltarune page at some point and I might not. Ultimately the main takeaway is that people who share code snippets/resources are my personal heroes.
If you're interested in making your own website, I wish you well on your many successes/failures. Press here to head back to the shelf. And on the links below to see some of the code I used for this page. You can close this popup, but you'll have to reload the page to open it again.