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
Matt Yamamoto
@MattYamamoto
@Llandy3d your var location seemes to be causing your issue. I don't think that's a JS reserved word, but maybe it is in use by codepen? Not sure. Either rename that var, and/or (maybe "and" is best) wrap all your code in a function... since you're using jQuery just wrap it all in a $(document).ready(function() { }) to locally scope your var. But probably best to also rename it.
Llandy3d
@Llandy3d
@MattYamamoto yeah noticed the name was causing the strange bug, new question thou I think this one will be hard, on line 10 now I got an alert();, if I remove it the code doesn't work, how is this even possible ? http://codepen.io/Llandy3d/pen/eZYPYN
Bruce Young
@mutantspore
@Llandy3d is this legal function updateWeather(units = 'metric') {
Llandy3d
@Llandy3d
@mutantspore yeah, the code with problems is only on line 1-10, everything else worked perfectly before the so added lines
Joseph Morse
@jnmorse
function updateWeather(units = 'metric') is only legal in es6 syntax, so less your using babel, won't work
Bruce Young
@mutantspore
@Llandy3d also you’ll have to call the updateWeather from inside the location finding function
@Llandy3d and some of the variables are out of scope
Nerando Johnson
@nerajno
ok can I use bootstrap building my tribute page ?
Bruce Young
@mutantspore
@nerajno yes the example does
Nerando Johnson
@nerajno
thank you
Llandy3d
@Llandy3d
@mutantspore I wanted to have a global variable address that would be changed first by the code to find the address and second be used by the code that gets the weather, this is possible right ?
Bruce Young
@mutantspore
@Llandy3d removing that units bit and calling the updateWeather from within the location function.
http://codepen.io/MutantSpore/pen/GZRPbx?editors=1010
the getjson process are asynchronous
one has to be called from the other as you don’t know when it will be finished
Llandy3d
@Llandy3d
oh I understand it now, then that's explains why the random alert was making it work
Gordon Davidescu
@gordondavidescu
hey all. i'm having a dumb dude moment with mismatched brackets. looking at the first dozen lines are making my eyes bleed. can someone help me see where I am not closing properly
Llandy3d
@Llandy3d
@gordondavidescu seems like line 17 after the }
Gordon Davidescu
@gordondavidescu
am I missing one?
I mean am I missing a bracket?
Pete
@petegarvin1
hey all, can you give me some feedback on this wiki viewer :D
http://codepen.io/petegarvin1/pen/JXjJrx
Llandy3d
@Llandy3d
@gordondavidescu );
Gordon Davidescu
@gordondavidescu
THANK YOU @Llandy3d
CamperBot
@camperbot
gordondavidescu sends brownie points to @llandy3d :sparkles: :thumbsup: :sparkles:
:star: 274 | @llandy3d | http://www.freecodecamp.com/llandy3d
Llandy3d
@Llandy3d
@gordondavidescu no worries
Pete
@petegarvin1
@gordondavidescu
geocoder.geocode({
      'latLng': latlng
    }, function(results, status) {
      $scope.$apply(function() {

            if (status == google.maps.GeocoderStatus.OK) {

              if (results[0]) {
                for (var i = 0; i < results[0].address_components.length; i++) {
                  var postalCode = results[0].address_components[i].types;
                alert(postalCode);
                }

              }
            }
      });
                    }
                    );
Gordon Davidescu
@gordondavidescu
thanks @Spacecamel100
CamperBot
@camperbot
gordondavidescu sends brownie points to @spacecamel100 :sparkles: :thumbsup: :sparkles:
:star: 331 | @spacecamel100 | http://www.freecodecamp.com/spacecamel100
Pete
@petegarvin1
@gordondavidescu no probs, i've lost many hours to the same issue
Gordon Davidescu
@gordondavidescu
I did a little googling and came up with that for javascript zip code from geolocation
unfortunately, it absolutely still does not work
apparently geocoder is ruby on rails?
when I try to use the API from weather underground for latitude and longitude, it doesn't work
its api for using zip code does work, so I was hoping to find zip code using geolocation
but doing that turned into another thing that didn't worked
*didn't work
and meanwhile my 22 month old daughter (can I call her 2 years old yet) is running around the living room screaming and destroying everything when she's not sneezing on said things
Gordon Davidescu
@gordondavidescu
she just discovered the joy of sticking a finger in my ear. joy for only one of us.
Lanitta
@DivaWeb
hello my fellow campers
Gordon Davidescu
@gordondavidescu
good lord absolutely nothign i have done today has worked
ZERO THINGS
nsloc22
@nsloc22
@gordondavidescu seems about right in dev world
Gordon Davidescu
@gordondavidescu
I'm better off deleting everything I've written today and starting again from 0
Lanitta
@DivaWeb
@gordondavidescu close your eyes count to 50
Gordon Davidescu
@gordondavidescu
lol thank you @DivaWeb
CamperBot
@camperbot
gordondavidescu sends brownie points to @divaweb :sparkles: :thumbsup: :sparkles:
:star: 239 | @divaweb | http://www.freecodecamp.com/divaweb
Lanitta
@DivaWeb
@gordondavidescu sometimes just removing your eyeballs from the screen makes difference lol