willdotjpg
2 months ago
my last three blog posts have been about journaling because i have a sickness
willdotjpg
2 months ago
- fixed a missing image in the most recent blog post - updated the september '26 calendar with new images
willdotjpg
2 months ago
updated pic-a-day calendar pages with the new navigation. thanks to @arlita, @chiisana-wasurenagusa, and @heathersaturnia for the code help!
willdotjpg
3 months ago
to be clear, i'm trying to optimize my pic-a-day calendar pages so that the individual months can be opened in a div on the main page rather than having to click through multiple pages.
chiisana-wasurenagusa
3 months ago
Sometimes I just do in html to keep js file short and simple. Just assign name attribute to your iframe and point the target to anchor. Or in js just update the src att inside of iframe. Works the same.
chiisana-wasurenagusa
3 months ago
But for your case, using fetch is the most effective. Make separate htmls for months and load them in separate divs, onclick.
arlita
3 months ago
your links to the iframe pages need to have target="div-name" and the div the pages will end up inside needs to have name="div-name"
arlita
3 months ago
also you can put this in ur head tag if u want all the links to go to the same div^_^
arlita
3 months ago
it ate my example lolll. it's the html tag base with the attribute target="div-name" in it. srry for all the comments gl heh
arlita
3 months ago
ok atp im spamming but i cant not say that that is a genius use of iframes i love it.......
heathersaturnia
3 months ago
you'll need a main page 'picaday.html', a div container for your calendar(where the iframe will go) and the sidebar menu with your links that will have "target="calendariframe" to the iframe name. exmpl: < iframe name="calendariframe " src="(leave this blank or whatever month when the page loads) " class=" iframe "> < /iframe >
heathersaturnia
3 months ago
in your CSS make .iframe and add some a basic width: 100%; height: 100%; border: none; position: absolute; so it fits nicely in the .calender container i hope this explanation is easy enough to understand. :V
happened to me lol.