Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 17 2014 18:57

    SwampGuzzler on master

    tabsProject initial commit Oldest Parent inital commit Merge pull request #230 from LP… (compare)

  • Aug 17 2014 18:57
    SwampGuzzler closed #230
  • Aug 17 2014 18:56
    SwampGuzzler commented #230
  • Aug 13 2014 22:51

    SwampGuzzler on master

    Added oldestlivingparent assign… Added tabs with ajax assignment added tab-angular assignment and 1 more (compare)

  • Aug 13 2014 22:51
    SwampGuzzler closed #232
  • Aug 13 2014 22:51
    SwampGuzzler commented #232
  • Aug 13 2014 19:01
    toastynerd closed #228
  • Aug 13 2014 18:52
    toastynerd closed #229
  • Aug 13 2014 18:52

    toastynerd on master

    adding assignment 5.1 adding 5.1 adding solution for last assign… and 1 more (compare)

  • Aug 13 2014 18:52
    toastynerd commented #229
  • Aug 13 2014 03:28

    hankyates on master

    Find oldest living parents from… Tab Example with GET request fr… Tab Example by using Angularjs and 1 more (compare)

  • Aug 13 2014 03:28
    hankyates closed #217
  • Aug 13 2014 03:28
    hankyates commented #217
  • Aug 13 2014 03:24
    hankyates commented #212
  • Aug 13 2014 03:24
    hankyates closed #212
  • Aug 12 2014 05:38

    hankyates on master

    First Commit of Ajax Assignment Merge branch 'master' of https:… Merge pull request #221 from st… (compare)

  • Aug 12 2014 05:38
    hankyates closed #221
  • Aug 12 2014 05:37
    hankyates commented #221
  • Aug 12 2014 05:35

    hankyates on master

    version 1, assignment 7.1 first version of assignment 6.1 first version of assignment 6.1 and 7 more (compare)

  • Aug 12 2014 05:35
    hankyates closed #200
Livingston Martin
@LPM42
@faheydesign love the jQuery tutorials! Very helpful.
vernamCipher0101
@vernamCipher0101
To Staff: Assign. 6.1 doesn't have the ages of the parents yet it asks for the name of the oldest living parent. The closest thing appears to be returning the parent's name of the oldest person, which is Lenora. Please clarify the assignment, thanks.
Hailey L. Petway
@hlpetway
As I understand the assignment, you return the name of the oldest living person who is also a parent.
vernamCipher0101
@vernamCipher0101
Got it hipetway. Thanks.
Joe Elsey
@joeelsey
Are the John Duckett HTML/CSS & Javascript/Jquery books worth getting?
Ivan Storck
@ivanoats
@joeelsey Completely
Jarrod Medrano - Javascript Developer
@jarrodmedrano
whats the door code?
Mandi Grant
@MJGrant
What;s the door pass code?
A couple of us are stuck out here
Joaquin Guardado
@macikokoro
This message was deleted
Stephanie Lingwood
@stephanielingwood
I'm looking for some jQuery syntax help (the interwebs haven't been all that helpful). Here's what I want to do: On line 6, I want to assign to a variable the child class name for an element with the parent class of .tabs. Then, on line 11, I want to refer to that class name as the child class of an element with the parent class of .tab-content. Any ideas? $(document).ready(function() { $('#show-tab').addClass('active-tab'); $('#show-content').addClass('active-content'); $('.tabs').on('click', function() { var selected = $(this).attr('.tabs > class'); $('.tab-text').fadeOut('slow'); $('.tab-content').removeClass('active-content'); $('.tabs').removeClass('active-tab'); $('this').addClass('active-tab'); $('.tab-content' + '.' + selected).fadeIn('slow'); console.log(selected); }); });
Stephanie Lingwood
@stephanielingwood
$(document).ready(function() { $('#show-tab').addClass('active-tab'); $('#show-content').addClass('active-content'); $('.tabs').on('click', function() { var selected = $(this).attr('.tabs > class'); $('.tab-text').fadeOut('slow'); $('.tab-content').removeClass('active-content'); $('.tabs').removeClass('active-tab'); $('this').addClass('active-tab'); $('.tab-content' + '.' + selected).fadeIn('slow'); console.log(selected); }); });
Hunh...wrapped it in backticks both times and it's still coming out weird. (Feel free to delete the second post...I can't seem to do that.)
This message was deleted
Stephanie Lingwood
@stephanielingwood
This message was deleted
Martin Genev
@mgenev
not sure if you guys noticed this, but here is a much more expanded series of lectures on yesterday's topic https://www.youtube.com/playlist?list=PLB_QFf1fzn9OVZHWCwf6NkXpkI55LXsRk
Walker
@walkermalling
This message was deleted

