#Functions In JS
Explore tagged Tumblr posts
Text
btw i hope you guys know that jeonghan’s serving as a social worker! i think this is most likely bc of his injuries but that means he serves 3 months longer compared to your average enlisted soldier in the army
BUT!! THE BRIGHT SIDE OF THIS!!! is that being a social worker is basically working a 9-5. jeonghan gets to go home to seungkwan every night, sleep in his own bed, and go to work. after basics training, he’s going to and from home every day! this means his free time is totally his and i’m going to assume he’ll be seeing the members as often as much as he (and the members) can afford, although he won’t be able to participate in promotions and activities, he’ll still be around!
i hope this brings some sort of comfort and encouragement for someone out there 🙏
edit: this also means less physical exertion for jeonghan too! so hopefully he can get through basics training without any injuries and finish his service without any serious injuries or incidents
a lil bit more info here!
#source? js trust me bro#nah i’m playing my dad was a social worker too#bc he was too tiny LMFAAAOOA#he was severely underweight for his height (tiny bones) so after basics he was a social worker#me and my dad were giggling abt his military stories and then i remembered jeonghan#and i started bawling#and he looked at me and asked how i’m a functioning member of society#ouch dad you made me like this idk what to tell you bro#anyway!! i digress#i hope this brings some sort of comfort for someone#jeonghan#svt#seventeen#yoon jeonghan#hannyoontify.misc
131 notes
·
View notes
Text


TUMBLR I MISSED YOU
#I haven’t been online for a while#okay it feels like longer than it actually was but i haven’t rlly drawn recently#i miss that too#im working on things just v slowly#I’ll try to be more active things have js been busy and kinda stressful for a bit#art#sketch#fnaf#fnaf au#five nights at freddy's#charlotte emily#charlie emily#puppet fnaf#the puppet#the design and the functionality
48 notes
·
View notes
Text
You look away for ten seconds and tumblr goes ahead and makes everything 5% bigger. Whats happenin
#WHAR#WHAT#WHAAT JS HAPPENING#It’s normal!#it’s fine!#everything is functionally the same#but bigger?!??? for some reason????#I think the reason we are all like this is because this webbed site is- actually- dedicated to driving us slowly inch by inch off the brink#spirit speaks#tumblr
9 notes
·
View notes
Text
Women dont want flowers. Women want a sword
#//yall its 2am mod js woke up from a nap. i cant function properly///#//mod can confirm im a woman and i want a sword fuck the flowers//#bsd rp#bungo stray dogs#bungo stray dogs roleplay#bungou stray dogs#bsd roleplay#bsd#roleplay#bsd rp acc#bsd rp blog#roleplay account
8 notes
·
View notes
Text
"ok but *fictional character* is mine—"

#fromaryg: rara#HAHAHAHAHAAHAH#GATEKEEPING IN 2025#BRO WYD?!?#posted vid compilation of my 2024 stuff on ig#shared it w this artist gc i got added into like few weeks ago#the person who added me to this gc asked who were the ppl w baji#and i was like commissions for ppl who selfship w him (me included)#bro said 'ok but he is mine'#HAHAAHAH#someone w a normal functioning brain replied hey no gatekeeping#i replied fr lol should i leave#she said sure do what makes u happy#ty for the validation queen !! HAHAHAHA#fuck u can have baji if u want to bro js makes sure he wants to be w u too HAHAHAHAHAAH#IM WAY TOO OLD FOR THIS SHIT
9 notes
·
View notes
Text
The WORST autistic struggle is when u genuinely dont know if ur in the wrong because the people who r saying you are keep screaming at you and throwing insults at you instead of just communicating it calmly so you misinterpret it as bullying and take it personally. So now you dont know what you did wrong AND your feelings are hurt
And then when u try to ask them to talk to u calmly or explain how ur feeling they just assume that ur toxic cuz “ur making it all about you” or “you cant be spoon fed everything”
#praying for the day that autistic people will finally be considered disabled ppl and not just egotistical children#yall do know that ANYONE with autism#whether they are high support needs or not#are still disabled#its not that i want to be spoon fed everything. im disabled and need more time to process things and more help with it#it is a crazy microaggression when ppl do that like can we stop doing that#atp ima js accept that im a big baby. like yeah gimme everything i want i totally dont need it go function in society or anything#autistic#autistic experiences#autistic things#autistic community#autistic spectrum#actually autistic#autism#lyricas vents
4 notes
·
View notes
Text
im so tired I'm laughing at my own camera roll look at this fucking thing I doodled a few days ago

