These are chat archives for FreeCodeCamp/Help

17th
Mar 2016
ctal
@ctal
Mar 17 2016 00:00
@drunkenirish To add a class to an element, add class="class-name" into the element's opening tag
@drunkenirish Sample code: <div class="sample-class">
Ed Sztukowski
@Burgustu
Mar 17 2016 00:03
FINALLY
Was on chunky monkey for like a day
The solution always seems so easy once you get it
Stefan Gisi
@stgisi
Mar 17 2016 00:07
wiki no repeats
CamperBot
@camperbot
Mar 17 2016 00:07

:point_right: algorithm no repeats please [wiki]

Problem Explanation:

  • This task requires us to look at each possible permutation of a string. This is best done using a recursion function. Being able to build a function which collects all permutations of a string is a common interview question, so there is no shortage of tutorials out there on how to do this, in many different code languages.
  • This task can still be daunting even after watching a tutorial. You will want to send each new use of the function 3 inputs: 1. a new string (or character array) that is being built, 2. a position in your new string that's going to be filled next, and 3. an idea of what characters (more specifically positions) from the original string have yet to be used. The pseudo code will look something like this:

    ```
    var str = ???;
    perm(current position in original string, what's been used in original string, current string build thus far){
    if(current string is finished) {
    print current string;
    }else{
    for(var i = 0; i < str.length; i++) {

    if(str[i] has not been used) {
      put str[i] into the current position;
      mark str[i] as used
      perm(current position in original string, what's been used in original string, current string build thus far)
      unmark str[i] as used because another branch in the tree for i + 1 will still likely use it;
    }

    }
    }
    }
    :pencil: read more about algorithm no repeats please on the FCC Wiki

Joseph Padgett
@Jspadgett82
Mar 17 2016 00:09

Hey folks, I got a question about this:

<form>
<input type="button" onclick="location.href = 'https://twitter.com/jspadgett82';" id="twitter" />
</form>
Is there something I need to do extra to make that work? The example I'm pulling from is my current fcc task. The codepen is http://codepen.io/Jspadgett82/pen/KzgvYV they're on the bottom.

sheldonclay
@sheldonclay
Mar 17 2016 00:10
@alexanderkopke okay but are putting the code in the <style> tags that are already on the page? Because the objective's say the .smaller-image code is suppose to be within the <img> tag
crakapps
@crakapps
Mar 17 2016 00:12
is fcc crashed?
ctal
@ctal
Mar 17 2016 00:13
@crakapps Fcc is workign for me
Eric Murta
@murtinha
Mar 17 2016 00:15
thanks @jpablom
CamperBot
@camperbot
Mar 17 2016 00:15
murtinha sends brownie points to @jpablom :sparkles: :thumbsup: :sparkles:
api offline
Matt Burd
@EskimoBurd
Mar 17 2016 00:16

https://gyazo.com/8c97c1d39d0977aaec2163f3066e84e7

any help i know this one is tricky

Pablo Macias
@jpablom
Mar 17 2016 00:16
np @murtinha
ctal
@ctal
Mar 17 2016 00:19
@EskimoBurd You are getting the Reference Error, because the line console.log(foo) is trying to print variable foo to the console, but variable foo does not exist
Matt Burd
@EskimoBurd
Mar 17 2016 00:21
@ctal ok i googled and alot of stuff came up on it seemed it was almost bugged, i have this now

function myFunction() {
var myVar = "foo";

console.log(foo);
}
myFunction();

// run and check the console
// myVar is not defined outside of myFunction
console.log(foo);

do i need ot get rid of the console.log(foo); at the bottom it seems fairly pointless
googled it and got it figured out ty ty :)
ctal
@ctal
Mar 17 2016 00:24
@EskimoBurd When you have console.log(foo);, javascript is looking for a variable named foo and trying to print its value. Since there is no variable named foo, you get an error message. If you want to print "foo" to the console, you would use console.log(myVar);. Javascript looks for the variable named myVar and prints its value, in this case "foo"
@EskimoBurd np
OneRandomJamie
@OneRandomJamie
Mar 17 2016 00:33

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
.smaller-image {
width: 100px;
}
</style> What needs to be changed to make this right?

Daniel
@Staxed
Mar 17 2016 00:34
are there any decent, easy to use jquery scripts for adding a parallax effect? I just have one small section of my portfolio that I'd like to have a parallax effect on
Manish Giri
@Manish-Giri
Mar 17 2016 00:35
@OneRandomJamie have you applied class=“smaller-image” to your img?
aareeder
@aareeder
Mar 17 2016 00:38
@OneRandomJamie I'm having trouble with the smaller image too... Thanks @Manish-Giri
CamperBot
@camperbot
Mar 17 2016 00:38
aareeder sends brownie points to @onerandomjamie and @manish-giri :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for onerandomjamie
:star: 771 | @manish-giri | http://www.freecodecamp.com/manish-giri
OneRandomJamie
@OneRandomJamie
Mar 17 2016 00:38
@Manish-Giri I didnt. I ahve it on another section but where would it go for iamges?
Daniel
@Staxed
Mar 17 2016 00:38
or guide to the simplest way to code it myself :)
Manish Giri
@Manish-Giri
Mar 17 2016 00:40

@OneRandomJamie @aareeder
this part is fine

<style>
.smaller-image {
width: 100px;
}
</style>

now you would have an img element in the HTML, like this
<img src=“….”>
to it, add class=“smaller-image”
like

<img class=“smaller-image” src=“….”>
Pinoley
@Pinoley
Mar 17 2016 00:41
ANyone help with font size coding?
struggling to make my p text a certain font size

<style>
.red-text {
color: red;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

Manish Giri
@Manish-Giri
Mar 17 2016 00:42
@Pinoley
p {
font-size: 16px;
}
OneRandomJamie
@OneRandomJamie
Mar 17 2016 00:42

@Manish-Giri LIke this? <link=class="smaller-images"href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
<style>
.smaller-image {
width: 100px;
}
</style>

Manish Giri
@Manish-Giri
Mar 17 2016 00:43
@OneRandomJamie you’re just copy-pasting what you had earlier, no that’s not it. And why the extra <style> at the top.
Pinoley
@Pinoley
Mar 17 2016 00:43
@Manish-Giri thanks but where do i insert the etx? In <style>?
CamperBot
@camperbot
Mar 17 2016 00:43
pinoley sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star: 772 | @manish-giri | http://www.freecodecamp.com/manish-giri
Manish Giri
@Manish-Giri
Mar 17 2016 00:44
@Pinoley yes, though i’m not sure what etx is
Benjamin Gonzalez
@xasuma
Mar 17 2016 00:44
@Pinoley under or above the line "color:red;"
aareeder
@aareeder
Mar 17 2016 00:44
This message was deleted
Benjamin Gonzalez
@xasuma
Mar 17 2016 00:44
as long as it's inside your class red-text its good
Pinoley
@Pinoley
Mar 17 2016 00:46
<style>
.red-text {
color: red;
font-size: 16px;
}
</style>
?
better?
Benjamin Gonzalez
@xasuma
Mar 17 2016 00:46
@Pinoley yes
and also, for next time
Pinoley
@Pinoley
Mar 17 2016 00:46
But this isnt chaning any of the text

<style>
.red-text {
color: red;
font-size: 16px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>
p {
font-size: 16px;
}

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

<p class="red-text"> Purr jump eat rip</p>

Benjamin Gonzalez
@xasuma
Mar 17 2016 00:46
explain format
CamperBot
@camperbot
Mar 17 2016 00:46

:point_right: code formatting [wiki]

Multi line Code

```js ⇦ Type 3 backticks and then press [shift + enter ⏎] (type js or html or css)

<paste your code here>,
then press [shift + enter ⏎]

``` ⇦ Type 3 backticks, then press [enter ⏎]

Single line Code

This an inline `<paste code here>` code formatting with a single backtick(`) at start and end around the code.

See also: ☛ How to type Backticks | ☯ Compose Mode | ❄ Gitter Formatting Basics

:pencil: read more about code formatting on the FCC Wiki

