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
Tyler Moeller
@TylerMoeller
@dwquach Actually, nevermind! Your code works great if you change beforesend to beforeSend (note the capital 'S')
You'll just have to figure out how to parse the JSON, but add console.log(json) to the first line of your success function and you'll see the quote text logged to the console
Rebecca Vest
@idahogurl
Does anyone have experience using Mobx React
dwquach
@dwquach
oh wow. that fixed it!! i can't believe i missed such simple mistakes. i've been looking at this code for hours. thanks again @TylerMoeller !
CamperBot
@camperbot
dwquach sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
:warning: dwquach already gave tylermoeller points
Tyler Moeller
@TylerMoeller
@idahogurl You might want to try in the Mobx React Room: https://gitter.im/mobxjs/mobx
Rebecca Vest
@idahogurl
Thanks @TylerMoeller
CamperBot
@camperbot
:star2: 1215 | @tylermoeller |http://www.freecodecamp.com/tylermoeller
idahogurl sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
c0d0er2
@c0d0er2

Can someone please help me on Increment a Number with JavaScript? Here is my code:

var myVar = 87;

// Only change code below this line

myVar = myVar++ + 1;

Here is the link: https://www.freecodecamp.com/challenges/increment-a-number-with-javascript

dwquach
@dwquach
@c0d0er2 you don't need the +1 at the end of you code. myVar++ automatically increments by 1
c0d0er2
@c0d0er2
@dwquach Thanks
CamperBot
@camperbot
c0d0er2 sends brownie points to @dwquach :sparkles: :thumbsup: :sparkles:
:cookie: 275 | @dwquach |http://www.freecodecamp.com/dwquach
c0d0er2
@c0d0er2
dwquach
@dwquach
what's your issue with it?
never mind. I see that you got help at the other help chat haha
dwquach
@dwquach
I have another issue. I want the background image to change every time the "new button" is clicked. I've put what I thought would work in the first line of the success header but with no success. https://codepen.io/dwquach/pen/XNwoYL
Tyler Moeller
@TylerMoeller
@dwquach Since you're using the same URL every time, the browser thinks you are asking for the same image again and just gives you the cached version it already gave you when you loaded the page. With Unsplash, you can add ?sig={random number} to the end of the url to prevent this, for example:
$("body").css("background-image", "url(" + "https://source.unsplash.com/category/nature?sig=" + Math.random() + ")");
More info: unsplash/unsplash-source-js#9
quackidy
@quackidy
Hi guys! Could someone help me with getting my name and the buttons to align on the nav bar?
http://codepen.io/cassidyepps/pen/woZjqj
Idowu Wasiu
@Hoxtygen
@c0d0er2 what are you having problem with
c0d0er2
@c0d0er2
@Hoxtygen i need help on Quoting Strings with Single Quotes in javascript
Idowu Wasiu
@Hoxtygen
@c0d0er2 wheres your code?
dwquach
@dwquach
@quackidy i was messing around with your code and with some googling i found a half answer. i added position:absolute and bottom: 0 to the css code to the h2 element (you can use an id/class instead) it aligns the text and the buttons however it also alters the size of your nav bar which i'm not sure if you're okay with
Ken Haduch
@khaduch
@quackidy - you just have an <h2> element for your name. The display style for that is display:block; which makes it occupy its own line. Try changing it to something else. Or putting a class on it with display: inline-block;
Also, are you using Bootstrap grid row/columns? The col-s-3 is not correct, it should be col-sm-3, for all of those, I think? Unless you're trying to do something else.
c0d0er2
@c0d0er2
@Hoxtygen
var myStr = "<a href='"http://www.example.com'" target='"_blank'">Link</a>";
Idowu Wasiu
@Hoxtygen
@c0d0er2 reset the code pls, its all cluttered
c0d0er2
@c0d0er2
@Hoxtygen ok
Idowu Wasiu
@Hoxtygen
@c0d0er2 everything as they were and judt change the first and last quote to single quote
c0d0er2
@c0d0er2
@Hoxtygen Thanks!
Idowu Wasiu
@Hoxtygen
@c0d0er2 :thumbsup:
dwquach
@dwquach
@TylerMoeller that worked like a charm. Thanks!
CamperBot
@camperbot
dwquach sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
:star2: 1216 | @tylermoeller |http://www.freecodecamp.com/tylermoeller
Ken Haduch
@khaduch
@quackidy - maybe you should try to use the Bootstrap navbar, they have boilerplate code on their site...
Segun Samuel
@shegs-a
Hello guys, I'm trying to vertically align a div within a div. the goal is to place the inner div at the vertical center of the outer div. What's the best way to carry this out? Both Bootstrap and jQuery solutions are welcome
Update: I'm beginning to lose my head here.....lol
Ken Haduch
@khaduch
@shegs-a - use flexbox, probably that's the answer.
Segun Samuel
@shegs-a
@khaduch flexbox...hmmn. Any resources on flexbox that you can share? Need to finish this part of my project.
Ken Haduch
@khaduch
@shegs-a - http://flexboxfroggy.com/ - a "game" that teaches you about the various flexbox settings. Also you can probably check w3schools.com for information, and Wes Bos has a free (I think) set of lessons on flexbox http://flexbox.io/. I haven't tried that, yet, still in progress on another one of his courses, but based on the other course, I would probably recommend it.
willstanleyus
@willstanleyus
Hello room,
API question
Ken Haduch
@khaduch
@willstanleyus - fire away, we'll try to help...
willstanleyus
@willstanleyus
went to https://github.com/FreeCodeCamp/open-api and it said to go to FreeCodeCamp/DataScience Gitter for API request. But... reading the traffic, it looks like this is the wrong place. @khaduch
Ken Haduch
@khaduch
@willstanleyus - sorry, I don't know anything about that - maybe someone else on here will have some info? You're right that it doesn't look like the DataScience room is of any use?
willstanleyus
@willstanleyus
Thanks @khaduch . I will ping the main help room.
CamperBot
@camperbot
willstanleyus sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 2177 | @khaduch |http://www.freecodecamp.com/khaduch
c0d0er2
@c0d0er2
Can somebody please help me with getting 2 images seperate? https://codepen.io/c0d0er2/pen/oYrppg
Victor
@VictorHall
Hi can someone help me