Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 19 20:09
    @krisb1220 banned @Gastony
  • May 14 22:39
    @bjorno43 banned @minitechtips_twitter
  • May 14 22:38
    @bjorno43 banned @real-action
  • Feb 01 00:27
    @bjorno43 banned @Ndoua
  • Jan 07 03:10
    @bjorno43 banned @doctor-sam
  • Aug 17 2019 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 2019 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 2019 17:13
    @mstellaluna banned @cmal
  • Jan 08 2019 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
Danny McVey
@dannymcvey
@Grimmeu It looks like the example, nice work! Do you think you can make the same exact page WITHOUT bootstrap though? That's one way to test whether you understand HTML and CSS well enough before moving on to JavaScript.
Sorin Ruse
@sorinr
@JheeBz take a look to the react-router
c-kirkeby
@c-kirkeby
I've looked at React Router but it only seems to render React Components. These are static HTML pages.
Sorin Ruse
@sorinr
so what? you can define your static pages as a react component
c-kirkeby
@c-kirkeby
How would you recommend doing that?
Abraham Anak Agung
@AbrahamAnakAgung
your static page is not made with React?
c-kirkeby
@c-kirkeby
They are not. They're my already completed front-end milestones.
Sorin Ruse
@sorinr
i would just write the static html page as a react component and instruct the react-router what component to inject nto my page base on the route match
@JheeBz then a simple <a> tag to href to your static page will go fine
c-kirkeby
@c-kirkeby
So copy and paste the HTML into a React component? That's awfully messy, won't I have to de-render the rest of the page?
I just want to open them in a new tab.
Sorin Ruse
@sorinr
then you may use the <a>
c-kirkeby
@c-kirkeby
Well that's what I've tried to do, but it just renders my React app at the path /portfolio/twitch/index.html.
BERTINI Nickolas
@BERTININickolas
Hey everyone, i've almost finished my jQuery calculator. Can someone explain me why the last three buttons don't align with the others ? I think there is some margin somewhere but i can't find it. https://codepen.io/Ophe/pen/JOWQJW?editors=1111
dinesh
@1532j0004kg
which three buttons?
BERTINI Nickolas
@BERTININickolas
three bottoms
dinesh
@1532j0004kg
ok wait i try to fix.
Henry
@GitHub-Henry
image.png
@Ophellia just by looking at the calculator, it appears the zero button is to large.
The end of zero button does not line up with your other buttons, 2 & 5 for instance
c-kirkeby
@c-kirkeby
Looks like I needed to include my static pages in /public. Thanks for your help @sorinr
CamperBot
@camperbot
jheebz sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
:star2: 1355 | @sorinr |http://www.freecodecamp.com/sorinr
Hussain Ruhollah
@Hussain-Ruhullah
hi guys i want to creat a facebook page ( freeCodeCamp Kreis Borken ) why its not working ?
BERTINI Nickolas
@BERTININickolas
using bootstrap it should take 50% of the space available, like button 1 and 2 take 25% each other
Hussain Ruhollah
@Hussain-Ruhullah
can any one here help
@Ophellia try this
ev3rlord
@ev3rlord
@Ophellia Oh yeah but it still didn't solve your problem my bad
since screen sizes vary
BERTINI Nickolas
@BERTININickolas
i've nested my 0 button inside a div with class col-6 which take 50% of the width, and then modify the padding inside the div
Tiago Correia
@tiagocorreiaalmeida
image.png
try to avoid this type of things :D I did the same mistake back then
Iam@Leet_Programmer
@leet-hacks
hi everyone i just want to toggle many colors but it's only toggling one color and i dont know what wrong with my code
_
Capture.PNG
Abraham Anak Agung
@AbrahamAnakAgung
@leet-hacks your code toggle between white and #c...
Iam@Leet_Programmer
@leet-hacks
yeah but i want it to toggle between the two colors
primuscovenant
@primuscovenant
@heroiczero tx
CamperBot
@camperbot
primuscovenant sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 2056 | @heroiczero |http://www.freecodecamp.com/heroiczero
Abraham Anak Agung
@AbrahamAnakAgung
@leet-hacks which colors? Than u need if true show colors[i] if false show colors[i+1]
If u want random colors, put your colors in an array and use math.random
var colors = ['white', 'orange', 'blue']; var color = colors[Math.floor(Math.random()*colors.length)]; console.log(color); something like that and u dont need isColor variable
Stephen James
@sjames1958gm
@leet-hacks Your code always selects the last color in the array. Your i variable you don't need a loop but a global idnex variable if you want to select from the array.
Or use the random code as described above
dinesh
@1532j0004kg
@rajarahull what is the error ?
Iam@Leet_Programmer
@leet-hacks
Thanks @padunk it working fine now
CamperBot
@camperbot
leet-hacks sends brownie points to @padunk :sparkles: :thumbsup: :sparkles:
:cookie: 390 | @padunk |http://www.freecodecamp.com/padunk
Iam@Leet_Programmer
@leet-hacks
but i thought i would loop through the colors and change the background color to the color i looped