#JavaScript function
Explore tagged Tumblr posts
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
Text
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
#rambling#coding#programming#javascript#htmlcoding#html article generator#now that basic functionality is taken care of I can focus on making the site pretty through css ;P
9 notes
·
View notes
Text
day 8/100
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
#this is exciting for me cause its like the first 'functional' language that im learning#which for me is like more than just aesthetics like html and css were#even though i definitely still need to continue practice with those i feel like building projects with javascript will let me practice all#codeblr#progblr#100 days of code#html#studyblr
71 notes
·
View notes
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
#void talk#its html first#then add styling with css#then functionality and more styling with javascript#i wonder how many sites load in some fucking framework that duplicates so much browser functionality for what is basically a static site
4 notes
·
View notes
Text
go look at my website boy
#sharing before i. add javascript#inescapable.#looks better on desktop but should be functional on mobile#mar's midnight rambles
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
#sfw#personal#ok to reblog#I am intentionally putting the more generic tags later so that they will hopefully be used for local organization but not in global searches#programming#code#HTML#JavaScript#webdesign#in my defense I'm realizing that I have finally learned all three of the web code brothers and I can use them together#and I'm not even struggling#and I'm realizing I have so much creative power now#and also that my fear of JS was almost totally baseless like it's not even a tenth as bad as it sounded#but I just finished a set of functions that I thought impossible and impenetrable a few days ago and my code works first try*#*unless you count a few easy to find typos#I'm just. huh. ok. apparently this is something I can do now. and I'm not even doing it wrong? I don't know what to do with this information#(to be clear the file link triggered this ig just bc it was like the final touch to make it Official? but it wasn't about that specifically)#(also I wrote this and forgot to post it for almost an hour oops)
17 notes
·
View notes
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
#i am being slightly impatient but like i just want to have a functioning blog!!!!#my ticket for the tag problem got ignored for over a week with still no response so this was my solution but javascript has#to be manually enabled so im stuck again
3 notes
·
View notes
Text
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
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
#i am WAY unfamiliar w javascript beyond prewritten plugins for websites that i tweak tiny amounts. like in theory if i could track down--#--certain events i could piece together How they function and then put stuff together myself but without even knowing which map files are--#--for which areas ingame that would be a total pain. map14 is the train car u get the combat manual and map from and ik that solely bc of--#--the save book mod i got LOL
3 notes
·
View notes
Text
you ever refresh your tumblr and
2 notes
·
View notes
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.


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
#psa#tumblr#and just to provide another example of what i'm talking about:#i never once thought that you could inject javascript code in tags like that. functional website lmaoooo
66K notes
·
View notes
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
#speculation nation#JSON object in javascript i will kill you right now immediately#it's like. she gives us this JSON object (didnt talk about JSON in class AT ALL!!!) that we r supposed to use as input to a function#that will then take the components of the JSON thing to build a form with it#which is so. it would literally be so much fucking easier if i just built the fucking form myself#i dont really understand forms yet either but that at least is smth she covered in class#so i can look back on the slides and look things up online for anything the slides dont cover#there is literally NOTHING on JSON. i looked. this wasnt me not paying attention it's just not there#and in looking it up i understand it's a language-independent way to share information or Whatever#and i have to convert it into a javascript object??? but how do i do that and then use its fields to make the fields of the form????#i dont know and after an hour and a half and a genuine fucking headache im giving up for the nighg#im so frustrated i want to kick things and cry. but i will do neither.#im just going to hope that my brain will be fresh enough tomorrow to suddenly make sense of it#if i cant then i might just fucking scream.
1 note
·
View note
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 ✌️
#sanchoyorambles#there’s a non-essential lil feature I’m struggling to figure out how to add#it’s entirely unnessisary but I want a table of contents as the first page and something in my JavaScript is preventing it from working#AUGH I literally know what the problem is in it too it’s just been a hassle figuring out how to fix that#I’ll have it solved by this weekend tho. I have ideas I just can’t work on that too much yet#otherwise the journal page is p much done tho#it doesn’t look great on mobile yet but it functions? 😔✌️
0 notes
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