Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • 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
Tyler Moeller
@YariSPB It seems that some of the searches return results without a thumbnail image, so your for loop runs into errors on pages[i].thumbnail.source. You should check if that property exists before trying to get the value
Ghulam Shabir
@kirbyedy thank you for catching that
ghulamshabir sends brownie points to @kirbyedy :sparkles: :thumbsup: :sparkles:
:star2: 1712 | @kirbyedy |http://www.freecodecamp.com/kirbyedy
Yaroslav Paslavskiy
@TylerMoeller . Suspected that! Thank you! I will fix it now:)
yarispb sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
:star2: 1405 | @tylermoeller |http://www.freecodecamp.com/tylermoeller
Tyler Moeller

@ErezT To help debug, add a console.log(tweetText) to your tweet button click function:

  $("#tweet").on("click", function() {
    finalTweet = titleElm.text() + " " + contentElm.text();
    // window.open(tweetText, '_blank');

You'll see that there is no text after the URL.

Patrick Black
I have no idea how I can toggle the from the metric system using a button
@Mortiferr connect your toogle to variables
Patrick Black
Yeah but then how can I toggle from there
@Mortiferr your button should work like this
it have some class initally but when clicked class change
thats your toogle
so then you can check if your button have one class
do one thing
if it have other class do other thing
@Mortiferr There is a series of challenges that talk about using a click event handler on a button to run code. Start here: https://www.freecodecamp.com/challenges/trigger-click-events-with-jquery
Patrick Black
thanks @sennator2 and @SkyCoder01
mortiferr sends brownie points to @sennator2 and @skycoder01 :sparkles: :thumbsup: :sparkles:
:cookie: 267 | @sennator2 |http://www.freecodecamp.com/sennator2
:cookie: 39 | @skycoder01 |http://www.freecodecamp.com/skycoder01
Joakim Vercaemst
Hello everybody
I'm working on my portfolio page and want to add some images to the page; but want to set them to a max certain height, which I'm struggling with because the images remain very large
This sounds like a very basic problem, what it is but I've started coding with hml and css just since 2 weeks so still struggling with these basic things, sorry
Patrick Black
No problem, how can we help?
Joakim Vercaemst

<p data-height="265" data-theme-id="0" data-slug-hash="xgLNmY" data-default-tab="html,result" data-user="Jverc" data-embed-version="2" data-pen-title="Personal Portfolio WebPage" class="codepen">See the Pen <a href="http://codepen.io/Jverc/pen/xgLNmY/">Personal Portfolio WebPage</a> by Joakim Vercaemst (<a href="http://codepen.io/Jverc">@Jverc</a>) on <a href="http://codepen.io">CodePen</a>.</p>

<script async src="https://production-assets.codepen.io/assets/embed/ei.js"></script>

how can I show you what I have?
give link to your codepen @Jverc
as you can see the 2 images under the homer simpson one are very large

var Car = function(wheels, seats, engines) {
  //Change this constructor
  this.wheels = 4;
  this.seats = 5;
  this.engines = 1;

//Try it out here
var myCar = new Car(6, 3, 1);
Why doesn't my code work? I checked it multiple times. The window is not displaying 6 wheels, 3 seats, and 1 engines.
Joakim Vercaemst
and I thought that with putting the div class="container" with max-height and max-width to 10%; the images would be smaller; but they seem to stay the same
give your image divs height and width you want
and give it object-fit : contain or cover
Patrick Black
okay, so if you take a look at my code, I'm trying to get it so that when the variable units equals the variable metric it prints it where the F is right now
depending what you want
<img height=40px width=30px>
try this
Joakim Vercaemst
directly in the html?
is there no way to do this in the css?
@Jverc in css
@Jverc Make a class. and
put in your div class containing in image
<div class=size></div>
Joakim Vercaemst
that is similar to how I have it now
<div class="container-fluid">
<div class="container responsive">
<div class="col-xs-6 img-responsive img-portfolio">
<img src="http://www.coloradocreativedesigns.com/images/portfolio.png"/>