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
Ivan
@gonzalezi2
@vinaypuppal did you come up with that on your own? I'm hesitant to use other people's code without really understanding or learning from it
vínαч puppαl
@vinaypuppal
@gonzalezi2 that share url i found by googling
and i used encodeURIComponent(randomQuoteText) because quote may have : ; which need to be escaped in url otherwise it may cause some problem
Ivan
@gonzalezi2
instead of encodeURI?
dimitrije12
@dimitrije12
http://codepen.io/dimitrije/pen/rLqjbJ Why does my code return undefined, instead of steamer names
vínαч puppαl
@vinaypuppal
@gonzalezi2 whats u r question?? And i found share url may be from here i think (i dont remember exactly )http://stackoverflow.com/questions/6208363/sharing-a-url-with-a-query-string-on-twitter#answer-20832477
Ivan
@gonzalezi2
@vinaypuppal I'm already using that intent-tweet link. Also, none of my quotes have : in them so I don't have that problem. I'll try the solutions you shared. Thanks
CamperBot
@camperbot
gonzalezi2 sends brownie points to @vinaypuppal :sparkles: :thumbsup: :sparkles:
:cookie: 433 | @vinaypuppal |http://www.freecodecamp.com/vinaypuppal
vínαч puppαl
@vinaypuppal
@dimitrije12 hey getJSON is async . so by the time ajax req(getJSON) is complete the value of i of for loop will be 10 and you are adding Streamer[10] to div which is undefined u r getting undefined on screen 10 times
Josh
@jjoshpoland
I'm stuck on the random quote generator. Maybe I just don't understand how to read api's, but I can't get my .getJSON method to work. https://codepen.io/jjoshpoland/pen/RRZKzN
dimitrije12
@dimitrije12
@vinaypuppal thanks, i will try to fix it
CamperBot
@camperbot
dimitrije12 sends brownie points to @vinaypuppal :sparkles: :thumbsup: :sparkles:
:cookie: 434 | @vinaypuppal |http://www.freecodecamp.com/vinaypuppal
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