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
CamperBot
@camperbot
:cookie: 331 | @silentarrowz |http://www.freecodecamp.com/silentarrowz
Gabriel Alexandre
@GabrielShaad
Is anybody available to help please?!
I tried everything that I can to center the navbar and it does not work: http://codepen.io/gabrielshaad/pen/BzLRdm?editors=1100
faraz
@silentarrowz
@GabrielShaad try putting it in a container div
Suzanne Atkinson
@AdventureBear
@silentarrowz yes it's here: http://codepen.io/AdventureBear/pen/jWqVYq
Aaron Hanna
@AaronHanna
var loc = {};

if ('geolocation' in navigator) {
  navigator.geolocation.getCurrentPosition(function success(pos){
    loc.lat = pos.coords.latitude;
    loc.lng = pos.coords.longitude;    
  });
}
loc at beginning = undefined
during if statment = {lat: 123, lng:123}
after if statement = undefined
Can anyone explain why the values that are put into the "loc" object revert back to undefined after the if statement is done?
Gabriel Alexandre
@GabrielShaad
@silentarrowz And how I center it?
Suzanne Atkinson
@AdventureBear
@silentarrowz it has a "human" mode where you play 2 player, and an "easy" mode where the conputer is smart but not unbeatable.
IndiraShrestha
@IndiraShrestha
@wearenotgroot I made some changes as per your suggestion
Suzanne Atkinson
@AdventureBear
I have yet to implement the unbeatable mode
IndiraShrestha
@IndiraShrestha
http://codepen.io/Indira_Leite/pen/rLMQYL?editors=0010
faraz
@silentarrowz
well, @AdventureBear . I tried it long ago, but somehow couldnt figure out how to make the computer smart. the algorithm seems too difficult
IndiraShrestha
@IndiraShrestha
@wearenotgroot the error is unexpected identifier
faraz
@silentarrowz
@GabrielShaad what exactly do you want to center? the text in the navbar or the full navbar?
putting it inside a container will put a gap between the edge of the page and the navbar and that's what I thought you wanted
@silentarrowz what does this code do in simon game
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@AdventureBear
Gabriel Alexandre
@GabrielShaad
@silentarrowz The text is already centered, what I want to center is the li elements when the page is on small resolution.
faraz
@silentarrowz
what does this code do in simon game
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
greg
@wearenotgroot
@IndiraShrestha you forgot ? on the url
Jonathan
@JonKaric
@silentarrowz Some elements add extra margin/padding. the * targets ALL elements, and box-sizing changes how the box model works
greg
@wearenotgroot
@IndiraShrestha /?method
faraz
@silentarrowz
@GabrielShaad no, usually what is done is that the links disappear into a small button that shows you the links when clicked on
IndiraShrestha
@IndiraShrestha
@wearenotgroot var url ='http://api.forismatic.com/api/1.0/method=getQuote&format=jsonp&lang=en&Key='+ key +'&jsonp=?';
faraz
@silentarrowz
try looking for the hamburger button
IndiraShrestha
@IndiraShrestha
this is my url
faraz
@silentarrowz
@GabrielShaad
Suzanne Atkinson
@AdventureBear
@silentarrowz the box-sizing attribute of border-box means that all the margin & padding will be part of the total width of the div (box). In the orginal css specs padding/margins added to the size of the div. So width: 100, margin: 10px would be an element 120px wide (original 100 plus 10 on right and 10 on left.
Gabriel Alexandre
@GabrielShaad
@silentarrowz I see, a toggle would be better in this case.
greg
@wearenotgroot

@IndiraShrestha

                                         this guy
                                             |
                                             v
var url ='http://api.forismatic.com/api/1.0/?method=getQuote&format=jsonp&lang=en&Key='+ key +'&jsonp=?';

the ? between / and method

Suzanne Atkinson
@AdventureBear
that makes it super difficult to do layout like hte mysimon. by using box sizing, the elements will remeain whatever width you chose to start
faraz
@silentarrowz
@GabrielShaad yeah, that's what I mean
Gabriel Alexandre
@GabrielShaad
@silentarrowz Thank you very much!
CamperBot
@camperbot
gabrielshaad sends brownie points to @silentarrowz :sparkles: :thumbsup: :sparkles:
:cookie: 332 | @silentarrowz |http://www.freecodecamp.com/silentarrowz
faraz
@silentarrowz
@GabrielShaad my pleasure
@AdventureBear you mean this is not the box model being used? it's something else??
IndiraShrestha
@IndiraShrestha
@wearenotgroot thank you
CamperBot
@camperbot
indirashrestha sends brownie points to @wearenotgroot :sparkles: :thumbsup: :sparkles:
:warning: indirashrestha already gave wearenotgroot points
greg
@wearenotgroot
@IndiraShrestha np
Nicky
@nickyjt16
I'm really struggling to get started on the random quote machine
Does it matter how you do it, as long as the end result is right?
JD Tadlock
@jdtdesigns
@nickyjt16 The design is freestyle. Just complete the user stories and the rest is up to you.
Nicky
@nickyjt16
Am I allowed to say what I'm planning, and maybe people could advise me if it's the tight track?
*right
Ada323
@Ada323
Hi guys, I'm working on the Wikipedia Viewer right now and I'm a bit stuck. I've gotten the random article to work, and when you type into my search bar my console log displays the API results as it's supposed to, but I'm having difficulty getting the results to display as a list on the page. Any help would be appreciated! Here's my codepen: http://codepen.io/ada323/pen/xVoXMR/?editors=0011
Jonathan
@JonKaric
@Ada323 because it's reloading the page as default. User return false; right at the end of your click function
@Ada323 well, submit function
Ada323
@Ada323
ahhhh ok cool! thank you!!