These are chat archives for FreeCodeCamp/Help

27th
Jul 2017
Stephen James
@sjames1958gm
Jul 27 2017 00:04
@artoodeeto Why one line? you can have a series of html += lines
@SourceHorse When you update the quote - update the href in the twitter a tag.
@artoodeeto If you use template strings then you can have multiple lines in js
remisky
@remisky
Jul 27 2017 00:13
HOW DO I REMOVE THIS CHAT ROOM??
CAN SOMEBODY TELL ME HOW LOL!
<b>Necesita Ayuda</b> lol
Nick Cleary
@Hijerboa
Jul 27 2017 00:40
@remisky on the left column, click the three dots next to the name, then click leave
Gulsvi
@gulsvi
Jul 27 2017 01:08
@artoodeeto Check out template literals, they are perfect for what you are trying to do: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
    $('.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>`
    );
@remisky /leave command
Kyle Holm
@thekholm80
Jul 27 2017 01:26
why do dropdown menus suck so much?
Nahuel Ovejero
@NahuelOvejero
Jul 27 2017 01:35
@remisky al costado del numero de mensajes, apreta los 3 puntitos y pone "Leave"
RickArora
@RickArora
Jul 27 2017 01:43
https://codepen.io/rtyer/pen/dzodbM c any idea why the collaspible stuff not working guys?
Margaret
@Margaret2
Jul 27 2017 01:51
@diomed ahahahaha.... :D :D
why not Sea cookie?
Kyle Holm
@thekholm80
Jul 27 2017 01:55
because syrup?
Margaret
@Margaret2
Jul 27 2017 02:31
frosting > syrup
:yum:
Kyle Holm
@thekholm80
Jul 27 2017 03:00
not on pancakes lol
Joseph
@revisualize
Jul 27 2017 03:20
Hello.
Nahuel Ovejero
@NahuelOvejero
Jul 27 2017 03:22
:wave:
shivam gupta
@shivamg11000
Jul 27 2017 03:25
hey how to write a reducer for this
https://movie-app11.surge.sh
Jill Lee
@jill-lee
Jul 27 2017 03:40
Hi how do I change the bg color of my nav bar when you hover on it? also, text align center doesnt work why is this?
https://codepen.io/phoenix-burn/pen/bRRaEO
Kyle Holm
@thekholm80
Jul 27 2017 03:42
@phoenix-burn
.navbar-header:hover {
  background-color:white;
}
Jill Lee
@jill-lee
Jul 27 2017 03:43
@thekholm80 Hi Kyle it doesnt work I want to change it to black when you scroll to the white page so that you can still see the list on the drop down
so white when the bg is black and it turns black when its on the white page is this possible with css?
Kyle Holm
@thekholm80
Jul 27 2017 03:43
that changes the background color when you hover over your navbar
oh, you don't want to change the navbar, you want to change the drop down menu?
guess i don't know what you want
Jill Lee
@jill-lee
Jul 27 2017 03:46
@thekholm80 Sorry I wasnt clear - So right now when you hover on the nav bar the font turns white and that is great but when you scroll down, on the white page I want to turn the font color to black when you hover on the nav bar is it possible?
Stanley Su
@stanley-su
Jul 27 2017 03:47
@phoenix-burn You should use javascript. When the pageX reaches the white area (use an event listener), change the color to black
Jill Lee
@jill-lee
Jul 27 2017 03:48
@stanley-su ok I'll try JS thanks, but can you help me with the text-alignment? I want the header to float on the center doesnt work
CamperBot
@camperbot
Jul 27 2017 03:48
phoenix-burn sends brownie points to @stanley-su :sparkles: :thumbsup: :sparkles:
:cookie: 88 | @stanley-su |http://www.freecodecamp.com/stanley-su
Eric Miller
@ericmiller777
Jul 27 2017 03:48
why does my twitter button try and tweet this:
Jill Lee
@jill-lee
Jul 27 2017 03:48
@thekholm80 thanks for helping
CamperBot
@camperbot
Jul 27 2017 03:48
phoenix-burn sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1376 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Eric Miller
@ericmiller777
Jul 27 2017 03:49
function (a){return T(this,function(a){return void 0===a?r.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)}\
Stanley Su
@stanley-su
Jul 27 2017 03:49
@ericmiller777 link your code
@phoenix-burn Change your .nav-bar css to this:
.nav-bar {
  font-family: 'Oswald', sans-serif;
  font-size: 120%;
  display: flex;
  justify-content: center;
}
Jill Lee
@jill-lee
Jul 27 2017 03:56
@stanley-su ok but tryng to center my name and the front-end after it
Stanley Su
@stanley-su
Jul 27 2017 04:00

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;
}
Jill Lee
@jill-lee
Jul 27 2017 04:03
@stanley-su sorry I wasnt clear thanks it works! :D
CamperBot
@camperbot
Jul 27 2017 04:03
:warning: phoenix-burn already gave stanley-su points
phoenix-burn sends brownie points to @stanley-su :sparkles: :thumbsup: :sparkles:
heroiczero
@heroiczero
Jul 27 2017 04:17
@ericmiller777 you want to use https://twitter.com/intent/tweet?text= and the text of the quote you want to tweet
@ericmiller777 for more information https://dev.twitter.com/web/tweet-button
Eric Miller
@ericmiller777
Jul 27 2017 04:22
@heroiczero tested it seems to be the same
heroiczero
@heroiczero
Jul 27 2017 04:35
@ericmiller777 maybe forgot () in var quote = $(".message").text(); and maybe just use quote
Eric Miller
@ericmiller777
Jul 27 2017 04:35
okay
@heroiczero lol now it returns [object Object]
weird
heroiczero
@heroiczero
Jul 27 2017 04:40
@ericmiller777 maybe you could retrieve the quote directly from the JSON and store it and link it to twitter
Eric Miller
@ericmiller777
Jul 27 2017 04:40
Well the thing is then it would pass a random quote
unless i figured out how to check the id >.>;
@heroiczero might have it
@heroiczero thanks
CamperBot
@camperbot
Jul 27 2017 04:41
ericmiller777 sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1537 | @heroiczero |http://www.freecodecamp.com/heroiczero
Eric Miller
@ericmiller777
Jul 27 2017 04:42
i had a div with a class quote
seems you cant have a var and a class
heroiczero
@heroiczero
Jul 27 2017 04:43
@ericmiller777 hmm interesting
Eric Miller
@ericmiller777
Jul 27 2017 04:44
was good to learn also you () issue helped
your*
Jill Lee
@jill-lee
Jul 27 2017 05:08
Im at work and I dont have access to photoshop and I was wondering if anyone can help me edit my bg image? I want to move it to the center with black background
or if anyone can suggest a free photoeditor online that works like photoshop :)
wonder
@wonder2991
Jul 27 2017 05:10
@phoenix-burn https://www.gimp.org/
Jill Lee
@jill-lee
Jul 27 2017 05:14
@wonder2991 thanks
CamperBot
@camperbot
Jul 27 2017 05:14
phoenix-burn sends brownie points to @wonder2991 :sparkles: :thumbsup: :sparkles:
:cookie: 413 | @wonder2991 |http://www.freecodecamp.com/wonder2991
wonder
@wonder2991
Jul 27 2017 05:15
np
Viktor Tiutiun
@vittorioVT
Jul 27 2017 05:57
hello everybody
Victor Popescu
@VicPopescu
Jul 27 2017 05:58
@vittorioVT hello
Viktor Tiutiun
@vittorioVT
Jul 27 2017 05:58
@VicPopescu hi
ziyoudaboss
@ziyoudaboss
Jul 27 2017 06:34
18节的正确答案是什么呀
求助一下下
Claudio Restifo
@Marmiz
Jul 27 2017 07:13
@ziyoudaboss try the chiniese channel https://gitter.im/FreeCodeCamp/chinese
Andrei Bratu
@andreibratu26
Jul 27 2017 07:19
Hello guys, anyone know why the output size of an icon is smaller than how it looks on the code page in codepen?
https://codepen.io/andreibratu/pen/jLPyLW look here at the facebook size
And then press full screen
wonder
@wonder2991
Jul 27 2017 07:22
@pwnsterrr To increase icon sizes relative to their container, use the fa-lg (33% increase), fa-2x, fa-3x, fa-4x, or fa-5x classes.
<i  class="fa fa-facebook fa-2x"></i>
Eric Miller
@ericmiller777
Jul 27 2017 07:23
going to fix the bottom bar, but how do you guys feel about this?
Darth Skywalker
@AdiSkywalker
Jul 27 2017 07:25
@ericmiller777 That horizontal scroll bar makes me feel sick!
Viktor Tiutiun
@vittorioVT
Jul 27 2017 07:26
@pwnsterrr try this: .fa {
font-size: 120px;
}
wonder
@wonder2991
Jul 27 2017 07:27

download (1).png

@ericmiller777 some of your content's outside the view

