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
Toby J. Henderson
@Mr-Henderson
np
Veronica Eulenberg
@HappyViki
How do I get json from wikipedia?
ibtehaj raza
@ibtehajraza
no but i dont want to copy past
thanks though
Toby J. Henderson
@Mr-Henderson
what challenge number?
for the JSON wikipedia was that the maps challenge
can you post code here
with back ticks (shift enter) copy paste code then 3 more back ticks
<script>
  $(document).ready(function() {
    $('button').addClass("animated bounce");
  });
</script>

<!-- Only change code above this line. -->

<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <h4>#left-well</h4>
      <div class="well" id="left-well">
        <button class="btn btn-default target" id="target1">#target1</button>
        <button class="btn btn-default target" id="target2">#target2</button>
        <button class="btn btn-default target" id="target3">#target3</button>
      </div>
    </div>
    <div class="col-xs-6">
      <h4>#right-well</h4>
      <div class="well" id="right-well">
        <button class="btn btn-default target" id="target4">#target4</button>
        <button class="btn btn-default target" id="target5">#target5</button>
        <button class="btn btn-default target" id="target6">#target6</button>
      </div>
    </div>
  </div>
</div>
also dont forget to click chat mode this will allow you to post terminal
Veronica Eulenberg
@HappyViki
@Mr-Henderson I just need an example link. I can’t find one anywhere. I need a link that gives me the json of a wikipedia page.
Tom
@moT01
https://en.wikipedia.org/w/api.php?action=query&format=json&generator=random&grnnamespace=0&grnlimit=20&prop=pageimages|extracts&pilimit=max&exintro&explaintext&exsentences=6&exlimit=max&callback=? this is what i ended up with for my random wikis after playing with it for quite a while @HappyViki
Veronica Eulenberg
@HappyViki
@moT01 ooooh thanks
CamperBot
@camperbot
happyviki sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
:cookie: 725 | @mot01 |http://www.freecodecamp.com/mot01
Lukas
@thegreatkoe

Hey guys,

i just finished my tribute-page.
I know there are still a few bugs in the code, like the pictures or the the centering of the iframe when scaling the browser window down.
I would really appreciate your feedback. on the page and if you have some tips concerning the bugs please let me know (:

Project link: https://codepen.io/thegreatkoe/full/BZaVGr/

CallMeOrange
@EgnaroDev
@thegreatkoe the page looks fine to me and nice project
Lukas
@thegreatkoe
@MCTwoDigitZero thanks mate (:
CamperBot
@camperbot
thegreatkoe sends brownie points to @mctwodigitzero :sparkles: :thumbsup: :sparkles:
:cookie: 164 | @mctwodigitzero |http://www.freecodecamp.com/mctwodigitzero
CallMeOrange
@EgnaroDev
@thegreatkoe Is this first time making a project? have you experienced html/css before starting fCC?
Tom
@moT01
@thegreatkoe some sort of goofy feeling behavior using the vh, but it seems to work good enough
Ravi Kishore Thella
@ravikishorethella
@thegreatkoe looks good :clap: good work
Lukas
@thegreatkoe

@MCTwoDigitZero this is my first time making a project!
@moT01 yeah I know, but it was the only way i got the single-page layout to work for me :/ . Would you say working with percentage is the better way?

@ravikishorethella thank you (:

CamperBot
@camperbot
thegreatkoe sends brownie points to @mctwodigitzero and @mot01 and @ravikishorethella :sparkles: :thumbsup: :sparkles:
:warning: thegreatkoe already gave mctwodigitzero points
:cookie: 726 | @mot01 |http://www.freecodecamp.com/mot01
:cookie: 669 | @ravikishorethella |http://www.freecodecamp.com/ravikishorethella
Ravi Kishore Thella
@ravikishorethella
@thegreatkoe :+1:
Thomas Lawless
@tlawless94
Would anyone know why this code generates an infinite number of arrays? newBoard is a tic tac toe board state represented by an array like [0,0,0,0,1,0,2,0,0] with 1's representing a human player's move and 2 a cpu's. Why are my return statements not stopping the recursive calls (this is what I assume is happening)?
function AIMove (newBoard) {

  if (checkWinState(newBoard, 1)){
    console.log("winstate1");
    return -10 + depth;
  } else if (checkWinState(newBoard, 2)){
    console.log("winstate2");
    return 10 - depth;
  } else if (checkStalemate(newBoard)){
    console.log("winstate3");
    return 0;
  }

  depth++;
  var openSpaces = getOpenSpaces(newBoard);
  //not working
  if (playerTurnStatus){
    for (var i = 0; i < openSpaces.length; i++){
      var newBoardCopy = newBoard.slice();
      newBoardCopy[openSpaces[i]] = 1;
      possibleNextStates.push(newBoardCopy);
    }
  } else {
    for (var i = 0; i < openSpaces.length; i++){
    var newBoardCopy = newBoard.slice();
    newBoardCopy[openSpaces[i]] = 2;
    possibleNextStates.push(newBoardCopy);
    }
  }
  playerturnStatus = playerTurnStatus? false: true;
  console.log(possibleNextStates);
  possibleNextStates.forEach(function(state){
    AIMove(state)
  });

}
CallMeOrange
@EgnaroDev
@thegreatkoe if thats true then you are off to good start
Gulsvi
@gulsvi
@tlawless94 Just a guess, but could it be the lower case 't' in playerturnStatus = playerTurnStatus? false: true;
Seems playerTurnStatus isn't getting set to false
CallMeOrange
@EgnaroDev
@SkyC0der I stayed awaken for two days
1.5 days maybe
Lukas
@thegreatkoe
@MCTwoDigitZero but i have to admit i had to google quite a lot ^^
CallMeOrange
@EgnaroDev
I see
Gulsvi
@gulsvi
lol @MCTwoDigitZero why? :)
Thomas Lawless
@tlawless94
thanks @SkyC0der
CamperBot
@camperbot
tlawless94 sends brownie points to @skyc0der :sparkles: :thumbsup: :sparkles:
:star2: 1749 | @skyc0der |http://www.freecodecamp.com/skyc0der
CallMeOrange
@EgnaroDev
@SkyC0der I didnt want to sleep lol during watching anime I realized it was already morning
Then went to work on tribute page and I was like "Okay I finished all preparations for tomorrow"
Gulsvi
@gulsvi
Nice :)
CallMeOrange
@EgnaroDev
What? tomorrow?
Gulsvi
@gulsvi
When you hear the birds and you haven't gone to sleep yet....
CallMeOrange
@EgnaroDev
L
1/2 of halfway there
Lukas
@thegreatkoe
@MCTwoDigitZero looks really nice!
Gulsvi
@gulsvi
Very good :)