These are chat archives for FreeCodeCamp/HelpFrontEnd

12th
Feb 2016
CompGeekGirl
@LisaRamos
Feb 12 2016 00:12 UTC
So I'm able to calculate numbers and total them but the only issue is having when I clear my calculator to 0 and punch in a number like 9 for instance, it goes to 09. How do I make 0 change to a number on my calculator whenever I hit clear and then hit a number again? http://codepen.io/lisaramos/pen/MKBmgm
Dimitri Apostal
@Stateford
Feb 12 2016 00:17 UTC

@LisaRamos

function C() {
$('.clear').click(function() {$('#inputSec').text('0');
input = "";
});
};

what's happening is you are setting the textfield to have zero and when you press buttons it adds the number to the string. You need to come up with a way to remove the zero if it's the first number and there is no decimal point.

CompGeekGirl
@LisaRamos
Feb 12 2016 00:21 UTC
I removed 0 from .text() and when I clear my calculator, nothing happens.
Dimitri Apostal
@Stateford
Feb 12 2016 00:22 UTC
@LisaRamos you would have to keep the quotes so something like .text("") which represents nothing.
CompGeekGirl
@LisaRamos
Feb 12 2016 00:23 UTC
@idietmoran I'll try that.
Dimitri Apostal
@Stateford
Feb 12 2016 00:23 UTC
but then the calculator won't display zero when it is cleared. You should write a function that checks if the first number is a zero and if it's followed by a decimal.
CompGeekGirl
@LisaRamos
Feb 12 2016 00:26 UTC
@idietmoran Now how do I write that function?
Dimitri Apostal
@Stateford
Feb 12 2016 00:27 UTC
@LisaRamos think back to some of the algorithims you've done. maybe try .charAt() . if the function returns true you should remove the zero, good luck
CompGeekGirl
@LisaRamos
Feb 12 2016 00:50 UTC
@idietmoran I'm struggling to write a formula as to how to remove 0 when my calculator is cleared.
Dimitri Apostal
@Stateford
Feb 12 2016 00:50 UTC
@LisaRamos what do you have so far?
David Weedmark
@DavidWeedmark
Feb 12 2016 00:58 UTC
is anyone around with experience in Camper News? I can't figure out how to get a grid layout :/
all the documentation I've read covers only static content (JQuery grids w. Col-a, Col-b, etc.) but I can't figure out how to apply that to content being loaded dynamically from an API
Dimitri Apostal
@Stateford
Feb 12 2016 01:04 UTC
@DavidWeedmark i used angularJS for that project which is what it was created for. I know react.js is supposed to be similar and the one that freecodecamp teaches
CompGeekGirl
@LisaRamos
Feb 12 2016 01:05 UTC

@idietmoran I'm trying to write

function C() {
$('.clear').click(function() {$('#inputSec').text("");
input = "";
return [str.charAt()];
});
};

I'm not sure what to do with str.charAt().

