« first day (2305 days earlier)      last day (2866 days later) » 

00:11
@William potrace it's cool
:D
never used a good one like this before
thank you!
TOUCHDOOOOWN
Hey guys, I'm having a small problem with Javascript, maybe you can give me a hand
@Barnabe Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
So I'm using javascript to change text in a page and it works well the first time I do it. The second time nothing happens (but the function is called without problem)
here is a link
the function not working is the one called "noinfo"
to use it in the page you have to select players and then select the cross or circles
(it doesn't matter what you choose)
00:28
11 mins ago, by Kendall Frey
TOUCHDOOOOWN
x2
user6438653
Hey what's up guys, Scarce here!
user6438653
Hey @KendallFrey, bot @CapricaSix!
user6438653
Hey @neoDev! You're awake?
user6438653
bye gay SO!
00:43
quite laughable
what a pick omg
00:46
@littlepootis do you watch the super bowl in india?
No, just the hunger games.
Why is there a pick emoji
send it. Well my grandfather worked in the coal minds that might be why. They deserve something
I'm in this strange position where I think I've created something worse than PHP, or Javascript. A full fledged, overengineered, architecturally borked (probably), mvc influenced php application, managing js through a mix of webpack and custom php asset server, with react and material-ui mixed in the work of some integrator who used absolutely no css framework.
"I should've gone with Laravel, jQuery and Bootstrap"
00:51
the stuff of legends
@littlepootis bruh lol
So, I just did nslookup localhost and it's pointing to google's DNS instead of 127.0.0.1
Is this normal?
cat /etc/resolv.conf
@shriek what OS?
Ubuntu
But yeah @littlepootis I see it there. I don't remember adding this.
00:56
@shriek Does it fail to resolve? If so, mine does the same
Well I was playing with nginx and was just allowing 127.... but couldn't curl to localhost.
even though my /etc/hosts has the right entry.
You have a hosts entry for localhost?
yeah
127.0.0.1 localhost
That's not normal on Windows, but maybe it is on Linux
What does your /etc/hosts look like?
00:59
I think in Windows it's in some system32 file.
127.0.0.1 localhost
127.0.0.1 mypc_name
@littlepootis Mine looks like Matt Damon
127.0.0.1 localhost
::1     localhost
127.0.1.1 yourpc_name
I see some ipv6 entry too yeah.
@KendallFrey lmao
Let me give that a try.
01:01
Does Linux actually refer to hosts for localhost?
yes, iirc
I was under the impression that the OS short-circuits the resolution on localhost
It depends on the config really. Usually under nsswitch.conf or something. Not really good with this sysadmin stuff.
Does that mean fiddler can track localhost traffic on Linux?
01:03
It can track anything.
Not on Windows
@Barnabe The function is working. But because any choice would call players() which calls selectPawn(), the change that noinfo() made is overwritten.
ohhh
fuck ...
stupid mistake
wait ...
no
the cross or circle calls isround, then noinfo() is called and finally game() is called
and game doesn't change anything
the noinfo was to overwrite what selectpawn wrote
01:28
@Barnabe You changed the innerHTML of choice1 and choice2, yes. But their original onclick is part of the tag - not part of innerHTML. The players calls are not replaced by setting innerHTML.
how to make javascript game compatible in internet explorer 11? any idea?
ahhhhhh
okokok
thank you very much
you'reright
@jacobian Easy. Fix all the problems with IE11.
and how to do that?
my client like IE though.
@jacobian Find the problems, and fix them.
01:31
do you have experience with IE 11?
are there a community for those people who love using javascript in IE?
@jacobian Use IE to run the game, open dev tools, and fix any errors you get. You can browse MSDN to see what it supports, but it's faster to learn by doing.
@jacobian IE loving js community? Yes. Around 15 years ago. If you mean now, no. MS fanboys has moved on to Edge.
well I am still using windows 8. so there's that
... you ok tho?
01:51
Might have given you guys incomplete information earlier. I had to allow ::1 in my nginx conf too not just 127.0.0.1. TFW you thought it was related to dns.
02:02
html5 test score in IE 11 is 312 and chrome is 504. quite a difference.
@shriek ah
@Sheepy halp
Can I use the (developer.microsoft.com/en-us/microsoft-edge/tools/vms) modern.ie vms to run VS Community Edition?
Probably, but you'd have to deal with them expiring.
Does renewing before they expire purge everything?
I don't think so..
er.. renewing?
They require a fresh install every 90 days.
That sucks
02:11
They are trying to prevent what you are doing. Yet, 90 days of 'state' on a free OS image for browser testing is still useful.
I've got a Windows 10 key, but it doesn't seem to be legal to use that one for the vm.
it's already in use?
@littlepootis You need to renew the VM two times every 30 days, which keeps everything, for a total of 90 days.
@jacobian The problem is no one work with IE because they like to. If you visit the official IE web dev forum, it has a pinned post telling you to seek help in StackOverflow.
Thought Win10 was free now.
02:19
@shriek u avin a giggle?
Or was that just free upgrade.
I don't remember the last time I used Windows.
Ah.
@shriek If you signed up Insider Builds. Which means you get bricking updates a few months earlier than others.
Free upgrade is still available for Win 7 and 8. Which you can buy cheaper than Win 10, at least in my area.
@Sheepy Are you sure?
I think that expired months ago
Did you not read the conditional?
You mean assistive technologies?
In Windows terms, that includes built-in assistive tech as simple as bigger font size or cursor.
Just go to the store with a cane. Free upgrade.
02:27
any idea how to make playing html5 in IE 11 on par with playing it in chrome?
You need to access tthe update from Cintrol Panel's accessibility page, IIRC, and click the upgrade button. That's sll.
@jacobian by using the subset that IE 11 supports?
@jacobian If you mean speed, you can always profile and optimise your code. IE always run slower than Chrome so you can only make your code run faster.
based on html5test in IE 11 they don't support responsive images while in chrome they do
now the question is how to make IE11 supports responsives images?
(I googled for "responsive image polyfill". First result.)
02:34
^
will check it out
Google is your friend.
if I use IE then bing is my friend
Bing is never your friend
Did Bing help you with finding that polyfil?
02:37
I am kind of looking for js that can be used to address responsive images issue in IE11
IE11 don't support responsive images based on html5test and this bothers me.
and my client who wants to run the game in every browser
and I am programmer who must met every wishes my client demanded of me
:-)
If you tell them supporting IE will add 1/3 the dev cost, they may change their mind. Because it's their money.
What if your client wants you to factor a 1000-digit number?
Not an expert on modernizr but I usually use that if clients want old browser support. If it's not found there then I usually don't go out of my ways to add the said feature.
well I need to tried first and then will give the conclusion to the client
Fair enough. Polyfilling would be your only option.
02:43
Or avoiding those features.
allright, will check into it.
@jacobian I whipped this up a couple of years ago. It's pretty basic, but worked cross-browser for me github.com/monners/responsive-image-loader
@monners so I just need to add that js file in index.html right?
@jacobian No, you need to include it in your project, import the utility, then pass in the options you want. Sorry, docs are almost non-existent. This assumes you're using some kind of build tool that can resolve require/import statements. What are you using to build your project?
I use some kind of phaser
02:49
we have our catch of the super bowl O_O
phaser-transition.js and all kind of it.
should I list all the js library here?
no, I mean are you using something like gulp/grunt/webpack?
Or are you just literally writing html/css/js into static files?
I don't think so. I think I am using createjs-2015.11.26.min
there's this particular images that don't behave as well as they did in chrome.
Errr, ok. That's not what I mean. Umm... are you using npm?
02:52
wat
but yess I am using html/css/js into static files.
I don't know what npm is, should I google it?
yeah, you should. But I don't think this is going to help you. Don't really have time to walk you through how to convert this over to work in static files...
but thanks for the idea though. will look into it
we've got ourselves a football game...
03:18
what is this operator called? true ? 1 : 0;
03:54
@Zirak Interesting, I wonder how binary translation works with emscripten
I thought it couldn't
Maybe they wrote an interpreter for that intermediate language that qemu generates
04:43
@Mutch95 Commonly called the ternary operator, it has no universal name. In JS the official name is the Conditional Operator.
@jacobian Good luck. If you find that you spend more time looking for and getting polyfills to work than to actually using the features, I hope your client will be understanding.
yeah thanks sheepy.
do you create game also?
Not any more. I still do game tools though, like database and map editor for Dungeons and Dragons.
did you use sprite?
Yes.
well good. I can ask questions towards you later. :-)
04:52
Ping me and I'll help if I can and baby is not crying. :)
yes, the baby need milk to stop it from crying.
We actually have something like that. I didn't know there are "ready to feed" bottled formula that doesn't need water. Like soft drink for baby. Haven't tried them, though.
So much to learn.
@Sheepy You will learn more with each baby
Noooooo! >_<
04:59
Be a man
@FlyingGambit Ours is a little sheep. He needs sheep milk!
Isn't that bad for the lamb? I've read that cow milk and ewe milk (and mommy milk) has different composition ._.
Uh... ok. Didn't play the video. Obviously it is not getting any milk.
Maybe its just trying to lick off some of the dripping milk
@Sheepy Yes goat milk preffered
if Mommy not available
05:20
hi, how to select EVERY, not just first, elements matching css selector. f.e. if i want to select all <a> tags document.querySelector("ul li a")
@Sruj document.querySelectorAll
thanks
user6438653
05:42
@Bahhhhhhh!
user6438653
@Sheepy! Bahhh!
user6438653
lol
user6438653
@FlyingGambit I think there may be a girl.
user6438653
Avina?
user6438653
Hey @Mosho!
05:44
hi
.icon-footer .icon {
float: left;
width: 51px;
height: 51px;
background-image: url("images/icon.png");
user6438653
What's up?
user6438653
Hey @jacobian!
how to make that image resize automatically?
based on the browser resolution
user6438653
background-positon or something.
05:45
that's css file though
footer position
any idea?
if I change px into % then the image gone.
i re-installed my PC, anyone know where to get jicama script?
well yes I am checking the link now
user6438653
background-size: cover;
user6438653
05:47
That's it.
user6438653
No %'s
jicamascript is the best js ever
user6438653
Say wat?
how to loop over array if 1st element give me what i need like: ar[0].text. How to print every array elements? ar.forEach((function(){element.text}))give me "undefined" and ar.forEach((function(){console.log(element.text)})) give something strange
what is the question?
user6438653
05:51
ar.forEach((function(element){element.text}))
how to display all array elemnts ar[0].text,ar[1].text, ar[2].text
user6438653
You forgot element in the function params.
user6438653
To display them use. console.log(ar)
i need help
user6438653
@Adan Ramierz Can you please type this !> var ar = [ 1, 2, 3 ]; console.log(ar);
user6438653
05:52
@Fiido93 haha
i dunno
user6438653
just ask
user6438653
wat?
user6438653
!> var ar = [ 1, 2, 3 ]; console.log(ar);
@shad0wk thanks
user6438653
05:53
It's so sad to be banned from using @CapricaSix
user6438653
@Sruj No prob
user6438653
Unban me @rlemon! And stop changing your profile pic. It makes it hard to find you. LOL
you mean you can't do this ?
!!> "Hell yeah"
@FlyingGambit "Hell yeah"
user6438653
!> no
user6438653
05:55
!!> no
user6438653
>>> no
user6438653
Noooo!
user6438653
!!> "Hell yeah"
user6438653
!!anythinjg
user6438653
!!caprica
05:56
!!> "I feel privileged"
@FlyingGambit "I feel privileged"
user6438653
!!help
!!> "Hello"
@FlyingGambit "Hello"
user6438653
!!> "I feel privileged"
user6438653
05:56
...
She only wants to talk to me
why were you banned from talking to a bot ?
user6438653
No, fjsjueih @rlemon bahbeuhuehuh me a while ago for siteratorjurr
did you teach her anything naughty ?
user6438653
I was banned because these people were doing stuff to the bot
user6438653
I came along.
user6438653
05:57
And copied some of their commands.
user6438653
It wasn't bad
you mean virtual s*x
user6438653
They were spamming it.
user6438653
I wasn't.
user6438653
No, LOL
user6438653
05:58
I just happened to be there, when he came and banned them and though I was doing the same.
@shad0wk javascript so hard to learn.
user6438653
I didn't know stackoverflow had bots back then.
user6438653
okay...
rlemon was in a bad mood day that day
he forgot to drink his milk
user6438653
I mean 5 months ago or something. October 2016.
user6438653
05:59
Lol
he banned you for that?

« first day (2305 days earlier)      last day (2866 days later) »