thoughts
so far i've managed to do a couple of things around my site, i introduced a dialog box when clicking the chatbox tab and it asks you to agree to the rules. i was originally going to do it with an alert()
but then i later found out about confirm()
which is PERFECT for what i wanted to do. also learned i can do a custom one using the dialog
element so in the future i'll get to that :p code snippet
i've also found a way to iterate through the years using the javascript Date()
constructor need to look up this term later... so i don't have to write the same piece of coding every year for my microblog! also cleaned up the code a bit so it's easier to use for me. you can see the changes for all of that here. it kind of gives me an idea for my journal page for the calendar iframe but... i'm not sure if i'll go with it at the end of the day. we will see!
been also writing more comments on my JS files. it really is nice when you go back to them and know wtf each thing does. thank you professor.
06.apr.25
my class introduction to programming (which focuses on c++) is kinda doing wonders for all the things that i've done with JS without really knowing WHY they worked the way they did... i'm also currently reading JavaScript All-in-One For Dummies which i had saved in a pdf from god knows where. i think my previous knowledge + my class is making the first few chapters of this kinda of a breeze but wow!!! i have learned so many little things about JS so far that i didn't know about. been mostly reading it on the train so i have a few notes of stuff i want to practice and write about on this page once i have some more free time. but at least for me, i think it is way easier to get all of this new information from a book rather then a documentation site (w3schools, mozilla, etc. etc.) it def makes the process of learning these things way less intimidating.
05.mar.25
learned how to remove classes and add them with an event like so:
still need to dig deeper into events because as i was coding this on VSC, i kept getting a warning saying that event
was deprecated but then my question was... then how do i do this?
in my compsci class we've been talking about operators like and
, or
, and not
which helped me out a bit when making my fashion page's javascript! in this case i used the or
which is written like this ||
in JS for an if statement so that the mobile/responsive view of the page could be as neat as possible. honestly it was pretty fun to figure that out and get it working. i really need to look more into what event targets are though.
the javascript for my yukika passport is SOO messy but it does work! i am SURE there's probably a whole other way of doing this but i haven't quite gotten there yet.
figured out how to do a box pop up and a img modal of sorts! i put a class tag on all that imgs where if you click them then i take the src
and alt
text into the img modal. you can check it out on the scans page of my siinamota fansite. i also use a similar thing for the imgs on my microblog but with a different method.
also learning how to use this bit of code with the examples mentioned above i = 0; i < example.length; i++
hi this is inside a box!
this is a link. this is bolded. this is italics. this is highlighted
note: i am still wrapping my head around the difference between ==
and ===
when i used it for a toggle like this. but i'm starting to understand some stuff!!!
i learned how to change things with a button