Andrei Bratu
@andreibratu26
Jul 27 2017 07:29
@wonder2991 thanks alot , that worked
CamperBot
@camperbot
Jul 27 2017 07:29
pwnsterrr sends brownie points to @wonder2991 :sparkles: :thumbsup: :sparkles:
:cookie: 414 | @wonder2991 |http://www.freecodecamp.com/wonder2991
wonder
@wonder2991
Jul 27 2017 07:30
np
Andrei Bratu
@andreibratu26
Jul 27 2017 07:35
das
Lf
Eric Miller
@ericmiller777
Jul 27 2017 07:36
@wonder2991 @D3adL0ck19 any tips to get it too work on more screens, looks fine for me....
Eric Miller
@ericmiller777
Jul 27 2017 07:45
@wonder2991 thanks
CamperBot
@camperbot
Jul 27 2017 07:45
ericmiller777 sends brownie points to @wonder2991 :sparkles: :thumbsup: :sparkles:
:cookie: 415 | @wonder2991 |http://www.freecodecamp.com/wonder2991
wonder
@wonder2991
Jul 27 2017 07:47
np
Andrei Bratu
@andreibratu26
Jul 27 2017 08:00
Does anybody knows why my codeacademy icon hover effect isnt working ?
Stanley Su
@stanley-su
Jul 27 2017 08:03
@andreibratu26 I can’t see the codeacademy icon, what arey ou talking about?
Viktor Tiutiun
@vittorioVT
Jul 27 2017 08:03
@ericmiller777 you can also connect Bootstrap and use its grid (for different screens)
Andrei Bratu
@andreibratu26
Jul 27 2017 08:03
@stanley-su
Oops i mean codecamp icon , the white one on the table
Adish Jain
@Adishjain58
Jul 27 2017 08:03
@stanley-su open the link in new tab then you will be able to see them
Andrei Bratu
@andreibratu26
Jul 27 2017 08:04
Desk w/e
Stanley Su
@stanley-su
Jul 27 2017 08:04
@Adishjain58 Yes, I just didn’t know which icon he was referring to.
Adish Jain
@Adishjain58
Jul 27 2017 08:04
@stanley-su ok
Andrei Bratu
@andreibratu26
Jul 27 2017 08:04
@Adishjain58 do you know why on the link here my icons are upper than they should be?
Adish Jain
@Adishjain58
Jul 27 2017 08:05
@andreibratu26 what do you mean
Andrei Bratu
@andreibratu26
Jul 27 2017 08:06
@Adishjain58 on the codepen the icons sit right on the desk , but in the window link i sent here they are higher than the desk
Adish Jain
@Adishjain58
Jul 27 2017 08:07
@andreibratu26 make it more responsive
Viktor Tiutiun
@vittorioVT
Jul 27 2017 08:07
@SwampyPk yes, you can add <div class="container yourAnotherClass">
Andrei Bratu
@andreibratu26
Jul 27 2017 08:07
@Adishjain58 how to do that ? i just started
Adish Jain
@Adishjain58
Jul 27 2017 08:08
in the window link the screen size is that of a phone screen @andreibratu26
Andrei Bratu
@andreibratu26
Jul 27 2017 08:08
@Adishjain58 ohh , i didnt learned yet in the HTML/CSS course how to make it fit on other platforms
I guess ill learn that in later courses
Adish Jain
@Adishjain58
Jul 27 2017 08:09
@andreibratu26 you can use the grid system of bootstrap to make it responsive according to devices
Andrei Bratu
@andreibratu26
Jul 27 2017 08:09
@Adishjain58 yea..i didnt learned that lesson yet
Adish Jain
@Adishjain58
Jul 27 2017 08:09
@andreibratu26 but those things came before portfolio project
Andrei Bratu
@andreibratu26
Jul 27 2017 08:09
@Adishjain58 hmm really ? i must've missed it , ill check it right now
Adish Jain
@Adishjain58
Jul 27 2017 08:09
@andreibratu26 ok
Andrei Bratu
@andreibratu26
Jul 27 2017 08:10
@Adishjain58 but before that do you know why the hover effect isnt working on the codecamp icon?
Adish Jain
@Adishjain58
Jul 27 2017 08:11
@andreibratu26 no idea
@andreibratu26 did u make this page by googling many things
Andrei Bratu
@andreibratu26
Jul 27 2017 08:12
@Adishjain58 i googled some things , but mainly used the basics i learned in the course
Why?
Adish Jain
@Adishjain58
Jul 27 2017 08:13
@andreibratu26 nice
@andreibratu26 nothing
Andrei Bratu
@andreibratu26
Jul 27 2017 08:13
Is it wrong looking on google ? Is it cheating?
Adish Jain
@Adishjain58
Jul 27 2017 08:13
@andreibratu26 no
Andrei Bratu
@andreibratu26
Jul 27 2017 08:13
Ok :D
I just started this course 2 weeks ago , i love it so far
Btw thanks for helping :)
Adish Jain
@Adishjain58
Jul 27 2017 08:14
@andreibratu26 welcome
Sorin Ruse
@sorinr
Jul 27 2017 08:16
@andreibratu26 for debugging i would add this to css:
i:hover{
  color: red;
}
Andrei Bratu
@andreibratu26
Jul 27 2017 08:20
Somehow the third icon is messing up the hover on the codecamp icon
The third icon position is affecting it
Guys , when i move one icon the others move too , how to stop that?
Stevie
@cakeisaliegaming
Jul 27 2017 08:44

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?

https://codepen.io/cakeisaliegaming/pen/BdaVVe

whats problem on hover?
Look , hover on codecamp and github isnt working
May Kittens Devour Your Soul
@diomed
Jul 27 2017 08:49
@levani452000 can u be more specific?
Andrei Bratu
@andreibratu26
Jul 27 2017 08:51
@diomed hey, do you know why hover on my github and codecamp icons isnt working?
May Kittens Devour Your Soul
@diomed
Jul 27 2017 08:51
@andreibratu26 why do u have all these h tags on icons???
h1 h2 h3
Andrei Bratu
@andreibratu26
Jul 27 2017 08:51
@diomed good quesiton , thats what i saw at someone on youtube teaching
@diomed should i delete them?
or should i make a ul with them?
SwampyPk
@SwampyPk
Jul 27 2017 08:54
Hey could someone check this JS for me pls? I there anything wrong with it? https://pastebin.com/9mhc0E3j
May Kittens Devour Your Soul
@diomed
Jul 27 2017 08:55
@andreibratu26 that should be used only for written words not for icons
Andrei Bratu
@andreibratu26
Jul 27 2017 08:55
@diomed what else to use instead?
May Kittens Devour Your Soul
@diomed
Jul 27 2017 08:56
nothing. u don't need h around icons at all
Andrei Bratu
@andreibratu26
Jul 27 2017 08:56
@diomed and that will solve the issue with hover not working properly?
May Kittens Devour Your Soul
@diomed
Jul 27 2017 08:58
for me it's hard to say
Andrei Bratu
@andreibratu26
Jul 27 2017 08:58
@diomed let me try
Viktor Tiutiun
@vittorioVT
Jul 27 2017 09:01
@cakeisaliegaming try this: body {
background-image: url("...");
background-repeat: no-repeat;
width: 100%;
height: 100%;
}
Stevie
@cakeisaliegaming
Jul 27 2017 09:02
@vittorioVT but I want the cup to repeat and want it to be small
Viktor Tiutiun
@vittorioVT
Jul 27 2017 09:04
@cakeisaliegaming separately should write styles for image of cup
Stevie
@cakeisaliegaming
Jul 27 2017 09:06
@vittorioVT I don't really understand what you mean? The cup is the background for the body.
Viktor Tiutiun
@vittorioVT
Jul 27 2017 09:11
@cakeisaliegaming your cup is part of your image - you can make it small, but then your picture will also become small. Make your cup a separate image and do with it whatever you want
Stevie
@cakeisaliegaming
Jul 27 2017 09:13
@vittorioVT I still don't get what you mean? The cup is already small, scaled down to 57x50px to be exact. I have no problem with any of the other images, it's only the cup that I'm talking about. All the other images are in their own containers and style seperately.
@vittorioVT btw I'm not taking about the cup image used in the portfolio section
Andrei Bratu
@andreibratu26
Jul 27 2017 09:15
Why cant i move a icon up ? I can only move it right left and down
May Kittens Devour Your Soul
@diomed
Jul 27 2017 09:16
@cakeisaliegaming what are u talking about at all?
Viktor Tiutiun
@vittorioVT
Jul 27 2017 09:16
@cakeisaliegaming ok, I think I just didn't understand you
@diomed hi
Stevie
@cakeisaliegaming
Jul 27 2017 09:19
@vittorioVT :) Sorry it is a bit confusing as there are two images of coffee cups. There's the take away coffee cup used as a placeholder image in my portfolio section. And then there's the steaming ceramic cup of coffee that's tiled and sits behind everything else. The latter is the issue.
May Kittens Devour Your Soul
@diomed
Jul 27 2017 09:19
hi @vittorioVT :cat2:
@cakeisaliegaming we don't see that one at all
is it maybe hosted on imgur
Stevie
@cakeisaliegaming
Jul 27 2017 09:21
@diomed It's hosted on flickr. Weird though, because I can see it in every browser I tried.
levani452000
@levani452000
Jul 27 2017 09:21
why borders is not added?
how to add in navigation bar borders
May Kittens Devour Your Soul
@diomed
Jul 27 2017 09:22
@cakeisaliegaming I see only x instead of image
so u didn't link it good
Stevie
@cakeisaliegaming
Jul 27 2017 09:23
@diomed @vittorioVT Ah, I linked to the wrong codepen!!!
May Kittens Devour Your Soul
@diomed
Jul 27 2017 09:24
for god's :sake:
Stevie
@cakeisaliegaming
Jul 27 2017 09:25
Yeah, I'm such a fool!
Viktor Tiutiun
@vittorioVT
Jul 27 2017 09:25
@levani452000 as for any element, give it a class and in css .el {border: ...; } maybe border-top or border-bottom
May Kittens Devour Your Soul
@diomed
Jul 27 2017 09:27
@cakeisaliegaming what is exactly the problem with background image
it looks good to me
Stevie
@cakeisaliegaming
Jul 27 2017 09:28
@diomed Try looking at in IE or the mobile version of Chrome
@diomed It goes all pixelated
Jill Lee
@jill-lee
Jul 27 2017 09:32
hi i need help with col-sm-4 please. I want to add a margin on the side. When I resize the browser the 2 paragraphs doesnt have a margin
https://codepen.io/phoenix-burn/pen/bRRaEO
Andrei Bratu
@andreibratu26
Jul 27 2017 09:36
Guys help , i got a div with bunch of icons inside it
The problem is that when i move one , the others move too , how to stop that?
May Kittens Devour Your Soul
@diomed
Jul 27 2017 09:37
@phoenix-burn there should be only 1 row, lady
Viktor Tiutiun
@vittorioVT
Jul 27 2017 09:38
@phoenix-burn your portfolio is super!
CamperBot
@camperbot
Jul 27 2017 09:38
phoenix-burn sends brownie points to @diomed :sparkles: :thumbsup: :sparkles:
:star2: 5192 | @diomed |http://www.freecodecamp.com/diomed
Jill Lee
@jill-lee
Jul 27 2017 09:38
@vittorioVT thanks :)
May Kittens Devour Your Soul
@diomed
Jul 27 2017 09:39
no cookies 4 u Victor
camperbot is :zzz:
Viktor Tiutiun
@vittorioVT
Jul 27 2017 09:39
@diomed :worried:
Jill Lee
@jill-lee
Jul 27 2017 09:40
@diomed sorry but i dont understand the grid view says rows for every column? what am i doing wrong here? when the i remove the row it messes it up.
@vittorioVT lets try again thanks haha
CamperBot
@camperbot
Jul 27 2017 09:40
phoenix-burn sends brownie points to @vittoriovt :sparkles: :thumbsup: :sparkles:
:cookie: 803 | @vittoriovt |http://www.freecodecamp.com/vittoriovt
Viktor Tiutiun
@vittorioVT
Jul 27 2017 09:40
@phoenix-burn thanks and you
CamperBot
@camperbot
Jul 27 2017 09:40
vittoriovt sends brownie points to @phoenix-burn :sparkles: :thumbsup: :sparkles:
:cookie: 157 | @phoenix-burn |http://www.freecodecamp.com/phoenix-burn
May Kittens Devour Your Soul
@diomed
Jul 27 2017 09:45
@phoenix-burn there is only 1 row:
<div class="row">
    <div class="col-sm-4">....</div>
    <div class="col-sm-4">....</div>
    <div class="col-sm-4">....</div>
