These are chat archives for MontCode/GeneralChat

7th
May 2016
Robert Maylie
@rmaylie9560
May 07 2016 00:56
jquery question...
'''
Lily Romano
@Lilyheart
May 07 2016 00:57
What's up?
Robert Maylie
@rmaylie9560
May 07 2016 00:59
does jquery have predefined classes?
like '''
<script>
meh!
Lily Romano
@Lilyheart
May 07 2016 01:00
three back ticks (above tab) then shift-enter
Robert Maylie
@rmaylie9560
May 07 2016 01:04
$(document).ready(function(){$(button).addClass('animated bounce)};
```
Lily Romano
@Lilyheart
May 07 2016 01:04
@davidjcastner would give a better answer as I'm still learning, but this is what I understand (and could be off). I understand jQuery is javascript library. JavaScript is more function then class (although there is something about classes with ES6 that came out recently-ish but I don't know much about it). Either way, javascript (and thus jQuery) is more functional programming then OO programming, but the line can get blurry.
Robert Maylie
@rmaylie9560
May 07 2016 01:05
so its an OOP class and not a html kind of class that its calling?
Lily Romano
@Lilyheart
May 07 2016 01:05
The class reference in that code is referencing an HTML class.
Robert Maylie
@rmaylie9560
May 07 2016 01:06
so theres a css animation somewhere making it bounce?
it was sitting idle untill that class was defined to the buttons?
Lily Romano
@Lilyheart
May 07 2016 01:08
If you are on the lesson I think: "So you are using jQuery to apply the Animate.css bounce class to your button elements"
Robert Maylie
@rmaylie9560
May 07 2016 01:08
OOOoooooooo
its like the second lesson in jquery
Lily Romano
@Lilyheart
May 07 2016 01:09
If you are super curious, here is the animate css file from that lesson http://cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.0/animate.min.css
You can find the class you are adding on there, tho the code might not make sense yet.
Robert Maylie
@rmaylie9560
May 07 2016 01:10
Nice!
Lily Romano
@Lilyheart
May 07 2016 01:10
So your code adds that class to the button elements.
Robert Maylie
@rmaylie9560
May 07 2016 01:11
Ok cool, thanks lily!
Lily Romano
@Lilyheart
May 07 2016 01:11
Yay!
Robert Maylie
@rmaylie9560
May 07 2016 02:09
yay!
Jonathan Herman
@lantech19446
May 07 2016 02:30
Yea the whole jQuery/javascript connection is a bit odd to me too because we use javascript as an OO scripting language server side so looking at it in this manner is a whole new way of seeing it for me
Robert Maylie
@rmaylie9560
May 07 2016 02:55
nice! the transition should be smooth for you.
i know vanilla javascript. just basic syntax
never really dipped into framworks
soo addicted to this playlist
Lily Romano
@Lilyheart
May 07 2016 02:59
Which?
NICE
Robert Maylie
@rmaylie9560
May 07 2016 03:11
```
for(i=0; i<6;i++){
$('#target'+ "'"+ i + "'").addClass('animated fadeOut');
}
meh!
Lily Romano
@Lilyheart
May 07 2016 03:25
for(i=0; i<6;i++){
$('#target'+ "'"+ i + "'").addClass('animated fadeOut');
}
when you hit shift enter, do you get three ``` above and below a blank space?
Robert Maylie
@rmaylie9560
May 07 2016 03:27
<p>hi<p>
Lily Romano
@Lilyheart
May 07 2016 03:28
a row of three backticks need to be both above and below your code
Robert Maylie
@rmaylie9560
May 07 2016 03:28
//there we go
//its working perfectly for me now
Lily Romano
@Lilyheart
May 07 2016 03:29
woot!
Robert Maylie
@rmaylie9560
May 07 2016 03:29
tee hee
##test
This message was deleted
This message was deleted
This message was deleted
This message was deleted
This message was deleted
Lily Romano
@Lilyheart
May 07 2016 03:33
oh my
Jonathan Herman
@lantech19446
May 07 2016 03:55
Probably not all that smoothly though, ive seen it but never had much use for it
David Castner
@davidjcastner
May 07 2016 05:51
I will be available in the evenings to answer questions starting monday, going to a hackathon this weekend
Lily Romano
@Lilyheart
May 07 2016 11:10
Good luck! Sorry I can't make it.