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
fdemaa
@fdemaa
I feel like a bit lost, they are too many things to learn haha
Johnny
@jtan3
@fdemaa you can youtube tons of stuff
fdemaa
@fdemaa
@jtan3 yes im using also this page thats call w3school or something like that, wich is great
:+1:
Vincent Yan
@envincebal
Yeah Codecademy is a good intro but not enough. Mostly I just google stuff. I mainly use Mozilla Developer Network site. It's really comprehensive stuff and a good reference. Also here's a link to a great list of resources I use for front end in general. http://codingheroes.io/resources/
w3schools is quite controversial because many devs say lots of the info is outdated. MDN is much better.
Johnny
@jtan3
fdemaa
@fdemaa

@envincebal i didn't know that about w3schools; Great info man ! Appreciate, and good luck with your project!

@jtan3 :+1: Thanks!

CamperBot
@camperbot
fdemaa sends brownie points to @envincebal and @jtan3 :sparkles: :thumbsup: :sparkles:
:warning: fdemaa already gave envincebal points
:cookie: 390 | @jtan3 |http://www.freecodecamp.com/jtan3
Riley
@Riley1435
can someone help me with the intermediate front end project, "show the local weather?"
Vincent Yan
@envincebal
@fdemaa thanks you too.
CamperBot
@camperbot
envincebal sends brownie points to @fdemaa :sparkles: :thumbsup: :sparkles:
:cookie: 129 | @fdemaa |http://www.freecodecamp.com/fdemaa
Johnny
@jtan3
@Riley1435 sure
Riley
@Riley1435
how do i link a portion of my code into the chat?
Johnny
@jtan3
if you're working on codepen you can link that
wondering why its not displaying the local temperature
Netrunner21
@Netrunner21
try this
change text() to html()
$("#tempFar").html(data.temperature + "°" + "F");
Riley
@Riley1435
i tried that and it still does not work
Netrunner21
@Netrunner21
hmm, let me look at hime
mine*
Johnny
@jtan3
@Riley1435 if you go to your developer tools and console you'll see an error
@Riley1435 Ctrl + Shift + J
@Riley1435 to open console
Netrunner21
@Netrunner21
@jtan3 good catch
@Riley1435 add ?callback=? to the end of your url
its either a workaround for APIs that restrict access, or it helps codepen in some way. I'm not sure.
Riley
@Riley1435
okay yeah the api has a cross origin error
now it says undefined. im thinking data.temperature is not calling the right object in the JSON data
Netrunner21
@Netrunner21
Mine was data.currently.temperature
there's an extra step in the object notation to index
Riley
@Riley1435
I tired that earlier and i figured it didnt work
but now it should work since the problem was the url
thanks for the help
makes sense after opening the link and viewing the data again
Netrunner21
@Netrunner21
no problem
leomartin
@abhirupleo
Can someone help me with the random quote generator
app?
Johnny
@jtan3
@abhirupleo ask away
leomartin
@abhirupleo
So here is my js code

function generatecolor(){
var color=['#27303B','#F67858','#1182C7','#EC9A4E','#8666F2','#97E59A',''];
var random= Math.floor(Math.random()*color.length);
$("html body").animate({backgroundColor:color[random]}, 1200);
}

function getquote(){
$.ajax({

                    headers: {
                              "X-Mashape-Key": "HL5Yr3E9RZmshc7CyNeA0JrwnjD7p1H6dKVjsnDjlYdeqTgBW9",
                              Accept: "application/json",
                              "Content-Type": "application/x-www-form-urlencoded"
                            },
                        url: 'https://andruxnet-random-famous-quotes.p.mashape.com/cat=',
                        success: function(r){
                        if(typeof(r)=='String'){
                            r=JSON.parse(r);
                            console.log('hey');
                            console.log(r.quote);
                            $("#text").text(r.quote);
                        }
                    }
            });

}

$(document).ready(function() {
$('body').animate({backgroundColor:'#02CE9C'}, 1200);
$('.getquote').on('click', function(event) {
generatecolor();
getquote();
/ Act on the event /
});
});

and here is my html
<body>
<div class="container-fluid">
<div class="row">
<div class="quote-box col-xs-6 col-xs-offset-2">
<div class="quote-text">
<i class="fa fa-quote-left fa-3x" aria-hidden="true"></i>
<span id="text"></span>
</div>
<br>
<button class="btn btn-primary twitter"><i class="fa fa-twitter fa-lg"></i></button>
<button class="btn btn-primary facebook"><i class="fa fa-facebook-official fa-lg"></i></button>
<button class="btn btn-primary getquote">Get Quote</button>
</div>
</div>
</div>
</body>
i have been trying to get this to work for two days now
Johnny
@jtan3
@abhirupleo send your codepen link