Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
Nastya
@a4evo
sorry, use it $(".message").html(JSON.stringify(json[0])); and delete everything in <script> in html part
Piyush Tiwari
@piyush805
@a4evo $(".message").html(json[0]); is not fetching object from json. Only printing the code for random number from inside div with id=message
Nastya
@a4evo
it's just to have a look what's inside
teevik
@teevik
The stackoverflow shows how to turn an object into array
You allready get an array in the json
Nastya
@a4evo
$(".message").html(json[0].quote);
@piyush805 read more about arrays and objects
Piyush Tiwari
@piyush805
@a4evo the previous one with stringify looked more correct but this ^ and that, both doing nothing.
Yeah :/
teevik
@teevik
Yeah, you should read up on all the basic concepts
Did stringify work?
Piyush Tiwari
@piyush805
@teevik no
Nastya
@a4evo
@piyush805 i changed that in your codepen, and it works
teevik
@teevik
Make sure you $.getJSON works
Ah
Piyush Tiwari
@piyush805
@a4evo It's working
Nastya
@a4evo
@piyush805 i know ))
Piyush Tiwari
@piyush805
What about random number code?
Nastya
@a4evo
just change 0 to random number @piyush805
Piyush Tiwari
@piyush805
@a4evo @teevik Thank you so much! :smile: I'll read more
CamperBot
@camperbot
piyush805 sends brownie points to @a4evo and @teevik :sparkles: :thumbsup: :sparkles:
:cookie: 134 | @teevik |http://www.freecodecamp.com/teevik
:cookie: 263 | @a4evo |http://www.freecodecamp.com/a4evo
Nastya
@a4evo
@piyush805 good luck!
teevik
@teevik
Lol, sorry for being confusing
Piyush Tiwari
@piyush805
@teevik not at all
teevik
@teevik
At phone
Piyush Tiwari
@piyush805
Is doing challenges on phone very difficult? For a few days I've to go out and I don't want to break the streak
@teevik
rishabh81
@rishabh81
Hi can someone help me understanding recompose library for hoc in react
cumibulat
@cumibulat
hi all, i'm struggling in finishing the random quote machine.. i can complete the function / logic part, but i'm having hard time in the design part.. i still cannot figure out how to make a box and centre it in the page..
rishabh81
@rishabh81
Are you using flexbox
??
You need do justifyContent:'center' @cumibulat
And flex:1
cumibulat
@cumibulat
@rishabh81 haven't tried flexbox.. just struggle with row, panel, wells :D
i'll try flexbox then.. sorry, so we should use the BS4 or BS3 ? in codepen it will use BS4 , but i got some strange behavior when i working the tribute page.. that's why i always use BS3 then..
rishabh81
@rishabh81
@cumibulat can you send screen shots of your css and design how it looks like
Ken Haduch
@khaduch
@cumibulat - since the somewhat minimal lessons that FreeCodeCamp has are based on Bootstrap 3, I think that that is a better option to stick with. You can find documentation on BS4, including this https://v4-alpha.getbootstrap.com/migration/ migration document, but I would recommend using V3. Also, CodePen now updated to have a Quick Add for Bootstrap 3, instead of just having the default be V4, so that makes it a little easier to add in. Although it doesn't look like they added that same version-selection option for the bootstrap.js, so beware of that.
cumibulat
@cumibulat
@rishabh81 err... i have to copy it to the codepen first, because i usually do it in atom locally :D .. but i will give it a try with flexbox..
@khaduch yeah i just check that codepen now have the BS3 option.. is flexbox is already available in BS3 ?
teevik
@teevik
@piyush805 Probably, never tried it
Krishna Patel
@Shivkrupa9
Can anyone tell me what is <meta charset="utf-8"> and what exactly meta means
Ravi Kishore Thella
@ravikishorethella
@Shivkrupa9 it specifies the character encoding
https://www.w3schools.com/TAGs/att_meta_charset.asp
Ken Haduch
@khaduch
@cumibulat - flexbox is basically a feature of CSS, so it is available in any browser that provides support for it. You can use it without using Bootstrap just by using the flexbox properties. An interesting way to get some exposure to it is with this "game" http://flexboxfroggy.com/ - it walks you through lessons on using the various flexbox settings.
Amanda
@alsmith101
Hi fellow campers, I'm having trouble trying to centre a navigation bar. It sounds pretty simple, but whatever entering technique I try, it is lying slightly over to the right hand side. If anyone spots anything in my code that's incorrect I would highly appreciate it! Cheers https://codepen.io/smithtech/pen/PjWjKx/
Ken Haduch
@khaduch
@alsmith101 - there is some padding of 40px in there somewhere- trying to sort out where it is. It might just be a setting on the list?
Amanda
@alsmith101
@khaduch ah I see, you're right! I took off the ul and just switched it for a regular div and it worked
Ken Haduch
@khaduch
@alsmith101 - there is 40px padding on the ul element. If you go into your CSS settings for ul and add padding-left: 0; it will override that. Not sure if you want to affect all of your UL elements with that, maybe you can add it to a class for that ul?
Amanda
@alsmith101
@khaduch cool I'll give that a go, thanks for your help