Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 19 2020 20:09
    @krisb1220 banned @Gastony
  • May 14 2020 22:39
    @bjorno43 banned @minitechtips_twitter
  • May 14 2020 22:38
    @bjorno43 banned @real-action
  • Feb 01 2020 00:27
    @bjorno43 banned @Ndoua
  • Jan 07 2020 03:10
    @bjorno43 banned @doctor-sam
  • Aug 17 2019 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 2019 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 2019 17:13
    @mstellaluna banned @cmal
  • Jan 08 2019 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
Tyler Moeller
@TylerMoeller
^^ hope that helps get you on the right track at figuring out the CSS requirements
abhijith shenoy
@shenoyabhijith
how to add twitter share button to random quote generator
Megan
@megan32
@shenoyabhijith we were just talking about this. I think there are a few ways to do it. Check out jQuery window.open
abhijith shenoy
@shenoyabhijith
window.open?
Megan
@megan32
but also check out the jQuery link, you might need it too
abhijith shenoy
@shenoyabhijith
i wanna propulate the tweets
and just tweet the quotes out
i dont wanna just open the site
Megan
@megan32
oh so that the quote automatically generates in the twitter window?
abhijith shenoy
@shenoyabhijith
ya
window open is same as that of <a> anchor tag
Megan
@megan32
yeah, so you need to add the link to twitter and then the $() for your text...like this: 'https://twitter.com/intent/tweet?text=' + $("h3").html());
I'm sure someone can explain it more eloquently (haha js pun..anyone?), but that's the quick answer
Alexeggers
@Alexeggers
Hey guys, does anyone here have experience with flexbox? I am trying to force some flex-items to shrink, but they don't http://codepen.io/alexandereggers/pen/BpjLxP
abhijith shenoy
@shenoyabhijith
text wrapped in h3 @megan32
?
Megan
@megan32
sorry, just an example. My tweets for example are in <h3> tags so to get them for twitter I used $(h3), but as I understand it this could be a variety of other things
abhijith shenoy
@shenoyabhijith
okay
im pretty clear with the concept
but here by quotes appear dynamically from the api
i need to make button also
Megan
@megan32
oh, I did not do an api...you are officially outside my realm of knowledge. I don't want to steer you wrong, sorry :-(
Alexeggers
@Alexeggers
@shenoyabhijith You are trying to fill your quote element with a quote from an api?
abhijith shenoy
@shenoyabhijith
yes
ill share a link to codepen
Alfian Akmal Hanantio
@amalhanaja
Hello
How to add a Header to getJSON ?
MaxLAB
@Max-LAB
@amalhanaja Hello
Alexeggers
@Alexeggers
@shenoyabhijith Not sure how that works, I didnt you Jquery to get an api but instead saved the json in an object and then always took from that what I needed
MaxLAB
@Max-LAB
@amalhanaja is it posible for you to use $.ajax
Alexeggers
@Alexeggers
@shenoyabhijith do you know the structure of the json object that is returned?
Sorin Ruse
@sorinr
@shivanksharma91 this is what you want ?
Alfian Akmal Hanantio
@amalhanaja
@Max-LAB thanks man!
abhijith shenoy
@shenoyabhijith
api returns quotes
Alfian Akmal Hanantio
@amalhanaja
@Max-LAB thanks
abhijith shenoy
@shenoyabhijith
check the codepen
CamperBot
@camperbot
amalhanaja sends brownie points to @max-lab :sparkles: :thumbsup: :sparkles:
:cookie: 280 | @max-lab |http://www.freecodecamp.com/max-lab
Alfian Akmal Hanantio
@amalhanaja
@shenoyabhijith thanks
CamperBot
@camperbot
amalhanaja sends brownie points to @shenoyabhijith :sparkles: :thumbsup: :sparkles:
:cookie: 262 | @shenoyabhijith |http://www.freecodecamp.com/shenoyabhijith
Alexeggers
@Alexeggers
@shenoyabhijith there is a bug in your code, I would fix that before attempting to solve your problem
abhijith shenoy
@shenoyabhijith
whats the bug
Alexeggers
@Alexeggers
@shenoyabhijith I don't know, but there is an uncaught syntax error. You probably have a bracket missing in your javascript or something. Open up the console on your browser, itll tell you where it is

@shenoyabhijith 'https://twitter.com/intent/tweet?text=' + $("p").html());

The last bracket needs to go