</div>
and those 3 are in it
Jill Lee
@jill-lee
Jul 27 2017 09:46
@diomed thanks! It worked! :)
CamperBot
@camperbot
Jul 27 2017 09:46
phoenix-burn sends brownie points to @diomed :sparkles: :thumbsup: :sparkles:
:warning: phoenix-burn already gave diomed points
May Kittens Devour Your Soul
@diomed
Jul 27 2017 09:48
great
please say how to add borders on navigation bar it is not adding
wonder
@wonder2991
Jul 27 2017 10:00
@levani452000
.navbar-default {
    border: 5px solid black;
}
Help please
When i move a icon others move at same time . How do i stop that ?
levani452000
@levani452000
Jul 27 2017 10:04
no iwant to add borders to list
and not to whole bar
May Kittens Devour Your Soul
@diomed
Jul 27 2017 10:05
what list?
levani452000
@levani452000
Jul 27 2017 10:06
list items
in ul
wonder
@wonder2991
Jul 27 2017 10:07
.nav li {
    border:1px solid black;
}
levani452000
@levani452000
Jul 27 2017 10:09
thank you
wonder
@wonder2991
Jul 27 2017 10:10
np
Marlon
@borgatajunky
Jul 27 2017 11:01

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?

Stanley Su
@stanley-su
Jul 27 2017 11:01
@borgatajunky Well tell us what the last one is
Marlon
@borgatajunky
Jul 27 2017 11:02
It's saying str.repeat is not a function at repeatIt
Directions are repeat the string n times and if anything other than a string is passed in you should return "Not a string"
Victor Popescu
@VicPopescu
Jul 27 2017 11:04
@borgatajunky how does typeof "" works? (in your case, obvious)
Emmanuel Akodia
@akodiaemma
Jul 27 2017 11:05
hello im mr meeseeks look at me!!!!!!!!!!!!!!!!!!!
can anyone help me transfer this code to local files from my pen
i wnat the page to look like the way it is on the pen
Darth Skywalker
@AdiSkywalker
Jul 27 2017 11:06
Emmanuel Akodia
@akodiaemma
Jul 27 2017 11:06
PLEASE ANYONE
Marlon
@borgatajunky
Jul 27 2017 11:07
Returns a string? Guessing that's no good
Lol
Emmanuel Akodia
@akodiaemma
Jul 27 2017 11:07
@AdiSkywalker THAK YOU sKYWALKER
Darth Skywalker
@AdiSkywalker
Jul 27 2017 11:07
@akodia488 :laughing:
Stanley Su
@stanley-su
Jul 27 2017 11:07
@borgatajunky You’re checking the wrong thing. typeof “” always returns “string”. you need to check the type of the argument
Marlon
@borgatajunky
Jul 27 2017 11:07
Ideas?
Victor Popescu
@VicPopescu
Jul 27 2017 11:08
@borgatajunky so you check typeof random string, and if that is true, you repeat provided string n times?
i don't get it..
Marlon
@borgatajunky
Jul 27 2017 11:09
I just substituted typeof for String and still getting one fail out of 44
Stanley Su
@stanley-su
Jul 27 2017 11:10
@borgatajunky did you read my message? typeof “” always returns “string”. you should check if the argument passed in is a string.
Marlon
@borgatajunky
Jul 27 2017 11:10
Repeat a given string n times unless it's not a string in which case u return "Not a string"
Emmanuel Akodia
@akodiaemma
Jul 27 2017 11:10
any one know any progrm
Victor Popescu
@VicPopescu
Jul 27 2017 11:10
@borgatajunky like @stanley-su said :D
Emmanuel Akodia
@akodiaemma
Jul 27 2017 11:10
programming softwares we can use in a team and make progermaming easier with a lan network
Marlon
@borgatajunky
Jul 27 2017 11:11
Sorry didn't see your comment
Emmanuel Akodia
@akodiaemma
Jul 27 2017 11:11
like we connect with a LAN cable and both launch the softwares then we program together
Stanley Su
@stanley-su
Jul 27 2017 11:11
@akodia488 idk about a lan but if you’re interested in an online one, c9.io is pretty good, however even though it’s free you will have to provide your credit card.
Victor Popescu
@VicPopescu
Jul 27 2017 11:11
@borgatajunky (typeof str === "string") // that will be true or false
Emmanuel Akodia
@akodiaemma
Jul 27 2017 11:12
any free programs you know.... nopt online but local
Victor Popescu
@VicPopescu
Jul 27 2017 11:13
@akodia488 local, well I don't think that exists
@akodia488 you can build one tho
@akodia488 use Electron, make an app to allow you that
Darth Skywalker
@AdiSkywalker
Jul 27 2017 11:14
I'm gonna make that App :laughing:
I'll name it pengu
Victor Popescu
@VicPopescu
Jul 27 2017 11:15
@AdiSkywalker I think it's easy, with electron you can use javascript and html, css. and you just sync both app instances
don't steal my signature :D
Pethaf
@Pethaf
Jul 27 2017 11:15
Hello again people.
Victor Popescu
@VicPopescu
Jul 27 2017 11:15
Hello
Darth Skywalker
@AdiSkywalker
Jul 27 2017 11:16
@VicPopescu okay.. will name it peingui
Emmanuel Akodia
@akodiaemma
Jul 27 2017 11:16
@VicPopescu you mean you can do that?
Darth Skywalker
@AdiSkywalker
Jul 27 2017 11:16
gui also stands for graphical user interface
Emmanuel Akodia
@akodiaemma
Jul 27 2017 11:16
build it, thatd be amazing
Victor Popescu
@VicPopescu
Jul 27 2017 11:16
@AdiSkywalker :worried:
Pethaf
@Pethaf
Jul 27 2017 11:16
@VicPopescu Do you work professionally as a software developer?
Darth Skywalker
@AdiSkywalker
Jul 27 2017 11:17
@akodia488 If you're asking questions like how to take code off codepen to the local, you're probably not ready to start building it yet :laughing:
JK
Victor Popescu
@VicPopescu
Jul 27 2017 11:17
@akodia488 yea, I can do that. Good idea for another free soft project.
@Pethaf yea, I do
Darth Skywalker
@AdiSkywalker
Jul 27 2017 11:17
@VicPopescu Wanna collaborate?
Emmanuel Akodia
@akodiaemma
Jul 27 2017 11:17
@VicPopescu i know python and kotlin maybe i can help
Victor Popescu
@VicPopescu
Jul 27 2017 11:17
@AdiSkywalker well, why not. but first need to think how I can do it
Emmanuel Akodia
@akodiaemma
Jul 27 2017 11:17
@AdiSkywalker i have an issue with connection hte libraries i had used...
Darth Skywalker
@AdiSkywalker
Jul 27 2017 11:18
after taking code to local?
@akodia488
Pethaf
@Pethaf
Jul 27 2017 11:18
@VicPopescu I just did another scan through of the wanted ads.
Sometimes I get really depressed.
I couldn't find a single ad asking for less than 4 years of experience.
Stanley Su
@stanley-su
Jul 27 2017 11:18
@VicPopescu I looked at your CodePen profile, I really like your weather app.
Victor Popescu
@VicPopescu
Jul 27 2017 11:18
@Pethaf you don't have to, and even if they ask 10 years, you just send your resume
Emmanuel Akodia
@akodiaemma
Jul 27 2017 11:18
@AdiSkywalker i have the website up and running but i have failed to make the javascript library of particle.js work well on my local computer
i cant seem to find the problem
Victor Popescu
@VicPopescu
Jul 27 2017 11:19
@stanley-su thx
CamperBot
@camperbot
Jul 27 2017 11:19
vicpopescu sends brownie points to @stanley-su :sparkles: :thumbsup: :sparkles:
:cookie: 91 | @stanley-su |http://www.freecodecamp.com/stanley-su
Emmanuel Akodia
@akodiaemma
Jul 27 2017 11:19
then i also want to download a few glyphicons but dont know how to
Victor Popescu
@VicPopescu
Jul 27 2017 11:20
@akodia488 it's a pain with local resources, most of them doesn't have proper instructions for local install, i know...
Darth Skywalker
@AdiSkywalker
Jul 27 2017 11:20
@akodia488 Get those library urls from some cdn?
Emmanuel Akodia
@akodiaemma
Jul 27 2017 11:20
i intend to use them in my github pages but github pages doesnt allow cdn,..it only uses files ffrom the master repository
so....
@AdiSkywalker
Darth Skywalker
@AdiSkywalker
Jul 27 2017 11:21
@akodia488 Right. Then use something like webpack to bundle all your dependencies and ship them to your github repo
You can take look at my repo
Emmanuel Akodia
@akodiaemma
Jul 27 2017 11:22
what is this web pack you speak of skywalkr
Darth Skywalker
@AdiSkywalker
Jul 27 2017 11:22
I have done something similar
Emmanuel Akodia
@akodiaemma
Jul 27 2017 11:23
let me check it out
Marlon
@borgatajunky
Jul 27 2017 11:27

