Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • 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
When coding the Tribute Page, do you use HTML or Bootstrap? I'm a little confused on the difference.
And particularly, I mean when Googling for help. If I wanted to center an image, let's say, would I Google: "HTML center image" or "Bootstrap center image?"
Coy Sanders
Bootstrap is a CSS library @DarkInterval, HTML is code you use to structure your page. You would use both
if you're not sure of the difference between CSS and HTML is I would review the challenges
Hey all, I'm having some trouble with PHP and MySQL, hope any of you can help - I created a JSFiddle, describing my problem, any help is welcome :)
@coymeetsworld Thanks!
darkinterval sends brownie points to @coymeetsworld :sparkles: :thumbsup: :sparkles:
:star2: 2814 | @coymeetsworld |http://www.freecodecamp.com/coymeetsworld
Hey there
Does anyone have any advice on getting social media icons through bootstrap?
Hayk Simonyan
@onikroo use font awsome
Hi everyone, I am working on the weather API challenge and I am seriously stuck, can anyone point me in the right direction?
I keep getting the error that one of my variables is not defined
for the latitude position
Thank you @hayksim
onikroo sends brownie points to @hayksim :sparkles: :thumbsup: :sparkles:
:cookie: 125 | @hayksim |http://www.freecodecamp.com/hayksim
@DarkInterval You can search for either. Here's an example of how to use pure HTML/CSS to center an image, or how to do it with Bootstrap: https://codepen.io/skycoder/pen/xqbGor
@Na-Ya I can try to help - can you show your code?
I'm working on the ajax request but despite everything I tried it keeps telling me that lat is not defined
@SkyC0der any tips would be appreciated
@Na-Ya Your lat and long are only defined inside your function(position), if you want to use them outside of that, you'll need to pass them as arguments to another function
 if (navigator.geolocation) {
  navigator.geolocation.getCurrentPosition(function(position) {
    var lat = position.coords.latitude;
    var long = position.coords.longitude;
    getWeather(lat, long);

function getWeather(lat, long) {
    url: "https://api.darksky.net/forecast/<<<your key>>>/" + lat + "," + long,
    dataType: "jsonp"
  }).done(function(data) {
    console.log("has data arrived?", data);
  }); //closes out ajax
oh wow, thanks that makes a lot of sense
thanks for taking a look @SkyC0der
na-ya sends brownie points to @skyc0der :sparkles: :thumbsup: :sparkles:
:star2: 1758 | @skyc0der |http://www.freecodecamp.com/skyc0der
@Na-Ya I messed up your ajax call - fixed in the sample above
@SkyC0der now I am getting a 'Access-Control-Allow-Origin' error :/
@Na-Ya Are you using dataType: 'jsonp'?
@SkyC0der when I tried adding the dataType as jsonp the lat and long returned undefined
@Na-Ya You are getting close, but your ajax syntax is incorrect. Compare to what I provided in the code sample above
your function(data) is in the wrong place
Panayiotis Mangafas
hey im having a problem with "Create a Media Query" this is my code, it works on the phone at the right but it doesnt get accepted by fcc
  p {
    font-size: 20px;

  /* Add media query below */
  @media (min-height: 800px){
      font-size: 10px;


<p id="par">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis tempus massa. Aenean erat nisl, gravida vel vestibulum cursus, interdum sit amet lectus. Sed sit amet quam nibh. Suspendisse quis tincidunt nulla. In hac habitasse platea dictumst. Ut sit amet pretium nisl. Vivamus vel mi sem. Aenean sit amet consectetur sem. Suspendisse pretium, purus et gravida consequat, nunc ligula ultricies diam, at aliquet velit libero a dui.</p>
ok @SkyC0der , thanks for your help, I will review the documentation and try to correct my ajax syntax
na-ya sends brownie points to @skyc0der :sparkles: :thumbsup: :sparkles:
:warning: na-ya already gave skyc0der points
@mangafas @media (min-width: 800px)
Not min-height
hi guys i was going trhu algos in FE section
i am stuck...
var str = "si eye is";
var trimit = str.replace(/+s/g,"");
gives result "si eye is" but not "sieyeis", any thoughts?
@akshayscu I think you mean \s instead of +s
var str = "si eye is";
var trimit = str.replace(/\s/g,"");