Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Eric Phy
    @SimplyPhy
    working outside at restaurant time
    w00t
    Lily Romano
    @Lilyheart
    shhhh. everyone behave. We might have new members showing up in here.
    Lily Romano
    @Lilyheart
    @SimplyPhy Here is a webpage that lets you save local storage as JSON. Might be handy for that thingy you wrote http://reactivex.io/learnrx/ The code is stored in the grab_answers.js file looks like.
    Eric Phy
    @SimplyPhy
    Hmm, I created a tab for it. It's going to be a bit before I can really get into it, but could be neat 💪🏼
    Eric Phy
    @SimplyPhy
    Anothe gorgeous day ☀️
    Lily Romano
    @Lilyheart
    yay. haven’t been up yet.
    Jonathan Herman
    @lantech19446
    it is sooo hot
    @lilyheart Sean is actually a good friend of mine he lives down the street from my mom and we went to montco together years ago
    Lily Romano
    @Lilyheart
    I saw you added him xD
    Jonathan Herman
    @lantech19446
    he'll fit in pretty well probably even on our worst behavior lol
    Lily Romano
    @Lilyheart
    I figured xD. Why I was being silly. Lol
    Jonathan Herman
    @lantech19446
    kk
    Lily Romano
    @Lilyheart
    I like new fun people! Thanks for sending him this way <3
    Jonathan Herman
    @lantech19446
    np
    Lily Romano
    @Lilyheart
    Sorry if I sounded short before. I was at Wawa :coffee:
    Jonathan Herman
    @lantech19446
    no you were fine I just got into work and found out that my group policies still aren't taking :(
    Lily Romano
    @Lilyheart
    oh yuck
    Jonathan Herman
    @lantech19446
    yea, I hate gpo's for this very reason
    Lily Romano
    @Lilyheart
    My roommate comes home, more often then not I feel like, grumbling about them.
    Jonathan Herman
    @lantech19446
    yea if it's the majority of your job it can be pretty frustrating.
    Lily Romano
    @Lilyheart
    Any library meetup regulars, your feedback on this question is appreciated! @SimplyPhy
    blob
    Lily Romano
    @Lilyheart
    @SimplyPhy are you coming Wednesday? I have to record a speech for my online public speaking class in front of 3 people (due Wednesday). I'm so rarely around that many people at once where I'd have the opportunity to record a speech. I don't think my roommate + 2 cats would count :laughing: .
    Eric Phy
    @SimplyPhy
    yeah i’ll be there :steam_locomotive:
    Lily Romano
    @Lilyheart
    Thanks! It’s upstairs in the limited space so you might wanna go on Meetup and RSVP to ensure you have a seat (not that I think there will be a run on people, but still…) I am tryin’ to get people today on Tuesday to do it, but Wednesday (the due date) will be a backup in case anyone can’t make it.
    Hopefully I can find a few more people for Tuesday and it’ll be a non-issue. heh
    Jonathan Herman
    @lantech19446
    my schedule changed and i'm only 10-4 now on Wednesdays so if my wife ever has to work til 10 that night or pull and overnight I may actually come
    Eric Phy
    @SimplyPhy
    i don’t think i can make it tuesday, just fyi :le sigh: doing doylestown software dev meetup. They haven’t done one in awhile
    so i’m baffled atm, anybody know why this works where it does and doesn’t where it does?
    // Add guest functionality
    var new_guest,
        guest_div,
        first_guest = true,
        guest_array = [],
        guest_id = 0;
    
    function createGuestDiv(guestName) {
    
      guest_div = "<div id='guest"+guest_id+"' class='new-guests'>" +
                    "<span class='guest-span'>"+guestName+"</span>" +
                    "<button type='button' class='guest-remove'> x</button>" +
                  "</div>";
      return guest_div;
    }
    
    $guests_button.click(function() {
      if ($event_guests.val().length > 0) {
        if (first_guest) {
          $guests_container.show();
          first_guest = false;
        }
        new_guest = $event_guests.val();
        // guest_array.push({id: guest_id, name: new_guest});                 <-- doesn't work here
        $guests_container.append(createGuestDiv(new_guest));
        // guest_array.push({id: guest_id, name: new_guest});                 <-- doesn't work here
        removeGuestListener($('#guest'+guest_id+' .guest-remove'));
        guest_array.push({id: guest_id, name: new_guest});//                  <-- works here!??                   
        guest_id++;
        $event_guests.val('');
        $event_guests.focus();
        $guests_button.css('background', 'linear-gradient(170deg, rgb(255, 255, 255) 30%, hsl(147, 47%, 96%) 60%)');
      }
      console.log(guest_array);
    });
    
    // I need to search the array for the value of the parent, find it's index, and slice/remove it
    function removeGuestListener(guest) {
      guest.click(function(){
        $(this).parent().remove();
      });
      for (var i = 0; i < guest_array.length; i++) {
        if (i === guest_array[i].id) {
          guest_array.splice(i, 1);
        }
      }
    }
    Lily Romano
    @Lilyheart
    Wednesday?
    Eric Phy
    @SimplyPhy
    if you scroll right you’ll see the notes in the middle
    Lily Romano
    @Lilyheart
    Ooh chat. Right.
    On the phone rn. Can't tell from here. @davidjcastner ?
    Eric Phy
    @SimplyPhy
    no rush, i have it working, i just have no idea why it works in only one of three places. doesn’t appear to make any sense.
    Eric Phy
    @SimplyPhy
    figured it out
    i accidentally put the for loop in the removeGuestListener outside of the click handler, which made it run automatically regardless of click xD
    <— idiot
    Lily Romano
    @Lilyheart
    Not idiot. You figure it out. So many people quit before then.
    Eric Phy
    @SimplyPhy
    #determinedIdiot :P
    Eric Phy
    @SimplyPhy
    Here’s the corrected and completed function (yay)
    function removeGuestListener(guest) {
      guest.click(function(){
        var thisElem = $(this).parent();
        var thisIndex = $('.new-guests').index(thisElem);
        $(this).parent().remove();
    
        for (var i = 0; i < guest_array.length; i++) {
          if (i === thisIndex) {
            guest_array.splice(i, 1);
          }
        }
      });
    } // corrected*
    Eric Phy
    @SimplyPhy
    6 files changed, 254 insertions(+), 79 deletions(-)
    All I did was make the date and time’s displayed values change relative to the user input xD
    Lily Romano
    @Lilyheart
    heh xD
    Eric Phy
    @SimplyPhy
    another night of pushing late into coding
    this damn app is nearly complete!
    I will, in all likelihood, finish it tomorrow :clap:
    Lily Romano
    @Lilyheart
    How is everyone doing this evening?
    Jonathan Herman
    @lantech19446
    awesome, how bout you
    Lily Romano
    @Lilyheart
    Been better been worse. I guess that makes me average xD