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
Mark
@mlawson3691
have a good night! :)
Tiffany White
@twhite96
Can someone help with this Random Quote Generator? I can't seem to figure out why [Object object] is being entered into the tweet box. Here is my CodePen: http://codepen.io/twhite96/pen/XKqrJX
Taylor
@admiraltaylor
@twhite96 that means that whatever you code is calling is coming back as an array rather than the object you're looking for
so instead of coming back as "quote" it's ["quote]
er
["quote"]
Tiffany White
@twhite96
Oh. Okay. Hmmm. I fixed that in a previous iteration
But I wanted to add more features and have forgotten how I fixed it.
DJ
@qualitymanifest
@twhite96 quotebox is an html element
Taylor
@admiraltaylor
but since it says "object object" that probably means it's returning [something:"something"]
Tiffany White
@twhite96
Okay @qualitymanifest
DJ
@qualitymanifest
@twhite96 you only want the text from that html element
Tiffany White
@twhite96
Let me take a look
So I would use text() right @qualitymanifest
DJ
@qualitymanifest
yep
Taylor
@admiraltaylor
So I have a formatting question I could use help with. I'm trying to add an image and some text to a jumbotron element, but the image is loading too low and partially outside the jumbotron.
does anyone know how to change the formatting?
here's my link
...pretty please?
Lauren Conners
@laurenconners
Are you missing a value for padding-bottom?
for class el
and en ending ;
Tiffany White
@twhite96
@qualitymanifest not sure where to put it. I've tried to use text() instead of html in the places that make the most sense. But it still results in an array
Taylor
@admiraltaylor
I'll give that a try. Putting a padding on the image itself seems to change the shape, oddly @laurenconners
DJ
@qualitymanifest
@twhite96 you only need it on line 36 where you are concatenating quotebox into the URL
quotebox.text()
Taylor
@admiraltaylor
@laurenconners no dice; the image still seems to be starting at the same level as the text, rather than being centered within the jumbotron
Lauren Conners
@laurenconners
hrmmmm
Tiffany White
@twhite96
Got it, @qualitymanifest. Thank you.
CamperBot
@camperbot
twhite96 sends brownie points to @qualitymanifest :sparkles: :thumbsup: :sparkles:
:star2: 1365 | @qualitymanifest |http://www.freecodecamp.com/qualitymanifest
Taylor
@admiraltaylor
Got it: I gave it a negative margin-top
Lauren Conners
@laurenconners
I was just about to suggest that. I forked it off to test that.
Good luck with the rest! I just got to the portfolio project, though I might put that off until after the js training so I can get even more fancy and actually have things to put IN the portfolio.
ashnel
@ashnel
Would anyone be willing to help me with the weather app project by mentoring through it? Despite all the reading I've been doing I'm really struggling to understand APIs and would greatly appreciate the assistance.
Sorin Ruse
@sorinr
@ashnel first decide how would you like to get the user location: you can use an ip location api like: http://ip-api.com/json .this is returning a json object from where you get the coordinates (latitude, longitude, city, country, ecc). To use that api in your js part of the codepen you will have to write a function like $.getJSON(' http://ip-api.com/json', function(json){here you grab the returned data and do whatever with it}); then call an weather api using the coordinates from the previous api call
ashnel
@ashnel
@sorinr I know the steps to put it together, I've just been struggling all night to actually take the action to put it together =S
DJ
@qualitymanifest
This message was deleted
Sorin Ruse
@sorinr
@ashnel what you don't know and need help for?
himanhsu
@Himanshu54
This message was deleted

why is image not able to open link??

<div class="social" id="facebook"><a herf="https://www.facebook.com/erickeagle54" target="_blank"><img src="http://www.iconsdb.com/icons/preview/icon-sets/ice/facebook-3-xxl.png"></a></div>

Jaren Escueta
@jarenescueta731
@Himanshu54 href, not herf
江煜章
@angusjonior

@angusjonior
208 Counting Cards How to add the count and“Hold”“Bet”?
var count = 0;

function cc(card) {
// Only change code below this line
if(card<=6&&card>=2){
count = count + 1;
}else if(card==10||card=='J'||card=='Q'||card=='K'||card=='A'){
count = count - 1;
}

return count;
// Only change code above this line
}
cc(2); cc(3); cc(7); cc('K'); cc('A');

Milos
@Milos2709
Finally, here's my Local Weather app. What do you guys think? :)
http://codepen.io/Milos2709/full/WxmdaA/
Sorin Ruse
@sorinr
@Milos2709 why do you have that button with "not seeing info" ? as you first get the temp in C the convert to C btn should be disabled. when you click on convert to F disable this one and enable convert to C
Milos
@Milos2709
Thanks @sorinr
The button is because it usually does not work in http.
CamperBot
@camperbot
:cookie: 674 | @sorinr |http://www.freecodecamp.com/sorinr
milos2709 sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles: