« first day (1005 days earlier)      last day (3944 days later) » 

11:00 PM
i'm "uncle booby"
he never did get "robbie" right as a toddler
 
I'm gonna try to get him to call me "the dude"
 
@Shmiddty/coco and now so does everyone else in the room
 
!!s/coco/the dude/
 
@Shmiddty @Shmiddty/the dude and now so does everyone else in the room (source)
 
MISTER the dude to you.
 
11:07 PM
is there something wrong with this jquery syntax? $(newThumbA).bind('click','scrollToImage('+(i+1)+')');
 
hah @rlemon hope Im not getting you in trouble
 
getting this error: Uncaught TypeError: Object scrollToImage(12) has no method 'apply'
 
Boooooo.... I want another Bundle....
 
@bushdiver yes.
 
@Shmiddty =|
 
11:10 PM
1) A STRING IS NOT A FUNCTION.
2) see 1
 
user1125394
add eval in front :)
 
@cx -_-
 
user1125394
<3 (crude) tomatoes
 
@rlemon I assume there's some sort of lattice up top
 
11:13 PM
This function doesn't know what (i) is once it triggers: $(newThumbA).on('click',function(){ scrollToImage( (i+1) ); });
 
as do I
 
@bushdiver because you suck at life javascript LIFE.
 
BOO
further inspection shows the buckets of tomatoes are photoshopped in
fuck you internet
 
user1125394
hehe
 
I can't remember how to pass the variable through, please help, i know u know
 
11:16 PM
the fact that you are even passing in an index means you are doing everything wrong
$(newThumbA).on('click',function(){
    //omfg `this` is newThumbA!
});
 
You know it's not good when there's a comment in code like: //But of course, module.cjs always exists. and module.cjs is undefined.
 
user1125394
@bushdiver anyway just use a bootstrap carousel
 
@cx ?
 
ignore him
apparently he's a troll.
(the kind that lives under a bridge and smells of urine)
 
@Shmiddty what am i doing wrong with passing through the variable?
 
11:20 PM
@bushdiver You're probably doing a brand new selection or some retarded math.
 
I think it's that once it runs, i doesn't exist anymore
 
if the code is anything like this, you're doing it wrong: $("#thumb" + i)...
 
but I can't remember how to pass it to be used within the local function.. i've done before many times but cant remember..
 
you should quit javascript.
 
$(newThumbA).on('click',function(){
scrollToImage( (i+1) ); <-- i doesn't exist when ran
});
 
11:22 PM
@bushdiver first, young padewan, you must understand what scoping is.
 
i do - how to transfer scope in this case?
 
you don't.
if you understood scope, you wouldn't be trying to pass in an index to a stupid function to do some stupid thing that you don't need to do, stupid.
but alas, I have no more time to scold you, I must away.
ttfn.
 
@bushdiver You can achieve the exact same result by wrapping the thumb in an anchor tag with an href of the ID of the image
 
@monners that's what i was going to do first, but i have so many hash controls i dont want to change the hash in this case
 
What does your scrollToImage() function look like?
 
11:27 PM
I've done this a few times, trying to look through some old files to see how i did it before :|
function scrollToImage(passImg) {
	// console.log(passImg)
	$('.timg[data-img='+passImg+']')
    $('html, body').stop().animate({
        scrollLeft: $('.timg[data-img='+passImg+']').offset().left
    }, 1500,'easeInOutExpo');
}
oh i know, i'll put the id in a data- tag and refer to itself when passing
 
11:40 PM
@Shmiddty Lets claim workers comp
You injure me, and I'll return the favor.
 
11:55 PM
 
@SomeKittens Sitecore!
 

« first day (1005 days earlier)      last day (3944 days later) »