#JavaScript function
Explore tagged Tumblr posts
orcelito · 2 months ago
Text
Working on my javascript for my web page. Turns out I have the perfect kind of setup to accomplish some of the project requirements, specifically with even handlers and user interactions
My website, conceptually, will load a different employee details page depending on what employee name is clicked on. But I need to load it dynamically (instead of hard-coding it) so that the user can add or delete employees & it'll be able to still load the relevant shit.
So! Only one employee details page, but depending on how it's loaded, it'll load a different employee's information. Still working on getting down Exactly how to do it (I'm thinking using URL parameters that'll read a different object depending on what ID is used)
It's entirely doable. In fact, it's probably extremely common to do in web pages. No one wants to hard-code information for every new object. Of course not. And thus the usefulness of dynamic javascript stuff.
I can do this. I can very much do this.
#speculation nation#i wasnt very good when i got home and i read fanfic for a while#then took a nap. and now im up again and Getting To Work.#i dont have to have this 100% perfect for final submission just yet. bc final submission isnt today.#but i need to have my final presentation over my thing done by noon (11 hours from now)#and im presenting TODAY. and part of that will be giving a live demo of my project website#so. i need to have all of the core functionality of my website down at the Very Least#might not be perfect yet. but by god if im gonna show up to my presentation with my website not working.#i need to have the employee list lead to employee details with personalized information displayed per employee#i need to create an add employee field that will Actually add an employee. using a form.#and that employee will need to show up on the list and have a new id and everything. the works.#need to set it up so that employees can be deleted. shouldnt be too much extra.#and it would be . interesting. to give an actual 'login' pop-up when someone clicks on the login button#with some kind of basic info as the login parameters. this cant be that hard to code.#the project requirements are: implement 5 distinct user interactions using javascript. at least 3 different eventhandlers#at least 5 different elements with which interaction will trigger an event handler. page modification & addition of new elements to pages#3 different ways of selecting elements. one selection returning collection of html elements with customized operations on each...#hm. customized operations on each... the example given is a todo list with different styles based on if an item is overdue or not#i wonder if my personalized detail page loading would count for this... i also have some extra info displayed for each#but i specifically want the employees to be displayed in the list uniformly. that's kinda like. The Thing.#actually im poking around on my web pages i made previously and i do quite enjoy what i set up before.#need to modify the CSS for the statistics page and employee details to make it in line with what i actually wanted for it#maybe put a background behind the footer text... i tried it before & it was iffy in how it displayed...#but it looks weird when it overlaps with a page's content. idk that's just me being particular again.#theres also data interchange as a requirement. but that should be easy if i set an initial employee list as a json file#good god im going to have to think of so much extra bullshit for these 10 made up employees#wah. this is going to be a lot of work. but. im going to do it. i just wont get very much sleep tonight.#that's ok tho. ive presented under worse conditions (cough my all nighter when i read 3gun vol 10 and cried my eyes out)#and this is going to be the last night like this of my schooling career. the very last one.#just gotta stay strong for one more night 💪💪💪
6 notes · View notes
wachi-delectrico · 6 months ago
Text
Tumblr media
HTML Article Generator is still a little rough around the edges, but basic functionality should be down! If you want to create your own HTML article quickly (like for inserting in your own website for example), you can head over to:
And like the image says, if you want to submit your own article to be randomly displayed on the site, you can go over to the Issues page on Github
9 notes · View notes
sandycodes · 2 years ago
Text
day 8/100
Tumblr media
life is just throwing me for an absolute loop these days, but im starting my adventure into javascript :) i didn't do a ton of coding today, but i learned about the history of javascript as well as 2 ways of running it in the browser, both in html files within the script tag and in an REPL (also one way of declaring a variable cause i think there are others but im not sure) <3
71 notes · View notes
sc52 · 2 months ago
Text
ive been using as many sites/apps thru a browser as i can, with javascript disabled by default for most sites and the sheer amount of sites that dont even render anything at all is disgusting, you broke the basic contract of web development
progressive enhancement
you lil bitch
4 notes · View notes
yume-fanfare · 2 years ago
Text
go look at my website boy
9 notes · View notes
Text
I'm being so normal about my code and definitely didn't just almost cry (positive) upon confirming that I successfully linked my JS file in my HTML file with a relative path and it runs exactly as expected
17 notes · View notes
ancenth · 1 year ago
Text
the cruel joke of me making an entire new blog so my posts actually show up in tags, but then not being able to finish setting up the blog since my ticket requesting javascript for custom pages hasn't been answered yet so im just stuck in limbo
3 notes · View notes
anosci · 2 years ago
Text
Tumblr media
woke up middle of the night (insomnia) and had this amazing idea for bogo sort in linear time. idk why noone's ever thought of this.
4 notes · View notes
beeapocalypse · 2 years ago
Text
AUGHH it would be Possible to add in events / whatever by poking around the code alone but doing so through rpgmaker mv would for sure be infinitely easier. can it go on sale already
3 notes · View notes
nyxgoddessofcandles · 2 years ago
Text
you ever refresh your tumblr and
Tumblr media
2 notes · View notes
lime-sar · 2 years ago
Text
Another (slightly unrelated) thing is that tags that you add more as comments than as search tools are ok too. Encouraged, even! People tend to appreciate leaving your single-word reply to a reblog chain in the tags as opposed to a full-on reblog.
Part of Tumblr's culture is using tags for things aside from search words! Put whatever minor thoughts you thought didn't belong in your main post in your tags! Keysmash in there! Pretend you're doing a soliloquy in the tags! (maybe try not to go overboard with that last one tho, trust me it can look quite messy in there)
The two examples OP showed could've easily had their tags reduced to something like these:
(hash)amine (hash)keen (hash)keen my beloved
(hash)xmas (hash)australian xmas
(not including the actual symbols because i don't want it to unnecessarily enter the searches. like this whole post is all about. lol.)
These don't clutter the screen as much, and they summarize all those tags quite nicely, don't you think? The "keen my beloved" tag may be "unnecessary" in terms of searching, but tag searching on Tumblr searches the exact tag (minus capitalization, but hardly anyone capitalizes their tags unless it's for a bit). Searching "(hash)star" doesn't bring up "(hash)star trek" or "(hash)star wars" in the same results, for example. (unless a post happens to also have either of those tags lol)
(Granted, commenting something short like "(hash)wow" or "(hash)lol" can kinda conflict with some tags that are abbreviations for other things (i.e. World of Warcraft or League of Legends). People tend to have a different tag for those sorts of things tho, so I wouldn't consider it a major issue)
TL;DR: You can add irrelevant comments in tags as long as they're not relevant for other kinds of posts as well. Just make sure the tags meant for searching are relevant and you should be fine by TOS standards.
‘Why is trending so weird’ because of tag spam. Because people (and bots) are tagging like it’s Instagram.
Tumblr media Tumblr media
This is spam. It’s against TOS and it throws trending completely out of whack, along with being wildly annoying.
Please, please, PLEASE report posts like this as spam, because otherwise it’s just gonna get fucking worse
66K notes · View notes
tpointtecheduc · 27 days ago
Text
0 notes
orcelito · 3 months ago
Text
Gotta love my professor introducing smth for the lab that we Literally didn't talk about at all in class. Which left me with a Fucking Headache just trying to parse what the fuck I'm supposed to do bc it's the most indirect way Ever to build a form with javascript. And now I've run out of time bc I spent over an hour and a half just combing through the fucking internet trying (and failing) to find how the FUCK I'm supposed to do this bullshit
Didn't figure it out. I only have like 2 lines of code to show for the headache. Giving up for the night and I'm just gonna try to turn it in within a day late. I have a fucking headache and vaguely kinda wanna cry
1 note · View note
jkresearch · 6 months ago
Link
0 notes
sanchoyo · 7 months ago
Text
in the process of adding a lil journal/blog section to my website (I’ve been working on it on and off for abt as long as the dress up game) bc I do like the idea of long form writing that’s just personal lil updates beyond sticking them on here (bc all my blogs on here are divided by like…main blog for Personal stuff. Art blog for art. Comic blog. Fashion blog. And I want a place for all of that kinda jumbled together and also super rambly without needing a readmore. And to be able to Style it more. Cutely. Like these will be the extremely long directors cuts of My Ramblings)
I also kind of want to make a friends/sites I like section !! But none of my rly good friends on are on neocities I don’t think (as far as I know?? If u guys are hmu) and idk if im brave enough to list strangers sites I like bc I am. Shy… 🧍🏻but yeah that’s what I’ve been busy with!! Also comic stuff and holiday stuff coming up and being hectic means I prob won’t be on a ton so if im MIA that’s why ✌️
0 notes
gagande · 8 months ago
Text
Purecode | Functions in JavaScript can be called with more arguments
Functions in JavaScript can be called with more arguments than the number of formal parameters using the arguments object. Destructuring significantly enhances the readability and efficiency of your code by allowing you to pull out multiple properties from an object or array in a single statement.
0 notes