OneRandomJamie
@OneRandomJamie
Mar 17 2016 00:48
@Manish-Giri THank you. I finally realized what you were saying.
CamperBot
@camperbot
Mar 17 2016 00:48
onerandomjamie sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star: 773 | @manish-giri | http://www.freecodecamp.com/manish-giri
Pinoley
@Pinoley
Mar 17 2016 00:48
<style>
  .red-text {
    color: red;
    font-size: 16px;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>
p {
font-size: 16px;
}
<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

<p class="red-text"> Purr jump eat rip</p>
Benjamin Gonzalez
@xasuma
Mar 17 2016 00:48
@Pinoley try changing the amount of pixels.
blwbcm1203
@blwbcm1203
Mar 17 2016 00:49
override styles in subsequent
Pinoley
@Pinoley
Mar 17 2016 00:49
Do not add a class attribute to the second p element, without removing it from the first one.
Give elements with the p tag a font-size of 16px. Browser and Text zoom should be at 100%.
ctal
@ctal
Mar 17 2016 00:49

@Pinoley

p {
font-size: 16px;
}

This is CSS code, so it needs to go between the <style> tags

Pinoley
@Pinoley
Mar 17 2016 00:49
the tasks ive not met
Manish Giri
@Manish-Giri
Mar 17 2016 00:49
@Pinoley why is the font-size: 16px inside your .red-text?
@Pinoley here’s the whole style section
.red-text {
    color: red;
  }
p {
font-size: 16px;
}
@OneRandomJamie welcome
blwbcm1203
@blwbcm1203
Mar 17 2016 00:50
Help stuck in challenge....Override styles in subsequent CCS. Can't figure any of it out?!?
CamperBot
@camperbot
Mar 17 2016 00:50
no wiki entry for: stuck in challengeoverride styles in subsequent ccs cant figure any of it out
Manish Giri
@Manish-Giri
Mar 17 2016 00:50
@aareeder are you done with the challenge?
Pinoley
@Pinoley
Mar 17 2016 00:50
<style>
  .red-text {
    color: red;
    font-size: 16px;
  }
  p {
    font-size: 16px;
  }
</style>
Manish Giri
@Manish-Giri
Mar 17 2016 00:50
@blwbcm1203 where you stuck
Benjamin Gonzalez
@xasuma
Mar 17 2016 00:51
@Pinoley you don't need to have the first font size, since you are affecting all paragraphs in the second part of your code.
blwbcm1203
@blwbcm1203
Mar 17 2016 00:51
@Manish-Giri , pretty much the whole thing:/
Pinoley
@Pinoley
Mar 17 2016 00:52
yeah im just taking taht out
Manish Giri
@Manish-Giri
Mar 17 2016 00:52
@blwbcm1203 can you paste the current code here? Then I’ll walk you thru the logic.
blwbcm1203
@blwbcm1203
Mar 17 2016 00:53
@Manish-Giri

@Manish-Giri <style>
body {
background-color: black;
font-family: Monospace;
color: green;
}
.pink-text {
color: pink;
}
</style>

<h1 class="pink-text">Hello World!</h1>

Matt Burd
@EskimoBurd
Mar 17 2016 00:54

https://gyazo.com/3819c4503a12ed0212339a1db57b0445

seems like i have everything i need

Manish Giri
@Manish-Giri
Mar 17 2016 00:55
@blwbcm1203 okay, first task is to create a class blue-text that gives blue color to your text. Do you know how to do that? It’s quite similar to this
.pink-text {
color: pink;
}
Pinoley
@Pinoley
Mar 17 2016 00:55
<style>
  .red-text {
    color: red;
  }
  p {
    font-size: 16px;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

<p class="red-text"> Purr jump eat the grass rip the couch scratched sunbathe</p>
i dont understand hat ive done wrong here?
blwbcm1203
@blwbcm1203
Mar 17 2016 00:55
is that basically the same as the pink in the style?
Manish Giri
@Manish-Giri
Mar 17 2016 00:56
@blwbcm1203 yeah, replace pink with blue
Pinoley
@Pinoley
Mar 17 2016 00:56
@Manish-Giri Its all figured, got there in teh end thank you
CamperBot
@camperbot
Mar 17 2016 00:56
pinoley sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:warning: pinoley already gave manish-giri points
Manish Giri
@Manish-Giri
Mar 17 2016 00:57
@Pinoley cool, glad it helped
Pinoley
@Pinoley
Mar 17 2016 00:57
@Manish-Giri Hero!
Benjamin Gonzalez
@xasuma
Mar 17 2016 00:59
Ive been trying to figure out how to make links out of font awesome symbols without the space to click on them being very large. But I can't find how to. If you scroll all the way down and hover on them you can see what I mean. http://codepen.io/xasuma/pen/BKLzJJ
blwbcm1203
@blwbcm1203
Mar 17 2016 00:59
@Manish-Giri ok I have the blue class added
Manish Giri
@Manish-Giri
Mar 17 2016 00:59
@Pinoley :)
@blwbcm1203 you need to show your code at every step!
Sam
@Samwise12
Mar 17 2016 01:01
All my previous challenges answers were deleted....
Allen Larson
@scanmancanscan
Mar 17 2016 01:07
Any thoughts on why my collapsible panels are not working?
they work on the desktop and webpage but not in CodePen
Matt Burd
@EskimoBurd
Mar 17 2016 01:09
Manish Giri
@Manish-Giri
Mar 17 2016 01:10
@EskimoBurd looks like you need sweater with a small s
Matt Burd
@EskimoBurd
Mar 17 2016 01:10
omg lol me i didnt think that would actually be it
lol t
ty
Robert Mensing
@rmensing
Mar 17 2016 01:10
@xasuma the fa icons are inheriting a size of 14px from the body. you can reduce the size for them in you css.
@scanmancanscan Is the collapse from the bootstrap library?
Robert Mensing
@rmensing
Mar 17 2016 01:18
@scanmancanscan one possible issue is you have a space after both your href text and the id in your div.
<a data-toggle="collapse " href="#collapse1 ">TIMELINE</a>
<div id="collapse1 " class="panel-collapse collapse ">
also in your data-toggle
asimpson203
@asimpson203
Mar 17 2016 01:23

<h2>CatPhotoApp</h2>

<style>
h2 {color: blue;}
</stlye>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

any ideas how i can fix this?
Robert Mensing
@rmensing
Mar 17 2016 01:23
what are you trying to fix?
Andrew Powers
@apowers221
Mar 17 2016 01:24
How do I do the fancy linking with the black background like on the site?
asimpson203
@asimpson203
Mar 17 2016 01:25
I pressed ctrl + enter to move forward, but didn't get an error or anything.
oh never mind i see it. I messed up the style element by typing it incorrectly
Dana Ng
@riceball1
Mar 17 2016 01:27
anyone completed seek and destroy can explain to me how to use arguments?
Robert Mensing
@rmensing
Mar 17 2016 01:30
I used the code in the orange box about 1/4 of the way down this page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments
Ayrton Renan
@AyrtonRenan
Mar 17 2016 01:31
<p>Click here for <a href="#"><img src="http://bit.ly/fcc-running-cats"/></a>cat photos.</p>
Robert Mensing
@rmensing
Mar 17 2016 01:31
it puts the arguments into an array
Ayrton Renan
@AyrtonRenan
Mar 17 2016 01:31
Nest the existing img element within an a element. dont work
Dana Ng
@riceball1
Mar 17 2016 01:31
@rmensing thanks, I'll look at that and see how to apply it
CamperBot
@camperbot
Mar 17 2016 01:31
riceball1 sends brownie points to @rmensing :sparkles: :thumbsup: :sparkles:
:star: 299 | @rmensing | http://www.freecodecamp.com/rmensing
aareeder
@aareeder
Mar 17 2016 01:32
I'm trying to nest a text field in a form element: <form action= "/submit-cat-photo" <input type="text" placeholder="cat photo URL"> </form> What am I doing wrong?
Robert Mensing
@rmensing
Mar 17 2016 01:32
@AyrtonRenan is it not showing the image?
Dana Ng
@riceball1
Mar 17 2016 01:33
@aareeder are you missing a > at the end of "submit-cat-photo"
Robert Mensing
@rmensing
Mar 17 2016 01:33
You do not have the closing > on the form tag
<form action= "/submit-cat-photo"
aareeder
@aareeder
Mar 17 2016 01:34
thanks @rmensing !
CamperBot
@camperbot
Mar 17 2016 01:34
aareeder sends brownie points to @rmensing :sparkles: :thumbsup: :sparkles:
Ayrton Renan
@AyrtonRenan
Mar 17 2016 01:34
dont work
CamperBot
@camperbot
Mar 17 2016 01:34
:star: 300 | @rmensing | http://www.freecodecamp.com/rmensing
B. Garber
@TheBGar
Mar 17 2016 01:34
@aareeder I echo what @rmensing said
@aareeder whoops, looks like you already saw it
aareeder
@aareeder
Mar 17 2016 01:34
Thanks @TheBGar
CamperBot
@camperbot
Mar 17 2016 01:35
aareeder sends brownie points to @thebgar :sparkles: :thumbsup: :sparkles:
:star: 354 | @thebgar | http://www.freecodecamp.com/thebgar
B. Garber
@TheBGar
Mar 17 2016 01:35
@aareeder :thumbsup:
Robert Mensing
@rmensing
Mar 17 2016 01:37
@AyrtonRenan do you have it on codepen?
Ayrton Renan
@AyrtonRenan
Mar 17 2016 01:39
I do, i create another anchor with href=# and img src, it work, thanks.
Robert Mensing
@rmensing
Mar 17 2016 01:39
you're welcome
Ayrton Renan
@AyrtonRenan
Mar 17 2016 01:40
thanks @rmensing
CamperBot
@camperbot
Mar 17 2016 01:40
ayrtonrenan sends brownie points to @rmensing :sparkles: :thumbsup: :sparkles:
:star: 301 | @rmensing | http://www.freecodecamp.com/rmensing
Demond Bivins
@dbivins
Mar 17 2016 01:42
Hello everyone, I was wondering how can my tribute page mobile responsive? I checked out bootstrap.com and it's components and I'm still confused. Here's my tribute page: http://codepen.io/dbivs08/pen/NNxzNv . Please review my code (not the presentation) and let me know what you think, what should I add and I can change.
Andrew Powers
@apowers221
Mar 17 2016 01:43
<div>
.gray-background {
background-color: gray;
}
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
</div>
Why isn't this changing the background?
Jeff
@meankraken
Mar 17 2016 01:44
@apowers221 you can't declare a class inside of a <div>, do it inside of <style> </style> brackets in your header
Andrew Powers
@apowers221
Mar 17 2016 01:44
This is what it tells me though... Give your div element the class gray-background.
Your div element should have a gray background.
Dana Ng
@riceball1
Mar 17 2016 01:44
@apowers221 it might mean to do it through the css file
Andrew Powers
@apowers221
Mar 17 2016 01:44
Would it be <div class= "gray-background"?
Jeff
@meankraken
Mar 17 2016 01:45
@apowers221 yep
Andrew Powers
@apowers221
Mar 17 2016 01:45
Awesome, thanks
Kia Farhang
@KiaFarhang
Mar 17 2016 01:45
@dbivs08 - It looks responsive to me, resizes when I resize my broswer. But your background image is broken - looks like they don't allow outside links.
Demond Bivins
@dbivins
Mar 17 2016 01:46
Okay thank you
Robert Mensing
@rmensing
Mar 17 2016 01:48
@dbivs08 actually it may be that you need to enclose the url for the background image in quotes in the css
Demond Bivins
@dbivins
Mar 17 2016 01:49
Thank you guys for the feed back I'll change up the code a little to make sure the image show up
B. Garber
@TheBGar
Mar 17 2016 01:51
@apowers221 just for future ref, try posting your code in markdown format. Here's a brief explanation on how to do it :point_down:
explain format
CamperBot
@camperbot
Mar 17 2016 01:51

:point_right: code formatting [wiki]

Multi line Code

```js ⇦ Type 3 backticks and then press [shift + enter ⏎] (type js or html or css)

<paste your code here>,
then press [shift + enter ⏎]

``` ⇦ Type 3 backticks, then press [enter ⏎]

Single line Code

This an inline `<paste code here>` code formatting with a single backtick(`) at start and end around the code.

See also: ☛ How to type Backticks | ☯ Compose Mode | ❄ Gitter Formatting Basics

:pencil: read more about code formatting on the FCC Wiki

Cassius
@CassiusCodes
Mar 17 2016 01:51

<style>
body {
background-color: black;
font-family: Monospace;
color: green;
}

orange-text {

color: orange;

}
.pink-text {
color: pink;
}
.blue-text {
color: blue;
}
</style>

<h1 id="orange-text" class="pink-text blue-text">Hello World!</h1>

Your h1 element should have the class pink-text.
Your h1 element should have the class blue-text.
Your h1 element should have the id of orange-text.
Give your h1 element the inline style of color: white.
Your h1 element should be white.
??
Robert Mensing
@rmensing
Mar 17 2016 01:52
@TheBGar thanks for that, I've been screwing up the multi line :)
CamperBot
@camperbot
Mar 17 2016 01:52
rmensing sends brownie points to @thebgar :sparkles: :thumbsup: :sparkles:
:star: 355 | @thebgar | http://www.freecodecamp.com/thebgar
B. Garber
@TheBGar
Mar 17 2016 01:54
@CassiusCodes do you mind reposting your code using the guide I quoted right before you posted that? Make sure to include your entire code so we can take a look. Here's the post I was referencing :point_up: March 16, 2016 8:51 PM
@rmensing you got it! :wink2: It sure helps when you want to take a look at code since it colors everything for you
@CassiusCodes at first glance it looks like you're missing the "Give your h1 element the inline style of color:white" part
Allen Larson
@scanmancanscan
Mar 17 2016 01:56
@rmensing yes the collapse is from bootstrap
Cassius
@CassiusCodes
Mar 17 2016 01:56
How do i do so? @TheBGar
h1 element that is.Ive drawn a blank lol
B. Garber
@TheBGar
Mar 17 2016 01:57
@CassiusCodes have you learned inline css yet?
@CassiusCodes as opposed to internal and external css
Cassius
@CassiusCodes
Mar 17 2016 02:02
Yes I have I figured it out.I had a blonde moment man Lol @TheBGar Thanks
CamperBot
@camperbot
Mar 17 2016 02:02
cassiuscodes sends brownie points to @thebgar :sparkles: :thumbsup: :sparkles:
:star: 356 | @thebgar | http://www.freecodecamp.com/thebgar
Robert Mensing
@rmensing
Mar 17 2016 02:04
@scanmancanscan Figured it out. you are getting an error: Failed to load resource: the server responded with a status of 403 (Forbidden) on bootstrap. instead of pasting the link in the settings you can select it frm the dropdown to add bootstrap and it works
Benjamin Gonzalez
@xasuma
Mar 17 2016 02:10
Can someone help me with some "font awesome" symbols I'm trying to make as links but they are giving me trouble ?
Stephenna Jemae
@Stephenna
Mar 17 2016 02:12
Hi! I'm having a blonde moment): The task is "Prioritize One Style Over Another" I still have an X for " Your <style> should have a pink-text CSS class with its color set to pink." This is what I have: <style>
.pink-text: {color: pink;}
</style> What is wrong?! Thanks
Allen Larson
@scanmancanscan
Mar 17 2016 02:14
Thanks! @rmensing
CamperBot
@camperbot
Mar 17 2016 02:14
scanmancanscan sends brownie points to @rmensing :sparkles: :thumbsup: :sparkles:
:star: 302 | @rmensing | http://www.freecodecamp.com/rmensing
hnry
@hnry
Mar 17 2016 02:15
@Stephenna i think you probably need to now apply that style to the h1 in the challenge
Benjamin Gonzalez
@xasuma
Mar 17 2016 02:15
@Stephenna after .pink-text you have a colon. You shouldn't have that colon before the curly brace.
B. Garber
@TheBGar
Mar 17 2016 02:15
@CassiusCodes no worries! Sometimes things can slip our mind
hnry
@hnry
Mar 17 2016 02:15
oh yea that too
Stephenna Jemae
@Stephenna
Mar 17 2016 02:16
Thanks @hnry and @xasuma the colon was the issue!!
CamperBot
@camperbot
Mar 17 2016 02:16
stephenna sends brownie points to @hnry and @xasuma :sparkles: :thumbsup: :sparkles:
:star: 170 | @hnry | http://www.freecodecamp.com/hnry
:star: 141 | @xasuma | http://www.freecodecamp.com/xasuma
Allen Larson
@scanmancanscan
Mar 17 2016 02:18
@rmensing any ideas on how to zero out the radius on those panel headers?
Robert Mensing
@rmensing
Mar 17 2016 02:22
seems to possibly be a problem with codepen at the moment
Benjamin Gonzalez
@xasuma
Mar 17 2016 02:22
yup
Robert Mensing
@rmensing
Mar 17 2016 02:22
503 (Service Unavailable: Back-end server is at capacity)
Benjamin Gonzalez
@xasuma
Mar 17 2016 02:23
I was also freaknig out.. haha
Dhruv
@printdhruv
Mar 17 2016 02:24
can anybody tell me value of one domain name
Daniel
@Staxed
Mar 17 2016 02:25

anyone see any issues with the code below that would cause it to stretch the screen on a mobile? I've verified it is the header section that is causing the issue (view staxed.github.io to see the issue in mobile, it's stretching the page a bit instead of being fully responsive)

.header {
  padding: 100px 0;
  display: table;
  width: 100%;
  height: 100%;
  color: #FFF;
  background-image: url("http://s27.postimg.org/778hbrnc3/escalator.jpg");
    -webkit-background-size: cover;
    -moz-background-size: cover;
  background-size: cover;
    -o-background-size: cover;
}

<a name="home"></a>
  <header class="header">
    <div class="container text-vertical-center">
      <div class="row">
        <div class="col-md-8 col-md-offset-2">
          <h1>Daniel Barr</h1>
          <h3>Some text here soon</h3>
          <br>
          <ul class="list-inline">
            <li>
              <a href="https://www.facebook.com/staxed" class="btn btn-default btn-lg"><i class="fa fa-facebook fa-fw"></i> <span class="network-name">Facebook</span></a>
            </li>
            <li>
              <a href="https://twitter.com/DanBBarr" class="btn btn-default btn-lg"><i class="fa fa-twitter fa-fw"></i> <span class="network-name">Twitter</span></a>
            </li>
            <li>
              <a href="https://github.com/Staxed" class="btn btn-default btn-lg"><i class="fa fa-github fa-fw"></i> <span class="network-name">Github</span></a>
            </li>
            <li>
              <a href="https://www.linkedin.com/in/daniel-barr-67291331" class="btn btn-default btn-lg"><i class="fa fa-linkedin fa-fw"></i> <span class="network-name">Linkedin</span></a>
            </li>
          </ul>
        </div>
      </div>
    </div>
  </header>

http://codepen.io/Staxed/pen/jqrmKa

Dhruv
@printdhruv
Mar 17 2016 02:26
476f6f676c65.com
Taylor Grevious
@TaylorPNW
Mar 17 2016 02:27
Hi guys! I'm on day 1 and already not sure what I did wrong. I'm told to: "Inside the same <style> tag that contains your red-text class, create an entry for p elements and set the font-size to 16 pixels (16px)" but I have an X for "Give elements with the p tag a font-size of 16px. Browser and Text zoom should be at 100%"
Oops! Here's my code:
<style>
.red-text {
color: red;
}
.p {
font-size: 16px;
}
</style>
Coy Sanders
@coymeetsworld
Mar 17 2016 02:28
@TaylorPNW it should just be p, not .p
a dot means youre specifying a class but here you want to specify a tag (i.e. no dot)
Taylor Grevious
@TaylorPNW
Mar 17 2016 02:29
Thanks so much for clarifying @coymeetsworld!
CamperBot
@camperbot
Mar 17 2016 02:29
taylorpnw sends brownie points to @coymeetsworld :sparkles: :thumbsup: :sparkles:
:star: 357 | @coymeetsworld | http://www.freecodecamp.com/coymeetsworld
Coy Sanders
@coymeetsworld
Mar 17 2016 02:29
no problem :thumbsup: @TaylorPNW
Daniel
@Staxed
Mar 17 2016 02:31
think I figured it out, seems to have been an issue with the extra background-size attributes...not sure what those are really for anyway though, just saw something that said they are helpful...
so, based on that...I have a question. I figured out it was the "-o-background-size: cover;" attribute that was causing the problem. What exactly was that attribute supposed to do anyway? I can't seem to find much info on what the -o- does
cmchenry1
@cmchenry1
Mar 17 2016 02:36
blob
Can anybody tell me what's wrong with this code for the Nest an Anchor Element within a Paragraph challenge?
Pawan
@pawan92
Mar 17 2016 02:37
@cmchenry1 just add an Ahref within the <p> tags at the bottom i think
cmchenry1
@cmchenry1
Mar 17 2016 02:43
@pawan92 that doesn't seem to fix it. Also, the instructions state "Now nest your existing a element within a new p element (just after the existing h2 element) so that the surrounding paragraph says "View more cat photos", but where only "cat photos" is a link, and the rest of the text is plain text."
Pawan
@pawan92
Mar 17 2016 02:48
@cmchenry1 something like this:
<p class="red-text"> <a href='http://google.com'> link to google</a>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text"> <a href='http://google.com'> link to google</a>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
but just create a new p tag
Jeff
@meankraken
Mar 17 2016 02:49

Hey guys, I'm on the intermediate alg. exercise "Convert HTML Entities"... the instructions say to convert the characters &, <, >, " (double quote), and ' (apostrophe), in a string to their corresponding HTML entities...

I accomplished it by simply changing them into their corresponding "entities" using if statements, but I feel like it wants me to do it by using regex in some cleaner way, any thoughts?

Sam
@Samwise12
Mar 17 2016 02:52
can you use for of loops here? I keep getting an error
Michael Mazzone
@GitMazzone
Mar 17 2016 02:56
Can someone take a look at my portfolio and help me figure out why an element isn't centered exactly?
I'll send you the dropbox link
KAMLESH KUMAR
@kamlesbhalui
Mar 17 2016 03:06
i am including a kitten image link in src attributes in img tag but it is showing error?
Pawan
@pawan92
Mar 17 2016 03:08
@cmchenry1 did you get it?
cmchenry1
@cmchenry1
Mar 17 2016 03:10
yes I had to reload the challenge and resubmit my exact same code. Thanks for your help! @pawan92
CamperBot
@camperbot
Mar 17 2016 03:10
cmchenry1 sends brownie points to @pawan92 :sparkles: :thumbsup: :sparkles:
:star: 318 | @pawan92 | http://www.freecodecamp.com/pawan92
Pawan
@pawan92
Mar 17 2016 03:10
=)
cannelflow
@cannelflow
Mar 17 2016 03:13
@cmchenry1 :+1:
Sam
@Samwise12
Mar 17 2016 03:17
Is it just me or are switch statements far better than if statements?
Taylor Grevious
@TaylorPNW
Mar 17 2016 03:20
is anyone else not able to move to a new challenge?
Jeff
@meankraken
Mar 17 2016 03:21
does anyone know how to make a regex for "anything thats not a lowercase letter"
KAMLESH KUMAR
@kamlesbhalui
Mar 17 2016 03:22
yes switch is better then if -else statements.if there has more if -else statements.because switch is cheking only one condtion of equality and execute that case but in if-else it is cheking every condtion.
Bryan Knight
@Harmicide
Mar 17 2016 03:23
So I am on the assignment to make an informative page about somebody. I cant figure out how theres a background behind the image.. http://codepen.io/FreeCodeCamp/pen/wMQrXV/
Having a major brainfart.
Rodrigo Lira
@mrodrigolira
Mar 17 2016 03:23
@meankraken (/[^a-z]/g, '')
KAMLESH KUMAR
@kamlesbhalui
Mar 17 2016 03:24
So if-else lather take more time time than switch
and also switch is only for char and int type
and if else for everything
Jeff
@meankraken
Mar 17 2016 03:24
@mrodrigolira just figured it out, thanks
CamperBot
@camperbot
Mar 17 2016 03:24
meankraken sends brownie points to @mrodrigolira :sparkles: :thumbsup: :sparkles:
:star: 22 | @mrodrigolira | http://www.freecodecamp.com/mrodrigolira
Rodrigo Lira
@mrodrigolira
Mar 17 2016 03:25
@meankraken thank you
CamperBot
@camperbot
Mar 17 2016 03:25
mrodrigolira sends brownie points to @meankraken :sparkles: :thumbsup: :sparkles:
:star: 300 | @meankraken | http://www.freecodecamp.com/meankraken
Rodrigo Lira
@mrodrigolira
Mar 17 2016 03:25
oops, didnt know that
@kamlesbhalui your image needs to be hosted on some site, get the link of an image on google images
Bryan Knight
@Harmicide
Mar 17 2016 03:36
anyone know an answer to the above question?
Reynnan Viktor
@reynnanviktor
Mar 17 2016 03:37
"After queue(testArr, 10), myArr'[4]' should be 10 "
Ok now, I dont get that I create a var called myArr but I dont really know what I have to do with her, this is from the question named Stand in Line of JavaScript, all the others task is already complete
KAMLESH KUMAR
@kamlesbhalui
Mar 17 2016 03:41
@mrodrigolira Thank You
CamperBot
@camperbot
Mar 17 2016 03:41
kamlesbhalui sends brownie points to @mrodrigolira :sparkles: :thumbsup: :sparkles:
:star: 29 | @mrodrigolira | http://www.freecodecamp.com/mrodrigolira
Daniel
@Staxed
Mar 17 2016 03:43
anyone experience in parallax effects? I've gotten the portfolio section image to be fixed, but I can't seem to get the parallax scroll effect to work http://codepen.io/Staxed/pen/jqrmKa
Kevin Nelms Baxter II
@kbax6342
Mar 17 2016 04:00

<style>
body {
background-color:green;
font-family:monospace;
}


</style>

<body>
<h1 class="hello"> Hello World</h1>
</body>

I am tring to give my body element the color green
Bryan Knight
@Harmicide
Mar 17 2016 04:00
background-colo: green
needs the space

<style>
body {
background-color: green;
font-family: monospace;
}


</style>

<body>
<h1 class="hello"> Hello World</h1>
</body>

Add a space after the colon
Kevin Nelms Baxter II
@kbax6342
Mar 17 2016 04:01
also my h1 element should inherit color green from my body element
James S.
@Mrblue27
Mar 17 2016 04:01
I am lost on how and where the Nesting line is suppose to be placed
Bryan Knight
@Harmicide
Mar 17 2016 04:01
Yes.
Kevin Nelms Baxter II
@kbax6342
Mar 17 2016 04:01
that doesn't seem to be working
Bryan Knight
@Harmicide
Mar 17 2016 04:02
Did you space it out?
Rodrigo Lira
@mrodrigolira
Mar 17 2016 04:02
@kbax6342 you don't need the space, just look to your syntax for errors or reload the test
Bryan Knight
@Harmicide
Mar 17 2016 04:04
What is better to code on Linux, or windows?
or I should say, front-end Dev on.
James S.
@Mrblue27
Mar 17 2016 04:13
i am lost on how and where the Nesting line is suppose to be placed
https://www.freecodecamp.com/challenges/nest-an-anchor-element-within-a-paragraph#?solution=%3Clink%20href%3D%22http%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Ca%20href%3D%22http%3A%2F%2Fwww.freecatphotoapp.com%22%3Ecat%20photos%3C%2Fa%3E%0A%0A%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%0A%0A%3Cp%20class%3D%22red-text%22%3EKitty%20ipsum%20dolor%20sit%20amet%2C%20shed%20everywhere%20shed%20everywhere%20stretching%20attack%20your%20ankles%20chase%20the%20red%20dot%2C%20hairball%20run%20catnip%20eat%20the%20grass%20sniff.%3C%2Fp%3E%0A%3Cp%20class%3D%22red-text%22%3EPurr%20jump%20eat%20the%20grass%20rip%20the%20couch%20scratched%20sunbathe%2C%20shed%20everywhere%20rip%20the%20couch%20sleep%20in%20the%20sink%20fluffy%20fur%20catnip%20scratched.%3C%2Fp%3E%0A%0A%3Cp%3E%3Ca%20href%3D
Bryan Knight
@Harmicide
Mar 17 2016 04:13
Now nest your existing a element within a new p element (just after the existing h2 element)
Right after h2
but keep in mind- you are creating another p element as well.
Rodrigo Lira
@mrodrigolira
Mar 17 2016 04:14
@Mrblue27 you need to enclose your a element within a p element (create a p element and put the a inside)
Bryan Knight
@Harmicide
Mar 17 2016 04:16
@mrodrigolira How did the creator make the object behind the photo (the gray part)
Rodrigo Lira
@mrodrigolira
Mar 17 2016 04:18
@Harmicide you can achieve the same result with opacity
James S.
@Mrblue27
Mar 17 2016 04:19
@mrodrigolira I did but its not working. Did I do something wrong? Take a look
Franco Zapata
@Francozt01
Mar 17 2016 04:19
@Harmicide CSS opacity: ;
James S.
@Mrblue27
Mar 17 2016 04:19
https://www.freecodecamp.com/challenges/nest-an-anchor-element-within-a-paragraph#?solution=%3Clink%20href%3D%22http%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Ca%20href%3D%22http%3A%2F%2Fwww.freecatphotoapp.com%22%3Ecat%20photos%3C%2Fa%3E%0A%0A%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%0A%0A%3Cp%20class%3D%22red-text%22%3EKitty%20ipsum%20dolor%20sit%20amet%2C%20shed%20everywhere%20shed%20everywhere%20stretching%20attack%20your%20ankles%20chase%20the%20red%20dot%2C%20hairball%20run%20catnip%20eat%20the%20grass%20sniff.%3C%2Fp%3E%0A%3Cp%20class%3D%22red-text%22%3EPurr%20jump%20eat%20the%20grass%20rip%20the%20couch%20scratched%20sunbathe%2C%20shed%20everywhere%20rip%20the%20couch%20sleep%20in%20the%20sink%20fluffy%20fur%20catnip%20scratched.%3C%2Fp%3E%0A%0A%3Cp%3E%3Ca%20href%3D%22cat%20photos%22%3E%20View%20more%20cat%20photos%3C%2Fa%3E%3C%2Fp%3E
cannelflow
@cannelflow
Mar 17 2016 04:20
@Mrblue27 <p><a></a></p>
Bryan Knight
@Harmicide
Mar 17 2016 04:20

@Mrblue27 <h2 class="red-text">CatPhotoApp</h2>

<p> view more <a href="http://www.freecatphotoapp.com">cat photos</a></p>

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

cannelflow
@cannelflow
Mar 17 2016 04:20

so that the surrounding paragraph says "View more cat photos", but where only "cat photos" is a link, and the rest of the text is plain text. @Mrblue27

pls don't throw the answer at least try to explain first

so since cat photos is a link it will go inside <a></a> View more is a plain text so it will go in <p></p>

@Mrblue27
Souvik04
@Souvik04
Mar 17 2016 04:25
Hello World
CamperBot
@camperbot
Mar 17 2016 04:25

welcome to FreeCodeCamp @Souvik04!

Bryan Knight
@Harmicide
Mar 17 2016 04:25
Welcome @Souvik04
Souvik04
@Souvik04
Mar 17 2016 04:26
thank you Harmicide!
cannelflow
@cannelflow
Mar 17 2016 04:26
welcome to FreeCodeCamp @Souvik04
Rodrigo Lira
@mrodrigolira
Mar 17 2016 04:26
@Mrblue27 in your example code you cant use opacity because it will fade the entire page use something like .transparent{
background:rgba(255,255,255,0.5);
}
Souvik04
@Souvik04
Mar 17 2016 04:26
I am new here just started yesterday
Rodrigo Lira
@mrodrigolira
Mar 17 2016 04:26
welcome
me too, started today
Souvik04
@Souvik04
Mar 17 2016 04:26
thank you @cannelflow
CamperBot
@camperbot
Mar 17 2016 04:26
souvik04 sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:star: 937 | @cannelflow | http://www.freecodecamp.com/cannelflow
cannelflow
@cannelflow
Mar 17 2016 04:27
@Souvik04 :+1:
crakapps
@crakapps
Mar 17 2016 04:29

why am I gettng an error? function queue(arr, item) {
// Your code here
testArr.push (item);
var removedItem = testArr.shift();
return removedItem; // Change this line
}

// Test Setup
var testArr = [5,6,7,8,9];

// Display Code
console.log("Before: " + JSON.stringify(testArr));
console.log(queue(testArr, 1)); // Modify this line to test
console.log("After: " + JSON.stringify(testArr));
</code>

Kevin Nelms Baxter II
@kbax6342
Mar 17 2016 04:29
where do you put the 1imporant in the css
!important
Souvik04
@Souvik04
Mar 17 2016 04:29
do we get the tools or IDEs for coding in the cloud? or I have to get it my machine?
James S.
@Mrblue27
Mar 17 2016 04:30
Hmmm how do I correct "View more"
https://www.freecodecamp.com/challenges/nest-an-anchor-element-within-a-paragraph#?solution=%3Clink%20href%3D%22http%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Ca%20href%3D%22http%3A%2F%2Fwww.freecatphotoapp.com%22%3Ecat%20photos%3C%2Fa%3E%0A%0A%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%0A%0A%3Cp%20class%3D%22red-text%22%3EKitty%20ipsum%20dolor%20sit%20amet%2C%20shed%20everywhere%20shed%20everywhere%20stretching%20attack%20your%20ankles%20chase%20the%20red%20dot%2C%20hairball%20run%20catnip%20eat%20the%20grass%20sniff.%3C%2Fp%3E%0A%3Cp%20class%3D%22red-text%22%3EPurr%20jump%20eat%20the%20grass%20rip%20the%20couch%20scratched%20sunbathe%2C%20shed%20everywhere%20rip%20the%20couch%20sleep%20in%20the%20sink%20fluffy%20fur%20catnip%20scratched.%3C%2Fp%3E%0A%0A%3Ch2%20class%22red-text%22%3E%20CatPhotoApp%3C%2Fh2%3E%3Cp%3E%20%22View%20more%22%20%3Ca%20%20href%3D%22http%3A%2F%2Fwww.freecatphotoapp.com%22%3Ecat%20photos%3C%2Fa%3E%3C%2Fp%3E
DJ
@qualitymanifest
Mar 17 2016 04:31
@Mrblue27 "Now nest your existing a element within a new p element (just after the existing h2 element)
crakapps
@crakapps
Mar 17 2016 04:31

function queue(arr, item) {
// Your code here
testArr.push (item);
var removedItem = testArr.shift();
return removedItem; // Change this line
}

// Test Setup
var testArr = [5,6,7,8,9];

// Display Code
console.log("Before: " + JSON.stringify(testArr));
console.log(queue(testArr, 1)); // Modify this line to test
console.log("After: " + JSON.stringify(testArr));
queue([5,6,7,8,9], 1) should return 5

Armando D. Morales
@amorales944
Mar 17 2016 04:31
@kbax6342
<style>
body {
background-color: black;
font-family: Monospace;
color: green;
}
#orange-text {
color: orange;
}
.pink-text {
color: pink !important;
}
.blue-text {
color: blue;
}
</style>
Brayand
@hollowdeathcult
Mar 17 2016 04:33
Hello folks, I need some assistance. how do I check for all the text styles I can assing on a text with bootstrap? you know, the Class="text-primary" one. I'm in my first challenge in freecodecamp and I need this to stylize my web, thanks in advance
DJ
@qualitymanifest
Mar 17 2016 04:33
@crakapps you need to be using arr since it was passed into your function, not testArr which is just an example
@crakapps also if you pasted that correctly and queue([5,6,7,8,9], 1) should return 5 isn't commented, you'll need to comment or delete that line.
@hollowdeathcult the docs: http://getbootstrap.com/css/#type
Brayand
@hollowdeathcult
Mar 17 2016 04:36
YES! thank you very much @qualitymanifest
CamperBot
@camperbot
Mar 17 2016 04:36
hollowdeathcult sends brownie points to @qualitymanifest :sparkles: :thumbsup: :sparkles:
:star: 1074 | @qualitymanifest | http://www.freecodecamp.com/qualitymanifest
crakapps
@crakapps
Mar 17 2016 04:37
@qualitymanifest last line was just a copy of what the console was saying I didnt accomplish. ill redo and reaprise
@qualitymanifest fixed it tahn ks for your help
James S.
@Mrblue27
Mar 17 2016 04:45
can anyone tell me what the fifth step is talking about
https://www.freecodecamp.com/challenges/nest-an-anchor-element-within-a-paragraph#?solution=%3Clink%20href%3D%22http%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Ca%20href%3D%22http%3A%2F%2Fwww.freecatphotoapp.com%22%3Ecat%20photos%3C%2Fa%3E%0A%0A%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%0A%0A%3Cp%20class%3D%22red-text%22%3EKitty%20ipsum%20dolor%20sit%20amet%2C%20shed%20everywhere%20shed%20everywhere%20stretching%20attack%20your%20ankles%20chase%20the%20red%20dot%2C%20hairball%20run%20catnip%20eat%20the%20grass%20sniff.%3C%2Fp%3E%0A%3Cp%20class%3D%22red-text%22%3EPurr%20jump%20eat%20the%20grass%20rip%20the%20couch%20scratched%20sunbathe%2C%20shed%20everywhere%20rip%20the%20couch%20sleep%20in%20the%20sink%20fluffy%20fur%20catnip%20scratched.%3C%2Fp%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3E%20CatPhotoApp%3C%2Fh2%3E%3Cp%3E%22View%20more%22%3Ca%0A%20%20href%3D%22http%3A%2F%2Fwww.freecatphotoapp.com%22%3E%22cat%20photos%22%3C%2Fa%3E%3C%2Fp%3E%0A
Brayand
@hollowdeathcult
Mar 17 2016 04:47
I can help with that @Mrblue27
What is saying is that the <p> element should have the View more text, what you have in these : ""
maybe if you delete the unnecesary quotation marks it should work
DJ
@qualitymanifest
Mar 17 2016 04:49
@Mrblue27
James S.
@Mrblue27
Mar 17 2016 04:50
@hollowdeathcult @hollowdeathcult tried that and still no luck
DJ
@qualitymanifest
Mar 17 2016 04:50
you've created a 2nd h2... no reason to do that. and your p element should be nested around your original a element
Brayand
@hollowdeathcult
Mar 17 2016 04:51
^jackpot
James S.
@Mrblue27
Mar 17 2016 04:55
@qualitymanifest ok I did that and still the sme issue for that line
DJ
@qualitymanifest
Mar 17 2016 04:55
@Mrblue27 paste your code again.
James S.
@Mrblue27
Mar 17 2016 04:55
https://www.freecodecamp.com/challenges/nest-an-anchor-element-within-a-paragraph#?solution=%3Clink%20href%3D%22http%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Ca%20href%3D%22http%3A%2F%2Fwww.freecatphotoapp.com%22%3Ecat%20photos%3C%2Fa%3E%0A%0A%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%0A%0A%3Cp%20class%3D%22red-text%22%3EKitty%20ipsum%20dolor%20sit%20amet%2C%20shed%20everywhere%20shed%20everywhere%20stretching%20attack%20your%20ankles%20chase%20the%20red%20dot%2C%20hairball%20run%20catnip%20eat%20the%20grass%20sniff.%3C%2Fp%3E%0A%3Cp%20class%3D%22red-text%22%3EPurr%20jump%20eat%20the%20grass%20rip%20the%20couch%20scratched%20sunbathe%2C%20shed%20everywhere%20rip%20the%20couch%20sleep%20in%20the%20sink%20fluffy%20fur%20catnip%20scratched.%3C%2Fp%3E%0A%0A%3Cp%3EView%20more%3C%2Fp%3E%20%3Ca%0A%20%20href%3D%22http%3A%2F%2Fwww.freecatphotoapp.com%22%3E%20cat%20photos%3C%2Fa%3E%3C%2Fp%3E%0A
DJ
@qualitymanifest
Mar 17 2016 04:56
@Mrblue27 no. you only got rid of the h2. notice how you have 2 a elements that have the same text?
you need to get rid of the second one. just delete all that stuff you added below. then nest the p element around your first a element.
crakapps
@crakapps
Mar 17 2016 04:57
thanks everyone for the help today Im up to 200 completed items on the map, going to listen to coast to coast am now
DJ
@qualitymanifest
Mar 17 2016 04:58
@Mrblue27 when you fix that, you're also going to need a space after View more
Armando D. Morales
@amorales944
Mar 17 2016 05:02
@Mrblue27 and remove the </p> see how it's in red....you didn't start another
James S.
@Mrblue27
Mar 17 2016 05:02
@qualitymanifest I fixed it Thanks for your help
CamperBot
@camperbot
Mar 17 2016 05:02
mrblue27 sends brownie points to @qualitymanifest :sparkles: :thumbsup: :sparkles:
:star: 1075 | @qualitymanifest | http://www.freecodecamp.com/qualitymanifest
penny-lrz
@penny-lrz
Mar 17 2016 05:05
hello there. I am Penny. I met a problem on anchor text. I can't fulfill the requirement that "Your a element should have anchor text of cat photo." Can anyone help me?
and here is my code.
<a href="http://freecatphotoapp.com"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat"> </a>
DJ
@qualitymanifest
Mar 17 2016 05:06
@Mrblue27 glad to hear :+1:
@penny-lrz paste a link to the challenge or tell me the name of the challenge
penny-lrz
@penny-lrz
Mar 17 2016 05:09
@qualitymanifest the challenge is "Link to External Pages with Anchor Elements"
Shanto
@MohsinulKabir
Mar 17 2016 05:10
hey guys hello.... how do I nest an i element within a button element??
DJ
@qualitymanifest
Mar 17 2016 05:12
@penny-lrz you nested your img element inside of your a. leave the img element alone. instead, create the a element with that URL, and put cat photos in between the <a></a> tags
justoy
@wordhardqi
Mar 17 2016 05:12
···js
<!DOCTYPE html>
<html>
<head>
 <script src="//code.jquery.com/jquery-1.12.1.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("p").click(function(){
    $(this).hide();
  });
});
</script>
</head>
<body>
<p>s1</p>
<p>s2</p>
<p>s3</p>
</body>
</html>
why does it not work if I copy this code into a local html file and open it with chrome?
Jeff
@meankraken
Mar 17 2016 05:19
@wordhardqi The problem is your <script> reference to jquery
use a valid src
penny-lrz
@penny-lrz
Mar 17 2016 05:24
@qualitymanifest Sorry, I didn't get your idea. What i did was to replace where should be the anchor text with the image.
DJ
@qualitymanifest
Mar 17 2016 05:25
@penny-lrz yeah, i know. dont put the image inside the link. put the text cat photos inside the a element
<a href="www.somelink.com">Some Words Go Here, Not An Image</a>
Brayand
@hollowdeathcult
Mar 17 2016 05:27
hi again, Im having troubles making a image to be centered with the .img-responsive class on bootstrap, how do I share my code so I can get some feedback?
penny-lrz
@penny-lrz
Mar 17 2016 05:28
@qualitymanifest OK i get it. i misunderstood the question's meaning. But will this work in reality if I supplement an image with anchor text?
DJ
@qualitymanifest
Mar 17 2016 05:28
@penny-lrz yes, it will make the image a link
penny-lrz
@penny-lrz
Mar 17 2016 05:30
@qualitymanifest Great. Thanks for your help.
CamperBot
@camperbot
Mar 17 2016 05:30
penny-lrz sends brownie points to @qualitymanifest :sparkles: :thumbsup: :sparkles:
:star: 1077 | @qualitymanifest | http://www.freecodecamp.com/qualitymanifest
Enmanuel Hernandez
@eghr0106
Mar 17 2016 05:30

hi im enmanuel from DR. im havig problem with the challenge "Link to External Pages with Anchor Elements". My code does not work and its right. here it is

<a href="http://freecatphotoapp.com">cat photos</a>

if someone could help i would be grateful cause i dont see the bug.
Jeff
@meankraken
Mar 17 2016 05:32
@eghr0106 from what I see that looks valid, but what is the error you're getting? could you paste the entire snippet
Brayand
@hollowdeathcult
Mar 17 2016 05:33
oh, nevermind, I used the .center-block class to center the image :D
Enmanuel Hernandez
@eghr0106
Mar 17 2016 05:33
when i click run test it does nothing
i reset the test and the problem persist
justoy
@wordhardqi
Mar 17 2016 05:34
@meankraken so what should it be?
Enmanuel Hernandez
@eghr0106
Mar 17 2016 05:34
i got no idea
Jeff
@meankraken
Mar 17 2016 05:34
@wordhardqi You can use this <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
@eghr0106 copy your code, click to a past challenge you did, then go forward to the current one paste your code in, and try again
Enmanuel Hernandez
@eghr0106
Mar 17 2016 05:35
thakz let me try
justoy
@wordhardqi
Mar 17 2016 05:36
@meankraken Great thanks! it work. Stupid Me. I just copy the link from Jquery website.
CamperBot
@camperbot
Mar 17 2016 05:36
wordhardqi sends brownie points to @meankraken :sparkles: :thumbsup: :sparkles:
:star: 305 | @meankraken | http://www.freecodecamp.com/meankraken
Jeff
@meankraken
Mar 17 2016 05:37
@wordhardqi no problem
justoy
@wordhardqi
Mar 17 2016 05:37
@meankraken should I also use this link in codepen.io?
Jeff
@meankraken
Mar 17 2016 05:38
@wordhardqi you could, but codepen makes it very easy to integrate that stuff, you just have to click the settings icon and choose what libraries you wanna include
justoy
@wordhardqi
Mar 17 2016 05:39
@meankraken Thanks!!!
CamperBot
@camperbot
Mar 17 2016 05:39
wordhardqi sends brownie points to @meankraken :sparkles: :thumbsup: :sparkles:
:warning: wordhardqi already gave meankraken points
Enmanuel Hernandez
@eghr0106
Mar 17 2016 05:39
@wordhardqi thankz it worked, also there was an unclosed tag they asked me to provide close and i didnt see it.
Michael Mazzone
@GitMazzone
Mar 17 2016 06:06
If anyone's ever made a frosted glass blur in html/css... Please let me know! I really need help achieving this effect: http://cdn.slashgear.com/wp-content/uploads/2013/09/IMG_1711-iphone-5c.jpg
on my portfolio
Malin Sundin
@MaoMaolin
Mar 17 2016 06:11
i need some help
i want to text-align left. But the "box" is centered.
i tried to put p{text-align:left !important}
but it didnt work
the <p> text is in a list if its important
ah, yeah it was the list
siddheshtulaskar89
@siddheshtulaskar89
Mar 17 2016 06:21
1.png
any solution for this?
its not allowimg to submit then
Kinshuk Sen
@kinshuksen
Mar 17 2016 06:30
@siddheshtulaskar89 Looks like your network is blocking calls to boostrap - are you behind a firewall of some sort?
Malin Sundin
@MaoMaolin
Mar 17 2016 06:35
how do i fix that my webpage look good in chrome but bad in firefox?
Jason
@JasonDeving
Mar 17 2016 06:41
@MaoMaolin prefix
you also have to css reset
Malin Sundin
@MaoMaolin
Mar 17 2016 06:42
hmmm im not sure fully what it does @JasonDeving '
i want the box to float in the middle
with padding on all sides
Michael Mazzone
@GitMazzone
Mar 17 2016 06:51
Is there anyone on in any room that can help me with a frosted glass blur I've been trying to get for a week now? I've asked like 100 times and I'm ready to just move on...
Amiruddin Ayaz
@AmiruddinAyaz
Mar 17 2016 06:52
@GitMazzone Hope this will be of some help!
https://css-tricks.com/frosting-glass-css-filters/
Michael Mazzone
@GitMazzone
Mar 17 2016 06:52
@AmiruddinAyaz Tried it, didn't work for me
Amiruddin Ayaz
@AmiruddinAyaz
Mar 17 2016 06:52
@GitMazzone What's the issue you're facing?
Michael Mazzone
@GitMazzone
Mar 17 2016 06:53
Well, when I tried it, it blurred all of the content in front of my image as well, and when I resized the image to be where I need it, it simply squished and stretched the blurred version
Alin Cheie
@Cheie1990
Mar 17 2016 06:55
Hi guys,
Need a help here pls
Untitled.png
Jay Mok
@chemok78
Mar 17 2016 07:02
hi guys
im having trouble to understand
can you use a for loop to iterate over objects?
or have to use for in loop
Jason
@JasonDeving
Mar 17 2016 07:04
@chemok78 for in is for {"text", "blah"}
for you can do arrays or bracket notation
Jay Mok
@chemok78
Mar 17 2016 07:05
@mahdimp ok cool thanks
CamperBot
@camperbot
Mar 17 2016 07:05
chemok78 sends brownie points to @mahdimp :sparkles: :thumbsup: :sparkles:
:star: 91 | @mahdimp | http://www.freecodecamp.com/mahdimp
Jay Mok
@chemok78
Mar 17 2016 07:06
@JasonDeving @mahdimp but can you use for loop to loop through {"text", "blah"}?
i know it works, but then why does for in loop exist
Jason
@JasonDeving
Mar 17 2016 07:07
just use the for in
Jay Mok
@chemok78
Mar 17 2016 07:07
i can use for loop with object.length, so why would I use a for in loop
Coy Sanders
@coymeetsworld
Mar 17 2016 07:07
just a different way of iterating @chemok78, use the way that is more readable when choosing which implementation
Jay Mok
@chemok78
Mar 17 2016 07:08
@coymeetsworld ok i see
Jason
@JasonDeving
Mar 17 2016 07:10
@coymeetsworld thanks man. it's 12am here im like explain why? im like @.@
CamperBot
@camperbot
Mar 17 2016 07:10
jasondeving sends brownie points to @coymeetsworld :sparkles: :thumbsup: :sparkles:
:star: 360 | @coymeetsworld | http://www.freecodecamp.com/coymeetsworld
Coy Sanders
@coymeetsworld
Mar 17 2016 07:10
ya 12am here too lol, can't sleep
taking a break from some algorithms, i should just go to bed
Mahdi MP
@mahdimp
Mar 17 2016 07:11
@chemok78 you're doing it wrong , {"text", "blah"} is not a valid object notation
Jay Mok
@chemok78
Mar 17 2016 07:12
{"text": "blah"} right
Malin Sundin
@MaoMaolin
Mar 17 2016 07:13
gnnn im so stuck :(
Mahdi MP
@mahdimp
Mar 17 2016 07:13
a valid object is { propName: propValue}
Jay Mok
@chemok78
Mar 17 2016 07:13
@mahdimp yeah
@mahdimp trying to understand when to use for and when for in
;)
kinda get it now
Malin Sundin
@MaoMaolin
Mar 17 2016 07:14
if i want a box with all my info,pictures etc, and want it like a poster, so its like the first project, where can i see that html?
Mahdi MP
@mahdimp
Mar 17 2016 07:14
@chemok78 you do it . ;)
Jason
@JasonDeving
Mar 17 2016 07:21
typo my bad
{text: text}
Ian
@myseven
Mar 17 2016 07:23
I am lost need help

[0, 1, 2, 3, 4].reduce(function(previousValue, currentValue, currentIndex, array) {

var a = [0,1]
for (var i = 0; i < a.length; i++) {
  // typeof a[i]  is number
}

for (var i = 0; i < array.length; i++) {
  // typeof array[i] is object 
};

return previousValue + currentValue;

});

Why the type is not the same
Toshi
@onagus
Mar 17 2016 07:28
I dont see where array is defined
I see that a is defined
David Young
@dayvidwhy
Mar 17 2016 07:36
@Cheie1990 still going?
Fuad Mohamoud
@ProgrammingFuad
Mar 17 2016 07:46
Yea we dont know where the arrays are defined
Toshi
@onagus
Mar 17 2016 07:47
@myseven hello? are we still there?
btw... your missing a semicolon after your var a declaration and you have an unnecessary semicolon after your second loop
soung
@KianSoung
Mar 17 2016 07:54
Give elements with the p tag a font-size of 16px. Browser and Text zoom should be at 100%.
Souvik04
@Souvik04
Mar 17 2016 07:55
hello
stuck with an exercise in HTML 5 and CSS
Toshi
@onagus
Mar 17 2016 07:56
@Souvik04 hellon
hello
OFahchouch
@ofahchouch
Mar 17 2016 07:56

@Souvik04 May the Peace be with you.

How can we help you?

Souvik04
@Souvik04
Mar 17 2016 07:56
@onagus hello
here's the link- https://www.freecodecamp.com/challenges/nest-an-anchor-element-within-a-paragraph#?solution=%3Clink%20href%3D%22http%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Ca%20href%3D%22http%3A%2F%2Fwww.freecatphotoapp.com%22%3Ecat%20photos%3C%2Fa%3E%0A%0A%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%0A%0A%3Cp%20class%3D%22red-text%22%3EKitty%20ipsum%20dolor%20sit%20amet%2C%20shed%20everywhere%20shed%20everywhere%20stretching%20attack%20your%20ankles%20chase%20the%20red%20dot%2C%20hairball%20run%20catnip%20eat%20the%20grass%20sniff.%3C%2Fp%3E%0A%3Cp%20class%3D%22red-text%22%3EPurr%20jump%20eat%20the%20grass%20rip%20the%20couch%20scratched%20sunbathe%2C%20shed%20everywhere%20rip%20the%20couch%20sleep%20in%20the%20sink%20fluffy%20fur%20catnip%20scratched.%3C%2Fp%3E%0A%0A%3Ch2%3ECatPhotoApp%3C%2Fh2%3E%0A%3Cp%3EView%20more%20%3Ca%20%20href%3D%22http%3A%2F%2Fwww.freecatphotoapp.com%22%3Ecat%20photos%3C%2Fa%3E%3C%2Fp%3E
one of my test case does not succeed
OFahchouch
@ofahchouch
Mar 17 2016 07:57
What is the problem?
give you p
a
<p>View more </p>
Try that
Souvik04
@Souvik04
Mar 17 2016 07:57
i have to enclose <a> tag inside <p> tag
i did that and the output shows fine too.. but the test case won't run
Jeremy
@YoJer
Mar 17 2016 07:58
Anyone here have any info for setting up a remote git repo for a node app?
OFahchouch
@ofahchouch
Mar 17 2016 07:59
let me help you souvik
copy and paste this code
under your h2
<p>
View more
<a href="http://www.freecatphotoapp.com">cat photos</a>
</p>
this works
Alin Cheie
@Cheie1990
Mar 17 2016 08:02
Thanks @ofahchouch !!
CamperBot
@camperbot
Mar 17 2016 08:02
cheie1990 sends brownie points to @ofahchouch :sparkles: :thumbsup: :sparkles:
:star: 75 | @ofahchouch | http://www.freecodecamp.com/ofahchouch
OFahchouch
@ofahchouch
Mar 17 2016 08:02
You didnt have to make a new h2..
Just put the p under the existing h2
you made a new h2
that was the problem
good luck
have fun
peace.
Souvik04
@Souvik04
Mar 17 2016 08:06
thanks @ofahchouch !!
CamperBot
@camperbot
Mar 17 2016 08:06
souvik04 sends brownie points to @ofahchouch :sparkles: :thumbsup: :sparkles:
:star: 76 | @ofahchouch | http://www.freecodecamp.com/ofahchouch
Souvik04
@Souvik04
Mar 17 2016 08:06
it worked
OFahchouch
@ofahchouch
Mar 17 2016 08:07
Great to hear. If you need help, please ask your questions ;)!
Souvik04
@Souvik04
Mar 17 2016 08:07
sure thank you!
Kevin
@KevinBruland
Mar 17 2016 08:25
as I am doing these sections, should I be memorizing each aspect as I go, or is it OK to reference them later
I am concerned about my retention, and deciding whether or not to restart and do everything again now, or wait until later and recall stuff as I need it
Alister Najib Mada
@alistermada
Mar 17 2016 08:35
It's okay if you don't remember everything . Make sure you have at least a basic understanding of what's going on before you move on. You'll be doing a lot of googling for references in the future. That's a normal part of being a programmer.
Kevin
@KevinBruland
Mar 17 2016 08:36
that's what I figured, the jQuery section is a ton of new elements... I wish they had a section with a list of the terms you have used, up until what you have completed.
would be useful to reference only things I already know about
Niko Salonen
@nikosalonen
Mar 17 2016 08:39
basic understanding and documentation reading skills are the most important parts. i google stuff all day long for stuff i have to code at work every day :D
Chad Kreutzer
@ChadKreutzer
Mar 17 2016 08:39
So tell me if I have this right? Jquery functions are async. Thus, while you can pass a variable into one, it is difficult to get one out. So in writing my code, best practice would be to nest the functions so that my variable are ever going inward as I pass them from one to the next?
Kevin
@KevinBruland
Mar 17 2016 08:41
for sure @nikosalonen, and that's something I am looking forward to. I am just trying not to jump ahead of myself and stick with the basics for the time being.
Niko Salonen
@nikosalonen
Mar 17 2016 08:43
@ChadKreutzer you could also use promises to make sure the functions wait for each other before firing https://api.jquery.com/promise/
Josemaría Navarro-Rubio Coello de Portugal
@josemarianrcdp
Mar 17 2016 08:54
hello! can someone help me? Create a class called gray-background with the background-color of gray. Assign this class to your div element.
How can i assign a class to an element?
Jason
@JasonDeving
Mar 17 2016 08:57
.grey {
background: grey;
}
#C0C0C0
Josemaría Navarro-Rubio Coello de Portugal
@josemarianrcdp
Mar 17 2016 08:58
Got it!! Thnx!!
ottomahn
@ottomahn
Mar 17 2016 09:17
checkCashRegister(19.50, 20.00, [["PENNY", 1.01], ["NICKEL", 2.05], ["DIME", 3.10], ["QUARTER", 4.25], ["ONE", 90.00], ["FIVE", 55.00], ["TEN", 20.00], ["TWENTY", 60.00], ["ONE HUNDRED", 100.00]]) should return [["QUARTER", 0.50]]. not sure about the test case?
can anyone have a look?
David Young
@dayvidwhy
Mar 17 2016 09:17
@josemarianrcdp your given hints on the left. something about <div class=“class1”></div>
Steven Schulze
@codeturtle
Mar 17 2016 09:20
Hello
David Young
@dayvidwhy
Mar 17 2016 09:20
@codeturtle o/
Steven Schulze
@codeturtle
Mar 17 2016 09:20
Oi
ottomahn
@ottomahn
Mar 17 2016 09:20
please help guyz?
David Young
@dayvidwhy
Mar 17 2016 09:21
@ottomahn can you link to the challenge
ottomahn
@ottomahn
Mar 17 2016 09:21
@deedubwhy yeah sure
link Exact change
help exact change
CamperBot
@camperbot
Mar 17 2016 09:22

:point_right: algorithm exact change [wiki]

Problem Explanation:

  • You have to create a program that will handle when the register does not have
    enough cash or will have no cash after the transaction. Other than that it
    needs to return an array of the change in the form of an array, so that will
    be a 2D array.
:pencil: read more about algorithm exact change on the FCC Wiki
ottomahn
@ottomahn
Mar 17 2016 09:22
Exact change
David Young
@dayvidwhy
Mar 17 2016 09:22
ill go find it
ottomahn
@ottomahn
Mar 17 2016 09:22
@deedubwhy thanx
CamperBot
@camperbot
Mar 17 2016 09:22
ottomahn sends brownie points to @deedubwhy :sparkles: :thumbsup: :sparkles:
:star: 347 | @deedubwhy | http://www.freecodecamp.com/deedubwhy
David Young
@dayvidwhy
Mar 17 2016 09:25
oh right
are your other test cases working
ottomahn
@ottomahn
Mar 17 2016 09:25
yup they are:/
@deedubwhy
David Young
@dayvidwhy
Mar 17 2016 09:26
its the 4th one right
Steven Schulze
@codeturtle
Mar 17 2016 09:26
not a syntax error ?
David Young
@dayvidwhy
Mar 17 2016 09:26
thats realy hard to read
are you modding through the amounts of change? i dont know why your other ones would work
ottomahn
@ottomahn
Mar 17 2016 09:27
@deedubwhy the fourth one causing all the trouble
David Young
@dayvidwhy
Mar 17 2016 09:27
it gives out 2 quarters, can you think of why it might not do that
Steven Schulze
@codeturtle
Mar 17 2016 09:28
im at 29, how far does this go?
David Young
@dayvidwhy
Mar 17 2016 09:28
@codeturtle some people say it goes forever
if the next one works for you i have no idea why thats not working ottomahn
ottomahn
@ottomahn
Mar 17 2016 09:29
@deedubwhy well if you look at[["PENNY", 1.01], ["NICKEL", 2.05], ["DIME", 3.10], ["QUARTER", 4.25], ["ONE", 90.00], ["FIVE", 55.00], ["TEN", 20.00], ["TWENTY", 60.00], ["ONE HUNDRED", 100.00]])
David Young
@dayvidwhy
Mar 17 2016 09:29
yas?
you’ve got enough quarters so give the guy his change
Steven Schulze
@codeturtle
Mar 17 2016 09:30
mate i notice youre from the AU
ottomahn
@ottomahn
Mar 17 2016 09:30
@deedubwhy huh I get it now
David Young
@dayvidwhy
Mar 17 2016 09:30
d-(O_o)z
Steven Schulze
@codeturtle
Mar 17 2016 09:31
I think freecodecamp is great
David Young
@dayvidwhy
Mar 17 2016 09:31
maaaaaaate
its awsum
Steven Schulze
@codeturtle
Mar 17 2016 09:31
ah brew
David Young
@dayvidwhy
Mar 17 2016 09:31
not a kiwi brew
Steven Schulze
@codeturtle
Mar 17 2016 09:32
lol
Boris Levajac
@blevajac
Mar 17 2016 09:36
hi all
Steven Schulze
@codeturtle
Mar 17 2016 09:36
Hello
Boris Levajac
@blevajac
Mar 17 2016 09:37
doing the Show the Local Weather Challenge, and I'm looking for a keyless API for weather
does someone know one
David Young
@dayvidwhy
Mar 17 2016 09:38
how many pings are you looking at
apparently yahoo requires a key from 2 days ago
Andrew
@anjanjanj
Mar 17 2016 09:40
can anyone help with my React code? can't understand why the prop in the List component isn't passed through to its state in the constructor. http://codepen.io/anj/pen/XdppJZ?editors=0010
Boris Levajac
@blevajac
Mar 17 2016 09:40
sorry? I'm a noob on this one. Why do pings matter
David Young
@dayvidwhy
Mar 17 2016 09:41
@blevajac how many times you want to request will determine what you can get like I just found one that allows 1000 calls then charges 0.00001c per ping lol
i dunno if your going to find a keyless one, they like to limit traffic using keys
@blevajac some people linked some here FreeCodeCamp/FreeCodeCamp#3714
like https://www.metaweather.com/api/ but even read the first line
if you hit their server more than once a minute they’re going to get a bit annoyed
Boris Levajac
@blevajac
Mar 17 2016 09:43
Ok that is a lol. Does it count (is it making requests )as i test the code on codepen
David Young
@dayvidwhy
Mar 17 2016 09:43
yeah it would
your using other peoples hosting, eg web traffic/bandwidth
i mean try that metaweather one, let me know if you get blocked lol
if your just playing with it on codepen can’t you just signup for a yahoo account
Boris Levajac
@blevajac
Mar 17 2016 09:45
yea that makes sense, so what would be the best method to test the code
David Young
@dayvidwhy
Mar 17 2016 09:45
make a json request and see what comes back?
Boris Levajac
@blevajac
Mar 17 2016 09:46
well i can try, I'm a noob in this so ill try Yahoo and json. TY :)
@deedubwhy TY :)
kaustubh shrivastava
@kaustubh6
Mar 17 2016 09:57

Using jQuery, you can change the text between the start and end tags of an element. You can even change HTML markup.

jQuery has a function called .html() that lets you add HTML tags and text within an element. Any content previously within the element will be completely replaced with the content you provide using this function.

Here's how you would rewrite and italicize the text of our heading:

$("h3").html("<i>jQuery Playground</i>");

jQuery also has a similar function called .text() that only alters text without adding tags.

Change the button with id target4 by italicizing its text.

plz help me out with this above problem
what should be the code for changing the text to make the Italicize
David Young
@dayvidwhy
Mar 17 2016 09:58
@kaustubh6 some sort of tags with an i
@kaustubh6 the example is telling you what to do just fix the text and the jquery selector
kaustubh shrivastava
@kaustubh6
Mar 17 2016 10:06
na nothing has been coming up it simply writing the italicize text in the button
David Young
@dayvidwhy
Mar 17 2016 10:17
@kaustubh6 you need to write the text inside the <i> tags inside the html and make sure you select $(“#target4”)
Lorraine
@Lorraineg
Mar 17 2016 10:38
Can anybody help please i am stuck:
Your h1 element should have the class blue-text.
Both blue-text and pink-text should belong to the same h1 element.
cannelflow
@cannelflow
Mar 17 2016 10:39
@Lorraineg show your code
which exercise?
Lorraine
@Lorraineg
Mar 17 2016 10:43
Exercise 44
<style>
body {
background-color: black;
font-family: Monospace;
color: green;
}
.pink-text {
color: pink;
color: blue;
}
</style>
Ghost
@ghost~564bf69916b6c7089cbb1fef
Mar 17 2016 10:45
This message was deleted
This message was deleted
cannelflow
@cannelflow
Mar 17 2016 10:54
@Lorraineg worked ?
Lorraine
@Lorraineg
Mar 17 2016 10:55
No i have no idea how to do the "class" for h1 in html i am soon stuck
cannelflow
@cannelflow
Mar 17 2016 10:56
@Lorraineg exercise name ?
please do tag users while in conversation
Lorraine
@Lorraineg
Mar 17 2016 10:57
Override Styles in Subsequent CSS
@cannelflow so sorry this is my first time here
cannelflow
@cannelflow
Mar 17 2016 10:58
@Lorraineg np
@Lorraineg you need to add class pink-text blue-text in h1 tag
Lorraine
@Lorraineg
Mar 17 2016 10:59
@cannelflow thanks i will try that not sure that I am doing
CamperBot
@camperbot
Mar 17 2016 10:59
lorraineg sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:star: 938 | @cannelflow | http://www.freecodecamp.com/cannelflow
cannelflow
@cannelflow
Mar 17 2016 11:00
<style>
  body {
    background-color: black;
    font-family: Monospace;
    color: green;
  }
  .pink-text {
    color: pink;
  }
  .blue-text{
    color:blue;
  }
</style>
@Lorraineg
Lorraine
@Lorraineg
Mar 17 2016 11:01
@cannelflow THANKS i am good now had a total blond moment there
CamperBot
@camperbot
Mar 17 2016 11:01
lorraineg sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:warning: lorraineg already gave cannelflow points
cannelflow
@cannelflow
Mar 17 2016 11:02
@Lorraineg happens at beginning
Lorraine
@Lorraineg
Mar 17 2016 11:03
@cannelflow I noticed have times that i just stare at the screen totally confused
cannelflow
@cannelflow
Mar 17 2016 11:04
@Lorraineg happens when learning new things but keep trying
Lorraine
@Lorraineg
Mar 17 2016 11:05
@cannelflow My son got me into this and i must say i love it totally different from painting all day
cannelflow
@cannelflow
Mar 17 2016 11:06
@Lorraineg yes it is addictive
:+1:
Lorraine
@Lorraineg
Mar 17 2016 11:07
@cannelflow my goal is to learn Ruby but i felt i needed the basics first
cannelflow
@cannelflow
Mar 17 2016 11:08
@Lorraineg yes basic is required
Lorraine
@Lorraineg
Mar 17 2016 11:09
@cannelflow i find that this is mostly reputation and first read and try and find solutions on your own before asking. I have done that up to now
cannelflow
@cannelflow
Mar 17 2016 11:10
@Lorraineg yes it is like first try your self at least implement some logic and if it is not working ask for help
Lorraine
@Lorraineg
Mar 17 2016 11:11
@cannelflow I must admit reading through questions other members ask also help
cannelflow
@cannelflow
Mar 17 2016 11:12
@Lorraineg yes if you are in no mood of studying or coding come to chat room help other in process help yourself
Lorraine
@Lorraineg
Mar 17 2016 11:14
@cannelflow I have to create a mood to study seeing that my age is inappropriate and i do not qualify for jobs coding is the answer
cannelflow
@cannelflow
Mar 17 2016 11:16
@Lorraineg believe me irrespective of age making mood for studying is hard for everyone yes coding jobs are talent based
Lorraine
@Lorraineg
Mar 17 2016 11:16
@cannelflow i
cannelflow
@cannelflow
Mar 17 2016 11:17
@Lorraineg ?
Lorraine
@Lorraineg
Mar 17 2016 11:18
@cannelflow I think i am okay with the coding i pick up fast
cannelflow
@cannelflow
Mar 17 2016 11:18
@Lorraineg :+1: have to go by
Lorraine
@Lorraineg
Mar 17 2016 11:19
@cannelflow thank you for the help and chat have a beautiful day
CamperBot
@camperbot
Mar 17 2016 11:19
lorraineg sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:warning: lorraineg already gave cannelflow points
Ye
@kamiye
Mar 17 2016 11:22
Hello
David Young
@dayvidwhy
Mar 17 2016 11:34
yo
@Lorraineg totally go for ruby, amazing language
i especially love its loop syntax
Albin Karlsson
@AlbinKarlsson99
Mar 17 2016 11:35
Can someone tell me what i am doing wrong: $("#left-well").parent().css("background-color", "red")
Lorraine
@Lorraineg
Mar 17 2016 11:35
@AlbinKarlsson99
David Young
@dayvidwhy
Mar 17 2016 11:35
@AlbinKarlsson99 looks like left-well’s parent is going to get red
Albin Karlsson
@AlbinKarlsson99
Mar 17 2016 11:35
My mission is that the #leftwell should have a red background
David Young
@dayvidwhy
Mar 17 2016 11:36
so dont do the .parent() part
Lorraine
@Lorraineg
Mar 17 2016 11:36
@AlbinKarlsson99 Yeah my son got me into this i have a list from him of a few i should do - i believe there is a shortage of developers
David Young
@dayvidwhy
Mar 17 2016 11:36
@Lorraineg shortage of good developers sure
Albin Karlsson
@AlbinKarlsson99
Mar 17 2016 11:37
It says i shall do that to move to the next part, it says i shall use the .parent() element
Your left-well element should have a red background.
You should use the .parent() function to modify this element.
The .parent() method should be called on the #target1 element.
Only use jQuery to add these classes to the element.
David Young
@dayvidwhy
Mar 17 2016 11:37
so call it on #target1
Albin Karlsson
@AlbinKarlsson99
Mar 17 2016 11:37
How?
David Young
@dayvidwhy
Mar 17 2016 11:37
$("#left-well").parent() your calling it on left-well here
Albin Karlsson
@AlbinKarlsson99
Mar 17 2016 11:38
Oh
David Young
@dayvidwhy
Mar 17 2016 11:38
d-(O_o)z
Albin Karlsson
@AlbinKarlsson99
Mar 17 2016 11:38
Thanks! :D
David Young
@dayvidwhy
Mar 17 2016 11:38
remember the document object model
div’s have children (divs they contain)
and vice versa
Albin Karlsson
@AlbinKarlsson99
Mar 17 2016 11:39
Ohh, alright, thanks! Send this man some brownie points :D
Josemaría Navarro-Rubio Coello de Portugal
@josemarianrcdp
Mar 17 2016 11:43
hello! how do i get the form element so you should have the background-color of green.?
Try giving your form, which now has the id attribute of cat-photo-form, a green background.
Josemaría Navarro-Rubio Coello de Portugal
@josemarianrcdp
Mar 17 2016 11:48
Got it!
David Young
@dayvidwhy
Mar 17 2016 11:55
good job!
Kyle
@bushmonster8
Mar 17 2016 12:04
I'm having trouble nesting a form element
AliciadW
@AliciadW
Mar 17 2016 12:09
help pig latin
CamperBot
@camperbot
Mar 17 2016 12:09

:point_right: algorithm pig latin [wiki]

Problem Explanation:

  • You need to create a program that will translate from English to Pig Latin. Check the instructions for converting to Pig Latin from the initial description or the wiki page. It might not be obvious but you need to remove all the consonants up to the first vowel in the case there letter does not start with a vowel.
:pencil: read more about algorithm pig latin on the FCC Wiki
Dominik
@dvlasic-dev
Mar 17 2016 12:18
Hey everyone
David Young
@dayvidwhy
Mar 17 2016 12:18
@neph2 hey there
Dominik
@dvlasic-dev
Mar 17 2016 12:19
so I have transparent fixed-top navigation bar, does anyone know how can I put background-color after you scroll for example 200px down?
jonathantsilva
@jonathantsilva
Mar 17 2016 12:21
@AliciadW this is a good challenge
David Young
@dayvidwhy
Mar 17 2016 12:21
yeah you can use jQuery its $(window).scrollTop()
you can use straight javascript by reading window.pageYOffset
the window object can tell you where you are on the page
Dominik
@dvlasic-dev
Mar 17 2016 12:22
I see, so I can add class when it reaches certain point :) thanks
David Young
@dayvidwhy
Mar 17 2016 12:22
yeah just write sum code yo
you can do pretty cool stuff reading how far you’ve scrolled
Dominik
@dvlasic-dev
Mar 17 2016 12:23
yeah, I saw so many great websites that change/animate when scrolling
David Young
@dayvidwhy
Mar 17 2016 12:23
like make it fire every 1 pix and change the colour and you can make a scrolly rainbow
pretty much
thats how bootstrap does its stupid scrolling crap too
if you scroll a bit it takes over and pushes you down
Gabriel Dumont
@gabrielduumont
Mar 17 2016 12:26
hi guys, good morning to all
I need some help thou
goldorakxyz
@goldorakxyz
Mar 17 2016 12:26
hello, got a quick question too :)
David Young
@dayvidwhy
Mar 17 2016 12:27
whats up @goldorakxyz @gabrielduumont
goldorakxyz
@goldorakxyz
Mar 17 2016 12:27
In javascript, if I create a function within a forloop, will my var i still exist in the function and will it be accessible?
Anurag Lahon
@anuraglahon16
Mar 17 2016 12:27
Set the value of your placeholder attribute to "cat photo URL".
The finished input element should have valid syntax......this two lines are not working in my challenge
Gabriel Dumont
@gabrielduumont
Mar 17 2016 12:28

I am taking the lesson Seek and Destroy at the Basic Algorithm Scripting course under the Front End Certification.
In this lesson FreeCodeCamp asks: "

Seek and Destroy

You will be provided with an initial array (the first argument in the destroyer function), followed by one or more arguments. Remove all elements from the initial array that are of the same value as these arguments."

this function is provided

function destroyer(arr) {
// Remove all the values
return arr;
}

destroyer([1, 2, 3, 1, 2, 3],2, 3);

but just by running it, it doesnt consider the 2 and 3 after the array
David Young
@dayvidwhy
Mar 17 2016 12:29
@goldorakxyz nah it gets thrown away, you probably want to define it outside if you want it to hang around, why are you doing it?
Anurag Lahon
@anuraglahon16
Mar 17 2016 12:29
<input type="text" placeholder="https://bit.ly/fcc-relaxing-cat">
goldorakxyz
@goldorakxyz
Mar 17 2016 12:29
ok, i tought it was a stretch and im probably not thinking the good way
David Young
@dayvidwhy
Mar 17 2016 12:29
@goldorakxyz i’ve done something like it before using .bind in a loop to attach events to a number of buttons, that seemed smart to me
Gabriel Dumont
@gabrielduumont
Mar 17 2016 12:29
what i get from destroyer([1, 2, 3, 1, 2, 3],2, 3); (without changing any line) is just [1, 2, 3, 1, 2, 3]
goldorakxyz
@goldorakxyz
Mar 17 2016 12:29
thanks a lot
Anurag Lahon
@anuraglahon16
Mar 17 2016 12:29
is this correct
David Young
@dayvidwhy
Mar 17 2016 12:30
@anuraglahon16 you want to set the url as part of the href=“ “ tag, there is no “placerholder” value
goldorakxyz
@goldorakxyz
Mar 17 2016 12:30
@gabrielduumont : it think that is because those are only extra arguments
David Young
@dayvidwhy
Mar 17 2016 12:30
@gabrielduumont its asking you to remove 2 and 3 from the array isnt it
Gabriel Dumont
@gabrielduumont
Mar 17 2016 12:30
@goldorakxyz so how do i get them inside my function?
yes
goldorakxyz
@goldorakxyz
Mar 17 2016 12:30
try a return with arguments2
pboest
@pablobordons
Mar 17 2016 12:30
‘''
David Young
@dayvidwhy
Mar 17 2016 12:30
@gabrielduumont its showing you how to read arguments
Anurag Lahon
@anuraglahon16
Mar 17 2016 12:30
Set the value of your placeholder attribute to "cat photo URL".
The finished input element should have valid syntax. @deedubwhy
goldorakxyz
@goldorakxyz
Mar 17 2016 12:30
they are inside it
David Young
@dayvidwhy
Mar 17 2016 12:31
@anuraglahon16 oh, it puts default text in the box. so put that there instead of the link
Gabriel Dumont
@gabrielduumont
Mar 17 2016 12:31
ok got it with arguments thing... thanks a lot guys!
goldorakxyz
@goldorakxyz
Mar 17 2016 12:31
@gabrielduumont check the argument page, it should help you, i'm doing the same challenge and it helped me.
(this is how i did that challange)
Gabriel Dumont
@gabrielduumont
Mar 17 2016 12:32
@goldorakxyz thanks a lot bro! no problem anymore
CamperBot
@camperbot
Mar 17 2016 12:32
gabrielduumont sends brownie points to @goldorakxyz :sparkles: :thumbsup: :sparkles:
:star: 264 | @goldorakxyz | http://www.freecodecamp.com/goldorakxyz
Anurag Lahon
@anuraglahon16
Mar 17 2016 12:32
i didnt get u @deedubwhy
Gabriel Dumont
@gabrielduumont
Mar 17 2016 12:32
@deedubwhy thanks man! im gonna take a look
CamperBot
@camperbot
Mar 17 2016 12:32
gabrielduumont sends brownie points to @deedubwhy :sparkles: :thumbsup: :sparkles:
:star: 348 | @deedubwhy | http://www.freecodecamp.com/deedubwhy
pboest
@pablobordons
Mar 17 2016 12:33
Can anybody proficient in JavaScript help me?
I don’t know why I get “I’m yellow” and not “I’m green” in the following code:
https://repl.it/BxKi
David Young
@dayvidwhy
Mar 17 2016 12:33
@anuraglahon16 placeholder=“cat photo url perhaps”
Anurag Lahon
@anuraglahon16
Mar 17 2016 12:34
i did dat its not working @deedubwhy ed
David Young
@dayvidwhy
Mar 17 2016 12:34
@anuraglahon16 i didn’t give you the exact answer, change it to work
Anurag Lahon
@anuraglahon16
Mar 17 2016 12:35
yeah i know the link i hv to insert
David Young
@dayvidwhy
Mar 17 2016 12:36
@anuraglahon16 have a look at what you ended up with and what the instructions are asking for, you only need to change a word or two
Richard Brummer
@rjbrummer
Mar 17 2016 12:36
@pboest what code the link shows a blank canvas
David Young
@dayvidwhy
Mar 17 2016 12:36
@gabrielduumont if thats confusing ask
Dankenle
@Dankenle
Mar 17 2016 12:37
need help :D
pboest
@pablobordons
Mar 17 2016 12:37
var obj = {};

var arr = ["green","blue","yellow"];

for (var c in arr){


    obj[arr[c]] = function(){
        console.log("I'm "+arr[c]);
    }


}

obj.green();
Dankenle
@Dankenle
Mar 17 2016 12:37
Error: Your stylesheet should declare a red-text class and have its color set to red.
my cod
Anurag Lahon
@anuraglahon16
Mar 17 2016 12:37
Set the placeholder value of your text input to "cat photo URL". @deedubwhy
Dankenle
@Dankenle
Mar 17 2016 12:37

<style>
h2 {
color: red;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

David Young
@dayvidwhy
Mar 17 2016 12:37
@pboest oh you removed the other line
pboest
@pablobordons
Mar 17 2016 12:37
yeah, the other line was not important, sorry about that
David Young
@dayvidwhy
Mar 17 2016 12:38
just change c to 2 and see if its mapping properly
Richard Brummer
@rjbrummer
Mar 17 2016 12:38
@pboest you're pointing to array variable c I imagine the third one try a.... I.e. Green the first one! I have t dabbled in JavaScript too much yet but that makes the most sense transliterated from php
pboest
@pablobordons
Mar 17 2016 12:39
so basically the last function is assigned to every key in th eobject?
Markus Kiili
@Masd925
Mar 17 2016 12:40
@pboest for...in loop is not for iterating over array or string indices.
Fsalker
@Fsalker
Mar 17 2016 12:40
hey hey, i've got a small problem with bootstrap
David Young
@dayvidwhy
Mar 17 2016 12:41
@Masd925 it iterates as the index it should work
David Young
@dayvidwhy
Mar 17 2016 12:41
try logging c as it goes
Fsalker
@Fsalker
Mar 17 2016 12:41
the three labels (<Col> 's) are in the same <Row>
pboest
@pablobordons
Mar 17 2016 12:41
thank you guys
Fsalker
@Fsalker
Mar 17 2016 12:41
however, i expect all of them to resize at once. instead, only the third one's resized
pboest
@pablobordons
Mar 17 2016 12:42
I guess I should actually not create functions within a loop...
Fsalker
@Fsalker
Mar 17 2016 12:42
does anybody know how to 'fix' that?
David Young
@dayvidwhy
Mar 17 2016 12:42
@pboest thats so strange
Markus Kiili
@Masd925
Mar 17 2016 12:42
@deedubwhy It is bad practice, because it is slower than for loop, because it looks over the prototype chain for properties, it doesn't preserve the index order and might cause bugs in real projects, if any library adds properties to arrays.
pboest
@pablobordons
Mar 17 2016 12:42
@Masd925 thank you!
CamperBot
@camperbot
Mar 17 2016 12:42
pboest sends brownie points to @masd925 :sparkles: :thumbsup: :sparkles:
:star: 1171 | @masd925 | http://www.freecodecamp.com/masd925
Fsalker
@Fsalker
Mar 17 2016 12:44
does anybody here actually use ReactJS & Bootstrap?
pboest
@pablobordons
Mar 17 2016 12:45
I use bootstrap
Fsalker
@Fsalker
Mar 17 2016 12:45
well?
the text's too large to fit in the label, so it forces an enlargement
but the other labels are not responsive
Anurag Lahon
@anuraglahon16
Mar 17 2016 12:48
Nest your text input element within a form element.
pboest
@pablobordons
Mar 17 2016 12:48
I don’t really understand what you mean. I think to make text responsive you cannot just put it in a responsive div if that’s what you’re saying
jonathantsilva
@jonathantsilva
Mar 17 2016 12:52
@anuraglahon16 Nest is put your element <input type="text"> between the form tags <form> <input> </form>
and look like that
<form>
    <input type="text"/>
</form>

<div class="row">
    <h2>Second Heading</h2>
</div>
Anurag Lahon
@anuraglahon16
Mar 17 2016 12:56
@jonathantsilva thnx bdw what it actually does
CamperBot
@camperbot
Mar 17 2016 12:56
anuraglahon16 sends brownie points to @jonathantsilva :sparkles: :thumbsup: :sparkles:
:star: 96 | @jonathantsilva | http://www.freecodecamp.com/jonathantsilva
Anurag Lahon
@anuraglahon16
Mar 17 2016 12:57
it submits
goldorakxyz
@goldorakxyz
Mar 17 2016 13:02
@deedubwhy Hey, concerning the existence of the i outside the forloop...thanks a lot, I was not able to think about it in another way so I used your tip and just created and followed a public var, thanks again!
CamperBot
@camperbot
Mar 17 2016 13:02
goldorakxyz sends brownie points to @deedubwhy :sparkles: :thumbsup: :sparkles:
:star: 349 | @deedubwhy | http://www.freecodecamp.com/deedubwhy
codercooooder
@codercooooder
Mar 17 2016 13:19
any javascript masters in the house??!! can i get a wut wut?
Nikov
@nsieber
Mar 17 2016 13:24
Hey does anyone know how to get react running in codepen? adding react and the babel preprocessor doing nothing
Dominik
@dvlasic-dev
Mar 17 2016 13:24
i need some help xD
so my nav bar has: Home, about etc... when i go to lets say Home, it doesnt stay on top of it, but it covers it a little bit
Maulik Darji
@maulikdarji
Mar 17 2016 13:26
@neph2 You have a fixed navbar on top?
jonathantsilva
@jonathantsilva
Mar 17 2016 13:26
@neph2 show your code
Dominik
@dvlasic-dev
Mar 17 2016 13:26
yes i have fixed navbar that is transparent
and then when it gets under 850px it becomes colored
jonathantsilva
@jonathantsilva
Mar 17 2016 13:27
try put a padding-top on body
Maulik Darji
@maulikdarji
Mar 17 2016 13:27
@neph2 So the other sections(Home,About..) will be under the navbar.
Add top padding equals to the height of your navbar to the sections
Dominik
@dvlasic-dev
Mar 17 2016 13:29
so i should add toppadding to the section
I got also one more problem.. so the backgrund of navbar becomes colored when it goes under 850px
but when i resfresh page, so page is just loaded, it still has colored background, and you move it a little bit, color dissapears
Maulik Darji
@maulikdarji
Mar 17 2016 13:32
@neph2 I dont know about that. May be you can try jQuery document.ready() method to load style
Dominik
@dvlasic-dev
Mar 17 2016 13:34
Well my navbar is transparent, and I use this $(document).scroll(function(){ $('.navi-scroll').toggle($(this).scrollTop() > 850); }); to add navi-scroll class with colored background to navigation
$(document).scroll(function(){
      $('.navi-scroll').toggle($(this).scrollTop() > 850);
    });
jonathantsilva
@jonathantsilva
Mar 17 2016 13:36
@neph2 this code execute toggle on every scroll event, this is not good;
Dominik
@dvlasic-dev
Mar 17 2016 13:37
yes but it toggles it only after 850px
the problem is, I added one more navigation bar so it can have class .navi-scroll since I don't know how to activate class only when you scroll over 850px down...
Nagesh Wankhade
@nageshwankhade1
Mar 17 2016 13:39
Each of your two radio button elements should be nested in its own label element.
i m stuck here.
jonathantsilva
@jonathantsilva
Mar 17 2016 13:42
@neph2
$(document).scroll(function(){
    if ( $(this).scrollTop() > 850) {
         $('.navi-scroll').toggle();
    }
});
Dominik
@dvlasic-dev
Mar 17 2016 13:43
ohh I see, so this is condition only when it reaches 850 pc
px*
but that removes whole section when you get to another section
jonathantsilva
@jonathantsilva
Mar 17 2016 13:46
your code is on codepen?
Is your code on codepen?
Dominik
@dvlasic-dev
Mar 17 2016 13:47
it is not yet
i should add addClass somewhere in jQuery
blwbcm1203
@blwbcm1203
Mar 17 2016 13:51
How do I give my h1 element the id of orange-text

<style>
body {
background-color: black;
font-family: Monospace;
color: green;
}
.pink-text {
color: pink;
}
.blue-text {
color: blue;
}

orange-text {

color: orange;

}

</style>

<h1 class="pink-text blue-text">Hello World!</h1>

David Young
@dayvidwhy
Mar 17 2016 13:51
@blwbcm1203 well it has pink-text and blue-text so far, you might want to add orange-text
Dominik
@dvlasic-dev
Mar 17 2016 13:52

orange-text{

}
you need to write id of orange-text inside h1 element
blwbcm1203
@blwbcm1203
Mar 17 2016 13:53
how do I write the ID
Dominik
@dvlasic-dev
Mar 17 2016 13:54
id="orange-text"
so <h1 id="orange-text >
</h1>
blwbcm1203
@blwbcm1203
Mar 17 2016 13:59
@neph2 got it, THANK YOU!
CamperBot
@camperbot
Mar 17 2016 13:59
blwbcm1203 sends brownie points to @neph2 :sparkles: :thumbsup: :sparkles:
:star: 133 | @neph2 | http://www.freecodecamp.com/neph2
Dominik
@dvlasic-dev
Mar 17 2016 13:59
No problem
Saikat-Sinha
@Saikat-Sinha
Mar 17 2016 13:59
hello Can anyone pls help me with my JS code

var myGlobal=10;// Declare your variable here

function fun1(oopsGlobal,five) {

oopsGlobal = 5;// Assign 5 to oopsGlobal Here

}

// Only change code above this line
function fun2() {
var output = "";
if (typeof myGlobal != "undefined") {
output += "myGlobal: " + myGlobal;
}
if (typeof oopsGlobal != "undefined") {
output += " oopsGlobal: " + oopsGlobal;
}
console.log(output);
}

pls tell me where is the error in this code
Dominik
@dvlasic-dev
Mar 17 2016 14:04
aaa yeah! finally got it :333

```
$(function() {
//caches a jQuery object containing the header element
var header = $(".navi");
$(window).scroll(function() {
var scroll = $(window).scrollTop();

    if (scroll >= 800) {
        header.removeClass('').addClass('navi-scroll');
    } else {
        header.removeClass('navi-scroll').addClass('navi');
    }
});

});

oops
$(function() {
    //caches a jQuery object containing the header element
    var header = $(".navi");
    $(window).scroll(function() {
        var scroll = $(window).scrollTop();

        if (scroll >= 800) {
            header.removeClass('').addClass('navi-scroll');
        } else {
            header.removeClass('navi-scroll').addClass('navi');
        }
    });
});
this did it
LambertW
@LambertW
Mar 17 2016 14:07
@AskSaikatSinha on the left-buttom screen, you can see some useful tips.
David Young
@dayvidwhy
Mar 17 2016 14:08
@neph2 neat
Saikat-Sinha
@Saikat-Sinha
Mar 17 2016 14:08
@LambertW all test cases are passed except "oopsGlobal should have a value of 5"
LambertW
@LambertW
Mar 17 2016 14:09
@AskSaikatSinha try this, oopsGlobal = 5;
Saikat-Sinha
@Saikat-Sinha
Mar 17 2016 14:09

code var myGlobal=10;// Declare your variable here

function fun1(oopsGlobal,five) {

oopsGlobal = 5;// Assign 5 to oopsGlobal Here

}

// Only change code above this line
function fun2() {
var output = "";
if (typeof myGlobal != "undefined") {
output += "myGlobal: " + myGlobal;
}
if (typeof oopsGlobal != "undefined") {
output += " oopsGlobal: " + oopsGlobal;
}
console.log(output);
}

@LambertW already tried
LambertW
@LambertW
Mar 17 2016 14:11
oopsGlobal = five; @AskSaikatSinha
Saikat-Sinha
@Saikat-Sinha
Mar 17 2016 14:11
no not worked
Nik Amir
@nikamer
Mar 17 2016 14:13
@AskSaikatSinha what about this var myGlobal=10;// Declare your variable here
function fun1() {
oopsGlobal = 5;
}
LambertW
@LambertW
Mar 17 2016 14:14
@AskSaikatSinha
// Declare your variable here
var myGlobal = 10;

function fun1() {
  // Assign 5 to oopsGlobal Here
  oopsGlobal = 5;
}

// Only change code above this line
function fun2() {
  var output = "";
  if (typeof myGlobal != "undefined") {
    output += "myGlobal: " + myGlobal;
  }
  if (typeof oopsGlobal != "undefined") {
    output += " oopsGlobal: " + oopsGlobal;
  }
  console.log(output);
}
Saikat-Sinha
@Saikat-Sinha
Mar 17 2016 14:15
@nikamer A test case "Do not declare oopsGlobal using the var keyword" doesn't comply
@LambertW Thanks
CamperBot
@camperbot
Mar 17 2016 14:15
asksaikatsinha sends brownie points to @lambertw :sparkles: :thumbsup: :sparkles:
:star: 8 | @lambertw | http://www.freecodecamp.com/lambertw
Saikat-Sinha
@Saikat-Sinha
Mar 17 2016 14:15
I worked
David Young
@dayvidwhy
Mar 17 2016 14:23
pboest
@pablobordons
Mar 17 2016 14:23
@deedubwhy thank you very much!!
CamperBot
@camperbot
Mar 17 2016 14:23
pboest sends brownie points to @deedubwhy :sparkles: :thumbsup: :sparkles:
:star: 350 | @deedubwhy | http://www.freecodecamp.com/deedubwhy
pboest
@pablobordons
Mar 17 2016 14:23
I actually figured it out how to do it
David Young
@dayvidwhy
Mar 17 2016 14:23
orealy
apparently unexpected sometimes
if you’re interested :)
I had to define the function outside the loop basically
David Young
@dayvidwhy
Mar 17 2016 14:25
your returning a function to the callback
lol
so i was doing something like this before
theres a challenge in freecodecamp that showed me that a while ago
passing arguments down to filter on strings
pboest
@pablobordons
Mar 17 2016 14:25
oh yeah?
David Young
@dayvidwhy
Mar 17 2016 14:25
the seek and destroy one
pboest
@pablobordons
Mar 17 2016 14:25
which one? the advanced ones?
David Young
@dayvidwhy
Mar 17 2016 14:25
ill go find my solution
pboest
@pablobordons
Mar 17 2016 14:25
ahh i did that, but i don’t remember at all hahaha
I encountered this problem with the simon project
David Young
@dayvidwhy
Mar 17 2016 14:26
oh
but ive done binds in loops before
Gahatrack
@Gahatrack
Mar 17 2016 14:27
I don't get why the add a class to div element challenge isn't being solved when the background turns grey.

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
.red-text {
color: red;
}

.grey-background {
background-color: grey;
}
h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back" src="https://bit.ly/fcc-relaxing-cat"></a>

<div class="grey-background">
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
</div>

<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality" checked> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Energetic</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>

Oopps
David Young
@dayvidwhy
Mar 17 2016 14:27
  //makes each state clickable using the bind jQuery call
  //bind allows us to pass arguments to the event handler
  function makeClickable() {
    for (var j = 0; j < stateNames.length; j++){
      $("#main-drag-"+stateNames[j]).bind(
        'click',      //type of event
        { index : j}, //args to pass down
        stateClick    //function to be bound
      );
    }
  }
@pboest
that worked fine
so many comments
i must have been confused af
Manish Giri
@Manish-Giri
Mar 17 2016 14:29
@Gahatrack maybe they're looking for gray instead of grey
David Young
@dayvidwhy
Mar 17 2016 14:29
@Gahatrack are you sure its all grey
Gahatrack
@Gahatrack
Mar 17 2016 14:30
@Manish-Giri You're correct
Thank you!
Stupid colors
pboest
@pablobordons
Mar 17 2016 14:32
@deedubwhy thank you!
CamperBot
@camperbot
Mar 17 2016 14:32
pboest sends brownie points to @deedubwhy :sparkles: :thumbsup: :sparkles:
:warning: pboest already gave deedubwhy points
Alejandro Duran
@Aledurax
Mar 17 2016 14:32
Hi! I have a quick moral question, I'm doing Basic Algorithm Scripting part and in one waypoint "Confirm the ending" the answer can be giving by using a simple String function that I've found from checking the MDN String page so many times. Would this be cheating and I should be doing everything from scratch recreating this function or I'ts okey what i just did?
David Young
@dayvidwhy
Mar 17 2016 14:33
@Aledurax you should try and be a bit more generic
if you ask a more specific question you might get some help
Alejandro Duran
@Aledurax
Mar 17 2016 14:35
I have to Check if a string ends with the given another string, FCC says to write my own code, I found the function String.prototype.endsWith() that does ALL the work so i just changed a line, it's not a function taught by FCC but it appears on the String page. Is it cheating?
David Young
@dayvidwhy
Mar 17 2016 14:36
well no, thats why theres built in functions
in terms of the exercise though it is a bit
have you looked at the indexOf() function?
Alejandro Duran
@Aledurax
Mar 17 2016 14:37
Thanks, I'll try to do it by scratch
thanks @deedubwhy
CamperBot
@camperbot
Mar 17 2016 14:37
aledurax sends brownie points to @deedubwhy :sparkles: :thumbsup: :sparkles:
:star: 351 | @deedubwhy | http://www.freecodecamp.com/deedubwhy
Markus Kiili
@Masd925
Mar 17 2016 14:40
@Aledurax It is ES6 method with poor browser support, so you are cheating.
Perry
@perryodical
Mar 17 2016 14:53
Having an issue getting my collapsed menu to expand. Anyone have an idea where the issue lies? http://codepen.io/perrylivingston/pen/KzadPW
Manish Giri
@Manish-Giri
Mar 17 2016 14:53
@perryodical you need to add bootstrap's js through codepen settings
Perry
@perryodical
Mar 17 2016 14:54
through quick-add?
Manish Giri
@Manish-Giri
Mar 17 2016 14:54
@perryodical click on the small settings icon beside the JS window, then "quickadd" then select "bootstrap", then "save and close".
Perry
@perryodical
Mar 17 2016 14:54
just did it but no luck
rayner-villalba-coderoad-com
@rayner-villalba-coderoad-com
Mar 17 2016 14:54
@perryodical I noticed this at the end of your html file
<body>
<h1 class="text-center"> <strong>Perry's Portfolio</strong></h1>
<h3 class="text-center"><strong>A Small Sampling of Projects</strong></h3>
</body
you have to close body tag
and @Manish-Giri told you you have to add bootstrap to your project
Manish Giri
@Manish-Giri
Mar 17 2016 14:56

@perryodical one - plz tag people when you're responding to them, and two

<nav class="navbar-collapse navbar-inverse navbar-collapse-1" role="navigation">
            <div class="container">
         <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse-1">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
    </div>
     <div class="collapse navbar-collapse" id="navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li><a href="index.php">Home</a></li>
                    <li><a href="about.php">About</a></li>
          <li><a href="#portfolio">Portfolio</a></li>
                    <li><a href="contact.php">Contact</a></li>
                </ul>
            </div>
        </nav>
  </div>

<body>
  <h1 class="text-center"> <strong>Perry's Portfolio</strong></h1>
  <h3 class="text-center"><strong>A Small Sampling of Projects</strong></h3>
  </body

why do you have one html content inside body and one without?

Perry
@perryodical
Mar 17 2016 14:58
@Manish-Giri i thought the body had to be seperated from the nav
Manish Giri
@Manish-Giri
Mar 17 2016 14:59
@perryodical um, no. Whatever you want on your webpage should all be inside body. Also, in codepen, you don't need to specify body. It's already done behind the scenes.
Perry
@perryodical
Mar 17 2016 15:00
@Manish-Giri that makes a lot of sense thank you :-)
CamperBot
@camperbot
Mar 17 2016 15:00
perryodical sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star: 774 | @manish-giri | http://www.freecodecamp.com/manish-giri
Manish Giri
@Manish-Giri
Mar 17 2016 15:00
@perryodical cool, welcome.
Perry
@perryodical
Mar 17 2016 15:03
@Manish-Giri other than adding bootstrap to the project is there js code I need as well to get this to work or can this all be done in html & css?
Manish Giri
@Manish-Giri
Mar 17 2016 15:05
@perryodical you need jquery too, because bootstrap's js relies on jquery, other than that, it should be fine
Perry
@perryodical
Mar 17 2016 15:06
@Manish-Giri awesome. thank you, time to continue tinkering ^_^
CamperBot
@camperbot
Mar 17 2016 15:06
perryodical sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:warning: perryodical already gave manish-giri points
Manish Giri
@Manish-Giri
Mar 17 2016 15:08
@perryodical all the best
can anyone give me a clue as to why i can't pull in the JSON data there?
i'm just basically modifying the code from one of the lessons so that i can build/learn from there myself
but i'm wondering if there's a problem with it being on Dropbox... my images are there and hotlinking works for my account, so i'm a bit stumped
from what i understand, clicking the button should just dump my JSON data in to the window i've made, but nada
gnicole44
@gnicole44
Mar 17 2016 15:13
to turn an a element into a dead link, where or what to I replace with the #?
do*
Manish Giri
@Manish-Giri
Mar 17 2016 15:13
@gnicole44 <a href="#">
gnicole44
@gnicole44
Mar 17 2016 15:16
oh thank you @Manish-Giri !! am I required to delete what I had in the "" before? or do I just type the # in front of my existing text/url?
CamperBot
@camperbot
Mar 17 2016 15:16
gnicole44 sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star: 775 | @manish-giri | http://www.freecodecamp.com/manish-giri
gnicole44
@gnicole44
Mar 17 2016 15:19
got it, thanks again!
can't wait until i'm at a level where i can help others too haha
DarthKeizer
@DarthKeizer
Mar 17 2016 15:28
How are all you guys going :)
Manish Giri
@Manish-Giri
Mar 17 2016 15:28
@gnicole44 hey! sorry- read your message late. Yes, you replace the things in "" with #. But like you said, it worked! So, keep at it!
Le Twitch
@notalkingplz
Mar 17 2016 15:31
Thanks in advance. Can someone explain to me why srcset isn't working? http://codepen.io/letwitch/pen/xVgXXX
Erik
@Nerik54
Mar 17 2016 15:32

