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
abhijith shenoy
@shenoyabhijith
how to remove the default padding
Sorin Ruse
@sorinr
@shenoyabhijith make h1{ margin: 0;}
abhijith shenoy
@shenoyabhijith
worked!
thanks @sorinr
CamperBot
@camperbot
shenoyabhijith sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
:star2: 1071 | @sorinr |http://www.freecodecamp.com/sorinr
Sorin Ruse
@sorinr
@shenoyabhijith welcome
abhijith shenoy
@shenoyabhijith
:+1:
how can i just move the text
without effecting the block
abhijith shenoy
@shenoyabhijith
i want some padding around the weather app

padding

Sorin Ruse
@sorinr
@shenoyabhijith you can add text-align: center; to your h1
@shenoyabhijith if you want it centered ofc
abhijith shenoy
@shenoyabhijith
okay
how to make secondary block go behind content
Avinash camma
@avinashcamma
hey do we get feedback? on our project from freeCodeCamp?
Sorin Ruse
@sorinr
@shenoyabhijith add position: relative; to .content
Avinash camma
@avinashcamma
Any one?
Sorin Ruse
@sorinr
for?
Sorin Ruse
@sorinr
@avinashcamma oh. haven't seen your question above. just share your pen link and we will give you feedback on it :)
h1tag
@h1tag
Hey, I'm on the Show the Local Weather project, I'm using the recommended [Open Weather API]: (https://openweathermap.org/current#geo) to get the weather info. I'm getting this error: http://api.openweathermap.org/data/2.5/weather?lat=undefined&lon=undefined&appid=bbcfc4b3596f6707ba393430fbfbcfb6 Failed to load resource: the server responded with a status of 502 (Bad Gateway). Here's my codepen: (http://codepen.io/FortMax/pen/wgGdGR)
Sorin Ruse
@sorinr
@fortMaximus you can't use openweather along with geolocation coz geolocation works only on https and free openweather account works on http only
h1tag
@h1tag
@sorinr what's the alternative?
Sorin Ruse
@sorinr
@fortMaximus you can use an ip api location along with openweather or use another weather api that supports https like apixu.com or others
@fortMaximus the bad thing using ip location is that if a user has a dynamic ip you may get wrong location most of the time
h1tag
@h1tag
Are you sure (that you can't use them with each other)? I mean aren't they (geolocation and openweather api) being executed in separate requests, you get the data (decimal) from one (geolocation) and you put in a another (openweather api request)
@sorinr
Sorin Ruse
@sorinr
@fortMaximus try loading your pen over https and console.log(position) before lat = position.coords.latitude; and you will see you get the position coordinates. after in the console using dev tools you will see something like:
Mixed Content: The page at 'https://codepen.io/FortMax/pen/wgGdGR' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://api.openweathermap.org/data/2.5/weather?lat=undefined&lon=undefined&appid=bbcfc4b3596f6707ba393430fbfbcfb6'. This request has been blocked; the content must be served over HTTPS.
h1tag
@h1tag
@sorinr I also think that codepen itself doesn't accept non https requests, because on the random quote generator project, I was using an api url with http, the console was saying something like: it doesn't allow request over http, i.e. it must be secure (https). Idk, I'm confused
Sorin Ruse
@sorinr
@fortMaximus codepen works both on http and https. but if you load the pen over http and you make ajax calls using https it will not work. and viceversa
h1tag
@h1tag
yea, true. I remember that this maybe happened after I added the tweet button (which uses https) to the random quote generator project
abhijith shenoy
@shenoyabhijith
how to make secondary block
appear to 100px top
6thSen
@6thSen
hi anybody else experience this error when trying to call an API from Codepen?
XMLHttpRequest cannot load https://crossorigin.me/http://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1&_=1484213003372. The 'Access-Control-Allow-Origin' header contains multiple values '*, https://s.codepen.io', but only one is allowed. Origin 'https://s.codepen.io' is therefore not allowed access.
Sorin Ruse
@sorinr
@6thSen just load your pen over http not https and remove the https://crossorigin.me/ from your url and it will work
6thSen
@6thSen
@sorinr you rock! thanks!
CamperBot
@camperbot
6thsen sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
:star2: 1072 | @sorinr |http://www.freecodecamp.com/sorinr
Sorin Ruse
@sorinr
@6thSen welcome. i would advice you to put all the logic of requesting a new quote into a separate function like getQuotes(logic in here) and call this function in docready and also when you click the new quote btn
abhijith shenoy
@shenoyabhijith
search icon
not aligning r8
i want it parallel to weather
right center