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
Tyler Moeller
@TylerMoeller
@Josie-N If you need help with the grid, feel free to ask here. Very useful for organizing everything and laying out the content on your page. Good luck :+1:
GCastro51
@GCastro51
Anyone know how to remove the variable type information in an array key? Ex) string(10) "display_id" => 2267
Would I just run the array through an array_map function?
Josie
@Josie-N
https://codepen.io/CMYK/pen/bgqOxG?editors=1100
So I managed to pull everything to the left, but I want to add one more thumbnail (or container, whichever works, on the right). @TylerMoeller
How could I do that?
You see there is a small little container on the very bottom right of the page, but I can't move it upwards for the life of me. :worried:
Oh no, everything's messed up on a smaller screen!
Tyler Moeller
@TylerMoeller
@Josie-N I don't think pull-left is the way to go here. Columns stack from left to right, so you can put your columns in a row and choose the size you want as you stack them to the right.
Nick
@JummboShrimp
how do I center an image inside a bootstrap well? i have the image in one of my wells, but it is slightly off-center and it is annoying the shit out of me
Josie
@Josie-N
@TylerMoeller wow, how can I put all my columns in a row?
like the grid you sent me?
Tyler Moeller
@TylerMoeller
@Josie-N Yes, like the grids that I sent you. Grids go in rows and rows go in containers. This is an example of different layouts: http://s.codepen.io/TylerMoeller/pen/qNrbok
The layout possibilities are endless, but it should give an idea of how you can implement the Image and text the way you want for your tribute page.
(Without me giving you the exact code, anyway :))
Josie
@Josie-N
@TylerMoeller Thanks, that really helps, I'll delete the pull-lefts and try to rearrange them.
CamperBot
@camperbot
josie-n sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
:warning: josie-n already gave tylermoeller points
Josie
@Josie-N
I'll probably take me 4 days or something.
Tristan R
@TristanTaka
So I made it too 120, where we have to design our own portfolio... I breezed through up until 120 but now I am at a dead stop. I am un-sure how we are expected to make a site like the one put on example when up until 120 haven't learned JS and that intensive of CSS?
Are we just supposed to make a portfolio based off our HTML/ Bootstrap knowledge and just not even attempt making something like the site given as a example?
JD Tadlock
@jdtdesigns
@TristanTaka FCC wasn't created to teach you how to code. It's purpose is to challenge you to learn.
So now comes the research and learning on your part
when you're ready, you can come back and finish the project
the process will be the same as you move through
hit wall, research, code 100 different ways to figure out how to do something, come back finish fcc project/challenge ;)
Josie
@Josie-N
@jdtdesigns good advice
Hello911
@Hello911
//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

 for(var i=0;i<contacts.length;i++){
   if (contacts[i].firstName){
     if (contacts[i].prop){
       return contacts[i].prop;
     }else return "No such contact";


   }else return "No such property";
 } 



// Only change code above this line
}

// Change these values to test your function
lookUpProfile("Akira", "likes");
How do I make "Kristian", "lastName" return "Vos"?
JD Tadlock
@jdtdesigns
@TristanTaka The reality is this stuff takes a long time to learn for the average person. I'm 8 years in and still feel like a noob all the time. :D
@Hello911 You should be using bracket notation with the function params ;)
Hello911
@Hello911
 for(var i=0;i<contacts.length;i++){
   if (contacts[i][firstName]){
     if (contacts[i][prop]){
       return contacts[i][prop];
     }else return "No such contact";


   }else return "No such property";
 }
Like this? @jdtdesigns
Sono Oricco
@Bloemenstraat
Who is prolific using APIs ? I need help for a job, but only in pm, pliiiiz
JD Tadlock
@jdtdesigns
@Hello911 getting close
you're checking if an object named 'bob' exists though
you should be checking to see if the function argument firstName equals the .firstName prop of any of the objects
Christopher
@bradley1492
Hey guys, I am a little bit stuck on the "build a random quote machine" challenge. I got it to randomly give out quotes, but i can´t figure out how to tweet the exact same quote. Now i thought about updating the href of the twitter link through javascript but I am not sure.. Nay advice from you guys?
JD Tadlock
@jdtdesigns
@bradley1492 You can use the twitter intent url and update the href of the link on each new quote. You're on the right track ;)
MaxLAB
@Max-LAB
@bradley1492 you can simply use window.open and twitter url in it
Christopher
@bradley1492
Thanks guys
JD Tadlock
@jdtdesigns
Christopher
@bradley1492
:)
JD Tadlock
@jdtdesigns
you can just concat the quote on the end
no need for window.open ;)
Christopher
@bradley1492
Cool I´ll give those tips some tries!
MaxLAB
@Max-LAB
@jdtdesigns how can you open url without window.open or openURL in *.js file?
JD Tadlock
@jdtdesigns
easy @Max-LAB
just change the href of the tweet link
and make sure it has target="_blank"
Hello911
@Hello911

@jdtdesigns

 for(var i=0;i<contacts.length;i++){
   if (contacts[i].firstName==firstName){

     if (contacts[i][prop]){
       return contacts[i][prop];
     }else return "No such property";


   }else return "No such contact";
 }

Still, tho, not all the requirements are met.
.

MaxLAB
@Max-LAB
@jdtdesigns .attr("href", "http link"); got it.. nice approach :+1:
JD Tadlock
@jdtdesigns
@Hello911 You don't need the else for no such contact
just place that outside the for
@Max-LAB ;)