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
Quantomistro3178
@Quantomistro3178
@ronstarcool thanks, mate!
CamperBot
@camperbot
quantomistro3178 sends brownie points to @ronstarcool :sparkles: :thumbsup: :sparkles:
:cookie: 365 | @ronstarcool |http://www.freecodecamp.com/ronstarcool
Marc
@MWBauer
Now I need to get my buttons on the page. Will be back.
Xapuu
@Xapuu
I need a React Hero :D, to help me with state management
nmoore14
@nmoore14
Hello everyone!!!
ronald
@ronstarcool
haha
im here this evening. if i can, ill do Quantico
Xapuu
@Xapuu
what is Quantico btw :D
Ghost
@ghost~57b1df1e40f3a6eec05f92a8
@Xapuu I've just started with react some days ago, but maybe I can help :) Whats the problem?
Xapuu
@Xapuu

https://pastebin.com/YWeRg6T2

This is the code that needs a fix, in the main component in the will mount component, i want to pass a function that changes the state of the component 'App' in the observer, after that (in the same block ) by accessing the observer, i want to trigger the function, that i had already passed and update the 'App' state @Otto-AA

Ghost
@ghost~57b1df1e40f3a6eec05f92a8
@Xapuu Just a guess...
this.setState(()=>({focus:param})) is (according to my narrow understanding of react) an asynchrounous function, therefore the console.log(this.state) directly afterwards shouldn't note a change. So maybe it is happening, but just after the console.log?
Romeo Gligorov
@noname-uncut
hi all !! back after 6 month :-D and rdy to start and finish all now.
i have finished yesterday my "portfolio page" need some reviews. It´s not finally finished but on the way. i am working now on the mobile version. (www.rg-design.ch)
Pascal Clanget
@Gh05d

Hi guys, I want to float the button next to the collapsible:

      <div>
        <Collapsible trigger={name} className="recipe" openedClassName="recipe">
          {showIngredients}
        </Collapsible>

        <button className="btn btn-danger">
          <i className="fa fa-minus-square" />
        </button>
      </div>

I tried float: right on the button which worked, but it floated under the Collapsible. How can I get it the float next to it?

Ashwin
@ashwins93
@Gh05d set the button's position to absolute and then set the right property to 0
Pascal Clanget
@Gh05d
image.png
@ashwins93 Worked kind of
Ashwin
@ashwins93
You can fine tune it by adjusting top, right, down, left values
Pascal Clanget
@Gh05d
Problem is that it is responsive, so when I adjust the "right" property and the screen gets smaller, it again doesn' t fit
Ashwin
@ashwins93
Okay there are floating action buttons in materialize.css you could just use thst framework or if you don't want to use that whole framework you could just peek at their source code how they implement it
Pascal Clanget
@Gh05d
ok
thx @ashwins93 :thumbsup:
Jessie Cryer
@j-cryer
hows it going
Daniel Azmitia
@danazm
Hey, quick question. Starting the "show the local weather" project, but for some reason it won't display anything in the referenced codepen.io app. It shows a black screen that only says "Free Code Camp
Weather App". Using a clean Chromium browser, no addons. Allowed the site to grab my location. Can't think of why it isn't working. Anyone run in to this before?
Moisés Man
@moigithub
check on ur browser devtools for errors @danazm
ronald
@ronstarcool
does anyone no how to create a navbar with material ui?? im really stuck here
Daniel Azmitia
@danazm

yeah, it only mentioned this about a deprecating feature: "pen.js:9 [Deprecation] getCurrentPosition and watchPosition usage in cross-origin iframes is deprecated and will be disabled in M63, around December 2017. To continue to use this feature, it must be enabled by the embedding document using Feature Policy, e.g. <iframe allow="geolocation" ...>. See https://goo.gl/EuHzyv for more details."

but that shouldn't matter, AFAIK, since it would still work until that function gets turned off in some future build.

ronald
@ronstarcool
yes, i have read that. its the first thing that pops up in google. using tabs is i think, not the correct way
Teo
@Teo03
Can someone help with Tic Tac Toe?
Daniel Azmitia
@danazm
alright, so on a whim, downloaded a new build of chromium and it worked. so guess the version that was installed was bugged is all
Teo
@Teo03
can someone take a look here to see where I am wrong: https://codepen.io/Teo03/pen/NwWKVm
korzo
@korzo
@Teo03 on line 37, move is undefined
board[move.i][move.j] = aiPlayer;
Teo
@Teo03
@korzo but I think it
is defined in checkGameOVer function
korzo
@korzo
@Teo03 the same on line 9
Check your console @Teo03
Teo
@Teo03
@korzo I checked but I don't know why is undefined
korzo
@korzo
@Teo03 well, it's not udefined, but call to callAi(); returns number (in my case -10)
var move = callAi();
Teo
@Teo03
@korzo In my case when I call callAi() it says that callAi() is not defined
@korzo I don't know what to do
korzo
@korzo
@Teo03 where do you call it?
Teo
@Teo03
@korzo in the console
Jean-Paul Sauve
@jp-sauve
can you add a property to an undefined variable? Maybe initialize move to an empty object
korzo
@korzo
@Teo03 callAi() is not defined in global scope, but inside ready() function's callback
you can access it from console
Teo
@Teo03
@jp-sauve like this var move = {}; ?
korzo
@korzo
@Teo03 unless you assign it to window object
Jean-Paul Sauve
@jp-sauve
yes, but I don't know if that's the issue.