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
vínαч puppαl
@vinaypuppal
@jjoshpoland use js section of codepen to write js code. see console for errors. move your js code to js section of codepen and try to click get quote btn it will work.
Josh
@jjoshpoland
oops, forgot to save it before linking ...
console isn't throwing errors
vínαч puppαl
@vinaypuppal
@jjoshpoland so what help you need with API's
Josh
@jjoshpoland
I can't figure out why that getJSON function won't execute. It won't even change the html on my targeted element. I'm wondering if it's because I didn't use the right API link or something
vínαч puppαl
@vinaypuppal
@jjoshpoland i saw u r pen now its throwing these errors
jquery-2.2.4.min.js:4 Mixed Content: The page at 'https://codepen.io/jjoshpoland/pen/RRZKzN?editors=0010' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://quotesondesign.com/api/3.0/api-3.0.json'. This request has been blocked; the content must be served over HTTPS.send @ jquery-2.2.4.min.js:4
jquery-2.2.4.min.js:4 XMLHttpRequest cannot load http://quotesondesign.com/api/3.0/api-3.0.json. Failed to start loading.
@jjoshpoland First let me tell u how to solve these than i will explain why u got these errors
@jjoshpoland instead of this urlhttp://quotesondesign.com/api/3.0/api-3.0.json use this https://crossorigin.me/http://quotesondesign.com/api/3.0/api-3.0.json
@jjoshpoland see i just prefixed u r quotes API url with https://crossorigin.me because your API wont allow CORS (https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS)
Joe
@JFSene
Any guide to help on the Portfolio challenge?
vínαч puppαl
@vinaypuppal
@jjoshpoland so to bypass that we need to use proxy server like https://crossorigin.me
Josh
@jjoshpoland
ok, that got the code running. thank you. But, I don't know how to get the quote out of whatever is being returned by the API. Also, the errors weren't showing up on my console. Am I doing something wrong with that?
Marc Droz
@b1tc0de
hi everyone, i finished the tribute page but the bootstrap does not seem to be active, if i am not mistaken it does that automatically in codepen?
vínαч puppαl
@vinaypuppal
@jjoshpoland let me check your pen
Marc Droz
@b1tc0de
how do i share it correctly?
vínαч puppαl
@vinaypuppal
@jjoshpoland did u save i see old code only
Josh
@jjoshpoland
@b1td0wn you need to activate it in the html settings. its under quick-add under CSS
saved
vínαч puppαl
@vinaypuppal
@b1td0wn https://medium.freecodecamp.com/codepen-tips-and-best-practice-cf926ebd0b11#.f7wvz15v4 read this article to know how to work in codepen
Marc Droz
@b1tc0de
thanks @jjoshpoland @vinaypuppal
CamperBot
@camperbot
b1td0wn sends brownie points to @jjoshpoland and @vinaypuppal :sparkles: :thumbsup: :sparkles:
:cookie: 435 | @vinaypuppal |http://www.freecodecamp.com/vinaypuppal
:cookie: 264 | @jjoshpoland |http://www.freecodecamp.com/jjoshpoland
vínαч puppαl
@vinaypuppal
@jjoshpoland just add this it will work
html = json.quote
the doer
@ewathedoer
Looking for the feedback on the new version of my Simon Game http://theonewhodo.es/simon-game/
I’m not sure why sometimes it does not play on mobile devices. Any feedback or help about the mentioned bug would be appreciated :)
Josh
@jjoshpoland
thanks!
thanks @vinaypuppal
CamperBot
@camperbot
jjoshpoland sends brownie points to @vinaypuppal :sparkles: :thumbsup: :sparkles:
:cookie: 436 | @vinaypuppal |http://www.freecodecamp.com/vinaypuppal
vínαч puppαl
@vinaypuppal
@jjoshpoland because this is returned from API
{
author:"Ludwig Wittgenstein"
id:933
permalink:"http://quotesondesign.com/?p=933"
quote:"Everything that can be said, can be said clearly.  "
}
Josh
@jjoshpoland
did you just put the json object into the html to get that?
vínαч puppαl
@vinaypuppal
help format @jjoshpoland
CamperBot
@camperbot

:point_right: code formatting [wiki]

Multi line Code

```js ⇦ Type 3 backticks and then press [shift + enter ⏎] (type js or html or css)

<paste your code here>,
then press [shift + enter ⏎]

``` ⇦ Type 3 backticks, then press [enter ⏎]

Single line Code

This an inline `<paste code here>` code formatting with a single backtick() at _start_ and _end_ around thecode`.

See also: ☛ How to type Backticks | ☯ Compose Mode | ❄ Gitter Formatting Basics

:pencil: read more about code formatting on the FCC Wiki

dimitrije12
@dimitrije12
@vinaypuppal do you know how can i fix async problem
i tried adding $.ajaxSetup({
async: false
}); to my code
but it returns only last element of my array of streamers
vínαч puppαl
@vinaypuppal
@dimitrije12 share your pen url again i will try to debug
dimitrije12
@dimitrije12
vínαч puppαl
@vinaypuppal
@dimitrije12 so u can use Streamers array to generate req URL and find channel name from returned API instead of from Streamers array
@dimitrije12 data.stream.channel.name gives u Streamers name u have in array.
dimitrije12
@dimitrije12
@vinaypuppal ohh i get it, i will try it right now
vínαч puppαl
@vinaypuppal
@dimitrije12 but if stream is null then u may not get name
@dimitrije12 so u can request streamer info with this URL https://api.twitch.tv/kraken/users/
Example: https://api.twitch.tv/kraken/users/brunofin
dimitrije12
@dimitrije12
Yeah but then i cant get info if the user is streaming at the moment
njhudd
@njhudd
Hello! I've just finished my first Front End Project (pair programmed with @dhuddleston to help me with some of the basics). Any comments / critiques? http://codepen.io/njhudd/full/ZOqZRP/
dimitrije12
@dimitrije12
so i have to call two API's, one to get user info, and second to read if they are online or not @vinaypuppal
vínαч puppαl
@vinaypuppal
@dimitrije12 so u need to make two request
  • first to get stream info
  • second to get user/channel/streamer info
    if stream is null they are offline
Olga C
@Octopinky
@njhudd Its looking good! Great job
vínαч puppαl
@vinaypuppal
@njhudd Looks good. One suggestion read about media queries(http://www.w3schools.com/css/css_rwd_mediaqueries.asp) and use them to decrease the font size for small screens of title and paragraph. Rest all looks good
DoYouLoveGames
@DoYouLoveGames
hey yall, i just started writing my code on pen.io but for some reason the image ive selected isnt coming up.