David Weedmark
@DavidWeedmark
Feb 12 2016 01:06 UTC
@idietmoran thanks. I'll head towards the angular docs then
CamperBot
@camperbot
Feb 12 2016 01:06 UTC
davidweedmark sends brownie points to @idietmoran :sparkles: :thumbsup: :sparkles:
:star: 288 | @idietmoran | http://www.freecodecamp.com/idietmoran
David Weedmark
@DavidWeedmark
Feb 12 2016 01:11 UTC
@LisaRamos I'm not seeing a zero when I click your Clear button
CompGeekGirl
@LisaRamos
Feb 12 2016 01:13 UTC
@DavidWeedmark What do you think I'm doing wrong? How can I fix this?
David Weedmark
@DavidWeedmark
Feb 12 2016 01:14 UTC
you want a zero to appear?
CompGeekGirl
@LisaRamos
Feb 12 2016 01:14 UTC
@DavidWeedmark I want a zero to appear when I hit clear and also disappear when I hit a number.
DJ
@qualitymanifest
Feb 12 2016 01:15 UTC
anyone here done tic tac toe?
David Weedmark
@DavidWeedmark
Feb 12 2016 01:16 UTC
I just tested on mine. I didn't have a zero appear either, but when I changed the "" to "0" it now does.
entry.innerHTML = '0';
rather than
          if(value == 'AC') {
entry.innerHTML = '';
decimalAdded = false;
Dimitri Apostal
@Stateford
Feb 12 2016 01:17 UTC
This message was deleted

@LisaRamos

function numToString(str) {
var change = Number(str);
var change = change.toString();
return change;
}

console.log(numToString("002"));

check this out

@LisaRamos this will save you a lot of headache if you run this function every time you update the display
CompGeekGirl
@LisaRamos
Feb 12 2016 01:24 UTC
@idietmoran I still don't have the 0 showing up on the screen of my calculator and when I press clear, 0 doesn't show up. In addition to that, when I hit a number, the 0 won't disappear, either. In other words, my calculator won't function just like the one on my laptop.
David Weedmark
@DavidWeedmark
Feb 12 2016 01:26 UTC
@LisaRamos I was just playing with your code and substituted my lines for the clear button with yours. It worked, but wasn't giving me a zero on your page, while on mine it did. So I suspect the problem is somewhere other than the Clear button itself.
for what it's worth, I preferred mine without the zero. I've got to go, so best of luck.
CompGeekGirl
@LisaRamos
Feb 12 2016 01:27 UTC
@DavidWeedmark Just one sec. Where's the code you were working with?
David Weedmark
@DavidWeedmark
Feb 12 2016 01:29 UTC
@LisaRamos I actually just substituted this
 if(value == 'AC') {
entry.innerHTML = '0';
decimalAdded = false;
with this:
  $('.clear').click(function() {$('#inputSec').text("");
input = "";
return [str.charAt()];
changing "AC" with "Clear" of course
CompGeekGirl
@LisaRamos
Feb 12 2016 01:31 UTC
@DavidWeedmark Now where do I put the above code you mentioned? Do I replace it with the one in the .click() function?
jakehm
@jakehm
Feb 12 2016 01:31 UTC
Yo wassup peeps. This rooms seems a lot less chaotic than the main one. I'm having a problem with my first zipline, the portfolio homepage.
The "About Me" section is too small. And the code is exactly the same as the other sections.
http://codepen.io/jmortelliti/pen/KpjMBd
David Weedmark
@DavidWeedmark
Feb 12 2016 01:32 UTC
that's what I did, but as I said, it didn't give me a zero
Dan Stockham
@DanStockham
Feb 12 2016 01:33 UTC
If I wanted to create winning conditions for tic tac toe, would you all hard code them? Or would you use something more automated?
DJ
@qualitymanifest
Feb 12 2016 01:35 UTC
@DanStockham i'm working on that right now. i haven't figured it out yet but i'm positive there's a way to do it without hardcoding it
CompGeekGirl
@LisaRamos
Feb 12 2016 01:35 UTC
@DavidWeedmark I tried the code you mentioned and now I can't clear it. Should I just revert back?
Dimitri Apostal
@Stateford
Feb 12 2016 01:37 UTC

@LisaRamos
you have to use the function for it to work

$('.numBut').click(function() { var input =$("#inputSec").text();
input += $(this).text();$('#inputSec').text(numToString(input));
});

here, anytime you invoke a number and 0 is the first number it gets removed.

i used the function in the .text() field
Maddah Anass
@unlimiworks
Feb 12 2016 01:38 UTC
Hello guys. How can i disable the 'button press-down' effect ? I looked for it but i didn't find anything
CompGeekGirl
@LisaRamos
Feb 12 2016 01:39 UTC
@idietmoran I tried that but when I calculate a number, I get NaN. Should I revert back?
Dimitri Apostal
@Stateford
Feb 12 2016 01:40 UTC
@UnlimiWorks I believe this might be helpful https://developer.mozilla.org/en-US/docs/Web/CSS/:focus
@LisaRamos i'll check in one second
Maddah Anass
@unlimiworks
Feb 12 2016 01:41 UTC
@idietmoran I was actually talking about the button:active pseudo-class which gives the button a 'pressed down' effect when clicked. My aim is to disable that, to get a style similar to flat buttons
My problem is, when i click, the text inside my button moves by some pixels. I don't know if there's any 'clean' way to cancel it. The only idea that i have is to play with the position of the text inside the button
Dimitri Apostal
@Stateford
Feb 12 2016 01:51 UTC
@LisaRamos the problem is that the program is trying to add a string and a number together. I haven't used the math.js library so I'm trying to figure out where it's going wrong
CompGeekGirl
@LisaRamos
Feb 12 2016 01:52 UTC
@idietmoran Do you think it's the math.js library?
Dimitri Apostal
@Stateford
Feb 12 2016 01:52 UTC
@LisaRamos no i don't think so

@LisaRamos it's something like

input =+ (this).text(); as the input and .text() are strings, but i'm not sure out clicking on a .op calls an operator CompGeekGirl @LisaRamos Feb 12 2016 01:56 UTC @idietmoran Now how do I fix that? Dimitri Apostal @Stateford Feb 12 2016 01:58 UTC @LisaRamos Number( numHere ) turns a string into a number, but I think your code is missing something as I don't see how you are calling operators in the code CompGeekGirl @LisaRamos Feb 12 2016 01:59 UTC @idietmoran What do you think is missing in my code? Dimitri Apostal @Stateford Feb 12 2016 02:00 UTC @LisaRamos how the program knows what operator to use (plus, minus...) Andrew Charlebois @andrewchar Feb 12 2016 02:01 UTC hey guys. im trying to figure out a little bit of a layout issue. as you can see. my background picture, when applied, cuts off the left side of my buttons for some reason and i cant figure out why. when the background image is token out, the buttons return to normal http://codepen.io/andrewchar/pen/wMRLra?editors=1100 CompGeekGirl @LisaRamos Feb 12 2016 02:02 UTC @idietmoran I don't understand. Maddah Anass @unlimiworks Feb 12 2016 02:17 UTC @LisaRamos Can i see your pen for a sec ? Loren Baca @vbroskas Feb 12 2016 02:21 UTC sup guys, Im on the make your portfolio exercise and Ive got a question about images CompGeekGirl @LisaRamos Feb 12 2016 02:22 UTC @UnlimiWorks Sure, here it is. http://codepen.io/lisaramos/pen/MKBmgm Loren Baca @vbroskas Feb 12 2016 02:23 UTC lets say you plan on having an image for the background on your page, and you plan on adding it to a particular <div> when you are designing should you do the sizing of the image when you are saving it to a website like http://postimg.org/, OR should you size the image when you add the URL to your code? maybe always save images to a hosting site with as much size and resolution as possible and then scale them down when you add them to a page? Joshua Bernstein @jberns Feb 12 2016 02:47 UTC @vbroskas Depending on how you plan to load the image I think it is better to pre-size it to your page, as even if you take a very large image (disk space wise) and scale it down (pixel size) you have to transfer the entire file size before it loads. but if you are lets say making a picture viewer you may want to load a low-res version and allow the user to view a high-res version that gets loaded when they click on the image rather than loading a page full of all of the high-res versions. Pradeep CE @cepradeep Feb 12 2016 02:51 UTC @jberns @vbroskas Pre-scaling an image maynot always be desirable, because users tend to have varying screen sizes. It's best to store the images in the right proportions (eg. 16:9 for laptops, a portrait orientation for phones etc) and then load them accordingly. Also, consider optimizing your image to reduce the size. Google "JPEG optimizer" etc. Some online tools do it. Loren Baca @vbroskas Feb 12 2016 03:00 UTC @jberns @pradeepce thanks for the info guys. @pradeepce so do you mean you store the image on the website in various proportions, and then depending on what device the user is using, the correct image will be called out when they open the page? CamperBot @camperbot Feb 12 2016 03:02 UTC vbroskas sends brownie points to @jberns and @pradeepce and @pradeepce :sparkles: :thumbsup: :sparkles: :star: 242 | @pradeepce | http://www.freecodecamp.com/pradeepce :star: 242 | @pradeepce | http://www.freecodecamp.com/pradeepce :star: 283 | @jberns | http://www.freecodecamp.com/jberns Susan Zell @susanzell Feb 12 2016 03:03 UTC does anyone know why comparing an id to corresponding property's value in an array of objects works fine until i try to do the same thing in a for loop? i'm trying to avoid repeating myself in the code and since i have 5 different buttons with same class but different ids, i want to have it play a sound based on the id of the button that's was clicked Pradeep CE @cepradeep Feb 12 2016 03:10 UTC @vbroskas IMHO that would be the ideal thing to do. I usually compress the images to be less than 10kB and/or 600px wide. And I use it for everything, unless it looks absolutely horrible. Loren Baca @vbroskas Feb 12 2016 03:13 UTC @pradeepce ok cool thanks. I have no idea how to do something like that at this point, but I'll def remember your advice as I progress. Much appreciated! CamperBot @camperbot Feb 12 2016 03:13 UTC vbroskas sends brownie points to @pradeepce :sparkles: :thumbsup: :sparkles: :warning: vbroskas already gave pradeepce points Pradeep CE @cepradeep Feb 12 2016 03:16 UTC @vbroskas It's pretty simple actually. First off, choose an image for your background. Search for "jpeg optimizer" and choose one of the online tools that pop up. For example, https://compressor.io, Upload your image, let it compress, and download the compressed file. Then, use it in your site. Andre Parsons @Andrparsons Feb 12 2016 03:21 UTC Hey guys, does anyone know a good place to get some free sound clips? I need an alarm sound for my clock. Pradeep CE @cepradeep Feb 12 2016 03:21 UTC Almost all of these tools will compress your image upto 50% or more... There will be some loss in quality, but i think that's okay for bg images. Andre Parsons @Andrparsons Feb 12 2016 03:23 UTC @pradeepce thanks! CamperBot @camperbot Feb 12 2016 03:23 UTC andrparsons sends brownie points to @pradeepce :sparkles: :thumbsup: :sparkles: :star: 244 | @pradeepce | http://www.freecodecamp.com/pradeepce Pradeep CE @cepradeep Feb 12 2016 03:24 UTC @Andrparsons Sounds there are user-contributed, and you need an account to download I think. Choose after playing it in your browser, and looking at the ratings. Loren Baca @vbroskas Feb 12 2016 03:26 UTC @pradeepce Sweet! Thanks for the help man CamperBot @camperbot Feb 12 2016 03:26 UTC vbroskas sends brownie points to @pradeepce :sparkles: :thumbsup: :sparkles: :warning: vbroskas already gave pradeepce points Pradeep CE @cepradeep Feb 12 2016 03:26 UTC @vbroskas Glad :) Loren Baca @vbroskas Feb 12 2016 03:31 UTC guys I got another quick question, if Im trying to make two colums of text, and I create a container, and then i create a <div> row element, and then inside that row I put two <div class='col-sm-6'> why are they still so offset to the left of the page? I've tried messing around with different values, and using xs,sm,md etc but I cant get the two columns to be evenly spaced in the middle of the page Pradeep CE @cepradeep Feb 12 2016 03:38 UTC @vbroskas I think the columns align left by default. If you specify a border for the columns, you might to able to see what's wrong. I usually have div { border: 1px solid red; } in my css to debug layout issues :) Loren Baca @vbroskas Feb 12 2016 03:43 UTC @pradeepce thanks again bro, solid advice CamperBot @camperbot Feb 12 2016 03:43 UTC vbroskas sends brownie points to @pradeepce :sparkles: :thumbsup: :sparkles: :warning: vbroskas already gave pradeepce points Susan Zell @susanzell Feb 12 2016 03:47 UTC why would this not work for an array of objects that all have a aproperty of "symbol": function levelUp(){ playerStr = ''; lvl++; gameStr += colors.symbol[Math.floor(Math.random()*colors.length)]; for(var i=0; i<gameStr.length-1; i++){ console.log("correct string is: " + gameStr.charAt(i)); // playAudio(gameStr.charAt(i)); } }; ? it says Uncaught TypeError: Cannot read property '1' of undefined DJ @qualitymanifest Feb 12 2016 03:50 UTC @susanzell do you have a codepen or something? without seeing the full picture i can't tell Susan Zell @susanzell Feb 12 2016 03:50 UTC ealized i had array[]thing in wron bplace,but it's still giving me a diffrent err now Pradeep CE @cepradeep Feb 12 2016 03:53 UTC @vbroskas Glad again :) DJ @qualitymanifest Feb 12 2016 03:55 UTC @susanzell i think your problem lies within this line gameStr += colors.symbol[Math.floor(Math.random()*colors.length)]; Susan Zell @susanzell Feb 12 2016 04:01 UTC yeah i moved it but it stilhas problems now it's gameStr += colors[Math.floor(Math.random()*colors.length)].symbol and now msg is Uncaught TypeError: Cannot read property 'shouldStopExecution' of undefined actually first time i get this error msg Uncaught TypeError: Cannot read property 'exitedLoop' of undefined DJ @qualitymanifest Feb 12 2016 04:06 UTC @susanzell i don't know exactly where your problem lies but think about this: you're trying to build up a string, gameStr, out of function calls... look at what colors is made of Susan Zell @susanzell Feb 12 2016 04:07 UTC i get same thing if i replace random index with index of 0 DJ @qualitymanifest Feb 12 2016 04:09 UTC @susanzell irrelevant... is this a string new Mana("w", "http://www.freesound.org/data/previews/1/1859_345-lq.mp3"); ? Susan Zell @susanzell Feb 12 2016 04:11 UTC no, that's the object that goes with a variable name that goes along with the 5 different characters i'm using for sake of readability i added a console.log to see it's building the string correctly DJ @qualitymanifest Feb 12 2016 04:15 UTC @susanzell so it is... hmm @susanzell i just hit refresh, seems like its working now? Susan Zell @susanzell Feb 12 2016 04:18 UTC i haven't been able to find a nice simple way to just associate the HTML id to these i commented out the for loop to test the other console.log DJ @qualitymanifest Feb 12 2016 04:18 UTC @susanzell (this).attr('id') ?
@susanzell although using symbol from your object seems to be working fine
Susan Zell
@susanzell
Feb 12 2016 04:21 UTC
yeah, i even was calling that property "id" before and changed it in case it causes obscure errors
Susan Zell
@susanzell
Feb 12 2016 04:45 UTC
well, splitting the string into an array lets me loop through it
so shrug
Maddah Anass
@unlimiworks
Feb 12 2016 06:27 UTC
Hi again guys
Jenn Hardy
@smokeyLilac
Feb 12 2016 07:47 UTC
Hi all... I'm looking for help figuring out what I'm missing to get my Tweet button working http://codepen.io/smokeyLilac/pen/gPZzQx
kirbyedy
@kirbyedy
Feb 12 2016 08:02 UTC
@JennHardy Unexpected end of input
says there at the end of your js script
so most probably you are missing a } ) ;
somewhere...
Jenn Hardy
@smokeyLilac
Feb 12 2016 08:02 UTC
Oh sorry @kirbyedy I posted this and have tweaked it since
kirbyedy
@kirbyedy
Feb 12 2016 08:03 UTC
is it working now ?
Jenn Hardy
@smokeyLilac
Feb 12 2016 08:04 UTC
No I'm even more confused. I put it back to where it was before if you want to check it out now
Someone in one of the other rooms had started helping me so we'll see how that goes
kirbyedy
@kirbyedy
Feb 12 2016 08:08 UTC
for start, I dont see you have jquery embedded in your pen
Jenn Hardy
@smokeyLilac
Feb 12 2016 08:22 UTC
Yeah my brain is done for the night @kirbyedy... I'm gonna go to sleep because at this point it's all blending together
kirbyedy
@kirbyedy
Feb 12 2016 08:23 UTC
ok
ahmed ibrahim
@ahmo10
Feb 12 2016 08:32 UTC
http://codepen.io/ahmo10/pen/OMryeb I need some assistance here how can tweet the random quotes i have generated
Travis Halleck
@hallectj
Feb 12 2016 08:51 UTC
Almost finished with my personal portfolio project, didn't realize how much js was needed to make things work the way I envisoned it. Just got to finish cosmetics like better fonts and replace placeholder images, with real images.
phew
Jack Lyons
@JackEdwardLyons
Feb 12 2016 08:53 UTC
hey guys i just need a little help getting my countdown clock to change when user inputs a different number to countdown... any suggestions or help would be amazing!! thank you
Travis Halleck
@hallectj
Feb 12 2016 09:12 UTC
@JackEdwardLyons According to the console your changeTime function is not defined
Pradeep CE
@cepradeep
Feb 12 2016 09:24 UTC

@JackEdwardLyons You should specify a value for each of the options in your <select>. For example,

<select id="countId">
<option value="1">1</option>
<option value="2">2</option>
<!-- and so on -->

Or am I missing something?

Travis Halleck
@hallectj
Feb 12 2016 09:35 UTC
@pradeepce If all else fails couldn't he use the data attribute and assign values? I'm not sure if that is considered good form, but it would be a way to reference those values
Pradeep CE
@cepradeep
Feb 12 2016 09:55 UTC

@hallectj I'm pretty new to JS myself, but I think the following lines

var docText = document.getElementById("countId");
var docNum = Number(docText.options[docText.selectedIndex].value);

store the selected value from the dropdown in docNum. And value attributes for <option> seem to be traditional, so... Take a look: https://developer.mozilla.org/en/docs/Web/HTML/Element/select

Travis Halleck
@hallectj
Feb 12 2016 09:58 UTC
@pradeepce Yeah, your right, it should have a value attribute. I do use the data attribute sometimes when I find it hard to reference something.
Pradeep CE
@cepradeep
Feb 12 2016 10:14 UTC
@hallectj Oh cool. That's new to me, I'll read up :) Thanks!
CamperBot
@camperbot
Feb 12 2016 10:14 UTC
pradeepce sends brownie points to @hallectj :sparkles: :thumbsup: :sparkles:
:star: 285 | @hallectj | http://www.freecodecamp.com/hallectj
Mamoudou CAMARA
@nfnxmc
Feb 12 2016 11:41 UTC
Hi everyone
I'm working on the weather app
does anyone know how to embbed weather icon in codepen ?
Olawale Akinseye
@brainyfarm
Feb 12 2016 11:47 UTC
@mncode
What do you mean embed?
You could host the image else where and link to it.
Mamoudou CAMARA
@nfnxmc
Feb 12 2016 11:47 UTC
yeah
that's a fine idea
Katya
@bonifacyj
Feb 12 2016 13:36 UTC

hey everyone, does anyone know why JS might not save the valuables assigned inside the function? to be clear, I have a following click event:

var quoteout="";

....

$('.btn').click(function() { var quote = Math.floor(Math.random()*20); quoteout=arr[quote];$('.space').text(arr[quote]);

});

it works and the <p> with class "space" gets the new text, but quoteout is not assigned a new value! what can be the reason?

Christos Kokolios
@KokoChris
Feb 12 2016 13:42 UTC
Hey guys I have a question regardin the stylize stories on camper news zipline
Some of the links are not actually appearing even the the json that is returned to me has the links inside it
it is pretty weird
Thomas
@Motass
Feb 12 2016 13:51 UTC
@bonifacyj quoteout should get the new value. Can I see your codepen ?
Thomas
@Motass
Feb 12 2016 13:59 UTC
@bonifacyj https://jsfiddle.net/145h63hj quoteout gets the new value as expected, there's probably something wrong elsewhere in your code
Katya
@bonifacyj
Feb 12 2016 14:06 UTC
@Motass suresure, though I'm ashamed to share it, because it's just a mess so far: http://codepen.io/bonifacyj/pen/ZQwQRm
oh no, that's the wrong thing
one moment
kirbyedy
@kirbyedy
Feb 12 2016 14:08 UTC
@KokoChris I dont have that problem
Katya
@bonifacyj
Feb 12 2016 14:08 UTC
This message was deleted
well, apparently, I cannot share a fork. so I don't know how to do it , @Motass. I'll write you a pm
Christos Kokolios
@KokoChris
Feb 12 2016 14:14 UTC
@kirbyedy so all my titles appear as a link to you?
then should be some setting with my browsers I guess
kirbyedy
@kirbyedy
Feb 12 2016 14:15 UTC
no, I mean my camper news dont have that problem
yours do have
Christos Kokolios
@KokoChris
Feb 12 2016 14:16 UTC
ah ok.Any Ideas ?
cause if you check my console.log I actually get the object and all links are there
and it is kinda random I don't really see a pattern
kirbyedy
@kirbyedy
Feb 12 2016 14:19 UTC
newsHTML += '<h4><a href=' + value.link + '>' + value.headline + '</a></h4>';
this line is critical
"<a href=" + "'" + value.link + "'" + ">" + value.headline + "</a>"
I compared it with mine, and adjusted for your code
it is working now
kali nixta ;)
Christos Kokolios
@KokoChris
Feb 12 2016 14:22 UTC
found what was wrong myself
I just added the "target="_blank"
but @kirbyedy Thanks for your help
CamperBot
@camperbot
Feb 12 2016 14:22 UTC
kokochris sends brownie points to @kirbyedy :sparkles: :thumbsup: :sparkles:
:star: 453 | @kirbyedy | http://www.freecodecamp.com/kirbyedy
kirbyedy
@kirbyedy
Feb 12 2016 14:24 UTC
:thumbsup:
Katya
@bonifacyj
Feb 12 2016 14:43 UTC
thanks @Motass !!
CamperBot
@camperbot
Feb 12 2016 14:43 UTC
bonifacyj sends brownie points to @motass :sparkles: :thumbsup: :sparkles:
:star: 316 | @motass | http://www.freecodecamp.com/motass
jovicabojic
@jovicabojic
Feb 12 2016 15:39 UTC
hi guys
whats is the best lightbox for youtube videos
Mamoudou CAMARA
@nfnxmc
Feb 12 2016 16:11 UTC
hi everyone
weather icon in weatherApp title, some know how ?
tommy
@tommygebru
Feb 12 2016 16:44 UTC
hey guys is it possible to get a perfect circle as a background? for my social icons? http://codepen.io/gebrutommy/pen/gPqwvg
Sujit Karki
@Swoozeki
Feb 12 2016 16:47 UTC
Why did the calculator move to advanced front-end?
and the pomodoro clock...
Salman Shahid
@salman-shahid
Feb 12 2016 16:48 UTC
Did it?
I finished calc and I'm almost done with pomodoro and I am up to begineer front-end
Oh yeah, you're right
I hav ebeen assigned other tasks now API stuff
And there is a new task Tribute page
Sujit Karki
@Swoozeki
Feb 12 2016 16:50 UTC
@tommygebru Set each one to same width and height, and set border-radius to 50%. Does the job
Yeah, I'll get started on the tribute page soon too
tommy
@tommygebru
Feb 12 2016 16:51 UTC
@Swoozeki to the icon or div?
http://codepen.io/gebrutommy/pen/gPqwvg
Sujit Karki
@Swoozeki
Feb 12 2016 16:53 UTC
@tommygebru here's a fork: http://codepen.io/Swoozeki/pen/KVJNwr
You'll see I changed i element to have width and height of an arbitrary 80px
tommy
@tommygebru
Feb 12 2016 16:53 UTC
@Swoozeki is it possible to align the icons in the middle?
@Swoozeki yes pixels works much better !
Salman Shahid
@salman-shahid
Feb 12 2016 16:55 UTC
i { text-align: center; }
Sujit Karki
@Swoozeki
Feb 12 2016 16:55 UTC
@tommygebru you should assign the round background to div rather than the icon itself. Then, you can position the icon however you want inside of the div circle
Or you know, that
@mynameissal
tommy
@tommygebru
Feb 12 2016 16:56 UTC
@Swoozeki thanks ... having a rough morning :wink:
CamperBot
@camperbot
Feb 12 2016 16:56 UTC
tommygebru sends brownie points to @swoozeki :sparkles: :thumbsup: :sparkles:
:star: 284 | @swoozeki | http://www.freecodecamp.com/swoozeki
Sujit Karki
@Swoozeki
Feb 12 2016 16:58 UTC
@tommygebru no worries :)
tommy
@tommygebru
Feb 12 2016 17:00 UTC
@Swoozeki getting coffee and try again then do it in flexbox :+1:
Bobby Rath
@bobbyrath
Feb 12 2016 17:30 UTC
Was map recently revised?
Looks like basic front end projects are less now
John Roman
@jrroman
Feb 12 2016 17:44 UTC
@bobbyrath yeah i know i just went to submit my quote generator and its not there anymore haha
guess its on to the tribute page.
Virginia Winter
@FreeCodeCamp319
Feb 12 2016 18:02 UTC
@jrroman and @bobbyrath I was about to submit the camper news project and I can't find that either!!! Is there really a tribute page? How do I get there?
tommy
@tommygebru
Feb 12 2016 18:05 UTC
@Swoozeki I wa able to do it pretty easy with flexbox but it looks like it will be an issue for mobile layouts because the icons are fixed in the html :smile:
http://codepen.io/gebrutommy/pen/gPqwvg?editors=1100
anyone know a way around this?
tommy
@tommygebru
Feb 12 2016 18:40 UTC
this is pretty odd... either on my left or right, there is more or less negative space....
it should be equally distanced right? VIEW in Debug mode for fullscreen :smile:
http://codepen.io/gebrutommy/pen/gPqwvg?editors=1100
John Roman
@jrroman
Feb 12 2016 18:42 UTC
@FreeCodeCamp319 the tribute page is the new challenge, it seems they have removed the other challenges
Keari Eggers
@kme211
Feb 12 2016 18:44 UTC
@tommygebru Does setting the padding of the <ul> to 0 achieve what you are wanting?
tommy
@tommygebru
Feb 12 2016 18:44 UTC
@kme211 whoah.....css wizard
@kme211 i thought i tried that earlier but something must have gotten in the way ... many thanks !
CamperBot
@camperbot
Feb 12 2016 18:45 UTC
:star: 328 | @kme211 | http://www.freecodecamp.com/kme211
tommygebru sends brownie points to @kme211 :sparkles: :thumbsup: :sparkles:
Keari Eggers
@kme211
Feb 12 2016 18:47 UTC
@tommygebru No problem! You can actually reset the CSS base in the CSS settings to remove all the default browser styling.
tommy
@tommygebru
Feb 12 2016 18:48 UTC
@kme211 what does that stylesheet look like? nvm found it thats pretty cool... is it best practice for designers to start with a reset?
Keari Eggers
@kme211
Feb 12 2016 18:50 UTC
@tommygebru It just resets everything. Removes padding, margins, default header stuff... http://cssreset.com/what-is-a-css-reset/
Not sure what normalize does.
tommy
@tommygebru
Feb 12 2016 18:51 UTC
@kme211 how do you start every project ?
Keari Eggers
@kme211
Feb 12 2016 18:55 UTC
@tommygebru I probably should do a reset every project but I just haven't remembered to do it for all of them. I do always turn the autoprefixer on though. And I use SCSS for the CSS and Babel for Javascript.
tommy
@tommygebru
Feb 12 2016 19:02 UTC
@kme211 nice! i didnt know about autoprefixer thanks... so i guess from here on out i will also begin using a css reset... does that change anything (css reset) if i am working mostly with flexbox?
CamperBot
@camperbot
Feb 12 2016 19:02 UTC
tommygebru sends brownie points to @kme211 :sparkles: :thumbsup: :sparkles:
:warning: tommygebru already gave kme211 points
Keari Eggers
@kme211
Feb 12 2016 19:05 UTC
If you use the header elements <h1>, <h2>, etc, you might notice that they look like regular text after the reset but it shouldn't do anything with flexbox, I don't think. It's mostly margins, padding, and font sizes. Here's an example of a reset: http://meyerweb.com/eric/tools/css/reset/
@tommygebru Oh, also... I include Universal Box Sizing with Inheritance in every project I start. It's so helpful.
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
tommy
@tommygebru
Feb 12 2016 19:16 UTC
@kme211 i've stayed away from before and after ... so far.... so I looked at box-sizing just now :thumbsup: it seems this is what causes the unfortunate whack a mole activity that is css sizing :smile: http://blog.teamtreehouse.com/box-sizing-secret-simple-css-layouts
Keari Eggers
@kme211
Feb 12 2016 19:22 UTC
@tommygebru It definitely makes things easier.
LennixM
@LennixM
Feb 12 2016 19:30 UTC
Hey guys, I have finally finished my Pomodoro Clock. Please give me some feedback on the overall functionality and design. Feel free to look at the code :)
http://codepen.io/LenniXM/full/YwBWQR/
Andrew Vanboxel
@avanbox
Feb 12 2016 19:30 UTC
has anyone had any javascript problems with codepen? I can declare a global variable but codepen wont recognize it in a later function.
@LennixM looks cool. The only thing id like is if the up/down buttons were + and -
LennixM
@LennixM
Feb 12 2016 19:33 UTC
Well they are + and -, aren't they? :D
Andrew Vanboxel
@avanbox
Feb 12 2016 19:33 UTC
to me they just both look like -
oops i guess your right im on a small screen
LennixM
@LennixM
Feb 12 2016 19:34 UTC
Okay maybe they are too small. I should enlarge them probably :)
Andrew Vanboxel
@avanbox
Feb 12 2016 19:34 UTC
the + was hard to distinguish. my fault not yours
LennixM
@LennixM
Feb 12 2016 19:34 UTC
thanks for the feedback though @avanbox
CamperBot
@camperbot
Feb 12 2016 19:34 UTC
lennixm sends brownie points to @avanbox :sparkles: :thumbsup: :sparkles:
:star: 207 | @avanbox | http://www.freecodecamp.com/avanbox
Andrew Vanboxel
@avanbox
Feb 12 2016 19:34 UTC
np
i like the ize actually, i just wish the vertical part of the plus was the same size as the horizontal
but thats a whole font issue
Keari Eggers
@kme211
Feb 12 2016 19:37 UTC
@avanbox Do you have a pen to look at? I haven't been experiencing issues.
Andrew Vanboxel
@avanbox
Feb 12 2016 19:38 UTC
ive been screwing around with this calculator, and ill struggle then figure out its becuase something isnt working right.
look at variable secNum
excuse the mess ive been deleting and screwing around
secNum is blue at the top but yellow in the clear function
should be global right?
Keari Eggers
@kme211
Feb 12 2016 19:40 UTC
@avanbox No problem. I see where it's declared but not where it's used
Andrew Vanboxel
@avanbox
Feb 12 2016 19:41 UTC