</ol>

<input type="text" placeholder="cat photo URL">

<form action="/submit-cat-photo"></form>

guyz
there is a fix suggested there but it doesn't work for me.
TYG1
@TYG1
Mar 17 2016 15:37
How do I add the id to my h2 element? ..... this is what I am typing in... <h2 id="cat-photo-form" class="red-text">CatPhoto...>
Manish Giri
@Manish-Giri
Mar 17 2016 15:37
@Nerik54 do you have a question
rayner-villalba-coderoad-com
@rayner-villalba-coderoad-com
Mar 17 2016 15:38
@notalkingplz <img src="http://dummyimage.com/500x500/c91e3d/ffffff.png" srcset="http://dummyimage.com/500x500/c91e3d/ffffff.png 1x, http://dummyimage.com/500x500/c91e3d/ffffff.png 2x ">
Le Twitch
@notalkingplz
Mar 17 2016 15:38
@TYG1 Adding the attribute id="" with the id name is how you do it
TYG1
@TYG1
Mar 17 2016 15:38
can you look at what I am pasting in... <h2 id="cat-photo-form" class="red-text">CatPhot...
this is what I am typing @notalkingplz
Le Twitch
@notalkingplz
Mar 17 2016 15:40
@TYG1 that should be fine
@rayner-villalba-coderoad-com Yeah... that's not exactly working :S Is it working for you?
Bouchari abdennacer
@abdennacer
Mar 17 2016 15:44
i click run tests but it's not working ?
what should i do, can someone help ?
Manish Giri
@Manish-Giri
Mar 17 2016 15:49
@abdennacer which challenge? and show your code.
nXception
@nXception
Mar 17 2016 15:50
I have a css question, can someone please try to answer it for me?
Erik
@Nerik54
Mar 17 2016 15:52
yes manish sorry my boss called me
Le Twitch
@notalkingplz
Mar 17 2016 15:52
@nXception What is it??
Erik
@Nerik54
Mar 17 2016 15:52
i need to next my text input element within a form but i don't get it

