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
Harry Adel
@harryadel
@Cookcha No, it was really nice
vínαч puppαl
@vinaypuppal
@gonzalezi2 so initial hello world is show whenever that button is clicked
Harry Adel
@harryadel
you can even make it better by making it scroll upwards instead of jumping right away
and there's this one thing which I'm not sure if it's just me but when I resize the window the images don't seem perfectly centered
they are positioned slightly to the right, I suppose
Ivan
@gonzalezi2
@vinaypuppal except I was able to change the href attribute to static text. Just can
can
can't use a variable
Chandice
@Cookcha
@Harry97 Yes, I tried the scrolling bit with js but it didn't want to work properly, I don't know enough about it to figure out why yet. I just thought I'd add that later once I got a bit more knowledge of the code. As far as the images you're right, I'm not sure why they are doing that... I'm going to try vertically aligning them because text align did nothing apparently... I'm not really sure why. I'm using bootstrap for them so I'm not sure why they aren't doing what they should.
Ajay Tanwar
@ajayt365
@sorinr you are saying that 'a' does not have white color from '.btn' class as it has its own color ?
Ivan
@gonzalezi2
@vinaypuppal That is a different link they're using though. They're changing the data-text attribute and using the <a href="http://twitter.com/share" class="twitter-share-button" data-text="">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> link for the button which is different than mine.
vínαч puppαl
@vinaypuppal
@gonzalezi2 since you added a class twitter-share-button to #tweetText it will be replaced by iframe
Ivan
@gonzalezi2
And like I said, I am able to change the link to static text
ah yes you're right. Just looked at the console
Is it possible to make my own button and not use theirs but keep the same function?
vínαч puppαl
@vinaypuppal
@gonzalezi2 yes u need to write a work around like this http://jsfiddle.net/chris27/DQw5b/4/
@gonzalezi2 yes u can use u r own btn also
@gonzalezi2 For reference this is what i did
$('#share-tw').on('click', function(e) {
    e.preventDefault();
    window.open('http://twitter.com/share?text=' + encodeURIComponent(randomQuoteText) + ' ' + 'By ' + encodeURIComponent(randomQuoteTextBy));
  });
@gonzalezi2 i created my own btn and attached a click handler to it like abv
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