get help in general - we have more specialized help rooms here: https://gitter.im/FreeCodeCamp/home
// noprotect
hijerboa sends brownie points to @daddycardona :sparkles: :thumbsup: :sparkles:
:cookie: 333 | @daddycardona |http://www.freecodecamp.com/daddycardona
Exact Change
function displayWeather(lat, long) {
$.ajax({
type: 'GET',
url: 'https://fcc-weather-api.glitch.me/api/current?lat='+ lat + '&lon=' + long,
dataType: 'json',
data: {},
success: function(response) {
location = response.name;
$('#location').text(location);
temp = response.main.temp;
$('#temp').text(temp);
conditions = response.weather.description;
$('#conditions').text(conditions);
}
});
current?lat='+ lat + '&lon=' + long
where does the + lat
come from ?
$(document).ready(function() {
//html5 geolocator
function pos (pos) {
var lat = pos.coords.latitude;
var long = pos.coords.longitude;
var coords = lat + ", " + long;
console.log(coords); //debug catcher
displayWeather(lat, long);
}
function getLocation() {
navigator.geolocation.getCurrentPosition(pos);
return false;
}
//weather catcher to return json file
function displayWeather(lat, long) {
$.ajax({
type: 'GET',
url: 'https://fcc-weather-api.glitch.me/api/current?lat='+ lat + '&lon=' + long,
dataType: 'json',
data: {},
success: function(response) {
location = response.name;
$('#location').text(location);
temp = response.main.temp;
$('#temp').text(temp);
conditions = response.weather.description;
$('#conditions').text(conditions);
}
});
}
getLocation();
});
location
as variable namewindow
location = response.name;
will cause a redirect // jump to another address
rscales02 sends brownie points to @moigithub :sparkles: :thumbsup: :sparkles:
:star2: 3626 | @moigithub |http://www.freecodecamp.com/moigithub
daddycardona sends brownie points to @moigithub :sparkles: :thumbsup: :sparkles:
:star2: 3627 | @moigithub |http://www.freecodecamp.com/moigithub
I'm working on this task:
let ohStr = "Ohhhhhhh no";
let ohRegex = /h{3,6}/;
let result = ohRegex.test(ohStr);
it return true but how to get false?
I want than more than 6 "h" not pass
let ohRegex = /h{3,6}^.*/;
but this is not working 😀
/h{7}/
if (condition1 === true) and (condition2 === false)
if (condition1 and !condition2)
!
operator=== true
is implicit
darrenfj sends brownie points to @just1witness :sparkles: :thumbsup: :sparkles:
:cookie: 333 | @just1witness |http://www.freecodecamp.com/just1witness
just1witness sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2013 | @darrenfj |http://www.freecodecamp.com/darrenfj
darrenfj sends brownie points to @icybears :sparkles: :thumbsup: :sparkles:
:cookie: 102 | @icybears |http://www.freecodecamp.com/icybears
how long does it takes?
darrenfj sends brownie points to @just1witness and @icybears and @andreyazimov :sparkles: :thumbsup: :sparkles:
:cookie: 31 | @andreyazimov |http://www.freecodecamp.com/andreyazimov
darrenfj sends brownie points to @just1witness and @icybears :sparkles: :thumbsup: :sparkles:
icybears sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2014 | @darrenfj |http://www.freecodecamp.com/darrenfj
transition: background-color 0.2s, border 0.2s, color 0.2;
tiagocorreiaalmeida sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:cookie: 466 | @korzo |http://www.freecodecamp.com/korzo
<img id="tribute_img" class="img-responsive">
icon = response.weather[0].icon;
$('#condition_icon').text('<i src=\"' + icon + '\"/></i>');
how do I get this to render the icon that is linked to it? Change .text I am assuming, but I have no idea to what...
response.weather[0].icon
an image?
rscales02 sends brownie points to @ellyria :sparkles: :thumbsup: :sparkles:
:cookie: 505 | @ellyria |http://www.freecodecamp.com/ellyria
NaN === NaN
into a JavaScript console.
isNaN()
typeof NaN
var x = 3;
var y = 8;
!(x == "3" || x === y) && !(y != 8 && x <= y);
pull-right
not just right
thekholm80 sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6519 | @manish-giri |http://www.freecodecamp.com/manish-giri
manish-giri sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1464 | @thekholm80 |http://www.freecodecamp.com/thekholm80
.meals-showcase li {
display: inline-block;
width: 25%;
}
maybe a curly
box-sizing: border-box;
orb of clairvoyance
, or your code
Korean bibimbap with egg and vegetables
, so no asian food was missing
ls -alh
nodemon src/app
body {
margin: 0;
}
ul {
padding: 0;
}
:star2: 2414 | @lydatech |http://www.freecodecamp.com/lydatech
tiagocorreiaalmeida sends brownie points to @lydatech :sparkles: :thumbsup: :sparkles:
imyashbhardwaj sends brownie points to @lydatech :sparkles: :thumbsup: :sparkles:
:star2: 2415 | @lydatech |http://www.freecodecamp.com/lydatech
barbarian css
display: flex