Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
vínαч puppαl
@vinaypuppal
@dimitrije12 so u can use Streamers array to generate req URL and find channel name from returned API instead of from Streamers array
@dimitrije12 data.stream.channel.name gives u Streamers name u have in array.
dimitrije12
@dimitrije12
@vinaypuppal ohh i get it, i will try it right now
vínαч puppαl
@vinaypuppal
@dimitrije12 but if stream is null then u may not get name
@dimitrije12 so u can request streamer info with this URL https://api.twitch.tv/kraken/users/
Example: https://api.twitch.tv/kraken/users/brunofin
dimitrije12
@dimitrije12
Yeah but then i cant get info if the user is streaming at the moment
njhudd
@njhudd
Hello! I've just finished my first Front End Project (pair programmed with @dhuddleston to help me with some of the basics). Any comments / critiques? http://codepen.io/njhudd/full/ZOqZRP/
dimitrije12
@dimitrije12
so i have to call two API's, one to get user info, and second to read if they are online or not @vinaypuppal
vínαч puppαl
@vinaypuppal
@dimitrije12 so u need to make two request
  • first to get stream info
  • second to get user/channel/streamer info
    if stream is null they are offline
Olga C
@Octopinky
@njhudd Its looking good! Great job
vínαч puppαl
@vinaypuppal
@njhudd Looks good. One suggestion read about media queries(http://www.w3schools.com/css/css_rwd_mediaqueries.asp) and use them to decrease the font size for small screens of title and paragraph. Rest all looks good
DoYouLoveGames
@DoYouLoveGames
hey yall, i just started writing my code on pen.io but for some reason the image ive selected isnt coming up.
nvm, i copied the wrong link
jrandallhansen
@jrandallhansen
@njhudd I like it too. if youre making use of jade and sass maybe feel free to style that bad boy up a little more. or just move on
I am working on the build a random quote machine project. anyone have advice on good jquery and json tutorials/materials? ive never called an API before and the exercises on FCC didnt provide much context to me
Ryan Williams
@Ryanwfile

Can someone please help me with this code for the simon project, I am having difficulty getting the on click function to require more on click button presses in order to proceed. The code I have so far that isn't working is

$('.sector').on('click',function(){/*Handles the user's button clicks, sector is the class name of the 4 lights */
  console.log("Count is " + count + ", and the order array is [" + order + "]");
   for (var i = 0; i < count; i++){
     if (this == order[i]){//if what is clicked is the correct button in the order array, this is where I need help
       setTimeout(function(){
         if (this.id == order[i] && order[i] == 'red'){
           buttons.brightRed();
           setTimeout(function(){buttons.red()},1100);

         }
         else if (this.id == order[i] && order[i] == 'green'){
           buttons.brightGreen();
           setTimeout(function(){buttons.green()},1100);

         }
         else if (this.id == order[i] && order[i] == 'blue'){
          buttons.brightBlue();
          setTimeout(function(){buttons.blue()},1100);

        }
        else if (this.id == order[i] && order[i] == 'yellow'){
          buttons.brightYellow();
          setTimeout(function(){buttons.yellow()},1100);

        }
       },1100 * count)//ends the setTimeout statement of the for loop
     }
 }//ends for loop
 beeper();//The function that randomly generates and displays the button pattern for the user to repeat

});

The codepen link is http://codepen.io/Ryanwfile/pen/qNJAJO Thank you for any help

DZRana
@DZRana
For fans of Stranger Things (CONTAINS SPOILERS!), take a look at my codepen! If you have any suggestions or could tell me how to fix that spacing between the text and the button, that would be great. Thanks! http://codepen.io/DZRana/pen/RRZgav
Darshan
@Dave1089
@DZRana u have nested ur row div in text-center class... so everything will be center aligned in your body.. either remove that or move row div out of jumbotron/text-center div
DZRana
@DZRana
@Dave1089 ahhh gotcha. Thanks for taking a look!
CamperBot
@camperbot
dzrana sends brownie points to @dave1089 :sparkles: :thumbsup: :sparkles:
:cookie: 364 | @dave1089 |http://www.freecodecamp.com/dave1089
Roger Hart
@wilcombebolger
Hi All
Care to give us some feedback on Personal portfolio Project please
Sam
@Samwise12
Anyone have any advice for getting started learning react.js and ES6?
How do I use babel 6 for windows....?
Norvin Burrus
@ndburrus
@Samwise12 these may be useful: :sparkles:
Richard
@richao03
hi guys
can someone help me with a jquery selector question?
DJ
@qualitymanifest
@richao03 ask
William Cross
@williamtech814
^
What is Jquery?
like what does it do?
Randy Goldsmith
@Dueldrawer8
anyone know how to append the values of my numbers inside the spans to a certain div?
http://codepen.io/duel_drawer8/pen/rLygWG
Sabrina Ferguson
@itsacoyote
@Dueldrawer8 you can probably start with getting the .text() from the span clicked
Randy Goldsmith
@Dueldrawer8
@itsacoyote ah thats right forgot about that.. ill try it thanks
CamperBot
@camperbot
dueldrawer8 sends brownie points to @itsacoyote :sparkles: :thumbsup: :sparkles:
:cookie: 203 | @itsacoyote |http://www.freecodecamp.com/itsacoyote
Randy Goldsmith
@Dueldrawer8
@itsacoyote can you see my code? not working..doing something wrong lol
Sabrina Ferguson
@itsacoyote
@Dueldrawer8 looking over it...
Randy Goldsmith
@Dueldrawer8
(.span).text() should get the numbers..
Reggie
@Reggie01
@Ryanwfile
A couple of hints for you
  1. You may want to console.log( this ). I think you just made a typo.
    if (this == order[i]){  // is not correct. it's comparing an object to a string
  2. You have a this issue when you use setTimeout function. Try using .bind function or stack overflow answer. console.log( this ) inside your setTimeout callback function if your unsure of this value.
  3. The value of var i when your setTimeout is called is probably not what you think it is. console.log( i ) inside your setTimout callback. A possible solution is .bind function.
  4. It looks like beeper function is how you plan to increment your sequence. So beeper will need to be called inside your inner setTimeout functions. Currently, beeper is called after every click.
Randy Goldsmith
@Dueldrawer8
now just need to append those numbers to the div
Sabrina Ferguson
@itsacoyote
@Dueldrawer8 so you want to append the number's text in the span, right? Sorry, I mean the boxAnswer
Randy Goldsmith
@Dueldrawer8
yes
Sabrina Ferguson
@itsacoyote
@Dueldrawer8 alrighty, so. You have the click function for the .num that's clicked
When you're in the function, you can reference the specific button that was clicked with $(this)
The way you're doing it right now with $('span') is getting ALL the spans and their text.
Randy Goldsmith
@Dueldrawer8
@itsacoyote yes, thought i fixed it if you can see but it prints out all the spans to the calculator
Sabrina Ferguson
@itsacoyote
@Dueldrawer8 yeah, trying to find the correct way to say it next, gimme a moment
Randy Goldsmith
@Dueldrawer8
@itsacoyote youve helped me plenty
ive got it :)