These are chat archives for FreeCodeCamp/HelpFrontEnd

8th
Dec 2017
Yingjie (Iris) Hu
@huyingjie
Dec 08 2017 00:25
I have a problem about scrollspy. I have been worked on this problem for several hours. Could anyone look at it? Thank you. https://forum.freecodecamp.org/t/scroll-spy-not-working-with-bootstrap-4/162768
Hammad
@newnewb
Dec 08 2017 01:02
can anyone help me with running react on codepen?
Hammad
@newnewb
Dec 08 2017 01:11
solved
Stephen James
@sjames1958gm
Dec 08 2017 02:10
@newnewb :+1:
Ken Haduch
@khaduch
Dec 08 2017 04:09
@huyingjie - the first problem is that in your javascript code, you have identified the wrong target. Changing it to $('body').scrollspy({ target: '.navbar' }) - using .navbar as the target, gets it going in the right direction. The first link for "ABOUT" is remaining highlighted, though, so there is another problem. Still investigating that.
Yingjie (Iris) Hu
@huyingjie
Dec 08 2017 04:11
@khaduch Thank you. It is correct now. $('body').scrollspy({ target: '#navbar-example' }) is useless. The page can run without this code.
CamperBot
@camperbot
Dec 08 2017 04:11
huyingjie sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 3571 | @khaduch |http://www.freecodecamp.org/khaduch
Ken Haduch
@khaduch
Dec 08 2017 04:11
@huyingjie - I think that you just want to remove the class active from the "ABOUT" link - it will be highlighted as you start to scroll the page.
Yingjie (Iris) Hu
@huyingjie
Dec 08 2017 04:12
@khaduch Thank you. I deleted it.
CamperBot
@camperbot
Dec 08 2017 04:12
huyingjie sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
api offline
Ken Haduch
@khaduch
Dec 08 2017 04:27
@huyingjie - you're welcome
Terence Mangram
@terensu-desu
Dec 08 2017 04:36
Anyone able to help me figure out enabling CORS for my ajax call? I don't really understand how to do it, but I understand what it does. I just need some clarity on why I keep getting Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. when I thought I had declared the correct header. I'm doing the FCC Wikipedia Viewer project.
https://codepen.io/terensu-desu/pen/jaoxrW
primuscovenant
@primuscovenant
Dec 08 2017 05:03
@heroiczero thx
CamperBot
@camperbot
Dec 08 2017 05:03
primuscovenant sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 2099 | @heroiczero |http://www.freecodecamp.org/heroiczero
Ken Haduch
@khaduch
Dec 08 2017 05:12
@terensu-desu - did you try adding an origin=* parameter to your url? My memory is a little fuzzy but I think that Wikipedia allows that?
Terence Mangram
@terensu-desu
Dec 08 2017 05:33
@khaduch Thanks for the suggestion, but that didn't work out for me.
CamperBot
@camperbot
Dec 08 2017 05:33
terensu-desu sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 3572 | @khaduch |http://www.freecodecamp.org/khaduch
i did a writeup on this project a few months ago. part of it talks about this error message and how to fix it
Terence Mangram
@terensu-desu
Dec 08 2017 06:27
@the-vampiire thanks, I'll take a look at it!
CamperBot
@camperbot
Dec 08 2017 06:27
terensu-desu sends brownie points to @the-vampiire :sparkles: :thumbsup: :sparkles:
:cookie: 406 | @the-vampiire |http://www.freecodecamp.org/the-vampiire
Lyddip
@lydiayhuang
Dec 08 2017 06:27
hey guys
how long is the damn html css challenges?
I wanted to learn javascript and it just took me straight to this challenge thing
soooo frustrated
ok don't everyone answer me all at once now
yadi zhang
@iamyadi
Dec 08 2017 06:33
You can check the map, you can choose the challenges there.
Skip the html css parts
izil91
@izil91
Dec 08 2017 09:44
hey guys i'm working on my tribute page and i already have the full web page done but the view of the page on mobile is not fit to the screen i've tried to add the meta element but nothing changes any ideas ?
Coy Sanders
@coymeetsworld
Dec 08 2017 10:06
@lydiayhuang depends if you’ve done html css before
If you have it should be quick, if not it varies between person to person
It is a short section just to give you some basics to build a simple site, everything else after is JavaScript
LukasLSC
@LukasLSC
Dec 08 2017 13:25
Hello guys im from freecodecamp :)
Stephen James
@sjames1958gm
Dec 08 2017 13:33
@LukasLSC :wave:
LukasLSC
@LukasLSC
Dec 08 2017 13:45
Anyone need some help?
linkin-park
@linkin-park
Dec 08 2017 13:51
ill be starting frontend
LukasLSC
@LukasLSC
Dec 08 2017 13:51
Write your problem then :)
linkin-park
@linkin-park
Dec 08 2017 15:31
<3 redux its hard as hell !
Chuck Pierce
@ChuckPierce
Dec 08 2017 15:34
Once you get the hang of redux its pretty easy
just functions calling functions
linkin-park
@linkin-park
Dec 08 2017 15:39
spending more than 10 min on js makes me go crazy
Dragan
@Frkafulja
Dec 08 2017 15:40
hi to all
Chuck Pierce
@ChuckPierce
Dec 08 2017 15:44
@linkin-park are you coming from a different language?
linkin-park
@linkin-park
Dec 08 2017 15:44
yes
Chuck Pierce
@ChuckPierce
Dec 08 2017 15:44
what language?
linkin-park
@linkin-park
Dec 08 2017 15:44
non js
Chuck Pierce
@ChuckPierce
Dec 08 2017 15:45
which is? haha
linkin-park
@linkin-park
Dec 08 2017 15:45
imperative
Chuck Pierce
@ChuckPierce
Dec 08 2017 15:47
oh you are speaking in paradigms? I'm confused
linkin-park
@linkin-park
Dec 08 2017 15:47
k leave it :)
Chuck Pierce
@ChuckPierce
Dec 08 2017 15:48
I just was asking was language you wrote in. You can write imperative javascript
linkin-park
@linkin-park
Dec 08 2017 15:53
i should have buyed BTC when it was lower made a mistake :'(
i'm a newbie @ChuckPierce
Chuck Pierce
@ChuckPierce
Dec 08 2017 15:54
well welcome! :smile:
linkin-park
@linkin-park
Dec 08 2017 16:00
well welcome @ChuckPierce i'm not new here
Chuck Pierce
@ChuckPierce
Dec 08 2017 16:00
oh...I'm feeling dumb right now. I'm just gonna stop
I've been on here before, just recently returned
linkin-park
@linkin-park
Dec 08 2017 16:01
nice
ill be going to forest
AbrisM
@AbrisM
Dec 08 2017 17:22
https://codepen.io/anon/pen/eeqmBz Hi, does anyone know how to stop the page from scrolling past the footer?
Chuck Pierce
@ChuckPierce
Dec 08 2017 17:32
@AbrisM why don't you just position the footer absolutely and set the bottom to 0
AbrisM
@AbrisM
Dec 08 2017 17:33
@ChuckPierce I'm not sure by positioning the footer that it would go all the way down instead of setting itself to the amounto of content on the page
@ChuckPierce How would I do that?
myWindow.resizeTo(250, 250); Also, I was going to use this method but it doesn't seem to be the right one :o:
AbrisM
@AbrisM
Dec 08 2017 17:51
Nope, positioning the footer to absolute and bottom only sticks it directly onto the <p> paragraph. What I need is to stop the page content from stretching past the footer. That's why on the right-side the scrollbar is stretching :)
Chuck Pierce
@ChuckPierce
Dec 08 2017 17:52
you need to wrap everything in a div that has overflow:hidden
you also got some weirdness going on like an <h1> tag in the <head> tag which is a no no
and then you want your content inside to be scrollable
ehutchllew
@ehutchllew
Dec 08 2017 18:21
@AbrisM use position: fixed and bottom: 0
Brandon Bowers
@Bowers96
Dec 08 2017 19:15
Hello.
I'm working on some of the JavaScript algorithm's and don't understand why I can't see my console.logs in the Chrome dev tools.
alpox
@alpox
Dec 08 2017 19:23
@Bowers96 Probably the code with the log didn't run :D
A-J Roos
@Asjas
Dec 08 2017 19:23
@Bowers96 If you open chrome dev tools and run a test console.log in the console does that display?
Brandon Bowers
@Bowers96
Dec 08 2017 19:23
I get undefined.
A-J Roos
@Asjas
Dec 08 2017 19:24
Chrome has been hiding infomessages. You need to enable it
Brandon Bowers
@Bowers96
Dec 08 2017 19:24
Where would that be by chance?
A-J Roos
@Asjas
Dec 08 2017 19:24
At the top you'll get a Default levels dropdown. Allow info messages
Brandon Bowers
@Bowers96
Dec 08 2017 19:25
Cool.
Thank you.
A-J Roos
@Asjas
Dec 08 2017 19:25
Pleasure. Chrome 61 or 62 sets info levels as hidden by default
-.-
Ivan Ngundela
@ingundela
Dec 08 2017 20:55
hello everyone… I’m facing some dificulties in getting clients as freelancer web developer… what should be my argument when I approach a potencial client and they say that they can just chose and download a free template and build their own website…. what should be my main arguments.. Please advice.Thank you
Tiago Correia
@tiagocorreiaalmeida
Dec 08 2017 20:56
that templates somehow are generic and you could build them something that's made to "measure" and unique
Chi
@chiyc
Dec 08 2017 22:37
@ingundela What do you offer that a free template doesn't?
does anyone know how to do the animation on this page?
where the text changes, and also how to get the navigation to show up, and how to get the underline thing to move?