<input type="text" placeholder="cat photo URL">

<form action="/submit-cat-photo"></form>

i just started coding!
cannelflow
@cannelflow
Mar 17 2016 15:56
<input type="text" placeholder="cat photo URL"> is your text input nest it inside form
@Nerik54
Erik
@Nerik54
Mar 17 2016 15:57
thanks!
rayner-villalba-coderoad-com
@rayner-villalba-coderoad-com
Mar 17 2016 16:00
<form action="/submit-cat-photo">
  <input type="text" placeholder="cat photo URL">
</form>
@Nerik54 it should be something like this
jharness
@jharness
Mar 17 2016 16:02
I have a quick question. I am targeting the same element with multiple jQuery Selectors. This is my code $("button") $(".btn") $("#target1").addClass("animated shake btn-primary");
Help
CamperBot
@camperbot
Mar 17 2016 16:03

Hi, I'm CamperBot! I can help you in this chatroom :smile:

Basic Commands:

  • find TOPIC find all entries about topic. ex: find js
  • wiki TOPIC show contents of topic page
  • thanks @username send brownie points to another user
  • about @username shows info on that user
  • Algorithm BONFIRENAME info on a Algorithm

:speech_balloon: meet CamperBot in this room!

:pencil: read more about camperbot on the FCC Wiki

cannelflow
@cannelflow
Mar 17 2016 16:04
for Add the animated class to all elements with type button.
do like
$("button").addClass("animated");
@jharness
Pablo Macias
@jpablom
Mar 17 2016 16:04
This message was deleted
cannelflow
@cannelflow
Mar 17 2016 16:04

then do same for Add the shake class to all the buttons with class .btn.

Add the btn-primary class to the button with id #target1. @jharness

UnknownRandomer
@UnknownRandomer
Mar 17 2016 16:05
I'm sorry but I forgot how to add a script element, could someone help me?
Manish Giri
@Manish-Giri
Mar 17 2016 16:06
@UnknownRandomer
<script></script>
cannelflow
@cannelflow
Mar 17 2016 16:06
<script>
  $(document).ready(function() {
    $("button, .btn, #target1").addClass("animated shake btn);
  });
</script>
@jpablom is it f9
Jim Dennis
@JimDennis
Mar 17 2016 16:06
<script src="somescript" type="text/javascript"></script>
Kyle
@tkdkyle
Mar 17 2016 16:07
i need help with javascript
Jim Dennis
@JimDennis
Mar 17 2016 16:07
or ... <script>#contents of your inline script</script>
cannelflow
@cannelflow
Mar 17 2016 16:07
@jharness ?
UnknownRandomer
@UnknownRandomer
Mar 17 2016 16:07
Oh okay wow I'm an idiot lol thank you @Manish-Giri
CamperBot
@camperbot
Mar 17 2016 16:07
unknownrandomer sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
CamperBot
@camperbot
Mar 17 2016 16:07
:star: 776 | @manish-giri | http://www.freecodecamp.com/manish-giri
var myVar = 87;

// Only change code below this line
myVar = myVar + 1;
i dont get what it means by use ++
or where
Le Twitch
@notalkingplz
Mar 17 2016 16:09
myVar++;
Kyle
@tkdkyle
Mar 17 2016 16:09
ok
jharness
@jharness
Mar 17 2016 16:09
@cannelflow it worked, thank you! I think I misunderstood the instructions
CamperBot
@camperbot
Mar 17 2016 16:09
jharness sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:star: 943 | @cannelflow | http://www.freecodecamp.com/cannelflow
cannelflow
@cannelflow
Mar 17 2016 16:10
@jharness happens
:+1:
Pratik Ratnaparkhi
@pratikr1593
Mar 17 2016 16:12
Can I get some help with NPM?
is there anyone who have completed NPM?
aditigupta16
@aditigupta16
Mar 17 2016 16:19
hi
I am stuck on the last exercise of bootstrap topic
cannelflow
@cannelflow
Mar 17 2016 16:20
@aditigupta16 name ? tried something?
aditigupta16
@aditigupta16
Mar 17 2016 16:20
this is what i have added and they are giving the error
Your comment should have the text Only change code above this line.
what am i missing here?
cannelflow
@cannelflow
Mar 17 2016 16:20
@aditigupta16 show your code
which exercise?
cannelflow
@cannelflow
Mar 17 2016 16:23
@aditigupta16 Add a comment at the top of your HTML that says Only change code above this line.and you don't have comment at top
<!---this is how you make comment---> @aditigupta16
aditigupta16
@aditigupta16
Mar 17 2016 16:24
thanks
@cannelflow
:)
cannelflow
@cannelflow
Mar 17 2016 16:25
@aditigupta16 :+1:
pboest
@pablobordons
Mar 17 2016 16:30
can somebody tell me why this doesn’t work on fcc?
function steamroller(arr,clean){

    if(!Array.isArray(arr)) return arr;


    for(var e in arr){

        if(Array.isArray(arr[e])) steamroller(arr[e],clean);
        else(clean.push(arr[e]));
    }

    return clean;

}


steamroller([[["a"]], [["b"]]],[]);
Baris
@Kiltenth
Mar 17 2016 16:31
Hey people, im kinda new here and im stuck at Create a Form Element. I couldn't figure out where to put the form element.
Pauline
@paulinedus
Mar 17 2016 16:32
Hey, I am stuck...
<-- Your stylesheet should declare a red-text class and have its color set to red.-->
cannelflow
@cannelflow
Mar 17 2016 16:32
<input type="text"> is your text field Nest your text field in a form element. Add the action="/submit-cat-photo" attribute to this form element. @Kiltenth
Baris
@Kiltenth
Mar 17 2016 16:33
uuhh. i still cant understand (maybe because im not native english speaker) <input type="text" placeholder="cat photo URL"> this is the part we are talking about
how should i nest it ?
Manish Giri
@Manish-Giri
Mar 17 2016 16:34
@paulinedus why did you remove the current h2 css? Here's what your whole code should be
<style>
  h2 {
    color: blue;
  } 
 .red-text {
color: red;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
cannelflow
@cannelflow
Mar 17 2016 16:34
<style>
  .red-text {
    color: red;<===missed ; here
  }
</style>

<h2 class= "red-text">CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
@paulinedus
batra79
@batra79
Mar 17 2016 16:34
@paulinedus I think you are missing the semi-colon at after the word “red"
Pablo Macias
@jpablom
Mar 17 2016 16:35
@Kiltenth you need wrap your input element between <form></form> tags
Manish Giri
@Manish-Giri
Mar 17 2016 16:35
@Kiltenth yes, you need to put that inside <form>...</form>
Pauline
@paulinedus
Mar 17 2016 16:35
@cannelflow Thanks !!
CamperBot
@camperbot
Mar 17 2016 16:35
paulinedus sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:star: 945 | @cannelflow | http://www.freecodecamp.com/cannelflow
cannelflow
@cannelflow
Mar 17 2016 16:35
@Kiltenth yes
Baris
@Kiltenth
Mar 17 2016 16:35
oh ok, thanks :)
Pauline
@paulinedus
Mar 17 2016 16:35
it was the semi colon ideed ;)
cannelflow
@cannelflow
Mar 17 2016 16:36
<form>
 <input type="text" placeholder="cat photo URL">
