get help in general - we have more specialized help rooms here: https://gitter.im/FreeCodeCamp/home
$('.card-deck').html(
`<div class='card'>
<img class='card-img-top' src="${json.logo}">
<div class='card-block'>
<h4 class='card-title'>${json.display_name}</h4>
<p class='card-text'>${json.status}</p>
</div>
<div class='card-footer'>
<small class='text-muted'>Last updated 3 mins ago</small>
</div>
</div>`
);
/leave
command
.navbar-header:hover {
background-color:white;
}
phoenix-burn sends brownie points to @stanley-su :sparkles: :thumbsup: :sparkles:
:cookie: 88 | @stanley-su |http://www.freecodecamp.com/stanley-su
phoenix-burn sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1376 | @thekholm80 |http://www.freecodecamp.com/thekholm80
.nav-bar {
font-family: 'Oswald', sans-serif;
font-size: 120%;
display: flex;
justify-content: center;
}
It’d be better if you worded your question better.
Wrap the intro and intro2 divs into a single div. Like this:
<div class="wrapper"><div class="intro">JILL LEE</div>
<div class="intro2">Front-end developer & web designer</div>
</div></div>
then add this to your css:
.wrapper {
display: flex;
justify-content: center;
}
:warning: phoenix-burn already gave stanley-su points
phoenix-burn sends brownie points to @stanley-su :sparkles: :thumbsup: :sparkles:
https://twitter.com/intent/tweet?text=
and the text of the quote you want to tweet
()
in var quote = $(".message").text();
and maybe just use quote
ericmiller777 sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1537 | @heroiczero |http://www.freecodecamp.com/heroiczero
phoenix-burn sends brownie points to @wonder2991 :sparkles: :thumbsup: :sparkles:
:cookie: 413 | @wonder2991 |http://www.freecodecamp.com/wonder2991
<i class="fa fa-facebook fa-2x"></i>
pwnsterrr sends brownie points to @wonder2991 :sparkles: :thumbsup: :sparkles:
:cookie: 414 | @wonder2991 |http://www.freecodecamp.com/wonder2991
ericmiller777 sends brownie points to @wonder2991 :sparkles: :thumbsup: :sparkles:
:cookie: 415 | @wonder2991 |http://www.freecodecamp.com/wonder2991
i:hover{
color: red;
}
Howdy folks. I’ve been working on my portfolio page, which is looking deliciously tacky :smile: . Anyway, I set a background image (a png of a coffee cup) for the body that tiles. I’ve set the size to 57x50px (the original image being 816x720). The image looks fine in Firefox on my desktop, but it looks a little blurry in chrome and pixelated in IE. It looks even worse in mobile browsers.
I tried resizing in Photoshop to exactly 57x50px and then re-uploading, but it still does the same. I also tried converting to jpg, but no luck. Can anyone please explain what is happening and how to fix?
phoenix-burn sends brownie points to @diomed :sparkles: :thumbsup: :sparkles:
:star2: 5192 | @diomed |http://www.freecodecamp.com/diomed
phoenix-burn sends brownie points to @vittoriovt :sparkles: :thumbsup: :sparkles:
:cookie: 803 | @vittoriovt |http://www.freecodecamp.com/vittoriovt
vittoriovt sends brownie points to @phoenix-burn :sparkles: :thumbsup: :sparkles:
:cookie: 157 | @phoenix-burn |http://www.freecodecamp.com/phoenix-burn
<div class="row">
<div class="col-sm-4">....</div>
<div class="col-sm-4">....</div>
<div class="col-sm-4">....</div>
</div>
phoenix-burn sends brownie points to @diomed :sparkles: :thumbsup: :sparkles:
:warning: phoenix-burn already gave diomed points
.navbar-default {
border: 5px solid black;
}
.nav li {
border:1px solid black;
}
Function repeatIt (str,n) { return typeof "" ? str.repeat(n) : "Not a string";}
I'm passing 43 out of 44 test. Any idea why I'm not passing the last one?
typeof ""
works? (in your case, obvious)
typeof “”
always returns “string”. you need to check the type of the argument
true
, you repeat provided string n
times?
typeof “”
always returns “string”. you should check if the argument passed in is a string.
(typeof str === "string")
// that will be true or false
vicpopescu sends brownie points to @stanley-su :sparkles: :thumbsup: :sparkles:
:cookie: 91 | @stanley-su |http://www.freecodecamp.com/stanley-su
Function repeatIt (str,n) { return typeof str === "string" ? str.repeat(n) : "Not a string";}
// worked!! Thanks guys I know I'm noobin hard :(
.nav li a i:hover {
color: white;
}
markusazer sends brownie points to @wonder2991 :sparkles: :thumbsup: :sparkles:
:cookie: 418 | @wonder2991 |http://www.freecodecamp.com/wonder2991
this is the way to post a code?
markusazer sends brownie points to @eweiss17 :sparkles: :thumbsup: :sparkles:
:cookie: 567 | @eweiss17 |http://www.freecodecamp.com/eweiss17
<div class="thumbnail text-center">
<div class="thumbnail text-center">
<img src="http://www.symmetrymagazine.org/sites/default/files/styles/slide/public/images/standard/Feynman_family1.jpeg?itok=DoFprRXJ" class="img-fluid">
<div class="caption"><em>Richard P. Feynman with his family and his van.</em></div>
</div>
function palindrome(str) {
// Good luck!
var str1=str.toLowerCase();
var str2=str1.replace(/\s+/gi,"");
var str3=str2.replace(/[^0-9a-z]+/gi,"");
var array=str3.split("");
array.reverse();
var array1=array.reduce(function(previousVal,currentVal){
return previousVal+currentVal;
});
if(str==array1){
return true;
}
else{
return false;
}
}
function palindrome(str) {
// Good luck!
var str1=str.toLowerCase();
var str2=str1.replace(/[^0-9a-z]+/gi,"");
var array=str2.split("");
array.reverse();
var array1=array.join("");
if(str==array1){
return true;
}
else{
return false;
}
}
palindrome("race# ,&car");
darrenfj sends brownie points to @sonimadhuri :sparkles: :thumbsup: :sparkles:
:cookie: 337 | @sonimadhuri |http://www.freecodecamp.com/sonimadhuri
adishjain58 sends brownie points to @darrenfj and @sonimadhuri :sparkles: :thumbsup: :sparkles:
:cookie: 338 | @sonimadhuri |http://www.freecodecamp.com/sonimadhuri
:star2: 1934 | @darrenfj |http://www.freecodecamp.com/darrenfj
@Paulsamuel1
darrenfj sends brownie points to @adishjain58 :sparkles: :thumbsup: :sparkles:
:cookie: 241 | @adishjain58 |http://www.freecodecamp.com/adishjain58
dragonmaiden sends brownie points to @rossijonas :sparkles: :thumbsup: :sparkles:
:cookie: 291 | @rossijonas |http://www.freecodecamp.com/rossijonas
body
{
overflow-x:hidden;
}
IceFireSages
and you've entered user.name
as icefiresaages
sages
saages
icefiresages sends brownie points to @avestasaba :sparkles: :thumbsup: :sparkles:
:cookie: 114 | @avestasaba |http://www.freecodecamp.com/avestasaba
sorry rajp1847, you can't send brownie points to yourself! :sparkles: :sparkles:
img-responsive
container-fluid
<img src="https://www.pambazuka.org/sites/default/files/field/image/bill-gates.jpg" class "img-fluid" alt="Bill Gates Pic1">
like that?
thekholm80 sends brownie points to @dhcodes :sparkles: :thumbsup: :sparkles:
:star2: 1806 | @dhcodes |http://www.freecodecamp.com/dhcodes
position: relative;
andreibratu26 sends brownie points to @dhcodes :sparkles: :thumbsup: :sparkles:
:star2: 1807 | @dhcodes |http://www.freecodecamp.com/dhcodes
what is wrong with the below code when running game.choice('5'):
var game = {
board:' 1|2|3\n 4|5|6\n 7|8|9',
playerchoice: function() {
console.log(this.board);
},
choice: function(n) {
board.replace(n, 'X');
},
playGame: function() {
console.log('this is a new a game of Tic-tac_Toe');
console.log('Player 1 is X, Please select a number');
},
}
choice: function(n) {
game.board=game.board.replace(n, "X");
position:relative;
as it effects my content above. Someone recommend me using flexbox but couldn't work it out. https://jsfiddle.net/60zbvne7/2/
:cookie: 521 | @egnarodev |http://www.freecodecamp.com/egnarodev
McTwoDigitZero
thekholm80 sends brownie points to @diomed :sparkles: :thumbsup: :sparkles:
:star2: 5193 | @diomed |http://www.freecodecamp.com/diomed
Everybody’s a web designer until, you know, they actually try to do it.
diomed
diomed
function rot13(str) { // LBH QVQ VG!
var newStr = "";
var unicode = str.charCodeAt(i);
var underN = String.fromCharCode(str.charCodeAt(i)+13);
var overM = String.fromCharCode(str.charCodeAt(i)-13);
for (var i = 0; i < str.length; i++) {
if (unicode < 78) {return underN;} return overM;
}
return newStr;
}
// Change the inputs below to test
rot13("SERR YBIR?");
Need help with the last challenge of algorithms section
function rot13(str) { // LBH QVQ VG!
var newStr = "";
for (var i = 0; i < str.length; i++) {
var unicode = str.charCodeAt(i);
var underN = String.fromCharCode(str.charCodeAt(i)+13);
var overM = String.fromCharCode(str.charCodeAt(i)-13);
if (unicode < 78) {return underN;} return overM;
}
return newStr;
}
// Change the inputs below to test
rot13("SERR YBIR?");
free love
but the return statement only returns f
newStr +=
burinson sends brownie points to @cmccormack :sparkles: :thumbsup: :sparkles:
:star2: 1066 | @cmccormack |http://www.freecodecamp.com/cmccormack
if (unicode is not between A and Z) {don't return anything}
the point of the portfolio page is:
User Story: I can access all of the portfolio webpage's content just by scrolling.
User Story: I can click different buttons that will take me to the portfolio creator's different social media pages.
User Story: I can see thumbnail images of different projects the portfolio creator has built (if you haven't built any websites before, use placeholders.)
User Story: I navigate to different sections of the webpage by clicking buttons in the navigation.
function rot13(str) { // LBH QVQ VG!
var newStr = "";
for (var i = 0; i < str.length; i++) {
var unicode = str.charCodeAt(i);
var underN = String.fromCharCode(str.charCodeAt(i)+13);
var overM = String.fromCharCode(str.charCodeAt(i)-13);
if (unicode < 65 || unicode > 90) {return String.fromCharCode(unicode);}
if (unicode < 78) {newStr += underN;}
else {newStr += overM;}
console.log(newStr);
}
return newStr;
}
// Change the inputs below to test
rot13("SERR YBIR");
.nav-pills > .active > a, .nav-pills > .active > a:hover {
color: red;
}
$.getJSON("https://fcc-weather-api.glitch.me/api/current?lat=35&lon=139", function (a) {
$(".weather").append(a.main.temp)
});
.nav-pills > .active > a, .nav-pills > .active > a:hover {
color: red;
}
>
? this implies the leading element is a parent of the trailing element