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
Jaren Escueta
@jarenescueta731
@vvang044 can you post your pen?
Vik
@vvang044
ok my original image i have it commented so that i can add the second image
Jaren Escueta
@jarenescueta731
@daniemeijer they are in a .each() loop
i want that desk to be my background....but bummer doesnt work
Jaren Escueta
@jarenescueta731
@vvang044 don't use the = sign, use :
Vik
@vvang044
haha....something so simple but yet.....
now its blurry i need to fix that
Jaren Escueta
@jarenescueta731
@vvang044 the image you have in your html next to My Skills actually has a better resolution, use that for the background
Vik
@vvang044
yep that sure worked.....thank you my friend
@jarenescueta731
thank you
wait no brownie points for you
@jarenescueta731 thank you
CamperBot
@camperbot
vvang044 sends brownie points to @jarenescueta731 :sparkles: :thumbsup: :sparkles:
:cookie: 286 | @jarenescueta731 |http://www.freecodecamp.com/jarenescueta731
Vik
@vvang044
there you go
Jaren Escueta
@jarenescueta731
no problem good luck!
Vik
@vvang044
live and learn
Tulio Natale
@tuliodnw

@tuliodnw
people can someone help me in my simon, i want that when the ai reads the color and makes the sound, to also change the opacity of the background, exactly as when you click a color

http://codepen.io/tuliodnw/pen/ZOQjRr?editors=0011
also when doing the sequence, if im too fast, some colors dont make a sound, how can i make it so that doesnt happen,

Jaren Escueta
@jarenescueta731
@tuliodnw you can add a jQuery .click() event and add a css opacity property to the element. experiment with .on("click", ...) and .off("click", ...). i haven't reached this one myself yet
Tulio Natale
@tuliodnw
@jarenescueta731 i did that, but when the ai does a playback it doesnt make a click
Jaren Escueta
@jarenescueta731
@tuliodnw sorry i made that comment without looking at the code first. this is beyond me...
Tulio Natale
@tuliodnw
@jarenescueta731 np you will get here
TinCan-Assassin
@TinCan-Assassin
I could use some help. on my portfolio page. My navbar isn't showing up on my mobile device, but it is showing up on my laptop. http://codepen.io/TinCan-Assassin/pen/YWzMVL/
Kyle W Pilkinton
@tadake
ther
there is a problem with line 1 @TinCan-Assassin give me a second
TinCan-Assassin
@TinCan-Assassin
OK, thanks
Kyle W Pilkinton
@tadake
swap line one with this
<div id="navbar" class='navbar '>
you have to have a class with your div. does this help?
@TinCan-Assassin
TinCan-Assassin
@TinCan-Assassin
Complete with single quotes, or is that a typo?
Kyle W Pilkinton
@tadake
there interchangable @TinCan-Assassin its completely up to what your confortable using
TinCan-Assassin
@TinCan-Assassin
Thanks @tadake
CamperBot
@camperbot
tincan-assassin sends brownie points to @tadake :sparkles: :thumbsup: :sparkles:
:cookie: 403 | @tadake |http://www.freecodecamp.com/tadake
Kyle W Pilkinton
@tadake
your welcom :+1: @TinCan-Assassin
matthew3454
@matthew3454
I'm having trouble determining why I have an unexpected identifier error, along with the errors: function closure expressions' is only available in Mozilla JavaScript extensions (use moz option) and expected an assignment or function call and instead saw an expression. Can someone please help me figure it out? This is my weather app so far:https://codepen.io/codeabode20/pen/XKWqRp?editors=0010 Thank you.
Tulio Natale
@tuliodnw

people im close to my simon to work 100% , you can play now, but then the ai is doing the playback the opacity doesnt change if the same color goes twice

http://codepen.io/tuliodnw/pen/ZOQjRr?editors=1010

DuskyPixel
@DuskyPixel
seems like when it finishes it stays looking like it is pressed. Which would probably mean that you are not putting it in an up looking state before moving to the next color (or the same color)
Stephen
@stephepush
Hi, this is what I have for the mutations algorithm. Am I on the right track?
//mutations attempt
function mutation(arr) {
  var splitArr = [];
  for (var i = 0; i < arr.length; i++){
    splitArr.push(arr[i].toLowerCase().split(""));
  }
  console.log(splitArr);

var jIter = 0; 
//named so because in the next for loop j will be the iterant because i has already been used. j will be iterated and results will go into the variable to be used in a conditional statement
for (var j = 0; j > arr[1].length; j++){
    if (splitArr[1].indexOf(splitArr[0]) >= 0){
        jIter = jIter + 1;
        console.log(jIter);
    }

  }

  if (jIter >= arr) {
    return true;
  } else { 
    return false;
  }
}

mutation(["Mary", "Army"]);
Ken Haduch
@khaduch
@matthew3454 - looks like you are missing the curly braces to enclose the body of the function for your ip-api getJSON call.

@matthew3454 - maybe a couple things- - the initial add of the braces made the error indicator go away, but there was also a problem with the closing paren for the $.getJSON call - I put this code in place:

  $.getJSON("http://ip-api.com/json",
    function(data2) {
      lat = data2.lat;
      long = data2.lon;
      console.log(long);
    });

I hope that helps?

@matthew3454 - also noticed a typo in 'backgroun-image', I think?
Still more, t he closing brace and paren for the ready function blocks out the var long and var lat from being able to access it in the var api = code... just a couple more things, after I went back and looked at the console.
Kikelomo
@queennectarine
Hey y'all, I'm getting started on my random quote generator. I wanted to start by using the code from one of free code camp's challenges just to see how it works. I tried to just get the raw output from the cat photo api to show up as my quote to start, but I can't even get that to work for some reason. A little help? https://codepen.io/queennectarine/pen/wWMrVv
Ken Haduch
@khaduch

@queennectarine - helllo there - it looks like you are running into a cross-origin request problem, in other words, the site is not set up to allow cross-origin requests. You can solve part of the problem by using JSONP - just change your URL to this:

var url = "https://www.freecodecamp.com/json/cats.json?callback=?";

That seems to solve the cross-origin problem and you will get a return. It still isn't displaying in the browser - I'm going to poke at that next.

Ken Haduch
@khaduch
@queennectarine - I'm not sure - it just might be set up to handle JSONP requests properly - it looks like a return is being made, but it is not triggering the callback function? I'm not sure how to proceed with that - perhaps trying a different site? I changed the url to a different site and using JSONP, it returned a usable data object and triggered the callback.
Kikelomo
@queennectarine
@khaduch Thank you so much for the tips!
CamperBot
@camperbot
queennectarine sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles: