nimravidae
2 years ago
dw i haven't! ur all good:) but uhmmm incredibly ineffictently is how! i've literally just copied the base html across all my pages (and have to manually update/edit everything) :,) the type of SPA i'm (eventually) implementing will just automatically insert the base code, so i can avoid what i'm currently doing! i don't know /how/ bad it currently is, but it's not the most effcient nor practical
nimravidae
2 years ago
this is the main guide i'm following to implement SPA if ur curious though!: https://dev.to/dcodeyt/building-a-single-page-app-without-frameworks-hl9 (obviously the example has a very modern styled site but i'm hoping and praying what i'm tryna do will work)
bright-eyes
2 years ago
You can create a template page of your index, and just copy and paste it, but you must still edit the menu to put your links as you add more pages, or workout the file names and put them in your template before you start.
amuffin
2 years ago
@nimravidae slay π i actually coded a python thing to generate my pages for me by inserting a header and footer. it has its limitations tho and i do want to make it better At Some Point. i hope you get your SPA thing working!!! glglgl (and hf with uni too that sounds so fun)
amuffin
2 years ago
slay!! i personally love the "a queer coded this?" button that ive seen around, its so punny
nimravidae
2 years ago
the SPA stuff i'm looking into avoids that actually!! i don't like that either:( iframes are the part that stop you from being able to yk, just copy the link and go straight to THAT page, which is why i'm deciding not to use em! (among other reasons). it's probably gonna take a little while to get the hang of since it's more complex than just chucking stuff in iframes, but to me it's worth it :]
nimravidae
2 years ago
my MAIN reason for wanting to use SPA is that I wanna have a music player with continuous playback ehehe (priorities, i know)
capstasher
2 years ago
I can also give you the files if you want to host them or modify them or something.
nimravidae
2 years ago
oh thank you!!! i actually already have something that i'm working on (a skin for webamp) but this is still useful to have!! i've used scm before ^_^
Good luck with the transition!! What are you studying? :O
i'm doing a diploma of IT, focusing on compsci!! and then next year i'll transition to a full compsci degree :]