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
Ghost
@ghost~5a4a80acd73408ce4f859755
Now that is amazing, that's really cool
but my main issue was making a random sized and coloured fish at each click...
Tom
@moT01
start with putting a fish on in a random spot
get a random x and y
Math.floor(Math.random() * 20)) will give you a number between 0 and 19
you can console.log it to see for yourself
var random = Math.floor(Math.random() * 20));
console.log(random);
Ghost
@ghost~5a4a80acd73408ce4f859755
@moT01 im working on it but things just dont add up :(
ogwel5
@ogwel5
hi is there anyone who can help make my horizontal navigation bar be in straight?..getting that icon in the same line a others
Tom
@moT01
@ogwel5 i would use flexbox
you can align things vertically
Eric Weiss
@eweiss17
if you are recreating the google homepage, you can use the icons google provides, https://material.io/icons/
apps and notifications
Ghost
@ghost~5a4a80acd73408ce4f859755
@moT01 no luck maan :(
Tom
@moT01
why not
can you make a random number?
Ghost
@ghost~5a4a80acd73408ce4f859755
yes
but then to make it into a fish with all the shapes and coordinates....it just doesnt work out @moT01
ogwel5
@ogwel5
@moT01 @eweiss17 thanks..it has workedd
CamperBot
@camperbot
ogwel5 sends brownie points to @mot01 and @eweiss17 :sparkles: :thumbsup: :sparkles:
:cookie: 989 | @mot01 |http://www.freecodecamp.org/mot01
:cookie: 610 | @eweiss17 |http://www.freecodecamp.org/eweiss17
Barbara Pentoney
@flyfishingbarbara
@sjames1958gm are you still there...??
Christopher Susi
@chrisandsuch
Hey everyone, if anyone could take a look at this TicTacToe game I would greatly appreciate it. I’m having an issue for one player I can’t seem to get the code just right for the computer to always win. https://codepen.io/chrisandsuch/pen/XZRYZE
Gulsvi
@gulsvi
@krckyboy You might try one of the sites listed here: https://github.com/neutraltone/awesome-stock-resources#videos
Gulsvi
@gulsvi
@ogwel5
li.right img {
  vertical-align: middle;
}
LydaTech
@lydatech
@ogwel5 still around?
firefox14
@firefox14
no offense but your ai is a bit dumb on your tictactoe
oh nvm
Gulsvi
@gulsvi
@flyfishingbarbara Instead of messing around with global variables, make your buttons hyperlinks (keep the class names the same so they still look like buttons). Then you can just update the href= value for the twitter link every time someone clicks "Get Quote"

For example, with this HTML:

<a id="tweetIt" class="btn btn-primary text-light">Tweet It</a>

Update the href with:

$("#tweetIt").attr("href", tweetUrl);
Do everything in your getJSON callback function so the data[0] is in scope
Gulsvi
@gulsvi
(be sure to add target="_blank" for codepen)
LOVE2JOKEBRO
@LOVE2JOKEBRO
Hey all, I'm looking for a good, offline IDE that I can use to collaborate with friends on HTML/CSS docs...Hopefully something that allows me to either preview the code or launch it. I tried Notepad++ with NppDocShare however the plugin is apparently no longer compatible with recent versions. I also tried CodeShare.io ans was not at all impressed... Any ideas?
Brad
@bradtaniguchi
@LOVE2JOKEBRO Id consider learning git, if your planning to be a developer, its the reason why there isn't a be-all-endall collaborative IDE. But otherwise I heard Atom recently added support for realtime collaboration
aRtoo
@artoodeeto
hey guys im getting the dom element but im getting undefined when i specify the index. so weird. but on the others im getting the result.
   const submitBtn = document.getElementsByTagName('button');
    console.log(submitBtn[0]) // returns undefined
    const closeBtn = document.getElementsByClassName('fa-times');
    console.log(closeBtn[0]); // returns undefined
  const submitBtn = document.getElementsByTagName('button');
console.log(submitBtn) // returns an array
const closeBtn = document.getElementsByClassName('fa-times');
console.log(closeBtn); // returns an array
HerbiScript
@HerbiScript
Hi all, any feedback on my first project would be much appreciated. https://codepen.io/HerbiScript/pen/zRdwoN?editors=1100 - Just started coding yesterday and know I can improve my efficiency and cleanliness. Also curious if I should jump into some JavaScript before attempting to build my portfolio? Thank you!
Ken Haduch
@khaduch
@artoodeeto - have you posted a URL for your code?
Claudio Restifo
@Marmiz
Weird, do you have a snippet or a pen where we can see the actual code? @artoodeeto
aRtoo
@artoodeeto
@Marmiz @khaduch wait bro its on my local. ill create a pen. give me 3mins thanks so much. im confused
CamperBot
@camperbot
artoodeeto sends brownie points to @marmiz and @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 1159 | @marmiz |http://www.freecodecamp.org/marmiz
:star2: 3734 | @khaduch |http://www.freecodecamp.org/khaduch
aRtoo
@artoodeeto
@khaduch @Marmiz here you go bro. thank you so much
CamperBot
@camperbot
artoodeeto sends brownie points to @khaduch and @marmiz :sparkles: :thumbsup: :sparkles:
api offline