</form>
@Kiltenth
Pablo Macias
@jpablom
Mar 17 2016 16:36
@pboest maybe if you remove parenthesis of else part
pboest
@pablobordons
Mar 17 2016 16:37
@jpablom oh you’re right jeex that’ was awfull
Baris
@Kiltenth
Mar 17 2016 16:37
@cannelflow thanks a lot :)
CamperBot
@camperbot
Mar 17 2016 16:37
kiltenth sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
pboest
@pablobordons
Mar 17 2016 16:37
still doesn’t work, i was working on some other editor and removing the “debugs” made me do that
CamperBot
@camperbot
Mar 17 2016 16:37
:star: 946 | @cannelflow | http://www.freecodecamp.com/cannelflow
pboest
@pablobordons
Mar 17 2016 16:37
(btw I’m Pablo too :P)
Pablo Macias
@jpablom
Mar 17 2016 16:38
really ?
pboest
@pablobordons
Mar 17 2016 16:38
yeah, I’m from Spain
Pablo Macias
@jpablom
Mar 17 2016 16:38
mexican here :smile:
pboest
@pablobordons
Mar 17 2016 16:38
:)
Pablo Macias
@jpablom
Mar 17 2016 16:39
:thumbsup:
Ashw
@asharhw
Mar 17 2016 16:45
hey guys, i can't understand how to fix this issue maybe some of you can help, i've added a navbar to my portfolio but that's covering the stuff that is underneath and i don't know how to unhide it...
http://codepen.io/asharhw/pen/RaKNMj
i fixed it out; thanks anyways
pboest
@pablobordons
Mar 17 2016 16:49
can anybody help me with the steamroller? the return seems fine but the site doesn’t accept it
function steamroller(arr){

    for(var e in arr){

        if(Array.isArray(arr[e])) steamroller(arr[e]);
        else clean.push(arr[e]);
    }

    return clean;

}

