I am trying to make my code work, but it won't work! I want error messages to come up beside each input field depending on whether the input is a proper number, and I want the "clear" button to clear everything, not just the input fields. What needs to change?
<script>
var $ = function (id) {
return document.getElementById(id);
}
var mpgCalc = function() {
var milesDriven = document.getElementById("miles_driven").value;
var gallonsUsed = document.getElementById("gallons_used").value;
var priceGallon = document.getElementById("price_gallon").value;
var milesOverGallons;
var gasMileage;
var gallonsByDollars;
var tripCost;
var milesDrivenError;
var gallonsUsedError;
var priceGallonError;
switch(true) {
case (isNaN(milesDriven) || (milesDriven < 0)):
milesDrivenError = "You must input a proper number.";
gasMileage = "";
tripCost = "";
case (isNaN(gallonsUsed) || (gallonsUsed < 0)):
gallonsUsedError = "You must input a proper number.";
gasMileage = "";
tripCost = "";
case (isNaN(priceGallon) || (priceGallon < 0)):
priceGallonError = "You must input a proper number.";
gasMileage = "";
tripCost = "";
break;
case ((gallonsUsed >=0) && (priceGallon >= 0)):
gallonsByDollars = (gallonsUsed * priceGallon);
tripCost = "The cost of your trip is $" + parseFloat(gallonsByDollars.toFixed(2)) + ".";
case ((milesDriven >=0) && (gallonsUsed >= 0)):
milesOverGallons = (milesDriven / gallonsUsed);
break;
}
(continued...)
>>299787
Hopefully 4chan does not think it's SPAM on the fourth try....
>document.getElementById("mpg").innerHTML = gasMileage;
>document.getElementById("cost").innerHTML = tripCost;
>document.getElementById("miles_driven_error").innerHMTL = milesDrivenError;
>document.getElementById("gallons_used_error").innerHMTL = gallonsUsedError;
>document.getElementById("price_gallon_error").innerHMTL = priceGallonError;
}
>>299787
Isn't there a special way to format code on 4chan?
It keeps registering my thing as spam when I'm just in a bind with this programming assignment I've got...
</head>
<body>
<h1>Calculate Your MPG</h1>
<h2>Enter the information below to see if you are getting good mileage!</h2>
<form id="mpgform">
<label for="miles_driven">Miles Driven: </label>
<input type="text" id="miles_driven" name="miles_driven">
<span class="error" id="miles_driven_error"></span>
<label for="gallons_used">Gallons of Gas Used: </label>
<input type="text" id="gallons_used" name="gallons_used">
<span class="error" id="gallons_used_error"></span>
<label for="price_gallon">Price per gallon: </label>
<input type="text" id="price_gallon" name="price_gallon">
<span class="error" id="price_gallon_error"></span>
<input type="button" id="btnCalc" value="Calculate the MPG" class="clear">
<input type="button" id="btnClear" value="Clear Form">
<p id="mpg"></p>
<p id="cost"></p>
</form>
</body>
</html>
Put it on pastebin or similar and then link it, that might make it easier to display it.
Does anyone know the source on this depressed qt? I've tried SauceNao, Google, IQDB, Tineye, Yandere, 4chan archives and can't find jack.
By the way, on a side thing what are some other reliable sites for looking up sources for images? Also is there a reliable way to look up source on audio?
>depressed qt
She's just sad, you dumb fuck. Sad and depressed are not interchangeable words.
For audio, use shazam or audiotag
>>299383
>She's just sad, you dumb fuck. Sad and depressed are not interchangeable words.
>Definition of "depressed"
>"(of a person) in a state of general unhappiness or despondency."
>Synonyms
>sad, unhappy, miserable, gloomy, glum, melancholy, dejected, disconsolate, downhearted, downcast, down, despondent, dispirited, low, heavy-hearted, morose, dismal, desolate
What I said still works & fits fine.
>For audio, use shazam or audiotag
Thank you for those suggestions.
>>299386
You're missing the point. Depression is much more severe than just general sadness.
A depressed person can be sad, can look/act happy, can even possibly feel happy to themselves. A sad person is only sad though, and usually for reasons completely unrelated to depression.
Just because you're sad, doesn't mean you're depressed.
Sadness is an emotion, depression is a mental state.
ll first than all thanks for your time and the situation is this:
my friend (Sarah) loves so much to her teacher(Lila) she loves her like the mother she never had, the birthday of lila will be soon so Sarah would like to give her something special and she thought about a photo of people around the world holding a paper that it has the phrase written "Lilaitzel, Saris loves you so much that her love came to (Country)". Something like the photo.
it has to be written in spanish because they dont know english :(, i hope someone can help me pls, thanks.
>>299316
I wish i could be of help, but I'm in the US, and by tomorrow you'll probably have lots of those.
If not I'll do one tomorrow
>>299316
>it has to be written in spanish because they dont know english
Just fucking deport them already. This is a stupid gift and a gay thread.
>>299328
I mean, allow me to elaborate:
>Hey Juana, have this collage of 100 people you've never met saying how much they love you. I got it from strangers on the Internet by the way.
What drugs did you consume before having this shit idea? I cringe at the thought of you finding this deep and touching.
hello kind sirs, so I just a spare RAM just lying around our house and I am just wondering if the two is compatible with each other. I tried to install the two and It said that my memory increased from 4000 to 8000mb according to dxdiag. the problem is I don't seem to feel the increase in efficieny. so I am just wondering if the is working at maximum efficieny? if more info is needed about my hardware, please just message below. thanks!
>>299233
The RAM is working fine. What were you even expecting to "feel"?
>>299233
You really only "feel" RAM when it is lacking. Open up 30 tabs while gaming and watching a 1080p video. Then remove 4GB and repeat. You will probably feel a difference.
But once you have enough for whatever you are doing, it is just that - enough.
Having 3GBs of unused memory does not make whatever is stored in the other 5GB any faster, for example.
There are many games in which the minimum fps can increase with more RAM or which flat out need the 8GB and can even profit from having 16, but as I said, you only really notice this kind of thing if you don't have enough.
were you expecting dual channel? both modules are different base speeds and probably different latencies, for dual channel to work you need to tweak them to "be the same", and given its a laptop (since they are sodimms, there are exceptions though) you wont have much luck since most laptops lack the settings for it.
and even if you have a fully functional dual channel setup you wont notice it in any "regular" applications. and like >>299257 said, you will most likely only notice that the machine doesnt slow down as much during memory pressure situations (lack of available ram)
sauce on this? I saw it in an ad
Probably something drawn originally for the ad.
She looks like one of the characters in a web-based knock-off of HuniePop that I tried a while ago. I can't remember the name though.
>>298976
I'm Not gonna go through all of these. Your call m8.
https://yandex.com/images/search?url=http%3A%2F%2Fi.4cdn.org%2Fwsr%2F1492455406681s.jpg&rpt=imageview
Out of this list, which should I ditch? Which should I watch?
https://pastebin.com/raw/D99EYD2a
Thanks!
You should ditch streaming anime all together.
What the fuck are you even thinking?
Watch it all, form an opinion.
>>298956
>You should ditch streaming anime all together.
And give Japanese companies my precious neetbux? Don't be ridiculous!
>>298958
Oh right, didn't realize you only care for the (probably but could be any) American comapnies getting money when you watch their streams chock full of ads and shitty quality.
No, you stupid newfag, you download your anime like everyone else. I'm going to guess you've never heard of torrents either.
I am looking for depressing anime shows, where people start out bright and happy and then something happens that makes them depressed and suicidal. I want your most depressing anime, thanks
Texhnolyze is widely regarded as the most depressing anime of all time.
Thing is, it's depressing and visceral the entire way through, no glimpses of happiness beginning or end.
>>298942
Higurashi
Serial Experiments Lain
My flash drive bricked itself. One day it was working fine and the next time I checked it, pic related showed up. There were a lot of important school and work files on it that I can no longer access. How can I recover the data?
First step is to touch it as little as possible.
In the Linux distro of your choice, run 'ddrescue' on the device itself to grab the raw data into a file which you then work with other tools.
>>298846
What happens if you touch it?
>>298847
Mustard gas
Could someone shoop the people out of the background for me?
>>298706
Do you want a transparent background or do you just want the people gone?
>AS109
>/wsr/
Watch your step, OP.
anime that's as good as Neon Genesis, especially the movie. This was the first anime I watched, it was perfect. I'll consider anything if you liked genesis and think its worth the watch. Not necessarily mecha but I liked the action. Is one punch man a meme ?
>>298503
If Eva is your first anime I take you never watched Death Note?
It's a thriller and doesn't have that much action, but it's one of these "entry" anime that everyone likes.
One Punch Man is fun too, but it doesn't take itself seriously at all (in case that's what you're after). It's a fun mix of bad comedy and action. Worth watching too, at least the first episode.
>>298503
for series similar to eva Serial Experiments Lain is usually recommend but i think FLCL and Gurren Lagann are better recs since you liked the action (both made by Gainax same studio as Eva)
also try some classics like Akira, Ninja Scroll, Samurai Champloo, Cowboy Bebop and Ghost in the Shell.
>Is one punch man a meme ?
i couldn't finished ep 1 tbqh,
Evangelion is the best anime has to offer as a medium. Don't even bother with anything else; it's just juvenile garbage.
How can I download this video off of people.com?
http://people.com/pen/00000158-44d0-d1a1-a758-4cd852110000/0000015b-206a-d9b9-a3ff-f26f3a4e0000/
Pic semirelated
note 100% if its the same stuff the flash player plays since i dont have flash installed anymore but
https://edge.time-life.top.comcast.net/default/Time_Inc._-_OTT_-_Production/801/185/O0U9MTQ5MjM5MDQyNztBPTE7Sz0wO1A9MDExMTEwO1M9ZjQzNDQwNTQ1MTM5NmE4MmQxZmRhMTIyMWYwYmFiN2I5ZGVkOWE1Zg/170329_EW_REUNITES_108_V3_ALT_10502725792_m3u8_video_1920x1080_8000000_primary_audio_eng_8_x022e41f3662a4da4b3f3d1b5926ca038_00001.ts should be the one you are looking for. vlc is able to play it and possible to convert it to a more common format but I leave that up to you
its more than one part so you have to change the last number in the url "00001.ts "-> to "00002.ts " -> 0000n.ts ...can't be bothered to find out how many parts there are though
https://link.theplatform.com/s/FiIDgC/Hoz9J27WWWiX/170329_EW_REUNITES_108_V3_ALT_10502725792_m3u8_video_1920x1080_8000000_primary_audio_eng_8_I-Frame_x022e41f3662a4da4b3f3d1b5926ca038.m3u8
here is the playlist link btw, maybe you can find a better way...considering its a fuckton of parts, gl
Is there a way of retrieving/viewing a recently deleted tweet?
Someone posted something and I need to screencap/view it.
Would really appreciate this.
>>297889
Sometimes tweets are saved in google's cache for awhile. This works best when you have the specific number of the tweet to search for.
I ran that page through Wayback Machine and it wasn't possible to retrieve it due to robots.txt.
>>297889
>>298049
If you know when it was tweeted, you may be able to find it here:
https://tweetsave.com/partisangirl
Requesting reaction images, more specifically blushing ones or lewd ones but anything else is ok.
Can someone make a Punished Luke edit?
>>297471
top fucking kek
>>297471
god damn it
Requesting the "anime that /a/ likes, anime that /v/ like, anime that /g/ likes" bait image.
294509<<
are you sure it's bait
>>294523
I haven't seen the image OP is talking about but from the description it can't be anything but bait.
>>294523
Nice try