function clearCur()
{

Calculator.display('0')
secNum="0";
}

its yellow there, and should be blue
Virginia Winter
@FreeCodeCamp319
Feb 12 2016 19:42 UTC
@jrroman Thanks for the clarification! I totally misunderstood and thought 'tribute page' meant FCC had a separate place for now deprecated projects.
CamperBot
@camperbot
Feb 12 2016 19:42 UTC
freecodecamp319 sends brownie points to @jrroman :sparkles: :thumbsup: :sparkles:
:star: 263 | @jrroman | http://www.freecodecamp.com/jrroman
Keari Eggers
@kme211
Feb 12 2016 19:42 UTC
@avanbox I think blue just means that it's a local variable. A global variable is not a local variable when you're inside a function.
Andrew Vanboxel
@avanbox
Feb 12 2016 19:43 UTC
hmmm. maybe ive been barking up the wrong tree then
thanks @kme211
CamperBot
@camperbot
Feb 12 2016 19:43 UTC
avanbox sends brownie points to @kme211 :sparkles: :thumbsup: :sparkles:
:star: 329 | @kme211 | http://www.freecodecamp.com/kme211
Dimitri Apostal
@Stateford
Feb 12 2016 19:44 UTC
@avanbox it's within a function so the color is differnet
Andrew Vanboxel
@avanbox
Feb 12 2016 19:46 UTC
i thought that meant it wasnt recognizing the variable. Ive been having some scope problems, I thought that was it but probably some {} error on my part
so anything declared outside of all functions should be available to all functions correct?
Keari Eggers
@kme211
Feb 12 2016 19:49 UTC
@avanbox Yes. But if you declare the same variable name inside of a function and then call it in that function, it will find the local variable and not even look in the global scope.
Andrew Vanboxel
@avanbox
Feb 12 2016 19:49 UTC
ok
at least now i know lol. Ive been trying to use other ides just trying to figure this out. I appreciate the help @kme211 and @idietmoran
oops thanks @kme211 and @idietmoran
CamperBot
@camperbot
Feb 12 2016 19:51 UTC
avanbox sends brownie points to @kme211 and @idietmoran :sparkles: :thumbsup: :sparkles:
:warning: avanbox already gave kme211 points
:star: 290 | @idietmoran | http://www.freecodecamp.com/idietmoran
Andrew Vanboxel
@avanbox
Feb 12 2016 19:53 UTC
just refreshed @LennixM looks good
Brett
@BLayman
Feb 12 2016 19:55 UTC