Function repeatIt (str,n) { return typeof str === "string" ? str.repeat(n) : "Not a string";}

// worked!! Thanks guys I know I'm noobin hard :(

Thanks again
Victor Popescu
@VicPopescu
Jul 27 2017 11:29
@borgatajunky gj
how to make icon white after li hover
not only background color
May Kittens Devour Your Soul
@diomed
Jul 27 2017 11:37
@akodia488 existence is pain
levani452000
@levani452000
Jul 27 2017 11:39
someone hel?
help
Emmanuel Akodia
@akodiaemma
Jul 27 2017 11:41
@diomed wtf does that mean bro?
May Kittens Devour Your Soul
@diomed
Jul 27 2017 11:45
@akodia488 isn't that your moto?
.
Emmanuel Akodia
@akodiaemma
Jul 27 2017 11:46
@diomed mmmmmmm who told you? only our creator ricky know this? i dont like the sound of this? arrggghhhh
wonder
@wonder2991
Jul 27 2017 11:54
@levani452000
.nav li a i:hover {
    color: white;
}
May Kittens Devour Your Soul
@diomed
Jul 27 2017 11:55
@wonder2991 u seem pretty good at this . maybe u should make me a navbar :)
wonder
@wonder2991
Jul 27 2017 11:57
i'm just bored at work. @diomed
May Kittens Devour Your Soul
@diomed
Jul 27 2017 11:58
where are ufrom? which country?
wonder
@wonder2991
Jul 27 2017 11:58
india. 30min till i get off
levani452000
@levani452000
Jul 27 2017 12:00
@wonder2991 it works on on icons and how can i do it same with other buttons?
Markus Gihady Azer
@MarkusAzer
Jul 27 2017 12:07
Good evening everybody, does any one have idea why my buttom doesnt work?!
https://codepen.io/MarkusAzer/pen/xrmQwP?editors=1010
wonder
@wonder2991
Jul 27 2017 12:13
@levani452000 which button?
Markus Gihady Azer
@MarkusAzer
Jul 27 2017 12:14
get quote
@wonder2991 get quote, i created api and it should be changing once i click the button
wonder
@wonder2991
Jul 27 2017 12:16
@MarkusAzer fix the errors in your console
Markus Gihady Azer
@MarkusAzer
Jul 27 2017 12:17
oh thank @wonder2991 , i didnt know that i can see console on codepin
CamperBot
@camperbot
Jul 27 2017 12:17
markusazer sends brownie points to @wonder2991 :sparkles: :thumbsup: :sparkles:
:cookie: 418 | @wonder2991 |http://www.freecodecamp.com/wonder2991
Markus Gihady Azer
@MarkusAzer
Jul 27 2017 12:29
@wonder2991 can you give me a hint?!
Eric Weiss
@eweiss17
Jul 27 2017 12:31
this one bro : XMLHttpRequest cannot load https://api.forismatic.com/api/1.0/?method=getQuote&lang=en&format=jsonp. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://s.codepen.io' is therefore not allowed access.
Zhisi
@Zhisione
Jul 27 2017 12:33
this is the way to post a code?
Markus Gihady Azer
@MarkusAzer
Jul 27 2017 12:33
oh thanks bro @eweiss17 , i were just missing capital T for dataType,, lol
CamperBot
@camperbot
Jul 27 2017 12:33
markusazer sends brownie points to @eweiss17 :sparkles: :thumbsup: :sparkles:
:cookie: 567 | @eweiss17 |http://www.freecodecamp.com/eweiss17
Zhisi
@Zhisione
Jul 27 2017 13:28
Hi!
Is there someone who could help me? It is a beginner issue. I am doing the first project o th FCC course
Eric Weiss
@eweiss17
Jul 27 2017 13:30
what is the problem?
Zhisi
@Zhisione
Jul 27 2017 13:31
I want to put the title and the principal image centered.
I copied the way of the example but it does not work
Eric Weiss
@eweiss17
Jul 27 2017 13:32
i need a visual, u got a pen? link it
Darth Skywalker
@AdiSkywalker
Jul 27 2017 13:32
@Zhisione Do you have codepen?
Zhisi
@Zhisione
Jul 27 2017 13:34
yes
It looks diferent here than in my browser. I think I have more issues to fix than I thought hahahaha
Eric Weiss
@eweiss17
Jul 27 2017 13:41
what do u want it to look like again?
Zhisi
@Zhisione
Jul 27 2017 13:43
I want the image centered
I already saw some mistakes in the code and I fix it. Now the text of the title and the caption are centered but not the image
Eric Weiss
@eweiss17
Jul 27 2017 13:48
i just added text-center to your <div class="thumbnail"
<div class="thumbnail text-center">
line 7
Zhisi
@Zhisione
Jul 27 2017 13:49
hahaha
ok
it works
Eric Weiss
@eweiss17
Jul 27 2017 13:49
u can remove text-center from your caption
Zhisi
@Zhisione
Jul 27 2017 13:51
yes
Other issue I have is about "resize"
the resize does not work
Eric Weiss
@eweiss17
Jul 27 2017 13:53
resize?
Zhisi
@Zhisione
Jul 27 2017 13:54
Yes. When you make the browser smaller or bigger
The size of the image have to resize itself
And the text have to do the same
to be inside the screen
Eric Weiss
@eweiss17
Jul 27 2017 13:58
<img class="img-fluid">
this is for the text
Zhisi
@Zhisione
Jul 27 2017 14:00
ok
But when I write <img class="img-fluid"> it affects to the text too.
Eric Weiss
@eweiss17
Jul 27 2017 14:02
didn't for me...
Zhisi
@Zhisione
Jul 27 2017 14:02
Even if they are in different div
Eric Weiss
@eweiss17
Jul 27 2017 14:02
<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>
Zhisi
@Zhisione
Jul 27 2017 14:05
thanks for the link
Eric Weiss
@eweiss17
Jul 27 2017 14:08
attempt to do one of your projects without bootstrap.... you will see how useful it is
Zhisi
@Zhisione
Jul 27 2017 14:14
I know it is useful!
the examples of the course saw me this point. But I have to achieve more experience because I am really lost I think. There is a lot of things I do not really understand
Adish Jain
@Adishjain58
Jul 27 2017 14:19
can anyone help me how to replace special characters with ""
Zhisi
@Zhisione
Jul 27 2017 14:20
For example this one. Why the <img class="img-fluid"> affects to the text hahaha. And why the example they give (https://codepen.io/freeCodeCamp/pen/NNvBQW) do not have this piece of code but it resize the image
Markus Gihady Azer
@MarkusAzer
Jul 27 2017 14:21
good day
any idea why facebook share open and close right away
https://codepen.io/MarkusAzer/pen/xrmQwP?editors=1011
Eric Weiss
@eweiss17
Jul 27 2017 14:22
@Adishjain58 regex i'd have to assume
Adish Jain
@Adishjain58
Jul 27 2017 14:23
@eweiss17 in javascript
Markus Gihady Azer
@MarkusAzer
Jul 27 2017 14:24
use this regex @Adishjain58 "[^0-9A-Za-z]+"
i will select everything which is not letter or number
Eric Weiss
@eweiss17
Jul 27 2017 14:25
uh oh, mdn updated their site
scary
you probably are already here, but this is what you could use
Adish Jain
@Adishjain58
Jul 27 2017 14:27
@MarkusAzer its not working
this is the challenge
and this is my code

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;
}
}

