Slapshot136
Divide et impera
- Reaction score
- 471
I have a bunch of data that will be repeated on many pages of site, and I want to store all that data in a just a couple files, but I can't use any server-side technologies (this website needs to live on a NAS where I only have read/write access, no execute), which means HTML, CSS, and JS (unless I am forgetting something), but that would likely be rather complicated - what I have tried is using JS imports and CSS set to display:none; but that has issues with me being unable to overrrule the display:none; is there some way of hiding all but couple elements per page? or is there some easy way of JS reading from something like a .CSV?
I have also tried setting the visibility to false as opposed to display: none, but that leads to page formatting issues (especially when printing!)
I am not very good with JS so I am probably missing something.. but ideally I would like to just have a class/subclass structure for my data and just insert 1 variable at a time via JS
if this is going to be complicated, I suppose I could program something elsewhere and run it to create my static site, and then re-run it if I ever change the data..
I have also tried setting the visibility to false as opposed to display: none, but that leads to page formatting issues (especially when printing!)
I am not very good with JS so I am probably missing something.. but ideally I would like to just have a class/subclass structure for my data and just insert 1 variable at a time via JS
if this is going to be complicated, I suppose I could program something elsewhere and run it to create my static site, and then re-run it if I ever change the data..