I can't seem to get my facebook and youtube links to align right on my navbar. Any ideas?

rtc31293
@rtc31293
Feb 12 2016 20:00 UTC
does anyone know how to address the "No-Access Control Header" problem for the wikipedia project?
Jonathan Coleman
@jondcoleman
Feb 12 2016 20:03 UTC
@rtc31293 JSONP
Keari Eggers
@kme211
Feb 12 2016 20:04 UTC
@BLayman According to the Bootstrap examples the navbar-right class needs to be on a <ul> element.
rtc31293
@rtc31293
Feb 12 2016 20:06 UTC
@jondcoleman awesome! thank you
CamperBot
@camperbot
Feb 12 2016 20:06 UTC
rtc31293 sends brownie points to @jondcoleman :sparkles: :thumbsup: :sparkles:
:star: 544 | @jondcoleman | http://www.freecodecamp.com/jondcoleman
Brett
@BLayman
Feb 12 2016 20:16 UTC

@kme211 I tried wrapping my last to <li>s in <ul>s with that class, but I got this:

@kme211 I also just added the nav class to make them navbar buttons, but it looks like it made a new navbar, and that the icons still aren't aligned right.
brb
Clark Arnold
@clarkarnold
Feb 12 2016 20:29 UTC
help show the local weather
CamperBot
@camperbot
Feb 12 2016 20:29 UTC
no wiki entry for: show the local weather
Virginia Winter
@FreeCodeCamp319
Feb 12 2016 20:32 UTC
@BadLang If this is the old stylized-camper-news challenge, FCC removed it from their requirements.
Mark Lawrence
@ninja-ml
Feb 12 2016 20:33 UTC
I finished my Local Weather app the other day and was getting started on Stylize Camper News and just saw it's not there anymore... so I just wanted to make sure it's changed and I'm not missing anything ?
Nisha Shlaymoon
@leaguelism
Feb 12 2016 20:33 UTC
Hi, it seems somethings have changed. Should I still work on my portfolio or the tribute thingy?
Virginia Winter
@FreeCodeCamp319
Feb 12 2016 20:33 UTC
@ninja-ml I was going to submit mine this morning and discovered that the requirement is completely gone -- it's no longer required.
Mark Lawrence
@ninja-ml
Feb 12 2016 20:34 UTC
@FreeCodeCamp319 thanks... that's what i thought but I wanted to double check
CamperBot
@camperbot
Feb 12 2016 20:34 UTC
ninja-ml sends brownie points to @freecodecamp319 :sparkles: :thumbsup: :sparkles:
:star: 398 | @freecodecamp319 | http://www.freecodecamp.com/freecodecamp319
Virginia Winter
@FreeCodeCamp319
Feb 12 2016 20:35 UTC
@leaguelism FCC is replacing the stylized-camper-news with the "tribute thingy". I wish I had known ahead of time.
@ninja-ml It certainly threw me for a loop.
Nisha Shlaymoon
@leaguelism
Feb 12 2016 20:35 UTC
Well since I don't know how to start my portfolio anyway, I'm going to do the tribute page since it seems alot easier
Virginia Winter
@FreeCodeCamp319
Feb 12 2016 20:36 UTC
@leaguelism I actually did the whole camper-news thing and the tribute page looks a TON easier!
Nisha Shlaymoon
@leaguelism
Feb 12 2016 20:36 UTC
i stormed through the html and css challenges and now i forgot most of it lol
@FreeCodeCamp319 wow i wish they kept it then, oh well
Virginia Winter
@FreeCodeCamp319
Feb 12 2016 20:39 UTC
@leaguelism I felt so stupid after I did the easy challenges and then faced the real web site creative process that I went back and did them all again. The second time I actually took notes on what I thought would be key to remember. I'm a nerd -- what can I say?! But what it really took to start the portfolio business was (after two weeks or so of being convinced that I didn't know enough) to take it one step at a time. I figured I could do the html part. Then I styled with css. Then I finally made inroads with js. I checked out books from our library and read lots of blogs. I really like css-tricks and David Walsh's pages. Don't give up!
Keari Eggers
@kme211
Feb 12 2016 20:40 UTC
@BLayman If you inspect your DOM in dev tools, you can see that your social icons <ul> is actually inside the Web Design <li> dropdown so you're missing a couple of close tags.
Nisha Shlaymoon
@leaguelism
Feb 12 2016 20:41 UTC
Yah man, it's time to go back to level 1, it sucks but I gotta let go of my ego haha. I have to catch my bus now, but thanks a lot for the advice @FreeCodeCamp319 . Nice talking to you
CamperBot
@camperbot
Feb 12 2016 20:41 UTC
leaguelism sends brownie points to @freecodecamp319 :sparkles: :thumbsup: :sparkles:
:star: 399 | @freecodecamp319 | http://www.freecodecamp.com/freecodecamp319
Alex
@Jeckstex
Feb 12 2016 20:43 UTC
Hello campers! I am trying to make bookmarks within a same page for the project "Build a Portofolio". The problem is that the link doesn't go to the desired bookmarks. My link is at line 12 and I want to go to line 91 with the id contact. Here is my pen: http://codepen.io/Jeckstex/pen/obJbjN
Orban Geoffrey
@Geo86
Feb 12 2016 20:44 UTC
@leaguelism It's normal. We are all in the same boat. Practice, practice and practice. Don't see your learning curve as a straight line... That doesn't work this way. Don't try to remember everything at once. It comes once again with practice. Don't give up, and leave you the time to learn. :)
Clark Arnold
@clarkarnold
Feb 12 2016 20:46 UTC
You have <a herf="***">, it is <a href="***"> @Jeckstex
change it to href and you should be good to go
Virginia Winter
@FreeCodeCamp319
Feb 12 2016 20:46 UTC
@Jeckstex I notice that your anchor has "herf" rather than "href". Could that be part of the problem?
Clark Arnold
@clarkarnold
Feb 12 2016 20:48 UTC
@Jeckstex You also need to look at the id of the sections you want to link to.. you have them labeled #block1 #block2 #block3 and in the href="#home"
Alex
@Jeckstex
Feb 12 2016 20:48 UTC
thank you @FreeCodeCamp319 @clarkarnold my dyslexia didn't help on that one! I was struggling an hour on this!
CamperBot
@camperbot
Feb 12 2016 20:48 UTC
jeckstex sends brownie points to @freecodecamp319 and @clarkarnold :sparkles: :thumbsup: :sparkles:
:star: 411 | @clarkarnold | http://www.freecodecamp.com/clarkarnold
:star: 400 | @freecodecamp319 | http://www.freecodecamp.com/freecodecamp319
Clark Arnold
@clarkarnold
Feb 12 2016 20:50 UTC
Anytime, @Jeckstex
Nikolay Ignatyev
@cyb3rD
Feb 12 2016 20:50 UTC
@Jeckstex you should remove <p> from <a>
just place text inside <a></a> for making text inside tag linked to the anchor
Alex
@Jeckstex
Feb 12 2016 20:52 UTC
Ah okay, this form is more compact!
thanks for the tip @cyb3rD
CamperBot
@camperbot
Feb 12 2016 20:52 UTC
jeckstex sends brownie points to @cyb3rd :sparkles: :thumbsup: :sparkles:
:star: 179 | @cyb3rd | http://www.freecodecamp.com/cyb3rd
Nikolay Ignatyev
@cyb3rD
Feb 12 2016 20:53 UTC
@Jeckstex and also, I thunk that you should remove inline styles from <p> to external CSS. IMHO using inline styles not necessary here
your code will look more readable
Virginia Winter
@FreeCodeCamp319
Feb 12 2016 20:54 UTC
@Jeckstex Doesn't it just get to you when it's something you've looked at a million times without seeing it?
Alex
@Jeckstex
Feb 12 2016 20:55 UTC
okay, I will also try to do that! Yeah, I know my code is kind of messy^^ I will try to get better habits for my futur projects
Nikolay Ignatyev
@cyb3rD
Feb 12 2016 20:57 UTC
@Jeckstex only practice will help to get good habits
Alex
@Jeckstex
Feb 12 2016 20:58 UTC
@FreeCodeCamp319 well not this time, my eyes saw the right characters but didn't pay attention to the order.
Matthew King
@MattTheWebDev
Feb 12 2016 21:00 UTC
I could use some help with my pomodoro clock, it is lagging for some reason.
Christos Kokolios
@KokoChris
Feb 12 2016 21:09 UTC
Matt share your codepen and we can take a look
John Roman
@jrroman
Feb 12 2016 21:19 UTC
@FreeCodeCamp319 not a problem at all, thank you for the points :)
CamperBot
@camperbot
Feb 12 2016 21:19 UTC
jrroman sends brownie points to @freecodecamp319 :sparkles: :thumbsup: :sparkles:
:star: 401 | @freecodecamp319 | http://www.freecodecamp.com/freecodecamp319
Clark Arnold
@clarkarnold
Feb 12 2016 21:24 UTC
@MattTheWebDev got a link to your codepen?
Tyler Haas
@tylerthehaas
Feb 12 2016 21:25 UTC

