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
alpox
@alpox
@jask84 That winningFunc looks bit wrong to me since it doesn't test for if its the user who wins or the computer... it would say you win even though the computer won
Hmm but maybe i'm wrong
Jas K
@jask84
@alpox your totally right. I just want it to at least reset the board first and then I can add everything else in
alpox
@alpox
@jask84 I don't really get what your problem is. Can you specify?
Jas K
@jask84
@alpox basically I have tried to invoke the winningFunc within the computerFunc and userFunc, to test winning combos from the choiceArray. However, I have tried to invoke the winningFunc in each function respectively after updating the choiceArray, but I cant get it workng. I wonder if my syntax is wrong and/or my layout of my code is incorrect in terms of how I am going through the process (computerFunc, which changes/adds to variables, then invokes userFunc click handler which I then need to switch off, and then back to computerFunc and so on).
@alpox so if you click three boxes in a row, you will see that nothing happens. It does not reset the game
alpox
@alpox
@jask84 Sry, didn't even notice. But:
choiceArray1[0] === choiceArray1[1] === choiceArray1[2]
Thats nothing js can handle
it has to be:
choiceArray1[0] === choiceArray1[1] && choiceArray1[1] === choiceArray1[2]

@jask84

var p = [2, 2, 2]
console.log(p[0] === p[1] === p[2]);

Prints false

Jas K
@jask84
@alpox thanks. I have done this before! I always forget this. Appreciate it.
CamperBot
@camperbot
jask84 sends brownie points to @alpox :sparkles: :thumbsup: :sparkles:
:star: 597 | @alpox | http://www.freecodecamp.com/alpox
alpox
@alpox
@jask84 np
Konstantin
@Kuklus23
Help me please!
CamperBot
@camperbot
no wiki entry for: me please
Konstantin
@Kuklus23
How do task number 130?
Jas K
@jask84
@alpox also, just wanted your quick opinion on whether the way I am doing it is the best way? Because I have a feeling my click handler really isnt the most efficient way. But if youre busy, no worries. Appreciate the help
Konstantin
@Kuklus23
I can not will do this.
Nathan
@natertot12
@Kuklus23 What do you need help on?
alpox
@alpox
@jask84 You can put the click event for .box outside of the userfunc, otherwise you will add one each time userfunc is called. Thats why you even had to use .off
@Kuklus23 There are numbers? :D which one is it by name?
Konstantin
@Kuklus23
@natertot12 problem with JS for navbar and with css
Nathan
@natertot12
@Kuklus23 Can you post your codepen? or your code
Konstantin
@Kuklus23
@alpox "Build a Personal Portfolio Webpage"
alpox
@alpox
@Kuklus23 Navbar: Usually a problem with including bootstrap js right. There has to be jquery first in the list, and then bootstrap
Konstantin
@Kuklus23
alpox
@alpox
@Kuklus23 You didn't follow bootstraps rules for a navbar, so it cannot work properly
and you didn't include jquery and bootstrap js
@Kuklus23 http://getbootstrap.com/components/#navbar
Take a look over this doc for/from boostrap
Konstantin
@Kuklus23
@alpox I not learn this
alpox
@alpox
@Kuklus23 Yeah i know :-) at this point one has to get used to use documentations, references, and search the web
Konstantin
@Kuklus23
@alpox (
@alpox Yet problem with css. I use class "container" and now I can't change css.
@alpox I can't change background and border-radius
for divs
alpox
@alpox
@Kuklus23 It seems that you set border-radius and background successfully
@Kuklus23 But if you want to change the background color for the container, set it on the container.
Konstantin
@Kuklus23
@alpox I can't change background for .first-section
@alpox and I want do border-radius for container 0px, but can't do this
Nathan
@natertot12
Does anyone have any good css tutorials for making css toggles and other cool css things?
jameslw
@jameslw
h
alpox
@alpox
@Kuklus23 You cannot change it because you have a border-radius. If you set a background, it has the round size too. So its all behind your picture
@Kuklus23
.container .jumbotron {
  border-radius: 0;
}
Konstantin
@Kuklus23
@alpox Thank you
CamperBot
@camperbot
kuklus23 sends brownie points to @alpox :sparkles: :thumbsup: :sparkles:
:star: 598 | @alpox | http://www.freecodecamp.com/alpox
Konstantin
@Kuklus23
@alpox But I not understand what do with background
alpox
@alpox

@Kuklus23

.first-section {
  background-color: blue;
}

Did you want something like that? (Well, terrible color now...)

Konstantin
@Kuklus23
@alpox not work this