href="#idName"
for the link
tonyrednil sends brownie points to @gulvsi :sparkles: :thumbsup: :sparkles:
is-active
idea.. line 44 checkSlide(e) my code seems to work when scrolling down
, but scrolling up
doesn't seem to work. Any thoughts??is-active
class from the section before trying to set it again. This line: navbarItem ? navbarItem.classList.remove("is-active") : "";
right before your test for if (sectionIsNear)
and it looks like it's working better? I should save a fork of your project as I have it working now, because I removed some of the repeated code from each of those block for the two conditions to the top (I also threw a lot of console.logs in there.) But here is the url of what I have that seems to be working... i hope it helps?
navbarHeight
by 4 but just let topPosition + navbarHeight >= section.offsetTop
var newArr=arr.push(num)
and then newArr = newArr.sort()
? is it working this way?
arr
in arr.push()
?
var arr = [];
var arr = [];
outside the function, on the top to define your arr, so you can use it,
let x = Math.floor(Math.random() * 100) + "";
xhr.open("GET", "https://cors-anywhere.herokuapp.com/https://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1&tmp=" + x, true);
rna7 sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 9079 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
rna7 sends brownie points to @mbosnjak01 :sparkles: :thumbsup: :sparkles:
:cookie: 246 | @mbosnjak01 |http://www.freecodecamp.org/mbosnjak01
$.ajax({
type: "GET",
url: "apiURL,
dataType: "json",
success: function(request) {
// do your code here
// example
console.log(request.quotes[qRandNum].text)
}
})
fetch(url)
.then(response => response.json())
.then(json => // process json)
mbosnjak01 sends brownie points to @quantomistro3178 :sparkles: :thumbsup: :sparkles:
:cookie: 272 | @quantomistro3178 |http://www.freecodecamp.org/quantomistro3178
quantomistro3178 sends brownie points to @mbosnjak01 :sparkles: :thumbsup: :sparkles:
:cookie: 247 | @mbosnjak01 |http://www.freecodecamp.org/mbosnjak01
raghav17 sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 9081 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
@Frosty427
https://codepen.io/Frosty27/pen/QQRjbQ?editors=1000
can someone help
why is there a giant white space to thr right of everything?
body {
overflow-x:hidden;
}
var lat = "";
then change its value later
https://fcc-weather-api.glitch.me/api/current?lat=0&lon=0
@media(max-width: 400px) {
.xs-none {
display: none;
}
}
frosty427 sends brownie points to @asparism :sparkles: :thumbsup: :sparkles:
:cookie: 335 | @asparism |http://www.freecodecamp.org/asparism
Anyone able to help with the Beta program?
ES6: Use Destructuring Assignment to Assign Variables from Objects
string
length
to let
codernewby sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2419 | @darrenfj |http://www.freecodecamp.org/darrenfj
@mbosnjak01 @sjames1958gm
@rna7 use https
@rna7 I would recommend using the link created by FCC to facilitate this challenge.
ctrl+f
to search for all instances of the class, I think .navbar-toggler
, and look through each one in your code
ctrl+f
to search through your source code?
var isMobile = {
Android: function() {
return navigator.userAgent.match(/Android/i);
},
BlackBerry: function() {
return navigator.userAgent.match(/BlackBerry/i);
},
iOS: function() {
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
},
Opera: function() {
return navigator.userAgent.match(/Opera Mini/i);
},
Windows: function() {
return navigator.userAgent.match(/IEMobile/i);
},
any: function() {
return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
}
};
any
key in the end? @asparism thanks
danydin sends brownie points to @asparism :sparkles: :thumbsup: :sparkles:
:cookie: 336 | @asparism |http://www.freecodecamp.org/asparism
any
just detects whether any of the previous keys are true
--breakpoint-xs: 0;
--breakpoint-sm: 576px;
--breakpoint-md: 768px;
--breakpoint-lg: 992px;
--breakpoint-xl: 1200px;
:star2: 2696 | @lydatech |http://www.freecodecamp.org/lydatech
danydin sends brownie points to @lydatech :sparkles: :thumbsup: :sparkles:
jcunanan05 sends brownie points to @khaduch and @sorinr :sparkles: :thumbsup: :sparkles:
:star2: 1401 | @sorinr |http://www.freecodecamp.org/sorinr
:star2: 3785 | @khaduch |http://www.freecodecamp.org/khaduch