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
Tyler Moeller
@TylerMoeller

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

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

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

Patrick Black
@Mortiferr
http://codepen.io/Mortiferr/pen/oBZJzp?editors=1011
I have no idea how I can toggle the from the metric system using a button
sennator
@sennator2
@Mortiferr connect your toogle to variables
Patrick Black
@Mortiferr
Yeah but then how can I toggle from there
sennator
@sennator2
@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
Gulsvi
@gulsvi
@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
@Mortiferr
thanks @sennator2 and @SkyCoder01
CamperBot
@camperbot
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
@Jverc
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
@Mortiferr
No problem, how can we help?
Joakim Vercaemst
@Jverc

<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?
sennator
@sennator2
give link to your codepen @Jverc
as you can see the 2 images under the homer simpson one are very large
Hello911
@Hello911

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
@Jverc
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
sennator
@sennator2
give your image divs height and width you want
and give it object-fit : contain or cover
Patrick Black
@Mortiferr
http://codepen.io/Mortiferr/pen/oBZJzp?editors=1010
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
sennator
@sennator2
depending what you want
Hello911
@Hello911
<img height=40px width=30px>
try this
Joakim Vercaemst
@Jverc
directly in the html?
is there no way to do this in the css?
sennator
@sennator2
@Jverc in css
Hello911
@Hello911
@Jverc Make a class. and
put in your div class containing in image
.size{
width=3px;
height=5px;
}
<div class=size></div>
Joakim Vercaemst
@Jverc
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"/>
</div>
and I made this in css
.container {
width: 10px;
height: 10px;
}
so I suppose the second div class (container) should set the max size to my images, no?
Tyler Moeller
@TylerMoeller
@Jverc img-responsive is meant for the <img> tag.
<div class="container-fluid">
  <div class="row">
    <div class="col-xs-6">
      <img class="portfolio-image img-responsive center-block" src="http://www.coloradocreativedesigns.com/images/portfolio.png">
    </div>
    <div class="col-xs-6">
      <img class="portfolio-image img-responsive center-block" src="https://cdn.colorlib.com/wp/wp-content/uploads/sites/2/hind-fullscreen-digital-portfolio-theme.jpg">
    </div>
  </div>
</div>
ErezT
@ErezT
@TylerMoeller So i see.. thanks
hmmm question is why is there a space there instead of the encoded string...
CamperBot
@camperbot
erezt sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
:star2: 1406 | @tylermoeller |http://www.freecodecamp.com/tylermoeller