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
SakisBal
@SakisBal
are these empty cells objects?
Markus Kiili
@Masd925
@SakisBal Empty cells?
Jigal Sanders
@sandersjj
@SakisBal some are empty array objects
SakisBal
@SakisBal
when i call .length to these arrays i get back 0 while when i press on them on the console they seem to have things inside them
Markus Kiili
@Masd925
@SakisBal Only numeric property keys affect length.
Sorin Ruse
@sorinr
@sandersjj you defined your function as: function getData(units){....} so the function expects some "units" to be passed in. where do u do that?
SakisBal
@SakisBal
its weird that i push numbers inside this array but it returns an array object...
IvanKuzaev
@IvanKuzaev
@sandersjj You'd better use https://ipinfo.io/json instead of geolocation, look at my example https://codepen.io/Ivan041/pen/qPLJbe
Jigal Sanders
@sandersjj
@sorinr Thanks for thinking with me. If you look inside the getData Function you see a fallback in case the parameter is empty. Also I solved my second fetch problem. It wasn't necessary anymore. I made it way to complicated.
CamperBot
@camperbot
sandersjj sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
:star2: 1376 | @sorinr |http://www.freecodecamp.org/sorinr
Sorin Ruse
@sorinr
@IvanKuzaev i would use ip location only as a fallback to geolocation if the user blocks the reveal of his location but the ip location is not very accurate
@sandersjj :+1: know its working for me and it shows the right weather and the right location. maybe you should work a little on design(css) part
Jigal Sanders
@sandersjj
@sorinr I know. First I wanted to get the logic working. Now the Css part. Which I don't find hard. The hardest part is designing something which satisfies me ;-)
Sorin Ruse
@sorinr
@IvanKuzaev why all that countries array if the api returns country 2digits code and you can make a call to countries api to find the full name ?
Sulkhan Abashidze
@sulkhaniaba
Hi, can you guys please help me. how can i make a share button?
i'm working now on random quote project.
Jigal Sanders
@sandersjj
@sulkhaniaba it's actually very easy. Here you will find some example codes https://dev.twitter.com/web/tweet-button
SakisBal
@SakisBal
you use <a href="the url of the website you want"><an element></a> its called a hyperlink and you wrap it around any element you want
IvanKuzaev
@IvanKuzaev
@sorinr You are right. I now use https://freegeoip.net/json/, it's geoccordinates, country and city name and IP in one package. :)
Sorin Ruse
@sorinr
@IvanKuzaev :+1: two in one
Sulkhan Abashidze
@sulkhaniaba
@SakisBal how can i take a content of website to sheare
SakisBal
@SakisBal
so want you want to do is press a button and make the user move from your website to that website right?
Sulkhan Abashidze
@sulkhaniaba
not realy
not like, <a href = 'www.site.com'>
SakisBal
@SakisBal
it depends on the content you want to take
Sulkhan Abashidze
@sulkhaniaba
https://codepen.io/freeCodeCamp/full/ONjoLe i'm trying to do like this page
SakisBal
@SakisBal
he probably stored a list of quotes in an array and iterates through the array showing the content on his project
he doesnt directly take the content (probably)
he used api actually he takes the stuff directly from a website but you dont have to do that
BuntyBru
@BuntyBru
@sorinr
could you just try running
console.log(name); in your mozilla console
do not define the variable "name"
just do
console.log(name);
Riadh
@KWFE
hey
Sorin Ruse
@sorinr
@BuntyBru can u reshare the pen link
Shubham Sharma
@shubham1604
He guys
anyone up?
I need a bit of help
Hey*
Nick Karnik
@theoutlander
what do you need
Shubham Sharma
@shubham1604
So, I am working on the random quote machine and I need to align my quote box at the center of the page
I came across flex box model
but that centers the flex items in the dlex container
but I want to align them at the center of the page not any container
So, how do i do that?
I also want to ask if making body tag a flex container a right way to do this?
Nick Karnik
@theoutlander
ok
See if you can learn from here https://philipwalton.github.io/solved-by-flexbox/
Anshul Adlakha
@anshuladlakha
does anyone here has any experience with the reddit API?
Nick Karnik
@theoutlander
tbis one specifically