Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • 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
Daniel Romero
You can check the code with the developers tools on your browser
By the way I think the heavyweight logic it's in the backend side about that calendar
On the Weather app, how can i pass the location data to the api?
I already have the latitude and the longitude, but i don't know how to request the api the weather with those variables
Long Nguyen
@lestairon "https://fcc-weather-api.glitch.me/api/current?lon=" + lon + "&lat=" + lat"
@longnt80 Thanks man
lestairon sends brownie points to @longnt80 :sparkles: :thumbsup: :sparkles:
:cookie: 678 | @longnt80 |http://www.freecodecamp.org/longnt80
Stephen James
@lestairon Or with template strings (my new go-to) less quotes to worry about
A guy on irc told me that this works too ?lat=#{lat}&lon=#{lon}
haven't tried yet
Stephen James
@lestairon For javascript? not that I am aware of.
Kirk Clemons
I'm looking for help creating this type of effect on click
current state:
Liam Docherty
<header class="masthead text-center text-white d-flex" id="home">
    <div class="container my-auto">
      <div class="row bounceInDown animated">
        <div class="col-lg-10 mx-auto">
          <h2 class="maintxt">
              <strong>Hi, my name is Liam Docherty</strong>
          <div class="col-lg-8 mx-auto">
            <p class="text-white mb-5">I am a Front End & Wordpress Developer based in the UK. If you are a business seeking a web presence or an employer looking to hire, you can get in touch with me <a href=#contact class="txtlink js-scroll-trigger" target=_blank>here</a>.</p>
            <a class="btn btn-primary btn-xl js-scroll-trigger" href="#services">Find Out More <i class="fa fa-chevron-down" aria-hidden="true"></i></a>
header.masthead {
  padding-top: 10rem;
  padding-bottom: calc(10rem - 56px);
  background-image: url(../img/header.jpg);
  background-position: center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
/* HOME */

@media (max-width: 575px) {
    background-color: #111;

@media (min-width: 576px) and (max-width: 767px) {
    background-color: #111;

@media (min-width: 768px) and (max-width: 991px) {
    background-color: #111;

Hi, as you can see in my CSS I have assigned an image to be the background of one of my main sections on my website. However, what class name do I put in the CSS media query to make the media query function?
I'm trying to change home1 to the correct class to where I can change the background appearance depending on the users screen display size
i dont see a .home1 in the html
can anyone suggest a cool animation for alertify.js for messages
Dimitris Nik.
Hello there, if I want to get every font on my page to work on every device I have to use @font-face, am I right?
Deepak Manjunath
how to split "201709" into ['2017','09']
What can i do if i want it to change ºC with ºF?
@Deepak2322 Maybe taking the first 4 digits and making then the year, then take the last 2 digits and make them month, i think that should work
Kaz Baig
@Deepak2322 could just use String.slice
Stephen James
If you set variable units to match "C" or "F"
@Deepak2322 group 1 is the first 4 digits group 2 is the last 2 digits
const regex = /([0-9]{4})([0-9]{2})/g;
    const str = `201709`;
    let m;

    while ((m = regex.exec(str)) !== null) {
        // This is necessary to avoid infinite loops with zero-width matches
        if (m.index === regex.lastIndex) {

        // The result can be accessed through the `m`-variable.
        m.forEach((match, groupIndex) => {
            console.log(`Found match, group ${groupIndex}: ${match}`);
Liam Docherty
@moT01 Yes exactly I was just messing around with that. I removed it. My point is that I'm not sure what to put there and if someone could tell me it would be very appreciated.
Please can someone scroll up and help me with my post if anyone is free?
@sjames1958gm Like, how...?
Stephen James
@lestairon I think I misunderstood your question.
you mean change the units, not just the C <> F
Stephen James
@lestairon You can add a click handler to #cof and in there recalculate the temp and replace in the DOM.
You will need to put temperature value where it can be accessed by another click handler


$("#cof").on("click", function () {
            $("temp").html(data.main.temp * 9 / 5 + 32);

Shouldn't this work?

Stephen James
@lestairon #temp
@lestairon Of course you'd probably want it to toggle. This only goes one way
Yeah, i was thinking about that, but i still wanted to try
But is not even working 1 way
And #temp is the id of the element that i want to change
Stephen James
@lestairon But you have "temp" not "#temp" in the code above
Oh, true
stupid mistakes, lol
@sjames1958gm Thanks man, haha
lestairon sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8893 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
I wonder how many time will that happen
Nate Mallison
@lestairon forever. :smile:
Stephen James
@lestairon :+1:
well I am into my 38th year of programming and it still happens