Paulsamuel1
@Paulsamuel1
Jul 27 2017 14:34
Please how do I Replace the value of your a element's href attribute with a #, also known as a hash symbol, to turn it into a dead link.
Adish Jain
@Adishjain58
Jul 27 2017 14:34
@Paulsamuel1 <a href="#"></a>
Paulsamuel1
@Paulsamuel1
Jul 27 2017 14:35
Thanks, let me give it a try now.
Adish Jain
@Adishjain58
Jul 27 2017 14:35
@Paulsamuel1 ok
Paulsamuel1
@Paulsamuel1
Jul 27 2017 14:36
was helpful
Markus Gihady Azer
@MarkusAzer
Jul 27 2017 14:37
@Adishjain58 sorry but im trying to find sulotion, but still im not really that big coder
Adish Jain
@Adishjain58
Jul 27 2017 14:37
@MarkusAzer don't worry about that
Emmanuel Akodia
@akodiaemma
Jul 27 2017 14:37
hello world,...id like to access the dark web
any ideas
tor seems to be a poor way to
Eric Weiss
@eweiss17
Jul 27 2017 14:37
Just use tor
Adish Jain
@Adishjain58
Jul 27 2017 14:37
@MarkusAzer and also my if statement is not working fine
my array1 variable returns string after removing spaces and converting them into lower case
Paulsamuel1
@Paulsamuel1
Jul 27 2017 14:41
Please am new on html coding can anyone be my mentor? please
Adish Jain
@Adishjain58
Jul 27 2017 14:41
i dont understand why it is returning false for "race car" @MarkusAzer
@Paulsamuel1 no need for mentor.Just go through the challenges and if you aren't able to solve anything ask here
Paulsamuel1
@Paulsamuel1
Jul 27 2017 14:42
ok
look what I have got here "
Nest the existing img element within an a element.
Your a element should be a dead link with a href attribute set to #.
Make sure each of your a elements has a closing tag. "
madhuri soni
@sonimadhuri
Jul 27 2017 14:43
@Adishjain58 you dont need the first replace statement
Adish Jain
@Adishjain58
Jul 27 2017 14:44
@Paulsamuel1 first read the instructions and see the example
Paulsamuel1
@Paulsamuel1
Jul 27 2017 14:44
ok
Adish Jain
@Adishjain58
Jul 27 2017 14:44
@sonimadhuri but the second statement is not working
madhuri soni
@sonimadhuri
Jul 27 2017 14:45
@Adishjain58 it is not needed and you have to do modifications in the later part of your code
Adish Jain
@Adishjain58
Jul 27 2017 14:46
@sonimadhuri i thing there is something wrong with my compairing statement
madhuri soni
@sonimadhuri
Jul 27 2017 14:46
@Adishjain58 also the array1 thing is not needed
Adish Jain
@Adishjain58
Jul 27 2017 14:46
@sonimadhuri why
Darren
@DarrenfJ
Jul 27 2017 14:47
morning fCC
Paulsamuel1
@Paulsamuel1
Jul 27 2017 14:47
great @Adishjain58
madhuri soni
@sonimadhuri
Jul 27 2017 14:48
@Adishjain58 the procedure is u have to replace the characters .then split the string ,reverse the array and join the array .the if condition should check if the string that you got after replacing the special characters is same as the reversed string
Adish Jain
@Adishjain58
Jul 27 2017 14:48
@sonimadhuri yes
madhuri soni
@sonimadhuri
Jul 27 2017 14:49
@Adishjain58 now tell me why did the array1 thing came into picture
Adish Jain
@Adishjain58
Jul 27 2017 14:50
@sonimadhuri because if i don't use array1 coding it is returning an array and i wanted it to be a string
madhuri soni
@sonimadhuri
Jul 27 2017 14:51
@Adishjain58 you can use .join('') to convert array to string
Adish Jain
@Adishjain58
Jul 27 2017 14:52
@sonimadhuri you mean to use var array1=array.join("");
@sonimadhuri but there is also not any problem in using var array1=array.reduce(function(previousVal,currentVal){
return previousVal+currentVal;
});
because it is also converting array to string
madhuri soni
@sonimadhuri
Jul 27 2017 14:55
@Adishjain58 oh yes u could use it but js allows u to do it easily with join function
Adish Jain
@Adishjain58
Jul 27 2017 14:55
@sonimadhuri yeah
Darren
@DarrenfJ
Jul 27 2017 14:55
@Adishjain58 that may be true...you could also use a for lopp, loop across the array, concatenate each item into a string.. but why? when you can do join("") in a couple of characters?
madhuri soni
@sonimadhuri
Jul 27 2017 14:55
@Adishjain58 paste your modified code
Adish Jain
@Adishjain58
Jul 27 2017 14:56

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");

