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
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
sennator
@sennator2
hi guys
do we have to know the stuff we copy when we use API
i mean i could not write that stuff by myself in a decade
or point is just to understand what it do
?
Sorin Ruse
@sorinr
@shenoyabhijith center to what?
Sorin Ruse
@sorinr
@sennator2 try to read the docs, look at the examples given by each api and understand what will be the response you get when calling that api. most of the apis have pretty much the same kind of url structure
sennator
@sennator2
@sorinr thanks
CamperBot
@camperbot
sennator2 sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
:star2: 1073 | @sorinr |http://www.freecodecamp.com/sorinr
sennator
@sennator2
im pretty much overwhelmed with the stuff i just saw
so not sure if we are supose to be able to come up with this stuff by ourselves
or we just need to know how to manipulate this
Sorin Ruse
@sorinr
@sennator2 don't worry about that. its normal for the beginning. with time it will seem a piece of cake
sennator
@sennator2
@sorinr hope so :)
Sorin Ruse
@sorinr
@sennator2 read a lot, practice/fail a lot and step by step you will learn.
sennator
@sennator2
@sorinr can you tell me why it wont display a second quote when i click the button?
Akash Kumar Verma
@AkashKumarVerma
@shenoyabhijith what do you you want it just beside the weather text or what
Sorin Ruse
@sorinr
@sennator2 why do u call http://wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1 on click event? and not same api http://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1&callback=
Clyde Lobo
@oppiniated
@sennator2 your are missing http://quotesondesign.com in your ajax call
sennator
@sennator2
@oppiniated @sorinr thanks :))
Sorin Ruse
@sorinr
@sennator2 i would place all api call and logic into an unique function like getQuotes(logic in here) and call this function on both doc ready or btn click event
CamperBot
@camperbot
sennator2 sends brownie points to @oppiniated and @sorinr :sparkles: :thumbsup: :sparkles:
:warning: sennator2 already gave sorinr points
:cookie: 492 | @oppiniated |http://www.freecodecamp.com/oppiniated
sennator
@sennator2
@sorinr i will do that as soon as I figure out what it means :D
@sorinr just kidding i'll give it a try :)
Tomas
@TOMEJUS
Hey everyone! hope everyone is fine!
Sorin Ruse
@sorinr
@sennator2 :+1:
@TOMEJUS hi
Akash Kumar Verma
@AkashKumarVerma
@TOMEJUS hi