#his name js Terrence and he is a teratoma that functions like a pug#he just wheezes and has mysterious eye goop#he is daisy's pet#the thing on his head is his lucky tooth
4 notes
·
View notes
Text
So tireddd
#why does this shit take do much editing#js ki maa ki#I have 12 tabs open rn just to understand one goddamn function#I can't anymore
5 notes
·
View notes
Text
At the bus stop one time there was a gaggle of preschoolers waiting to catch the bus for a field trip day, and someone walked past with a couple of friendly little dogs, to great general delight.
But after a little bit, the dogs were getting overwhelmed, and the preschoolers were gently coaxed to back off so the person with the dogs could continue on. Specifically, one of the preschool teachers said, "Sometimes, when you're small, being surrounded by big people can be a bit scary and overwhelming. Even if they are friendly."
This was recieved as great wisdom: after all, the preschoolers were also small, and understood how scary and overwhelming big people could be! And the dogs were indeed even smaller than the preschoolers, so it made sense.
What was funny and charming was that, upon absorbing and reflecting on this wisdom, they all felt the need to tell it to one another. In tones of great insight, they turned to one another and said, "Did you know? Sometimes when you are small, being surrounded by big people can be scary and overwhelming! Even if they are friendly!" Back and forth, without any particular concern that they were all saying the same thing. Have reached comprehension of an insight, it must be shared!
I must say that this behavior is less charming in tumblr users than in preschoolers. Not least because tumblr users, having gained a little analytical skill to misuse, insist on Summarizing and Generalizing and Unifying the insights they repeat, quickly turning any interesting new information into formulaic dogmatic mush.
#i made the mistake of looking in the notes of the beach sand post i reblogged to see if anyone else had interesting comments#And the rate at which it went from like#1) person states with moderate confidence an opinion based on their personal observations#2) multiple people reply with “wow thats so insightful!” (aka it aligns with my preconceived notions of how things work)#3) someone else adds additional personal observations which are not really relevant but which can be absorbed into the narrative#4) people start outright stating the underlying belief on which this bias is constructed as if it were a fresh insight#5) general derisive attitude towards people who haven't seen the Obviously Correct solution to this complex real world problem yet#It's very.......#It's not like it's a high stakes post but it's such a microcosm of the whole dogmatic phenomenon#Also this js a more specific gripe to My Field or w/e#But the degree to which people react to the problems caused by the whole “Control of Nature” era of engineering#with this equally reductive “Nature will Fix Everything” type of attitude#Is sooooo frustrating.#Yes a great many of our current problems could have been avoided if we had not made massive changes to ecosystem processes on the assumptio#That they were simple and we understood them. And that they would respond in predictable ways.#the simplicity in retrospect of “wow we Should Not have done that” does not mean that they are simple to undo!#You can't go back in time. You can't turn back the clock on chaotic processes#Which is. Almost every process ever.#Restoration is hard! Returning to previous regimes of sediment or flooding or fire is tricky and full of foibles!#Moving towards a future which doesn't suck as much even if the past cant be recreated is also uncertain and difficult!#It's frustrating to see people act all high and mighty about how they Respect Nature unlike whoever is making all these decisions#When their understanding of the natural processes in question is AS simplistic as the people who caused the whole mess back in 1910 or w/e#Like I'm not saying there's not bad interests standing in the way of functional restoration on all levels#That's very much a fight to be fought.#But looking at that fight-in-process and saying “wow none of you Respect Nature like me uwu let nature fix it”#Is.#Ugh.
13 notes
·
View notes
Text
I have a new idea for the wip list that will likely actually get made at some point, but I need to learn programming in Python first smh my head
#i'm fairly decent at web dev coding already and i've heard python is pretty easy to learn#which i hope so because i tried programming basic site functions with JS and it made me want to eat my keyboard#anyways i'm not touching this for a little while. i just wanted to speak it into the world so i dont forget (permanently lol)#elkk.txt
5 notes
·
View notes
Text
🙇🏼♀️: Listen, I love learning a new language like every other self diagnosed adhd girlie (gender neutral) and I am fluent in some but Italian just really never was it for me and idc
Sanremo on Tumblr:
🙇🏼♀️: 😭😭😭 what is happening I wanna know so bad. Every year this time around I say I will not forgive myself for dismissing italian and then will be standing here another year not even getting the base line of a joke
2 notes
·
View notes
Text
i hate hot weather (i was not built for 70+ degree weather) i literallyyyy cannot function in it 😭 our AC broke so our house is not only hot, but stuffy... ugh. I tried playing rdr2 cuz i was bored but its so hot that i just cannotttt enjoy anything
#wanted to watch the passenger but im too uncomfortable to properly enjoy it#cant even watch anything either cuz the joy and whimsy is just being sucked outta me#im going to be so dysfunctional for the next 5-ish months <:(#“im going to go do/watch [thing]” and as soon as i go to do/watch said thing i immediately stop cuz im js so uncomfortable#the summer is the exact reason why i dont exist/why im not awake during the day cuz its too hot to function#“70 degrees isnt that bad” it is when you dont have ways to cool off (broken AC. Got rid of our pool) 😭#yapping
8 notes
·
View notes
Note
Tried to click on your blog and it sent me the "nothing to see here" message that you get when someone has you blocked and I Nearly FREAKED OUT
BAHH lmfaoo i would never block you omgggg
i have no idea why it would do that????? thats so silly oh my god
#charlie's asks#ive never heard of that happening oh my god thats so funny#tumblr js a Functional site
4 notes
·
View notes
Text
Sugarcube, flat stats and setter links
As I spent an unspecified time trying to figure it out, maybe it will spare someone the trouble or build towards intuition for how stats work. Or maybe this is bait to see if anyone knows a better solution 😏
First of all, flat stats vs fairmath stats. Fairmath stat accumulation is designed to represent stat gain as inversely relative: the higher your stat value, the smaller your absolute gain would be expressed by the same relative number. E.g. 10% gain at 90 is different from 10% at 15. A bonus (and very important) effect of this is that the stat value increased or decreased via fairmath will never fall below 0 or rise above 100, doing all the stat clamping for you.
Fairmath is easy to test and observe in ChoiceScript, where you can run thousands of tests automatically. You cannot do that in Twine. This is my primary motivation for going with flatmath for my SugarCube project. Which means that someone has to handle clamping, as a gain of 10 at stat value 95 will set the value above 100.
The frequent code for handling that is during change:
<<set $stat to Math.clamp($stat + 5, 0, 100)>>
which, in this example, increases variable $stat by 5 and makes sure the result is not smaller than 0 and not greater than 100: clamping.
My problem with it is how much code repetition is there and how incredibly copy paste error prone this is. You will no doubt be copy pasting this code all over your game files and will need to make sure you are replacing the variable name twice each time, lest one variable will end up with the value of another in an oversight that is way too easy to miss. Ideally we want to specify not only the name of the variable, but also our bounds (0 and 100 respectively) only once.
There are two answers to this problem: widgets and JavaScript. A widget for this is one and done, but it is more fuss to integrate it into code, I found. In the JS solution you would need to figure out a function that works for your variable storage schema.
Let's cover the widget solution first:
<<widget "modify">> <<print '<<set ' + $args[0] + ' to Math.clamp(' + $args[0] + ' + ' + $args[1] + ', 0, 100)>>'>> <</widget>>
Not only will the above check that each resulting value is within the [0; 100] range, it accepts the variable name as a parameter, meaning it will work for any stat (though you would need to pass the variable name as a String) and for subtraction too:
<<modify "$stat" -18>>
Now to problems. For my links between passages in the format for Twine I use, SugarCube, I strongly prefer the structure of setters:
[[Link text|NextPassageName][stat modifications]]
Calling a widget is not possible inside a setter link though. You would either need to do that in the next passage, which is inconvenient if you do not need that passage for anything else, or to marry two syntaxes in this unholy matrimony:
<<link [[Link text|NextPassageName]]>> <<set $otherstat to "wowza">> <<modify "$stat" -18>> <</link>>
And this is just one link/option.
Now, for the price of extra JS code you can avoid all this. Depending on how you store your game variables, flat or in objects, you can employ tricks to save you time and code lines.
window.modifyStatA = function(value) { State.variables.StatA = Math.clamp(State.variables.StatA + value, 0, 100); }
This anywhere in your custom JS file for the game will allow to do the following:
[[Link text|NextPassageName][modifyStatA(-18), $otherstat to "wowza"]]
and will change the value of $StatA by subtracting 18 upon clicking that link/option.
You can also do the following:
window.modifyStat = function(statName, value) { State.variables[statName] = Math.clamp(State.variables[statName] + value, 0, 100); }
which creates a more generic function:
[[Link text|NextPassageName][modifyStat("StatA", -18), $otherstat to "wowza"]]
As you can see, this is suitable for flat stat storage (which I personally do not do). I suppose for the nested stats you could specify the object names as inputs in their order of hierarchy and access them so for a generic function, but I am not sure yet how to do that for a variable number of levels, e.g. Parent.StatGroup.statA vs Parent.statB
I believe this is geared to the very specific way I personally structure my passages and links, so I am ready to be proven wrong 😅
Cheers!
#twine#sugarcube#twine tutorial#I realized the generic JS function solution as I was typing this so for this alone it was a very useful exercise lmao#I feel like there should be a way to modify the prototype of the JS object but everything I tried led to an error
22 notes
·
View notes
Text
Playing DAI and truly in love with how you can just say anything. Truly in hatred with how you have no idea what the fuck you're going to say tho.
#you know like. the little blurb says something and i think i understand what my character will say and then the tone js super different#rarely this is a good thing.#like when I was committing a micro aggression and the option was 'My clan wasn't like that...' and to me that blurb sounded kinda sad?#like naive and sad and i was like 'sigh ok i guess.' but no it was actually a no true Scotsman#which was perfect because yes my Inquisitor would definitely no true Scotsman the practices of his/her community#like i was expecting it tonbe all 'B-but my clan didn't do any of that :(((. i guess we're Special and Kinder :(('#but s/he really went “Well MY clan doesn't do that; we are Good and Better and we just send our surplus mages to other clans or villages'#and got her/his ass immediately handed to her/him when the gal pointed out that yeah. that's actually literally doing it.#because when you send a kid to go to another clan you are functionally sending them into the woods totally alone.
3 notes
·
View notes
Text
Why do letting websites lie about properties being studios grrrr why do you make me click on them just to be 4 bedroom houses
#im looking for next year housing bc im bored#and i get maximun loan but theyre all still higher than what i get#it doesnt help that my uni is in a quite expensive city 😔#but im looking for a job for next year slowly#and my mum will be giving me money when she can so it shouldnt be too bad#as much as i would want to live with like the friends ive made so far or whatever we cna call them#but i really thing living on my own js the best option#considering i cant function wjen theres multiple people constantly in my living space and kitchen its very tiring#lasar being incoherent
3 notes
·
View notes