<a>
tag's default color?
function whatIsInAName(collection, source) {
// What's in a name?
var arr = [];
// Only change code below this line
var sourceKeys = Object.getOwnPropertyNames(source);
for(var i = 0; i < sourceKeys.length; i++) {
arr = arr.filter(function(){
if (collection.hasOwnProperty(sourceKeys[i])) {
if (collection.sourceKeys[i] === source.sourceKeys[i]){
return true;
}
} else {
return false;
}
});
}
// Only change code above this line
return arr;
}
whatIsInAName([{ first: "Romeo", last: "Montague" }, { first: "Mercutio", last: null }, { first: "Tybalt", last: "Capulet" }], { last: "Capulet" });
arr.filter
nevaisdreaming sends brownie points to @ghulamshabir :sparkles: :thumbsup: :sparkles:
:star2: 1736 | @ghulamshabir |http://www.freecodecamp.com/ghulamshabir
[name](url)
\
to escape parentthesis not sure
nevaisdreaming sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 873 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
var phrase = document.getElementById('quoteToTweet').innerText; // use innerText instead
phrase = phrase.replace(/\/r/g,''); // remove this as it's not needed with innerText
var tweetUrl = 'https://twitter.com/intent/tweet?hashtags=quotes&related=freecodecamp&text=' + $('#quoteToTweet').text();
window.open(tweetUrl);
<div id="work-section" class="clearfix"
#work-section {
background-size: cover;
background: #080808;
height: 100%;
width: 100%;
overflow:hidden;
padding-top: 50px;
}
#work-section {
background-size: cover;
background: #080808;
height: 100%;
width: 100%;
overflow:hidden;
overflow-y: auto;
padding-top: 50px;
}
:cookie: 278 | @boardley |http://www.freecodecamp.com/boardley
heysadboy sends brownie points to @boardley :sparkles: :thumbsup: :sparkles:
rene-meda sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
:star2: 1363 | @tylermoeller |http://www.freecodecamp.com/tylermoeller
<img src=“https://upload.wikimedia.org/wikipedia/commons/3/31/Michael_Jackson_in_1988.jpg” />
:cookie: 357 | @blockshot12 |http://www.freecodecamp.com/blockshot12
alfaiz-momin sends brownie points to @blockshot12 :sparkles: :thumbsup: :sparkles:
@Josie-N Hey Josie, when you say thumbnail, could you describe exactly what you are trying to achieve? Do you mean the border?
As a tip, if you want to apply multiple classes to an element, just have one class delcaration class="img-thumbnail center-block smaller-image border”. You cannot have multiple class attributes.
<img class="img-thumbnail center-block smaller-image border" src="https://s-media-cache-ak0.pinimg.com/564x/9b/08/1c/9b081cc97a65b99a4daf7aa24c173ed1.jpg" alt="Portrait of Alexander McQueen">
margin: 0 auto;
display: block;
and margin: 0 auto;
or set text-align: center;
on a parent of it
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<style>
h1{
text-decoration:underline;
}
</style>
<title>tribute page</title>
</head>
<body>
<h1 align="center"> S.R. Tendulkar</h1>
<h3 align="center">If cricket is religion then Sachin is God </h3>
<img style="position:absolute; TOP:120px;LEFT:340px;" src="http://res.cloudinary.com/rish/image/upload/v1485091046/rish_egwlog.jpg" alt="sachin" width="50%" height="150%">
<h1>hello everyone</h1>
:cookie: 287 | @ritvarsz |http://www.freecodecamp.com/ritvarsz
rish-hap sends brownie points to @ritvarsz :sparkles: :thumbsup: :sparkles:
Hi guys!I wrote a code in the "profile lookup" in basic javascript and it passed but i believe there's a much simpler code.can anyone please tell me a simpler code?
//Setup
var contacts = [
{
"firstName": "Akira",
"lastName": "Laine",
"number": "0543236543",
"likes": ["Pizza", "Coding", "Brownie Points"]
},
{
"firstName": "Harry",
"lastName": "Potter",
"number": "0994372684",
"likes": ["Hogwarts", "Magic", "Hagrid"]
},
{
"firstName": "Sherlock",
"lastName": "Holmes",
"number": "0487345643",
"likes": ["Intriguing Cases", "Violin"]
},
{
"firstName": "Kristian",
"lastName": "Vos",
"number": "unknown",
"likes": ["Javascript", "Gaming", "Foxes"]
}
];
function lookUpProfile(firstName, prop){
// Only change code below this line
var results = false;
for(var i = 0;i<contacts.length; i++) {
if(contacts[i].firstName == firstName) {
if(contacts[i].hasOwnProperty(prop)){
results = true;
return contacts[i][prop];
}
else {
return "No such property";
}
}
} if (results === false) {
return "No such contact";
}
// Only change code above this line
}
// Change these values to test your function
lookUpProfile("Akira", "likes");
mookh01 sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
:star2: 1364 | @tylermoeller |http://www.freecodecamp.com/tylermoeller
results
variable.
jrandallhansen sends brownie points to @blockshot12 :sparkles: :thumbsup: :sparkles:
:cookie: 358 | @blockshot12 |http://www.freecodecamp.com/blockshot12
<a "target="_blank" id="twitter" href="https://twitter.com/mostafamasrileb"><i class="fa fa-twitter" aria-hidden="true"></i></a> <!--- Look at your target attribute! Syntax error -->
<a target="_blank" id="facebook" href="https://facebook.com/i27.o.o.1"><i class="fa fa-facebook" aria-hidden="true"></i></a>
<a target="_blank" id="google" href="https://google.com/+thefakeweed"><i class="fa fa-google" aria-hidden="true"></i></a>
@mml3b Sorry just saw this. (Make sure you tag me when you reply)
You can use the CSS :hover Selector to write your own hover transition effects.
Example:
a:hover i { /*hover = when you mouse over them.*/
transition: all;
color: rgba(0, 0, 0, 0.86);
}
@mml3b Use classes intead of IDs for your icon selectors:
.twitter {color: blue;} /** Don't forget to change id="twitter" to class="twitter" as well **/
.facebook {color: purple;}
.google {color: red;}
The reason for this is because ID selectors have a higher cascade values than classes and as a result overlapping class styles.
HTML Inspector warnings:
The classes text-primary (1) bg-warning (1) bg-success (1) contact (1) fa (3) fa-twitter (1) fa-facebook (1) fa-google (1) gallery (1) center-block (1) img-circle (1) are used in the HTML but not found in any stylesheet. Since you have external stylesheets, you can probably ignore this.
<meta> elements inside <body> must contain the 'itemprop' attribute.
The <center> element is obsolete and should not be used.
'"target' is not a valid attribute of the <a> element.
'"target' is not a valid attribute of the <a> element.
'"target' is not a valid attribute of the <a> element.
<meta> elements inside <body> must contain the 'itemprop' attribute.
The <center> element is obsolete and should not be used.
'"target' is not a valid attribute of the <a> element.
'"target' is not a valid attribute of the <a> element.
'"target' is not a valid attribute of the <a> element.
There used to be a rule mentioned for the project that said "Rule #1: Don't look at the sample project's source code", now it looks like it just says:
There are many great portfolio templates out there already. However, you should consider building your portfolio page as much as you can from the ground up. Using Bootstrap can help make this process much easier for you.
aimee-katherine sends brownie points to @treddson and @tylermoeller and @sorinr :sparkles: :thumbsup: :sparkles:
:star2: 1366 | @tylermoeller |http://www.freecodecamp.com/tylermoeller
:star2: 1126 | @sorinr |http://www.freecodecamp.com/sorinr
:cookie: 123 | @treddson |http://www.freecodecamp.com/treddson
aimee-katherine sends brownie points to @monkeyfingerz :sparkles: :thumbsup: :sparkles:
:cookie: 119 | @monkeyfingerz |http://www.freecodecamp.com/monkeyfingerz
@TylerMoeller Thought you might have some input about my question:
If our only "portfolio" to date is the tribute page we've made, how can we be expected to put together an entire portfolio of all our work?
treddson sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
:star2: 1367 | @tylermoeller |http://www.freecodecamp.com/tylermoeller
treddson sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
:warning: treddson already gave tylermoeller points
grajsb sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 874 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
i need a way to parse this api
urself whats the inputs and output what u have what kind of modificatins u do and after modify how it should looks like
api = "something"
text = "aaaa"
api = api + text
$
('some selector')r
chsearch
=$search
);
boooo
boooo
$search
= $('input[name=search]').val();search
+joiner;
shenoyabhijith sends brownie points to @moigithub :sparkles: :thumbsup: :sparkles:
:star2: 2576 | @moigithub |http://www.freecodecamp.com/moigithub
function phoneticLookup(val) {
var result = "";
// Only change code below this line
var lookup={
"alpha":"Adams",
"bravo":"Boston",
"charlie":"Chicago",
"delta":"Denver",
"echo":"Easy",
"foxtrot":"Frank"
};
// Only change code above this line
return result;
}
:cookie: 265 | @lafisrap |http://www.freecodecamp.com/lafisrap
cduffy098 sends brownie points to @lafisrap :sparkles: :thumbsup: :sparkles:
// Setup
function phoneticLookup(val) {
var result = "";
// Only change code below this line
var lookup={
"alpha":"Adams",
"bravo":"Boston",
"charlie":"Chicago",
"delta":"Denver",
"echo":"Easy",
"foxtrot":"Frank"
};
result=lookup.val;
// Only change code above this line
return result;
}
// Change this value to test
phoneticLookup("charlie");
:cookie: 209 | @hello911 |http://www.freecodecamp.com/hello911
lafisrap sends brownie points to @hello911 :sparkles: :thumbsup: :sparkles:
aguantincho sends brownie points to @09jdphil :sparkles: :thumbsup: :sparkles:
:cookie: 323 | @09jdphil |http://www.freecodecamp.com/09jdphil