[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Archived threads in /wsr/ - Worksafe Requests - 635. page

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

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...)
17 posts and 2 images submitted.
>>
>>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.

File: 1489825365454.jpg (46KB, 677x395px) Image search: [Google]
1489825365454.jpg
46KB, 677x395px
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?
11 posts and 2 images submitted.
>>
>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.

File: rusia sara.jpg (247KB, 2048x1358px) Image search: [Google]
rusia sara.jpg
247KB, 2048x1358px
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.
13 posts and 3 images submitted.
>>
>>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!
23 posts and 3 images submitted.
>>
>>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)

File: big titty anime chick.png (66KB, 158x450px) Image search: [Google]
big titty anime chick.png
66KB, 158x450px
sauce on this? I saw it in an ad
12 posts and 3 images submitted.
>>
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!
29 posts and 4 images submitted.
>>
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.

File: 1492388164764.jpg (16KB, 316x323px) Image search: [Google]
1492388164764.jpg
16KB, 316x323px
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
25 posts and 2 images submitted.
>>
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

File: 56115662.jpg (37KB, 385x550px) Image search: [Google]
56115662.jpg
37KB, 385x550px
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?
18 posts and 4 images submitted.
>>
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

File: 160630_155a10b514646c91a.jpg (100KB, 1050x788px) Image search: [Google]
160630_155a10b514646c91a.jpg
100KB, 1050x788px
Could someone shoop the people out of the background for me?
11 posts and 4 images submitted.
>>
>>298706
Do you want a transparent background or do you just want the people gone?
>>
>AS109
>/wsr/
Watch your step, OP.
>>
>>298707
Just the people.
>>298712
Shh! It's n-not lewd.. or anyting!! baka!

File: 07 - KGEFoBB.jpg (155KB, 1920x1080px) Image search: [Google]
07 - KGEFoBB.jpg
155KB, 1920x1080px
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 ?
23 posts and 3 images submitted.
>>
>>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.

File: buffyandfaith.jpg (314KB, 1280x1024px) Image search: [Google]
buffyandfaith.jpg
314KB, 1280x1024px
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
12 posts and 1 images submitted.
>>
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
>>
>>298418
>>298425
Fuck, this is not practical, I need the entire video. Hopefully someone else chimes in. I know it can be done, someone uploaded another one of those long videos to youtube, just not this one.

Thanks.

File: 1488367083319.jpg (53KB, 600x800px) Image search: [Google]
1488367083319.jpg
53KB, 600x800px
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.
13 posts and 2 images submitted.
>>
>>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

File: 1448941930487.jpg (79KB, 1160x583px) Image search: [Google]
1448941930487.jpg
79KB, 1160x583px
Requesting reaction images, more specifically blushing ones or lewd ones but anything else is ok.
28 posts and 27 images submitted.
>>
File: HEY!.jpg (10KB, 250x210px) Image search: [Google]
HEY!.jpg
10KB, 250x210px
>>297749
>>
File: 1488800749313.png (43KB, 158x343px) Image search: [Google]
1488800749313.png
43KB, 158x343px
>>
File: 1467105052021.jpg (26KB, 230x240px) Image search: [Google]
1467105052021.jpg
26KB, 230x240px

File: Luke episode 7.jpg (72KB, 720x480px) Image search: [Google]
Luke episode 7.jpg
72KB, 720x480px
Can someone make a Punished Luke edit?
16 posts and 6 images submitted.
>>
File: 1492228914642.jpg (176KB, 720x480px) Image search: [Google]
1492228914642.jpg
176KB, 720x480px
>>
File: 1481523446669.jpg (46KB, 568x479px) Image search: [Google]
1481523446669.jpg
46KB, 568x479px
>>297471
top fucking kek
>>
>>297471
god damn it

File: 1418909222212.png (158KB, 640x480px) Image search: [Google]
1418909222212.png
158KB, 640x480px
Requesting the "anime that /a/ likes, anime that /v/ like, anime that /g/ likes" bait image.
198 posts and 7 images submitted.
>>
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

Pages: [First page] [Previous page] [625] [626] [627] [628] [629] [630] [631] [632] [633] [634] [635] [636] [637] [638] [639] [640] [641] [642] [643] [644] [645] [Next page] [Last page]

[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.