« first day (1938 days earlier)      last day (3020 days later) » 

12:10 PM
 
user3119231
wtf
 
Btw; it works now: jsfiddle.net/tj07vs99/6
 
user3119231
Nice.
 
user3119231
@TechTreeDev I can optimize this if you want
 
@Maurice That would be cool, bc i started with JS yesterday :D
 
user3119231
12:18 PM
@TechTreeDev how about this? jsfiddle.net/tj07vs99/9
 
@Maurice Wow, that's pretty awesome. Thank your very much :)
 
user3119231
Try to learn from it. Toggle bool combined with custom selector function
 
user3119231
BTW Ich bin Niedersachsener ;)
 
@Maurice I definitely will. It's always inspiring reading expert's code
@Maurice Sachsen unite! :D
 
user3119231
I have to continue to work a bit. See you:D
 
12:26 PM
OMG Physics homework too much
I'm going to copy from ms
 
user3119231
don't forget to put a source line into your homework
 
[ BTW, There seems to be some bugs in SO chat's markdown praser
For example:
Some text
[Some text with link](google.com)
Result in:
Some text
[Some text with link](https://google.com)
Seems like the markdown parser don't work with multiple lines.
 
user3119231
It's not javascirpt it is meta stuff :D
 
@TechTreeDev btw your check_vis should be a toggle_vis actually
 
user3119231
He means for clarify, only.
 
12:39 PM
Hey guys for some reason a class i was adding at the end of a function just stop working after the id was numerically higher than 9, i think maybe due to the fact it gets confused between id="pin1" and id="pin10" jbin here: jsbin.com/kifukazoso/1/edit?html,js,output
 
@AboutLeros Welcome to the JavaScript chat! Please review the room rules. Please don'task if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@CapricaSix "Please don't ask if you can ask" , " just ask your question" RIP English :P
 
@AboutLeros lol
 
user3119231
You aren't seriously argumenting with a bot?
 
Yeah, why not. stupid robot :P
@Maurice And plus if some one doesn't point out it makes no sense, then who will?
 
user3119231
12:43 PM
It makes sense -> People comes in every day "Can I ask you a question? Can I? Someone?"
 
user3119231
And we are all just like: "Uh, just ask, if someone knows, he will answer."
 
@AboutLeros There is even error with html
 
user3119231
And this is really bad. Because your javascript can only work with valid html :(
 
@Maurice Then it needs a comma.
@maowtm Hahaha! well that's embarrassing.
@maowtm wait where?
 
12:45 PM
@AboutLeros Also indentation is good for human eyes.
@AboutLeros Last 3 line
 
user3119231
nah, just kidding.
 
@Maurice The user will be thrown into mindjail in 1 more invocations
 
@maowtm well I was just auguring with a robot. . .
 
0.0
 
user3119231
nevermind.
 
12:46 PM
@Maurice Already registered; still need 1 more
 
i'll go.
bye
 
user3119231
Man I'm joking.
 
user3119231
Let me see your file.
 
user3119231
I will clear your syntax first.
 
user3119231
You see the problem here: jsfiddle.net/nu5m2kee
 
12:48 PM
:( can't get new hardware for two weeks because of Chinese new years. I hate waiting.
@KendallFrey it is an experiment
 
user3119231
Now we can start to use the console to find the error: jsfiddle.net/nu5m2kee/1
 
I hope with a slow throttle I can escape kerbins influence
if it gets violent, I'll dump the fuel
 
user3119231
@rlemon take my admin rights. I missused the ban command.
 
you don't have admin rights
 
@Maurice I just took a link out. it was a typo.
 
user3119231
12:51 PM
@rlemon thanks.
 
user3119231
@AboutLeros Okay, now we got the html code fixed. So we can concentrate on the jquery.
 
user3119231
Forgot to include jquery: jsfiddle.net/nu5m2kee/2
 
@rlemon hah, I'm waiting on the same thing
@rlemon Even just one nuclear engine, it'll flex a lot, if I see those are the tiny docking ports
and it will take hours to escape orbit
 
I'm aware
 
@Mosho you should give a talk about your library thing for styling, I can totes convince Doron to let you if you're up for it.
 
12:55 PM
like I said, it is an experiment.
mostly I'm practising docking and wanted to make something huge
if it does escape I'm going for jool
 
@Maurice The concept is when you click on the checkbox the background color changes and it working but The issue is it doesn't work after i have 9 check boxes,
 
user3119231
@AboutLeros Ah, it is because you have attach the eventHandler to every single element. Got similiar problems.
 
@Maurice can it be fixed or is there a way around it?
 
user3119231
you have 2 ways: get the this of the event. Means the element which called me or:
 
user3119231
var elements = document.querySelectorAll(".checkbox");
for (var i = 0; i < elements.length; i++){
	elements[i].addEventListener("click", function(e){
		console.log("huhu " + i";
	});
}
 
user3119231
12:58 PM
add the event listener to each element
 
user3119231
alternate:
 
user3119231
parent.addEventListener("click", function(e){
	if (e.target.className = "myClass"){
		console.log("this is it!");
	}
});
 
(it would be better to attach to the nearest container, not window)
 
.closest()
 
user3119231
Yeah, thanks. I missed this.
 
1:00 PM
(also, if you can use classList.contains because what if the element has more than one class)
 
user3119231
@rlemon afaik classname works even if more than 1 class is assigned.
 
well your code is broken twice
you are assigning it
and if you were checking it "foo myClass bar" === "myClass"; // false
:P
 
user3119231
pff it is friday, this were just examples.
 
classList needs legacy support
 
user3119231
!!ban rlemon
 
1:02 PM
@Maurice I can't mindjail rlemon, they're an owner.
 
className (if you are not positive there will be only one) probably needs some splitting up
 
user3119231
The best solution is to put all checkbox in 1 parent container and simply check if the target is a child of the parent container.
 
user3119231
No classes, no ids needed. Just let javascript do the job.
 
nahh
what if there is whitespace
textNodes
 
user3119231
What if. What if ww3 happens? -.-
 
1:04 PM
put them all in a common container, add the listener to that container, check if they are type INPUT node
or something similar
 
@Maurice they are in a parent container
 
user3119231
 
user3119231
1:0 for me, I would say.
 
impressive
both
the game
 
1:06 PM
If a single Polish male and a single Polish female get married, does that make a dipole or a magnet?
:goes and gets a coffee:
 
user3119231
Don't forget to put some ritalin in it :D
 
user3119231
Now I understand why Facebook looks like a used condom: github.com/trending/developers/css
 
WebRTC is so borked.
 
still?
 
yep
@jAndy it works but the API itself is pretty differently implemented on different browsers
for instance firefox supports promises, chrome doesnt vOv
 
1:16 PM
I just logged into FreeCodeCamp to see what's what, and the "basic javascript" lesson is preceded by "jquery"
 
user3119231
Welcome in 2016. Javascript does not longer exist. It is now known as Ol' script
 
wut ?
 
user3119231
dis.
 
@Mosho :P
 
user3119231
So I registered in a "real" (how the other calls it) chat. What are these creatures and how can I defeat them?
 
1:25 PM
@Abhishrek for what do you use it ?
 
@KarelG QuakeWorld NetChannel clone in pure js :P
Not QUAKE game just the networking
 
interesting. is there a way that i can track the progress ?
( fe git ? )
 
not yet
what it should have been is far away ---
 
@SumanKalyanMohanty Welcome to the JavaScript chat! Please review the room rules. Please don'task if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
user3119231
1:32 PM
hi
 
Actually I am new to JS. So to be an expert in both JS and jQuery?
don't mind..it sounds silly
 
user3119231
You can be an expert in JS. Jquery is like JS with supporting wheels.
 
Where to give it a start
?
 
@SumanKalyanMohanty google ;)
 
1:34 PM
any websites?
 
Read some books
 
like I want to use in real
 
Read good books
 
I got a list hold on
 
1:34 PM
mozilla?
thanks @mer
 
@SumanKalyanMohanty jQuery is not relevant anymore. Most current browsers supports native javascript without problems. There are few exceptions. In the past, there we're a lot problems with cross-browser compatibility between IE / Chrome / Firefox / Opera, hence the reason why jQuery got founded. But now ... jQuery may be used, but not necessarily
 
@Meredith
 
@Meredith Definitive Guide
Good Parts, Ninja
 
No, def guide isn't worth reading
 
^-
 
1:35 PM
MDN
 
ohoho
 
YDKJS
 
Speaking Javascript -> javascript: the good parts -> maintainable javascript -> learning javascript design patterns
 
i have that and stored it in the book shelf without using iit anymore
good intents but at the end ... meh
never heard of "speaking javascript"
 
def guide is the big rhino one, right?
 
1:36 PM
!!google "speaking javascript"
 
Speaking js is my favorite intro book
 
oh that
 
@Meredith you have a list I GUESS
 
i recognized the book cover
 
1:37 PM
@Meredith I've read it. it is long and tedious but if you're bored or the internet is out I wouldn't say it is not worth reading
 
didn't bought it :p
 
maybe not my first choice
 
It's basically just documentation
 
CAN YOU SHARE if you dont mind
 
Like you said, it's probably nice if your internet is out
I already posted it
 
1:38 PM
@SumanKalyanMohanty Protip: JavaScript is a tiny language, with a ton of browser API's focus on the language itself first.
 
My first book was Def Guide 2nd Ed.
 
> Speaking Javascript -> javascript: the good parts -> maintainable javascript -> learning javascript design patterns
 
I still have it
 
any online tutorial?
 
1:39 PM
Don't bother with online tutorials
 
the mdn one is nice. Others aren't consistent
or contains poor insights
i wish that i got power to remove them from the internet
 
Once you have a decent understanding of the language, you can start following people on twitter/github/medium and you'll learn a lot from them
 
@KarelG Thanks for sharing
alright
let me get started with it/
 
But googling "javascript tutorials" will just lead to bad code like 90% of the time
 
1:41 PM
I will be back if I need any help in future
 
Would someone please tell me how to condition DATE data type clumns in SQLite Cordova plugin? I have tried stackoverflow.com/questions/35224056/… but I do not know what is the input format.
 
@SumanKalyanMohanty you're welcome if you have more questions. Most of us is prepared to explain javascript features
 
not me, I'm here for the dank memes
 
@Marek did you have checked the Android room first ? Some of these users could have used Cordova
 
1:44 PM
Secrets of the JavaScript Ninja is a good book too.
 
i didn't. so cannot help
 
@KarelG I'll try, thanks for suggestion.
 
ha ha @Abhishrek
 
@Abhishrek ; don't forget to ping me once you would publish your result / tests
 
@KarelG It will be atleast a week :P
I am using pusher and no servers, which makes this hard as hell :D
 
1:45 PM
i'm a patient person with good memory :p
 
Hey! this is more of a jQuery workflow question but is there any difference from i.e $("selector").click and $("selector").each(function(){ $(this).click })? Like, one would assume that each element by the first one would be iterated as well?
 
i recently called a friend that he promised me something 6 months ago. hah that was funny
 
@Daniel why not just check the source code
 
That's one thing I dislike about jquery
The answer to that question should be obvious, but it isn't
 
:p
but, plugins aren't always obvious
 
1:47 PM
@Meredith what does .click do? shouldn't have three answers
@Daniel anyways, if you click through to .on and scroll to the bottom you'll see
    return this.each(function () {
        jQuery.event.add(this, types, fn, data, selector);
    });
if you want to be sure check all of the conditions above that which would trigger it not to hit this return
 
So they are pretty much the same! Thank you
In my scenario at least
 
now, back to the larger issue
 
was doing QA stuff on a server plugin of a company. Even with decent documentation, i couldn't predict what a function does. Reason: inconsistency. Like the UPDATE( ... ) call will update the state and the db table, while UPDATES (...) call with same amount of args, simply updates the state, but doesn't reflect the db .........
 
.click alias is fucking stupid and you shouldn't use it
you can see internally it just calls .on('click'
 
.click was only an example
 
1:49 PM
which is less ambiguous and what you actually want
I know, I just have a big problem with jQuery aliases which do 19 different things
 
And the developers were mixing both calls. They have contracted us for database problems :P
had to do a serious cleanup. about 30% of methods got removed, and half of methods got restructured/revised
@Loktar did you have purchased XCOM2 ? If so, how is it ? I recall XCOM1 and that was a damn hard game to play. Total War is nothing compared to dis
 
I barely played the new xcom, so I held off on 2 for now
 
you've suggested me to play starcraft2
you're evil. Got addicted and the end isn't near
 
I really appreciate the memes
 
1:58 PM
Its friday.
 
@KarelG YES
 
@Loktar
also \o @FlorianMargaine forgot to Friday your friday
 
@KarelG :p
 
@rlemon did you get your bowl?
 
Friday friday!!! @rlemon @FlorianMargaine
 
1:59 PM
@rlemon hey friday man friyfriday /cc @Loktar @FlorianMargaine
 
bro I've made my mind up, BACK SEAT BABY!
GOTTA GET DOWN!
 
@Loktar friday friday!!
 

« first day (1938 days earlier)      last day (3020 days later) »