@sonimadhuri its done
Darren
@DarrenfJ
Jul 27 2017 14:57
@Adishjain58 yer always going to have issues if you campare array1 to str
str is the version of it without the removal of all the spaces etc..
Adish Jain
@Adishjain58
Jul 27 2017 14:57
i replaced str with str2 in if statement
@DarrenfJ yeah i noticed that
madhuri soni
@sonimadhuri
Jul 27 2017 14:59
@Adishjain58 :+1:
Darren
@DarrenfJ
Jul 27 2017 15:00
@Adishjain58 not that you have to but you can also use split reverse and join in all in one line
Adish Jain
@Adishjain58
Jul 27 2017 15:01
@DarrenfJ ok
Darren
@DarrenfJ
Jul 27 2017 15:02
don't forget to pass along brownies to those who helped.... ;)
thanks @sonimadhuri
CamperBot
@camperbot
Jul 27 2017 15:02
darrenfj sends brownie points to @sonimadhuri :sparkles: :thumbsup: :sparkles:
:cookie: 337 | @sonimadhuri |http://www.freecodecamp.com/sonimadhuri
Adish Jain
@Adishjain58
Jul 27 2017 15:03
thnx @DarrenfJ @sonimadhuri
CamperBot
@camperbot
Jul 27 2017 15:03
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
Darren
@DarrenfJ
Jul 27 2017 15:03
and thanks @Adishjain58 for helping out @Paulsamuel1
thanks @Adishjain58
CamperBot
@camperbot
Jul 27 2017 15:03
darrenfj sends brownie points to @adishjain58 :sparkles: :thumbsup: :sparkles:
:cookie: 241 | @adishjain58 |http://www.freecodecamp.com/adishjain58
Diony Vasquez
@Vasquez29
Jul 27 2017 15:06
i believe a simple syntax error but i need a couple of eyes to view, my mistakes
Darren
@DarrenfJ
Jul 27 2017 15:07
ok guys off to do some morning junk.. :coffee: :pineapple: :dog: :walking: that kind of thing...code on.. later
Paulsamuel1
@Paulsamuel1
Jul 27 2017 15:10
nice
MrWang
@IceFireSages
Jul 27 2017 15:29
Someone in?
dyon3334
@dyon3334
Jul 27 2017 15:34
im done with javascriot on cedecamp can someone send me good videos to check to bring it to the enxt level ?
Hi guys How do i get ride of the white space on my right ??
Jonas B. R.
@rossijonas
Jul 27 2017 16:11
Try using container-fluid class
Instead of container
Dre'Sean Williams
@dresean
Jul 27 2017 16:15
can someone help me with this. I'm going for a myspace look on the tribute page and the friends list wont allow me to center the images or make the border around it smaller. Also I'm struggling trying to make sure the images are 3x3 when scaled down. Any help is welcome! https://codepen.io/gvoncheap/pen/OjVObG?editors=1100
Jonas B. R.
@rossijonas
Jul 27 2017 16:16
By the way.... I noticed you're writing JavaScript in HTML file..(button onclick) ... Try to avoid this pattern, developers in general recommends you have JavaScript only inside js files.. it s easy to mantain
@dragonmaiden
Dre'Sean Williams
@dresean
Jul 27 2017 16:19
also the svg animations are running into the other elements. :worried:
dragonmaiden
@dragonmaiden
Jul 27 2017 16:19
okay thanks @rossijonas
CamperBot
@camperbot
Jul 27 2017 16:19
dragonmaiden sends brownie points to @rossijonas :sparkles: :thumbsup: :sparkles:
:cookie: 291 | @rossijonas |http://www.freecodecamp.com/rossijonas
dragonmaiden
@dragonmaiden
Jul 27 2017 16:19
i am still trying to figure out the white space on the right
its weird..
previously was doing fine
MoDLiFe
@moddedlife
Jul 27 2017 16:21
how do i make my <tr> editable without losing the javascripting??. tht may be a dumb question i guess...
Eric Weiss
@eweiss17
Jul 27 2017 16:22
hello in-bread cat
What do you mean losing the javascripting?
MoDLiFe
@moddedlife
Jul 27 2017 16:23
@eweiss17 YES AHAHA U GOT THE JOKE2...
@eweiss17 um well still new to this but i mean. like if i change a part of my code to make my table elements editable, would i have to add or edit some scripting to make it all work??
Eric Weiss
@eweiss17
Jul 27 2017 16:25
uhhh... like you have text fields within your table?
MoDLiFe
@moddedlife
Jul 27 2017 16:26
so far this didnt work. <tr class="editable-table">...? it didnt work lol
i seen this editable table class so ive been trying to get it to work on like a contact form.
Eric Weiss
@eweiss17
Jul 27 2017 16:27
from bootstrap?
Dre'Sean Williams
@dresean
Jul 27 2017 16:29
@moddedlife you might have to use an attribute selector like tr[attribute^=value]
just a shot in the dark though, haven't started JS yet.
madhuri soni
@sonimadhuri
Jul 27 2017 16:31
@dragonmaiden try this
body
{
  overflow-x:hidden;
}
MoDLiFe
@moddedlife
Jul 27 2017 16:31
...lol im lost but im sure that means ill be heading back and ill be doing some reading for a little more.
dyon3334
@dyon3334
Jul 27 2017 16:34
imlooking for something in between codecamp and codewars who can help me ? with videos ebooks links etc
Dre'Sean Williams
@dresean
Jul 27 2017 16:34
@moddedlife you can try reading here https://www.w3schools.com/css/css_attribute_selectors.asp w3schools is saving my butt
MrWang
@IceFireSages
Jul 27 2017 16:34
blob
help me
has been set
AvestaSaba
@AvestaSaba
Jul 27 2017 16:38
You need to config git. The examples are pretty clear. Just give your git your name and email
Eric Weiss
@eweiss17
Jul 27 2017 16:39
@moddedlife Are you currently doing javascript section?
MrWang
@IceFireSages
Jul 27 2017 16:39
blob
@AvestaSaba
AvestaSaba
@AvestaSaba
Jul 27 2017 16:39
for email: git-config --global(you may want to change it to other options read git docs for more info) user.email "icefiresages@gmail.com (your email address I'm just guessing)"
@IceFireSages Yes, exactly like what you did
MrWang
@IceFireSages
Jul 27 2017 16:41
blob
@AvestaSaba
why is that
AvestaSaba
@AvestaSaba
Jul 27 2017 16:44
not sure but type:git config user.name
git config user.email to make sure that email and name are set up
MrWang
@IceFireSages
Jul 27 2017 16:45
what make
sure
Darth Skywalker
@AdiSkywalker
Jul 27 2017 16:47
@IceFireSages From the look of it, your github username is IceFireSages and you've entered user.name as icefiresaages
with an extra a in spelling of sages
as saages
fix that and you should be good
MrWang
@IceFireSages
Jul 27 2017 16:48
blob
I want to cry
one of yc @wzm that is my compute name . Related to this?
AvestaSaba
@AvestaSaba
Jul 27 2017 16:53
type: git config user.email
it shows the value of user.email
MrWang
@IceFireSages
Jul 27 2017 16:55
type: git config user.email what mean
is instruction ?
AvestaSaba
@AvestaSaba
Jul 27 2017 16:56
it shows the value of user.email
Eric Weiss
@eweiss17
Jul 27 2017 17:00
@IceFireSages put a space between name and "
that is actually probably it haha
git config --global user.name "Spaghetti Sauce"
May Kittens Devour Your Soul
@diomed
Jul 27 2017 17:07
"Spaghetti Code"
Kyle Holm
@thekholm80
Jul 27 2017 17:08
"Mom's Spaghetti"
MrWang
@IceFireSages
Jul 27 2017 17:17
thank you Git commit after into another popup window git commit -m "" properly after use @AvestaSaba
CamperBot
@camperbot
Jul 27 2017 17:17
icefiresages sends brownie points to @avestasaba :sparkles: :thumbsup: :sparkles:
:cookie: 114 | @avestasaba |http://www.freecodecamp.com/avestasaba
Eric Weiss
@eweiss17
Jul 27 2017 17:18
remember git commt -m "messages are for losers" is the proper procedure
MrWang
@IceFireSages
Jul 27 2017 17:18
You can upload the without rhyme or reason @AvestaSaba
This is machine translation, could I look at you all understand @AvestaSaba
AvestaSaba
@AvestaSaba
Jul 27 2017 17:20
Sorry but I didn't understand what do you mean by You can upload the without rhyme or reason
MrWang
@IceFireSages
Jul 27 2017 17:21
chines is 莫名奇妙的好了
@AvestaSaba
Where are you from @AvestaSaba
Raj Patel
@rajp1847
Jul 27 2017 17:23
thank you @rajp1847
CamperBot
@camperbot
Jul 27 2017 17:23
sorry rajp1847, you can't send brownie points to yourself! :sparkles: :sparkles:
Dylan
@dhcodes
Jul 27 2017 17:27
@thekholm80 finally making a touch of progress: https://codepen.io/dhcodes/pen/eRwjLw?editors=0110
yeesh
Liam Docherty
@ldocherty1
Jul 27 2017 17:29
Should this be ok for the tribute page task? https://codepen.io/liamdocherty1/pen/GvpJrE
Kyle Holm
@thekholm80
Jul 27 2017 17:32
@dhcodes hey that's pretty cool!
Dylan
@dhcodes
Jul 27 2017 17:33
@ldocherty1 yeah. bonus points if you make it responsive
shrink the width of the screen and you'll see that the image stays the same size
also, you can add bootstrap in the Settings menu, under the Javascript tab to add more features
you only have it on CSS
@thekholm80 sure.... :eyes:
Kyle Holm
@thekholm80
Jul 27 2017 17:34
@dhcodes i need to keep nagging you to get your data viz done
Liam Docherty
@ldocherty1
Jul 27 2017 17:35
@dhcodes I added the bootstrap in the external CSS? In addition, for the image I added "img-fluid" but the pic isnt responsive. How can I make it responsive?
Dylan
@dhcodes
Jul 27 2017 17:35
this is my last project other than I need to update my flag one because they flags aren't centered correctly
@ldocherty1 i think the class is img-responsive
not fluid
and the whole thing needs to be in a div with a class of container-fluid
@thekholm80 do you think it's better to have top-level functions that do small things (like return a negative number) or just add those as subfunctions of a larger function?
things i wonder
Liam Docherty
@ldocherty1
Jul 27 2017 17:37
@dhcodes Didn't it change in bootstrap v4?
Dylan
@dhcodes
Jul 27 2017 17:37
@ldocherty1 maybe it did
you are right
Kyle Holm
@thekholm80
Jul 27 2017 17:38
@dhcodes I subscribe to the theory that functions should do exactly one thing. I end up with a lot of tiny functions, but i can reuse some of them
Dylan
@dhcodes
Jul 27 2017 17:38
@ldocherty1 you need to add the class to your img though, not the div around it
@ldocherty1 another fun rabbit hole is getting your bullets to stay by your text even when it's centered
@thekholm80 sounds fair
guess i'll refactor
Kyle Holm
@thekholm80
Jul 27 2017 17:39
you should do what makes sense for you
all my time with react has me always thinking about reusability
Dylan
@dhcodes
Jul 27 2017 17:40
have you built anything new with react? @thekholm80
i'm still not sure I love react
but want to get really comfortable with it before I checkout vue
Liam Docherty
@ldocherty1
Jul 27 2017 17:41
@dhcodes <img src="https://www.pambazuka.org/sites/default/files/field/image/bill-gates.jpg" class "img-fluid" alt="Bill Gates Pic1"> like that?
oh i missed the "="
Dylan
@dhcodes
Jul 27 2017 17:41
@ldocherty1 should work, does the image get smaller when you shrink the window?
Liam Docherty
@ldocherty1
Jul 27 2017 17:41
Yep it works:)
Dylan
@dhcodes
Jul 27 2017 17:42
cool
that's the main thing i noticed
that and the bullets
Liam Docherty
@ldocherty1
Jul 27 2017 17:45
@dhcodes How can I get my bullet points to stay by my text even when it's centered? Is their a specific name for this so I can research it?
Kyle Holm
@thekholm80
Jul 27 2017 17:46
@dhcodes pretty much everything i build now is is react. I've done a few full MERN stack apps, but now i'm shoving React into Electron to make some desktop apps. it's been really fun
Dylan
@dhcodes
Jul 27 2017 17:46
@ldocherty1 I just googled those terms, but this is the page you want
dang @thekholm80 you're a pro eh?
Kyle Holm
@thekholm80
Jul 27 2017 17:46
haha i wish
Dylan
@dhcodes
Jul 27 2017 17:47
complete the fcc curriculum then?
Kyle Holm
@thekholm80
Jul 27 2017 17:47
just an eager beginner lol
I have 4 projects left
Dylan
@dhcodes
Jul 27 2017 17:47
@thekholm80 have you tried vue?
Kyle Holm
@thekholm80
Jul 27 2017 17:47
got kind of sidetracked when i discovered electron
@dhcodes I've not tried vue yet. I think i'll probably learn angular first
Dylan
@dhcodes
Jul 27 2017 17:48
my issue with react is it feels like adding a lot of overhead (especially with redux, which I don't fully comprehend yet)
Kyle Holm
@thekholm80
Jul 27 2017 17:48
learning redux was a pain for me, but now i can't live without it
Liam Docherty
@ldocherty1
Jul 27 2017 17:48
@thekholm80 Can I have your opinion please on my project? Will I pass? https://codepen.io/liamdocherty1/pen/GvpJrE
Kyle Holm
@thekholm80
Jul 27 2017 17:49
@ldocherty1 for the tribute page you need an image and a link to another site. looks like you have both of those requirements
@dhcodes i dislike all the configuration and setup required for React, but the actual build process makes sense to me
Dylan
@dhcodes
Jul 27 2017 17:52
@thekholm80 do you use redux?
Kyle Holm
@thekholm80
Jul 27 2017 17:52
@dhcodes I do, in most everything i make now
Dylan
@dhcodes
Jul 27 2017 17:52
you should contribute to fcc
Kyle Holm
@thekholm80
Jul 27 2017 17:52
I don't think i'm good enough for that lol
Dylan
@dhcodes
Jul 27 2017 17:53
if I can contribute, you most definitely can
Kyle Holm
@thekholm80
Jul 27 2017 17:53
I'd have to learn regexp
Dylan
@dhcodes
Jul 27 2017 17:54
just for some things.
regex is quite fun actually
Kyle Holm
@thekholm80
Jul 27 2017 17:54
it's like a whole different language
you can do this in like an hour
then use https://regexr.com/ to debug
or many like this: https://regex101.com/
Kyle Holm
@thekholm80
Jul 27 2017 17:55
oh cool thanks @dhcodes
CamperBot
@camperbot
Jul 27 2017 17:55
thekholm80 sends brownie points to @dhcodes :sparkles: :thumbsup: :sparkles:
:star2: 1806 | @dhcodes |http://www.freecodecamp.com/dhcodes
Andrei Bratu
@andreibratu26
Jul 27 2017 17:56
Guys , help me please
Dylan
@dhcodes
Jul 27 2017 17:56
anywho, going back to work on my project but you should do it
Andrei Bratu
@andreibratu26
Jul 27 2017 17:56
I have a hr below Home office title
But it doesnt show
How to solve it?
Dylan
@dhcodes
Jul 27 2017 17:57
it's there, it's just in your navbar
probably due to position: relative;
why not just underline homeoffice?
instead of hr?
gotta jet
Andrei Bratu
@andreibratu26
Jul 27 2017 17:59
@dhcodes that's a great idea , didn't thought about that , thanks alot :)
CamperBot
@camperbot
Jul 27 2017 17:59
andreibratu26 sends brownie points to @dhcodes :sparkles: :thumbsup: :sparkles:
:star2: 1807 | @dhcodes |http://www.freecodecamp.com/dhcodes
Dylan
@dhcodes
Jul 27 2017 17:59
:+1:
NathanielHodges
@uniOpifex
Jul 27 2017 18:15

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');
},

}