hey getting a weird error while trying to redo the quote generator challenge
the error:
Uncaught SyntaxError: Unexpected token :

the code

angular.module("DeveloperQuotes", [])
.controller("MainCtrl", ['$scope', '$http', function($scope,$http){
$scope.random = function(){$http.jsonp('http://quotes.stormconsultancy.co.uk/random.json?callback=JSON_CALLBACK').success(function(data){
\$scope.quote = json.parse(data);
});
};
}]);
here is a link to the project for anyone who prefers that
http://codepen.io/haasDev/pen/LVyxRO/?editors=1010
Virginia Winter
@FreeCodeCamp319
Feb 12 2016 21:26 UTC
@haasDev Where do you get the 'unexpected token' error?
Tyler Haas
@tylerthehaas
Feb 12 2016 21:27 UTC
its on the returned json data
it gets it from the first colon in the json
Brett
@BLayman
Feb 12 2016 21:35 UTC
@kme211 Sorry I was gone for a while. I'm not sure how to access dev tools. Is that just for chrome? Looking at the dom would be pretty helpful in this situation. Thanks.
CamperBot
@camperbot
Feb 12 2016 21:35 UTC
blayman sends brownie points to @kme211 :sparkles: :thumbsup: :sparkles:
:star: 331 | @kme211 | http://www.freecodecamp.com/kme211
JackeL
@jackel27
Feb 12 2016 22:28 UTC
can anyone help me?
one of my buttons can only be clicked by border... don't know why
JackeL
@jackel27
Feb 12 2016 22:41 UTC
nm, fixed by grouping buttons.
Elizabeth Fine
@elizabethfinedev
Feb 12 2016 23:31 UTC
hey guys im trying to do the quote generator but i am just clueless on how to use an api
like i look at that code and i have no idea whats going on...and cant really find a tutorial to tell my what do to. does anyone have any suggestions?
jakehm
@jakehm
Feb 12 2016 23:32 UTC
My is the about me section smaller than all the others? It has identical css code.
http://codepen.io/jmortelliti/pen/KpjMBd
Lewis
@Lewis65
Feb 12 2016 23:36 UTC
@kurzninja d'oh... I totally knew that, too! Thanks, I really couldn't see what I was doing wrong!
CamperBot
@camperbot
Feb 12 2016 23:36 UTC
lewis65 sends brownie points to @kurzninja :sparkles: :thumbsup: :sparkles:
:star: 399 | @kurzninja | http://www.freecodecamp.com/kurzninja
wyattelliott
@wyattwade
Feb 12 2016 23:51 UTC
wow
was wondering where everyone went
helpfrontend!! ftw
jakehm
@jakehm
Feb 12 2016 23:51 UTC
no one ever helps me in this channel lol
wyattelliott
@wyattwade
Feb 12 2016 23:51 UTC
Hey guys so I'm tryin gto make this project my main portfolio piece
@jharrowmortelliti I will once i get my project done
finishing this up for an application
This message was deleted
the code gets a bit convoluted, especially in the computers algorithm
but even some high level criticism is very helpful
This message was deleted
the name hasn't updated. It's tic tac toe
@jharrowmortelliti what are you working on?
jakehm
@jakehm
Feb 12 2016 23:55 UTC
the portfolio webpage
wyattelliott
@wyattwade
Feb 12 2016 23:56 UTC
looks pretty good so far
"contact me... if you want to die"
lol.....
jakehm
@jakehm
Feb 12 2016 23:57 UTC
lol... the problem is the about me section is too small. I have no idea why because the css is exactly the same as the other sections
wyattelliott
@wyattwade
Feb 12 2016 23:57 UTC
i'll take a look