@stephanielingwood It looks like you're passing the wrong argument to

var selected = $(this).attr('.tabs > class');

The .attr() method should take one of the elements attributes

So here:

<a href="mydomain.com" class="myclass" id="primary-link">something</a>

The attributes of the anchor tag are "href","class" and "id".

CTownsdin
@CTownsdin
is there an easy way to make lodash work in the repl?
Hank Yates
@hankyates
in node?
go to lodash.com and open dev tools
_ is in the global scope on lodash.com
CTownsdin
@CTownsdin
can it be used in just (chrome, ctrl-shift-j) ?
or only in node, or both?
Hank Yates
@hankyates
yeah ctrl+shift-j opens dev tools
CTownsdin
@CTownsdin
hmmm, I think I see... lodash needs to be loaded as a script in whatever webpage you are using to get to the dev tools on? is that correct?
well, it works on lodash.com's dev tools anyway, that's what I was looking for, thank you!
Stephanie Lingwood
@stephanielingwood
@walkermalling thanks for the reply. And sorry if I wasn't clear in my post last night - my brain was toasted. Anyway, if I write it like this - .attr('class') - it only gets the parent class. The particular element I'm targeting has two classes; the class assigned to the list it's in (.tabs), and the class assigned to this element and one other (.tab1). I'm trying to get it to find the .tab 1 class, so I can assign that .tab1 class to a variable I can refer to later.
Hank Yates
@hankyates
@CTownsdin right the lodash website loads the library to the global scope of your browser which is why its available when you open dev tools
Walker
@walkermalling
@hankyates
Whats going on with bitwise shifting (e.g. the << operator) as seen here
Hank Yates
@hankyates
The shift operators >> and << are equivalent to divide by 2 and multiply by 2 respectively.
bitwise stuff can be a bit funky
the most common one you see is ~~ which is used as a faster Math.floor
CTownsdin
@CTownsdin
hank you around?
Hank Yates
@hankyates
im usually on and off
CTownsdin
@CTownsdin
going to pm ya
Hank Yates
@hankyates
kk
Scott Romney Burbidge
@sburbidg
can you not assign a value to a div like this?
<div class="tab" value="1">Proflies</div>
Jeff Adelman
@jeffadelman8
@sburbidg hmm... I'm not sure about that. The "value" attribute is typically used in a text input to set a default value for the input. What are you trying to do with it?
Scott Romney Burbidge
@sburbidg
@jeffadelman8 yeah it appears it has to be a list element to take a value.
Hank Yates
@hankyates
is anyone else planning on going to the lab tonight?
ill be there so itll be a good opportunity to get some feedback
Martin Genev
@mgenev
if you guys are curious what kind of apps people are using client mvc frameworks for here's a link with some http://builtwithember.io/
Stephanie Lingwood
@stephanielingwood
@hankyates I'm planning on being there tonight. Anyone else?
Scott Romney Burbidge
@sburbidg
I might pop in. Depends if I end up in seattle tonight
Hank Yates
@hankyates
@mgenev it looks like those are just ember apps though
Scott Romney Burbidge
@sburbidg
sorry couldn't make it in tonight, but I do have a question

I am using this so when you click on one image another appears in its place and then clicking on the new one brings in another new one.

  $(".image").click(function(){
    $(this).next().addClass("image").removeClass("noImage")
    $(this).removeClass("image").addClass("noImage")
     })

for some reason it is only working the first time. It seems like it should keep working because each new image is taking on the image class so it should respond to the next click, or thats what I thought.

Mandi Grant
@MJGrant
What is the purpose of .next() in your code? If you click an image, don't you want to operate on that image, not its sibling? (What is its sibling in this case?)
If you make a jsfiddle with it I wouldn't mind messing with it and seeing if I can find an answer for you. :)