I get "board is not defined" as output
Christopher McCormack
@cmccormack
Jul 27 2017 18:28
@uniOpifex strings are immutable:
choice: function(n) {
    game.board=game.board.replace(n, "X");
Liam Docherty
@ldocherty1
Jul 27 2017 18:37
@dhcodes You still around wondering if you can help me with something relating to my portfolio project? I was wondering how I can put the arrows at the bottom of each section but without using position:relative; as it effects my content above. Someone recommend me using flexbox but couldn't work it out. https://jsfiddle.net/60zbvne7/2/
bottom centre the arrows*
https://jsfiddle.net/60zbvne7/2/#&togetherjs=y4B3vfArLT use this link if your happy to help, I appreciate any assistance it.
Andrei Bratu
@andreibratu26
Jul 27 2017 19:02
I created a div with a CSS background-image but it doesnt show up
Why isnt it displaying?
Eric Miller
@ericmiller777
Jul 27 2017 19:09
you assigned the image to <ul class="nav">
is that what you wanted?
Andrei Bratu
@andreibratu26
Jul 27 2017 19:09
Noo , that one is working fine , down below the navbar i create a div with class home
Actually @eweiss17 my question is look
My page looks like this , its fine
But here i used a img src below that div
As a image
Than i moved the text inside the photo
I dont know if this is the best way to do it
I thought it would been better if i made it a background-image
Eric Weiss
@eweiss17
Jul 27 2017 19:19
wait what? You rang?
Jonas Lee
@jtlscout
Jul 27 2017 19:20
about @EgnaroDev
CamperBot
@camperbot
Jul 27 2017 19:20
:cookie: 521 | @egnarodev |http://www.freecodecamp.com/egnarodev
CallMeOrange
@EgnaroDev
Jul 27 2017 19:21
:trollface:
Jonas Lee
@jtlscout
Jul 27 2017 19:21
lol
Eric Weiss
@eweiss17
Jul 27 2017 19:23
thought your name was Mcdigitzero or something @EgnaroDev
CallMeOrange
@EgnaroDev
Jul 27 2017 19:23
@eweiss17 I am
Changed my name, Didn't like McTwoDigitZero
Jonas Lee
@jtlscout
Jul 27 2017 19:25
i liked it
CallMeOrange
@EgnaroDev
Jul 27 2017 19:25
Egnaro => Orange
May Kittens Devour Your Soul
@diomed
Jul 27 2017 19:27
pmurTDev
CallMeOrange
@EgnaroDev
Jul 27 2017 19:30
lmao
PmurtDev
Kyle Holm
@thekholm80
Jul 27 2017 20:14
@diomed thanks, that library looks fun
CamperBot
@camperbot
Jul 27 2017 20:14
thekholm80 sends brownie points to @diomed :sparkles: :thumbsup: :sparkles:
:star2: 5193 | @diomed |http://www.freecodecamp.com/diomed
May Kittens Devour Your Soul
@diomed
Jul 27 2017 20:15
indeed. I put it in casual , not to bother good folks here
how can i leave space between the 2 photos?
Mithilesh Patankar
@mithileshpatankar
Jul 27 2017 20:31
any c expert?
i need help
May Kittens Devour Your Soul
@diomed
Jul 27 2017 20:34
we learn js here, not C
Kyle Holm
@thekholm80
Jul 27 2017 20:34
@diomed teach me js
May Kittens Devour Your Soul
@diomed
Jul 27 2017 20:34
this is webdev, not programming
CallMeOrange
@EgnaroDev
Jul 27 2017 20:34
This message was deleted
May Kittens Devour Your Soul
@diomed
Jul 27 2017 20:34
@thekholm80 u so silly
CallMeOrange
@EgnaroDev
Jul 27 2017 20:34
@diomed teach me webdev
Eric Miller
@ericmiller777
Jul 27 2017 20:34
lol
Kyle Holm
@thekholm80
Jul 27 2017 20:34
@diomed x
Mithilesh Patankar
@mithileshpatankar
Jul 27 2017 20:35
i know but i just wanted help ;-;
May Kittens Devour Your Soul
@diomed
Jul 27 2017 20:35
my :cat: babies
Eric Miller
@ericmiller777
Jul 27 2017 20:36
should i try and get it more responcive
or just turn it in....
May Kittens Devour Your Soul
@diomed
Jul 27 2017 20:36
why is your quote window so wiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiide
Eric Miller
@ericmiller777
Jul 27 2017 20:36
I think its because
im on a 1440p screen
margin-right seems to have no effect
CallMeOrange
@EgnaroDev
Jul 27 2017 20:37
why not just center it and make width smaller or font-size
May Kittens Devour Your Soul
@diomed
Jul 27 2017 20:38
well, here's a perfect quote 4 u: Everybody’s a web designer until, you know, they actually try to do it.
CallMeOrange
@EgnaroDev
Jul 27 2017 20:38
Everybody’s a web designer until, you know, they actually try to do it.
diomed
Kyle Holm
@thekholm80
Jul 27 2017 20:39
diomed
May Kittens Devour Your Soul
@diomed
Jul 27 2017 20:39
actually — Gabe Boning said that
CallMeOrange
@EgnaroDev
Jul 27 2017 20:39
Hm...
Eric Miller
@ericmiller777
Jul 27 2017 20:39
try this
hows it look?
May Kittens Devour Your Soul
@diomed
Jul 27 2017 20:40
worse, somehow
coz there is no improvement
Eric Miller
@ericmiller777
Jul 27 2017 20:41
huh?
still wide on your screen?
May Kittens Devour Your Soul
@diomed
Jul 27 2017 20:42
very
CallMeOrange
@EgnaroDev
Jul 27 2017 20:42
Probably so wide on average screen sizes
May Kittens Devour Your Soul
@diomed
Jul 27 2017 20:42
it's not centered
Eric Miller
@ericmiller777
Jul 27 2017 20:42
im working on the centering
hows that look?
CallMeOrange
@EgnaroDev
Jul 27 2017 20:56
@ericmiller777 Much better :)
Eric Miller
@ericmiller777
Jul 27 2017 20:57
@EgnaroDev can you see the tweet button?
May Kittens Devour Your Soul
@diomed
Jul 27 2017 20:57
barely
Eric Miller
@ericmiller777
Jul 27 2017 20:57
okay
um
May Kittens Devour Your Soul
@diomed
Jul 27 2017 20:57
I see bird icon and letters Tw
Eric Miller
@ericmiller777
Jul 27 2017 20:57
if the quote is too long
i set it to alert
Quote too long to tweet
is taht okay?
that
Kyle Holm
@thekholm80
Jul 27 2017 20:58
why not just shorten it?
Eric Miller
@ericmiller777
Jul 27 2017 20:59
@thekholm80 sure, but then it would get cut off?
Kyle Holm
@thekholm80
Jul 27 2017 20:59
yeah, that would be the case
Eric Miller
@ericmiller777
Jul 27 2017 21:00
@thekholm80 for project purpose which do you think is better?
Kyle Holm
@thekholm80
Jul 27 2017 21:00
better to tweet a little, than nothing at all?
Eric Miller
@ericmiller777
Jul 27 2017 21:00
@thekholm80 well its a quote, and i mean it will tweek less the 140 letter quotes....
May Kittens Devour Your Soul
@diomed
Jul 27 2017 21:00
I had something to do today but then I remembered that famous quote by Douglas Adams
— 'I love deadlines. I love the whooshing noise they make as they go by.'
Kyle Holm
@thekholm80
Jul 27 2017 21:01
@ericmiller777 i suppose you're right. the user story did say "I can tweet the quote if it's convenient or of appropriate length"
May Kittens Devour Your Soul
@diomed
Jul 27 2017 21:02
:smile:
Eric Miller
@ericmiller777
Jul 27 2017 21:02
@thekholm80 its really a 1 sec fix to take it away, i just thought it was better that way
Kyle Holm
@thekholm80
Jul 27 2017 21:02
in the end, you should do it however you think is best
May Kittens Devour Your Soul
@diomed
Jul 27 2017 21:03
and let user yell at you for doing so
Kyle Holm
@thekholm80
Jul 27 2017 21:04
they probably don't take away certificates for not fulfilling user stories. I'm not sure every project gets reviewed
May Kittens Devour Your Soul
@diomed
Jul 27 2017 21:12
@thekholm80 I started reading Fahrenheit 451
Kyle Holm
@thekholm80
Jul 27 2017 21:15
does it make you want to burn some books? @diomed
May Kittens Devour Your Soul
@diomed
Jul 27 2017 21:15
yeah. that1
kidding, just Kant
coz fire doesn't ask - is that Kant...
Kyle Holm
@thekholm80
Jul 27 2017 21:18
i never read any Kant, too heavy for me
May Kittens Devour Your Soul
@diomed
Jul 27 2017 21:19
yeah... if u think Kant's heavy you should try Hegel.
that bastard didn't care was it understandable to others
Kyle Holm
@thekholm80
Jul 27 2017 21:20
i read for fun, not for more reasons to doubt my intelligence
I have enough of those already
May Kittens Devour Your Soul
@diomed
Jul 27 2017 21:27
@thekholm80 I read how no1 wanted to publish it... common obstacle, right?
Kyle Holm
@thekholm80
Jul 27 2017 21:27
I've never heard that before
May Kittens Devour Your Soul
@diomed
Jul 27 2017 21:27
so guess who published it first
Kyle Holm
@thekholm80
Jul 27 2017 21:40
@diomed x
May Kittens Devour Your Soul
@diomed
Jul 27 2017 21:42
I bet my brother's girlfriend would like one of that right now
Kyle Holm
@thekholm80
Jul 27 2017 21:43
your niece / nephew giving them hell?
May Kittens Devour Your Soul
@diomed
Jul 27 2017 21:43
baby, what else is there to say
so
better?
that tweet button
any ideas on how to keep it properly?
Quinn Vinlove
@quin2
Jul 27 2017 22:16
Just use the font awesome icon instead of messing around with SVGs
Uriel Guzmán
@Burinson
Jul 27 2017 22:16
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
Quinn Vinlove
@quin2
Jul 27 2017 22:16
@ericmiller777 font awesome has a tweet icon that you could use in place of that, html icons are easy to work with
Eric Miller
@ericmiller777
Jul 27 2017 22:17
I am using the tweet icon?
I mean on your screen can you see the tweet button?
Quinn Vinlove
@quin2
Jul 27 2017 22:17
yes
but it's massive
@Burinson what's the probelm
Eric Miller
@ericmiller777
Jul 27 2017 22:18
really?
weird
Uriel Guzmán
@Burinson
Jul 27 2017 22:19
@quin2 It only returns the first letter
In this case, it only returns F for S
Eric Miller
@ericmiller777
Jul 27 2017 22:20
is there a good free cross resolution site tester
Christopher McCormack
@cmccormack
Jul 27 2017 22:20
cross resolution? Chrome dev tools lets you test responsive design if that's what you're aiming at
Quinn Vinlove
@quin2
Jul 27 2017 22:20
why isn't the stuff at the top placed in the loop?
Uriel Guzmán
@Burinson
Jul 27 2017 22:21
All of it?
I don't know, lol
Quinn Vinlove
@quin2
Jul 27 2017 22:21
Safari has a cool feature buried in their dev tools which lets you preview your website across different apple devices
Christopher McCormack
@cmccormack
Jul 27 2017 22:21
in Chrome dev tools - Ctrl + Shift + M
Quinn Vinlove
@quin2
Jul 27 2017 22:21
so you can see how it will look on an iPhone or iPad
develop -> enter responsive design mode
Uriel Guzmán
@Burinson
Jul 27 2017 22:22
@quin2
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?");
Like that?
Quinn Vinlove
@quin2
Jul 27 2017 22:22
yeah t looks like you're doing it char by char
which is a good strategy
Uriel Guzmán
@Burinson
Jul 27 2017 22:22
Yeah, that'swhat I'm trying to accomplish
But I can't make it work
console.log prints out free love but the return statement only returns f
And the space and question mark also get converte, I don't want that to happen
Christopher McCormack
@cmccormack
Jul 27 2017 22:38
@Burinson where is your log statement that prints out free love? you need to append to newStr but instead you're returning after the first character
Uriel Guzmán
@Burinson
Jul 27 2017 22:46
image.png
@cmccormack It (almost) returns free love :(
Christopher McCormack
@cmccormack
Jul 27 2017 22:47
newStr +=
Uriel Guzmán
@Burinson
Jul 27 2017 22:49
image.png
@cmccormack ignore that
accidentally sent it to you
Christopher McCormack
@cmccormack
Jul 27 2017 22:49
too late
Uriel Guzmán
@Burinson
Jul 27 2017 22:49
again
Christopher McCormack
@cmccormack
Jul 27 2017 22:49
haha
Uriel Guzmán
@Burinson
Jul 27 2017 22:49
Haha
It worked
image.png
@cmccormack thanks, now I need to make it ignore non alphabetic chars
CamperBot
@camperbot
Jul 27 2017 22:50
burinson sends brownie points to @cmccormack :sparkles: :thumbsup: :sparkles:
:star2: 1066 | @cmccormack |http://www.freecodecamp.com/cmccormack
Christopher McCormack
@cmccormack
Jul 27 2017 22:50
@Burinson set lower and upper limits
Uriel Guzmán
@Burinson
Jul 27 2017 22:51
with unicode values?
Christopher McCormack
@cmccormack
Jul 27 2017 22:52
there's only a small range you really want to be checking, so in the case the character is not within that range, don't convert it. Do a check outside your conditionals
Uriel Guzmán
@Burinson
Jul 27 2017 22:54
would an if statement work? For example if (unicode is not between A and Z) {don't return anything}
Christopher McCormack
@cmccormack
Jul 27 2017 22:55
@Burinson sure! but what you want instead is to append the non-alpha character to newStr and skip your current conditionals
an if/else would work fine for this
Mike Batista
@mbmontana
Jul 27 2017 23:15
How do we direct contact information when someone clicks "Submit" in the contact form in our portfolio page?
Kyle Holm
@thekholm80
Jul 27 2017 23:16
@mbmontana that's a pretty tough one. I can't think of any way to do it without building a back end, which of course you cannot do on codepen
Mike Batista
@mbmontana
Jul 27 2017 23:17
This is for the Portfolio page. Is the point of the Portfolio page just to create a contact form?
Kyle Holm
@thekholm80
Jul 27 2017 23:17

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.

Mike Batista
@mbmontana
Jul 27 2017 23:18
@thekholm80 Good enough
Uriel Guzmán
@Burinson
Jul 27 2017 23:21
@cmccormack
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");
image.png
Nvm, made it work :D
Ming Zhu
@chocobrownie
Jul 27 2017 23:32
Hi guys I'm trying to change the default active styling of nav-pills buttons. I'm using the code below and it doesn't seem to work. Any idea why?
.nav-pills > .active > a, .nav-pills > .active > a:hover {
    color: red;
}
Nahuel Ovejero
@NahuelOvejero
Jul 27 2017 23:36
@thekholm80 do you know something about encrypt?
also :wave:
Kyle Holm
@thekholm80
Jul 27 2017 23:43
@NahuelOvejero heya
i've used a library called bcryptjs that's pretty awesome
i'm headed out to dinner but we can discuss it when i get back if you want
Nahuel Ovejero
@NahuelOvejero
Jul 27 2017 23:45
@thekholm80 enjoy your meal!
I'm interesed in crypt but don't know where start
I've been looking about RSA
Eric Miller
@ericmiller777
Jul 27 2017 23:48
$.getJSON("https://fcc-weather-api.glitch.me/api/current?lat=35&lon=139", function (a) {
            $(".weather").append(a.main.temp)
        });
does that look kinda
what i should be doing?
I know i need to pass in the users coordinates
would that give the emperture tho?
temperture
Christopher McCormack
@cmccormack
Jul 27 2017 23:56
@Burinson Heya had to run for a bit did you get it solved?
Ming Zhu
@chocobrownie
Jul 27 2017 23:57
Repost: Hi guys I'm trying to change the default active styling of nav-pills buttons. I'm using the code below and it doesn't seem to work. Any idea why? (I'm using bootstrap 4 alpha 6)
.nav-pills > .active > a, .nav-pills > .active > a:hover {
    color: red;
}
Christopher McCormack
@cmccormack
Jul 27 2017 23:59
@chocobrownie is active a class that's a child of nav-pills?
do you mean to use the >? this implies the leading element is a parent of the trailing element