var clean = [];

steamroller([1, [], [3, [[4]]]]);
kevinwfarrell
@kevinwfarrell
Mar 17 2016 16:58
I'm stuck on comment out HTML?
Any answers?
Asif Mohammad
@Asif-Mohd
Mar 17 2016 16:59
@kevinwfarrell html comments start with <!-- and end with -->
Baris
@Kiltenth
Mar 17 2016 17:03
guys is there a bug about Set the ID of an Element ? this is my form element <form action="/submit-cat-photo"> and it wants me to set the id of the form element "cat-photo-app"
isnt it like this <form id="cat-photo-app" action="/submit-cat-photo"> ?
oh ok nvm, refreshing the page solved the problem
FearlessCode
@FearlessCode
Mar 17 2016 17:06
Hey guys I am having trouble with the font size it keeps saying incorrect any suggestions here is my code <p { font-size:16px; } class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
Jared Pranke
@EtherWolf
Mar 17 2016 17:09
<style>
.red-text {
font-size: 16px;
}
</style>

<p class="red-text">SOME RANDOM TEXT</p>
<style>
p {                /*this will select ALL paragraphs as long as they aren't overridden by selectors with higher specificity*/ 
font-size: 16px;
}
</style>

<p class="red-text">SOME RANDOM TEXT</p>
FearlessCode
@FearlessCode
Mar 17 2016 17:15
oh ok so you have to add style when changing a specific element
Brendan Goldsmith
@brendangoldz
Mar 17 2016 17:21
Im trying to get my navbar tabs li elements to switch but Home is staying active i had this problem before and i still havent figured it out :/
This message was deleted
This message was deleted
<nav class="navbar navbar-inverse navbar-fixed-top"> <div class="container-fluid"> <div class="navbar-header"> </div> <ul class="nav navbar-nav"> <li class="active" data-toggle="tab"><a href="#home">Home</a></li> <li><a data-toggle="tab" href="#about">About</a></li> <li><a data-toggle="tab" href="#portfolio">Portfolio</a></li> <li><a data-toggle="tab" href="#contact">Contact</a></li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a target="_blank" href="https://www.linkedin.com/in/brendan-goldsmith-24161610b"><i class="fa fa-linkedin"></i></a> <li><a target="_blank" href="https://www.freecodecamp.com/brendangoldz"><i class="fa fa-fire"></i></a> </ul> </div> </nav>
Kyle
@tkdkyle
Mar 17 2016 17:25
<nav class="navbar navbar-inverse navbar-fixed-top">
  <div class="container-fluid">
    <div class="navbar-header">
         </div>
    <ul class="nav navbar-nav">
      <li class="active" data-toggle="tab"><a href="#home">Home</a></li>
      <li><a data-toggle="tab" href="#about">About</a></li>
      <li><a data-toggle="tab"  href="#portfolio">Portfolio</a></li> 
      <li><a data-toggle="tab" href="#contact">Contact</a></li> 
    </ul>
    <ul class="nav navbar-nav navbar-right">
            <li><a target="_blank" href="https://www.linkedin.com/in/brendan-goldsmith-24161610b"><i class="fa fa-linkedin"></i></a>
                <li><a target="_blank" href="https://www.freecodecamp.com/brendangoldz"><i class="fa fa-fire"></i></a>
    </ul>
  </div>
</nav>
i helped you
:D
Brendan Goldsmith
@brendangoldz
Mar 17 2016 17:26
hahahah thank you :) @tkdkyle
CamperBot
@camperbot
Mar 17 2016 17:26
brendangoldz sends brownie points to @tkdkyle :sparkles: :thumbsup: :sparkles:
:star: 151 | @tkdkyle | http://www.freecodecamp.com/tkdkyle
Kyle
@tkdkyle
Mar 17 2016 17:27
how you post code like this is ```js shift enter paste code and CTRL / and enter
npnp
eightball knows everything
CamperBot
@camperbot
Mar 17 2016 17:27
@tkdkyle :8ball: yes. Definitely :sparkles:
Brendan Goldsmith
@brendangoldz
Mar 17 2016 17:28
lol
anyone know how i do dis??
Pablo Macias
@jpablom
Mar 17 2016 17:30
@brendangoldz always is active because you declare as active
you need add some js code to resolve this
Brendan Goldsmith
@brendangoldz
Mar 17 2016 17:33
hits staples button
FearlessCode
@FearlessCode
Mar 17 2016 17:42
@EtherWolf thanks for the help
CamperBot
@camperbot
Mar 17 2016 17:42
fearlesscode sends brownie points to @etherwolf :sparkles: :thumbsup: :sparkles:
:star: 312 | @etherwolf | http://www.freecodecamp.com/etherwolf
Felix Smuda
@FellCode
Mar 17 2016 17:44
Hey Guys, anyone know why i cant use the Foundation Icons after ive added it to my CSS Resources on Codepen and tried '<i class="fi-social-twitter"></i>'?
Tyler Moeller
@TylerMoeller
Mar 17 2016 17:48
@Phnix94 It looks like those icons also require fonts. Lots of people use font awesome icons in their projects - only requires css: https://fortawesome.github.io/Font-Awesome/icons/
Materialize has a nice set too: http://materializecss.com/icons.html
Felix Smuda
@FellCode
Mar 17 2016 17:49
let me try that quickly
Maulik Darji
@maulikdarji
Mar 17 2016 17:50
@Phnix94 Font Awesome is good
Tyler Moeller
@TylerMoeller
Mar 17 2016 17:50
Yeah, just add this to your 'stuff for <head>' section of your codepen settings:
<link rel="stylesheet prefetch" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
Felix Smuda
@FellCode
Mar 17 2016 17:51
Yeah Font Awesome works! Thanks mate ;)
Tyler Moeller
@TylerMoeller
Mar 17 2016 17:51
@Phnix94 Happy coding :)
Candice
@smrtsmrf
Mar 17 2016 17:52
This message was deleted
This message was deleted
This message was deleted
Ed
@EmcBa
Mar 17 2016 17:55
Can anyone help
Malin Sundin
@MaoMaolin
Mar 17 2016 17:55
good evening
Ed
@EmcBa
Mar 17 2016 17:55
I can't give my form element the id cat-photo-form
Jared Pranke
@EtherWolf
Mar 17 2016 17:56
@FearlessCode Yeah, just for clarity sake (because you will encounter this stuff on the daily), when you connect a class to an html element (h1, p, span, div etc.) you are attributing a class to that element. So <p class="red-text"></p> is the html element p, with the class attribute of "red-text". Anything that is wrapped in html tags(apart from the element itself) is considered an attribute, with the exception of pseudo-classes (whole other story brah). Once you have your html element attributed a class or id, you can select it in CSS for styling.
Maulik Darji
@maulikdarji
Mar 17 2016 17:56
@EmcBa Have you tried anything yet?
Ed
@EmcBa
Mar 17 2016 17:57
@maulikdarji Yep, I've tried <form id="cat-photo
@maulikdarji actually no worries
I just realised i hadn't read the question properly haha
Maulik Darji
@maulikdarji
Mar 17 2016 17:58
@EmcBa :smile:
Jaydeep Jain
@jaydeepjain2326
Mar 17 2016 17:59
can anyone plz help? what can be done for "Only add one class with each of your three selectors." in jquery with ($("button") , $(".btn") and $("#target1"))
goutam
@goutamdh
Mar 17 2016 18:01
windows form in .net using c# which sit is good for learning?
Maulik Darji
@maulikdarji
Mar 17 2016 18:02
@jaydeepjain2326
$("button).addClass("class-1");
$(".btn).addClass("class-2");
$("#target1).addClass("class-3");
Alexander Køpke
@alexanderkopke
Mar 17 2016 18:04
btn is a class tho so $(".btn") and target1 is an id so $("#target1")
Maulik Darji
@maulikdarji
Mar 17 2016 18:05
@alexanderkopke my bad :smile:
Alexander Køpke
@alexanderkopke
Mar 17 2016 18:09
:)
Nicolas
@Nico3838
Mar 17 2016 18:24
Hey! I just got here and Im doing the Add Borders Around Your Elements and it seems good to me but apparently it does not let me go forward
Martyn Masson
@massdist
Mar 17 2016 18:25
Hi guys I may be being thick here but can someone have a look at this code and tell me why the dropdown menu isn't showing? https://jsfiddle.net/yot9L20o/ Thanks in advance
Michael Kelly
@Keydose
Mar 17 2016 18:30
@massdist .nav-dropdown in your CSS has display: none;
Which has the effect of hiding the element with the class
Martyn Masson
@massdist
Mar 17 2016 18:32
Hi @Keydose I'm maybe going around this the wrong way but I wanted to hide the <ul class="nav-dropdown"> until someone hovers over the link which then displays it.
Thank you for your response by the way :smile:
nXception
@nXception
Mar 17 2016 18:33
#about-info {
    width: calc(50% - 10px);
}
Does this mean set the width of this object to 50% of it's container - 10px? So if the container is 1440px #about-info would end up being 710px right?
Michael Kelly
@Keydose
Mar 17 2016 18:33
@massdist Ah so when someone hovers over about it displays the about dropdown?
brian.
@brianbklyn
Mar 17 2016 18:34
Hello, for the "Make Dead Links using the Hash Symbol" challenge, here is my code for the <a></a> element:
<a href="#">cat photos</a>
It's not letting me complete the challenge, what am I doing wrong?
Martyn Masson
@massdist
Mar 17 2016 18:34
@Keydose Yes thats exactly right.
Michael Kelly
@Keydose
Mar 17 2016 18:34
@massdist You considered using jQuery?
Brendan Goldsmith
@brendangoldz
Mar 17 2016 18:35
any body know what to search for for proficency sliders (i.e. 95% slider for Java, 80% Css and so on)
nXception
@nXception
Mar 17 2016 18:35

@Keydose

#about-info {
    width: calc(50% - 10px);
}

Does this mean set the width of this object to 50% of it's container - 10px? So if the container is 1440px #about-info would end up being 710px right?

Rodrigo Lira
@mrodrigolira
Mar 17 2016 18:36
@massdist Hide the <ul class="nav-dropdown"> maybe with height 0, the use the pseudoclass :hover to change the value when someone hover over it
Michael Kelly
@Keydose
Mar 17 2016 18:36
@nXception I've never used calc
nXception
@nXception
Mar 17 2016 18:36
oh
k thanks anyways
Michael Kelly
@Keydose
Mar 17 2016 18:36
@nXception I never use absolute values for styling
Well, very few exceptions
nXception
@nXception
Mar 17 2016 18:37
why not
Martyn Masson
@massdist
Mar 17 2016 18:37
@Keydose I will be looking at that soon but I wondered if I could have done it with just CSS. I'm reading HTML & CSS by Jon Duckett but will be going on to read Javascript & Jquery soon