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
1rjun
@1rjun
i want to put the text on that side
Shinichi_Kudo
@Krato5
@Rogue00 u can contact @AryanJ-NYC he have know about tic tac toe i was visit his repo
Ghost
@ghost~56bd2077e610378809c105cd
thanks @Krato5
CamperBot
@camperbot
rogue00 sends brownie points to @krato5 :sparkles: :thumbsup: :sparkles:
:cookie: 5 | @krato5 |http://www.freecodecamp.org/krato5
Shinichi_Kudo
@Krato5
:)
primuscovenant
@primuscovenant
@heroiczero thx
CamperBot
@camperbot
primuscovenant sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 2115 | @heroiczero |http://www.freecodecamp.org/heroiczero
Sorin Ruse
@sorinr
@1rjun here how you can do it
IvanKuzaev
@IvanKuzaev
Hello!
BuntyBru
@BuntyBru
any one using mozilla firefox browser?
?
?
Sorin Ruse
@sorinr
@BuntyBru yep. whats the problem?
Jigal Sanders
@sandersjj
Hello Everyone. I am working on the weatherapp challenge. I am using the openweathermap API. I am doing two call's one to get the current weather and one to get the corresponding weather Icon. The first fetch goes without any problems. However the second fetch gives some CORS errors. I have tried a few things to get around but so far I didn't get it working. Sl
So here is my codepen: https://codepen.io/dubbeltje/pen/NXRXZq?editors=0010. Would appreciate some help. Thanks
Sorin Ruse
@sorinr
@sandersjj take a look in your js code how do you call your getData(); function and imagine what happens on document ready
SakisBal
@SakisBal
@sorinr i need some help as well
i got a question
Jigal Sanders
@sandersjj
@sorinr I realized I called the getData function twice. One within the document reawdy and one outside. I removed the one outside the document ready. However this doesn't solve the issue
SakisBal
@SakisBal
image.png
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)