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
CamperBot
@camperbot
carlm7 sends brownie points to @ianduke :sparkles: :thumbsup: :sparkles:
:cookie: 236 | @ianduke |http://www.freecodecamp.com/ianduke
djangoearnhardt
@djangoearnhardt

This was my effort @TylerMoeller, Something went astray

var convertF = tempF;                
var x = document.getElementsByClassName("temp");
$('.toggle').on('click', function(){
if (x.indexOf('F') > -1) {
$('.temp').html('<p>' + convertC + '&deg C</p>');}

  else if (x.indexOf('F') == -1) {
$('.temp').html('<p>' + tempF + '&deg F</p>');                
                }

http://codepen.io/djangoearnhardt/pen/NbxgKJ

Carl
@carlm7
@ianduke fixed it. I needed to target the container rather than the actual column
and use flexbox
Maksim Kulichenko
@makstheimba
@djangoearnhardt what is this sign in the end of page? And is your name really django?
kat-mag
@kat-mag
@djangoearnhardt what's that indexOf supposed to do?
djangoearnhardt
@djangoearnhardt
@makstheimba what sign, the image? and it isn’t :( but it’s a band I created
@kat-mag I was going to use the indexOf to search if the temperature displayed F, and if it did, then my toggle button would convert it to C
*or celcius
and vise versa
Tyler Moeller
@TylerMoeller
@djangoearnhardt You'll need to specify innerText to get the text inside that element:
    var convertC = Math.floor((tempF - 32) * (5 / 9));
    var convertF = tempF;
    $('.toggle').on('click', function() {
      var x = document.getElementsByClassName("temp")[0].innerText;
      if (x.indexOf('F') > -1) {
        $('.temp').html('<p>' + convertC + '&deg C</p>');
      } else {
        $('.temp').html('<p>' + tempF + '&deg F</p>');
      }
    });
And a [0] to indicate you want the first element with the class temp returned
Ian Duke
@1andee
@carlm7 never even heard of flexbox before. that's neat!
djangoearnhardt
@djangoearnhardt
hmmm, i’ll need to read on that but thank you @TylerMoeller. the [0] is still a little confusing. what other elements would be returned in that instance?
Tyler Moeller
@TylerMoeller
@djangoearnhardt Do console.log(document.getElementsByClassName("temp")) to study what you get back
Carl
@carlm7
@ianduke me neither, works well!
Tyler Moeller
@TylerMoeller
You can also use jQuery everywhere:
    var convertC = Math.floor((tempF - 32) * (5 / 9));
    var convertF = tempF;
    $('.toggle').on('click', function() {
      if ($('.temp').text().indexOf('F') > -1) {
        $('.temp').html('<p>' + convertC + '&deg C</p>');
      } else {
        $('.temp').html('<p>' + tempF + '&deg F</p>');
      }
    });
djangoearnhardt
@djangoearnhardt
ok, is the console.log something for trouble shooting when I’m coding
Tyler Moeller
@TylerMoeller
Yes, console.log is your friend :) tells you what variables are set to and helps for debugging
GitLub
@GitLub
Guys, any tips/guidelines of how I should aproach this first Tribute Page project? Any extra material to follow alongside? Having a hard time figuring out how to use what I learnt in the chalenges to actually build a website.
djangoearnhardt
@djangoearnhardt
hahah wow @TylerMoeller so much help, i really appreciate it
Maksim Kulichenko
@makstheimba
@djangoearnhardt yeah the image
djangoearnhardt
@djangoearnhardt
@makstheimba It’s supposed to be a beanie/hat for cold weather. and they change depending on the degrees outside
Maksim Kulichenko
@makstheimba
@djangoearnhardt okay. For now it looks like a tip of a penis.
djangoearnhardt
@djangoearnhardt
hahah, not my intent @makstheimba
Homer Allen
@homerallen
Hmmm, preparing to build my portfolio page. I wonder if the contact form on the example actually works...
It's not a user story, so I am not sure how to handle that
c0d0er
@c0d0er
any idea on how to make all my buttons dont have any space between each buttons? any idea for better design? http://codepen.io/c0d0er/pen/LRKVmE?editors=1100
Ian Duke
@1andee
@homerallen Rest assured the Form doesn't actually need to work.
Homer Allen
@homerallen
@ianduke ok, thanks!
CamperBot
@camperbot
homerallen sends brownie points to @ianduke :sparkles: :thumbsup: :sparkles:
:cookie: 237 | @ianduke |http://www.freecodecamp.com/ianduke
Ken Haduch
@khaduch
@homerallen - you need a server connection to make the contact form work - although there are "free" services that you can connect to, I've heard, but also warnings that they will collect email addresses for their own purposes. I opted to just put an email contact address in my portfolio and eventually I'll worry about it being functional - I could connect it to my ISP account, I'm guessing. Just not a crucial thing at this point in time.
Homer Allen
@homerallen
Thanks @khaduch!
CamperBot
@camperbot
homerallen sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 1910 | @khaduch |http://www.freecodecamp.com/khaduch
Andrea De La Flor Muente
@adelaflor
hiiiii any idea why my links jump to the wrong part of the page? http://codepen.io/adelaflor/pen/YpzyoN
tyl-er
@tyl-er

Working on the Pomodoro clock. I need a button that pauses the clock, but not having any luck figuring it out. Any ideas?

http://codepen.io/tyl-er/pen/QGyvXP?editors=0011

Aiden
@AidenMead
@adelaflor From what I can see, it seems that you don't have your divs ID'ed with your link names
@adelaflor So you're on the right track! You're basically saying "Hey, when you click here jump to this point!" but you haven't yet shown the browser where that point is. So your href's are set, but down the page you need to actually have divs tagged with an ID of home or portfolio, to show the link where it's going
@adelaflor Wait! scratch what I said, it seems that codepen just didn't let me scroll far enough
Aiden
@AidenMead
@adelaflor Okay, so once it let me actually look at the whole thing(sorry, codepen has been giving me loading issues all day), you're tagging the ID's correct, but what's happening is, when the page jumps there, it's overlapping it with the navbar. So because you have your h3 tags with the ID's, it's bringing the top edge of the page to the word that you have in the h3 tag, and the navbar is just blocking your view. Try setting the ID's the the div instead.
djangoearnhardt
@djangoearnhardt

I’m attempting to use a zip code found from accessing an API, then adding that value into a url. From there it would run another API which would find the weather in the area of the user. Something isn’t working quite right with my idea, could anyone help out?

$(document).ready(function(){
$.getJSON('http://ipinfo.io/json?callback=JSON_CALLBACK'),function(loco){
var zip = loco.postal;  
var string = JSON.stringify('http://api.openweathermap.org/data/2.5/weather?zip=' + zip +',us&appid=43570f3ce225106d3f5ffafe9e44cc60')
               $.getJSON(string, function(jd) {

http://codepen.io/djangoearnhardt/pen/ZBQJGX?editors=1111

Aaron Bell
@awb715
does anyone know how to put a icon in the search bar
Andrea De La Flor Muente
@adelaflor
@AidenMead ohhh that makes sense I'll try it thanks a lot!!
CamperBot
@camperbot
adelaflor sends brownie points to @aidenmead :sparkles: :thumbsup: :sparkles:
:cookie: 270 | @aidenmead |http://www.freecodecamp.com/aidenmead
Aaron
@apalm1341
Anyone good with quintus here?
F22rapt
@F22rapt
is that a food?