These are chat archives for FreeCodeCamp/Help

18th
Oct 2017
Jill Lee
@jill-lee
Oct 18 2017 02:44
Hi guys, how can I get the BG link of this website? misfits.com
panda
@pandaxsj
Oct 18 2017 02:53
hello world
Long Nguyen
@longnt80
Oct 18 2017 02:54
panda
@pandaxsj
Oct 18 2017 02:55
what?
Long Nguyen
@longnt80
Oct 18 2017 02:56
Halloween
Jill Lee
@jill-lee
Oct 18 2017 03:03
@longnt80 Sweet! Thanks :D
CamperBot
@camperbot
Oct 18 2017 03:03
phoenix-burn sends brownie points to @longnt80 :sparkles: :thumbsup: :sparkles:
:cookie: 601 | @longnt80 |http://www.freecodecamp.com/longnt80
heroiczero
@heroiczero
Oct 18 2017 04:02
@sjames1958gm @DarrenfJ @Manish-Giri @GitHub-Henry @daddycardona @thekholm80 TY @korzo for helping the community
CamperBot
@camperbot
Oct 18 2017 04:02
heroiczero sends brownie points to @sjames1958gm and @darrenfj and @manish-giri and @github-henry and @daddycardona and @thekholm80 and @korzo :sparkles: :thumbsup: :sparkles:
:cookie: 397 | @github-henry |http://www.freecodecamp.com/github-henry
:cookie: 397 | @daddycardona |http://www.freecodecamp.com/daddycardona
:star2: 2148 | @darrenfj |http://www.freecodecamp.com/darrenfj
:cookie: 636 | @korzo |http://www.freecodecamp.com/korzo
:star2: 6661 | @manish-giri |http://www.freecodecamp.com/manish-giri
:star2: 1516 | @thekholm80 |http://www.freecodecamp.com/thekholm80
:star2: 8572 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
Long Nguyen
@longnt80
Oct 18 2017 06:58
anyone experienced with git?
davidlair
@davidlair
Oct 18 2017 08:01
Hey is anyone in here good with trig? <.<
Was curious about what happens when there's a negative sign attached to b, in the form A*sin(bx+c)-d
Do you flip it across the y-axis?
youidol
@youidol
Oct 18 2017 08:05
<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");
$("#target1").parent().css("background-color", "red");
$("#right-well").children().css("color", "orange");
$(".target:nth-child(2)").addClass("animated bounce");

</script>
第二个元素在你的 target 在你的目标元素中应该 bounce。
老是出错
谁能看下错哪了555

<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");
$("#target1").parent().css("background-color", "red");
$("#right-well").children().css("color", "orange");
$(".target:nth-child(2)").addClass("animated bounce");

</script>

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>
这是全部代码

Henry
@GitHub-Henry
Oct 18 2017 08:57
@heroiczero hello, ty for the brownies
CamperBot
@camperbot
Oct 18 2017 08:57
github-henry sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1898 | @heroiczero |http://www.freecodecamp.com/heroiczero
maise18
@maise18
Oct 18 2017 09:22
<h2>我家的猫咪</h2>
Tiago Correia
@tiagocorreiaalmeida
Oct 18 2017 09:58
gm @alpox are you aroun allready ?
Stephen James
@sjames1958gm
Oct 18 2017 10:01
@tiagocorreiaalmeida :wave:
Tiago Correia
@tiagocorreiaalmeida
Oct 18 2017 10:02
hey @sjames1958gm
so how's everythign?
Stephen James
@sjames1958gm
Oct 18 2017 10:19
Good, still early
Tiago Correia
@tiagocorreiaalmeida
Oct 18 2017 10:20
yeah,got something I can't figure out how to handle
so imagine you have 1 submit button in a form is there any possible way to stop the form submition with jquery?:D
Stephen James
@sjames1958gm
Oct 18 2017 10:21
preventDefault should do it
Tiago Correia
@tiagocorreiaalmeida
Oct 18 2017 10:23
nah it wont :D
but need a solution so still searching around
cause I have 3 submits in 1 form :D but only 1 has to check if a field is empty and if so prevent the submit and d o something
even used stopPropagation as someone pointed me to try it
Stephen James
@sjames1958gm
Oct 18 2017 10:35
@tiagocorreiaalmeida - on jsbin I did the following and it didn't submit (it does when preventDefault is removed)
$(document).ready(() => {
$(".test").on("click", function(e) {
  console.log("this");
  e.preventDefault();
  console.log($(".that").val())
})
});
Pethaf
@Pethaf
Oct 18 2017 11:13
@tiagocorreiaalmeida Use the html5 property required on the field that has to be filled in instead?
Let the browser do the validation.
alpox
@alpox
Oct 18 2017 12:04
@tiagocorreiaalmeida im quite sure something else must go wrong then
@tiagocorreiaalmeida maybe i could take a look if i can see some code
@RootInsect
Oct 18 2017 12:09
各位大神都是怎么翻墙的啊
M.K.
@MasterKweng
Oct 18 2017 14:22
的 div 元素应该包含类属性 container-fluid.
确保你的每一个 div 元素都有一个闭合标签.
确保你已经将所有HTML元素内嵌在 .container-fluid 之中.
这个是怎么实现的啊
how to use container-fluid to nest elements?
Is there anyone
please
Tiago Correia
@tiagocorreiaalmeida
Oct 18 2017 14:41
@Pethaf I can't if its a form with 3 nested submit buttons or it will require for any of the buttosn ;)
@sjames1958gm not at home at the moment but soon will try and tell you soemthing abhout it, and alpox @ same, thanks both, anyway does any of you know any interm/advanced frotnend course/platorm ?
CamperBot
@camperbot
Oct 18 2017 14:42
tiagocorreiaalmeida sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8575 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
Nazar
@IsaakNazar
Oct 18 2017 15:14
the time on the right side of messages is 2 hours behind/ WTF?
mkiicheung
@mkiicheung
Oct 18 2017 15:25
freecodecamp's messages?
Nazar
@IsaakNazar
Oct 18 2017 16:11
@mkiicheung yes
gitter messages
M.K.
@MasterKweng
Oct 18 2017 16:19
。。
Tiago Correia
@tiagocorreiaalmeida
Oct 18 2017 17:29
@sjames1958gm it worked had a typo on my previous code didnt noticed it had two things in the wrong place thanks mate
CamperBot
@camperbot
Oct 18 2017 17:29
tiagocorreiaalmeida sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8576 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
Darren
@DarrenfJ
Oct 18 2017 18:14
morning fCC how goes *thee 'ole codings'
thank you back to @heroiczero :D
CamperBot
@camperbot
Oct 18 2017 18:15
darrenfj sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1899 | @heroiczero |http://www.freecodecamp.com/heroiczero
Darren
@DarrenfJ
Oct 18 2017 18:16
and congrats @daddycardona on doing the binary challenge well done virtual claps and high fives
and hell yah virtual shots
Tiago Correia
@tiagocorreiaalmeida
Oct 18 2017 18:24
hey @DarrenfJ
Stephen James
@sjames1958gm
Oct 18 2017 18:30
@tiagocorreiaalmeida :+1:
Scott Price
@sayes2x
Oct 18 2017 19:29
I came up to a solution to the Intermediate Algorithm Scripting Roman Numeral Converter that freeCodeCamp does not accept, but when I run the code in Codepen I get the correct results for every function call on the page. Can anyone see a problem with my code. I think I found a bug.
var decimal = [ 1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1 ];
var roman = [ 'M', 'CM', 'D', 'CD', 'C', 'XC', 'L', 'XL', 'X', 'IX', 'V', 'IV', 'I' ];
var result = '';

function convertToRoman(num) {
  var index = decimal.findIndex(x => x <= num);
  if(index !== -1) {
    result += roman[index];
    num -= decimal[index];
    convertToRoman(num);
  }
  return result;
}

convertToRoman(36);
Moisés Man
@moigithub
Oct 18 2017 19:31
@sayes2x use local variables...
fcc test call ur function multiples times.. IF u use globals.. ur previous result will keep concatenating
Scott Price
@sayes2x
Oct 18 2017 19:40
Thank you Moises Man. I can see what you mean.
Darren
@DarrenfJ
Oct 18 2017 20:25
@sayes2x yah i kept failing it even though i got the right answer and I went to pout a ticket in and someone else had and the answer was all variable declaration need to be within the function..
so even though it's still working, the test itself fails
@tiagocorreiaalmeida hey :wave:
just popping in to say: thanks as usual to the regulars
thanks @heroiczero @sjames1958gm @Manish-Giri @GitHub-Henry @daddycardona @thekholm80 @korzo
CamperBot
@camperbot
Oct 18 2017 20:26
darrenfj sends brownie points to @heroiczero and @sjames1958gm and @manish-giri and @github-henry and @daddycardona and @thekholm80 and @korzo :sparkles: :thumbsup: :sparkles:
:cookie: 398 | @daddycardona |http://www.freecodecamp.com/daddycardona
:star2: 8577 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
:cookie: 398 | @github-henry |http://www.freecodecamp.com/github-henry
:star2: 1517 | @thekholm80 |http://www.freecodecamp.com/thekholm80
:star2: 6662 | @manish-giri |http://www.freecodecamp.com/manish-giri
:cookie: 639 | @korzo |http://www.freecodecamp.com/korzo
:star2: 1900 | @heroiczero |http://www.freecodecamp.com/heroiczero
Dylan
@dhcodes
Oct 18 2017 20:47
I see how it is @DarrenfJ
Kyle Holm
@thekholm80
Oct 18 2017 21:01
thanks everyone except @dhcodes
CamperBot
@camperbot
Oct 18 2017 21:01
thekholm80 sends brownie points to @dhcodes :sparkles: :thumbsup: :sparkles:
:star2: 1846 | @dhcodes |http://www.freecodecamp.com/dhcodes
Kyle Holm
@thekholm80
Oct 18 2017 21:02
@DarrenfJ @heroiczero ty
CamperBot
@camperbot
Oct 18 2017 21:02
thekholm80 sends brownie points to @darrenfj and @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1901 | @heroiczero |http://www.freecodecamp.com/heroiczero
:star2: 2149 | @darrenfj |http://www.freecodecamp.com/darrenfj
Ai rui 艾瑞
@aisolae
Oct 18 2017 21:12
hi
i can't seem to figure out how to get the toggle to work.
i would appreciate any help.
Ken Haduch
@khaduch
Oct 18 2017 21:23
@aisolae - do you have that project in a location where it can be viewed in a browser?
Ai rui 艾瑞
@aisolae
Oct 18 2017 21:23
yeah
Ken Haduch
@khaduch
Oct 18 2017 21:30
okay... what is the URL?
Ai rui 艾瑞
@aisolae
Oct 18 2017 21:52
seems i can only view the files
need to figure out how to it could be viewed in browser
Darren
@DarrenfJ
Oct 18 2017 21:54
thanks everyone except @dhcodes
CamperBot
@camperbot
Oct 18 2017 21:54
darrenfj sends brownie points to @dhcodes :sparkles: :thumbsup: :sparkles:
:star2: 1847 | @dhcodes |http://www.freecodecamp.com/dhcodes
Darren
@DarrenfJ
Oct 18 2017 21:54
snicker
that's the url
Ken Haduch
@khaduch
Oct 18 2017 22:00
@aisolae - okay, so it's the "Home", "Trending", and "Subscription" that you're having trouble with?
Ai rui 艾瑞
@aisolae
Oct 18 2017 22:02
the toggle image . it's beside the logo.
Ken Haduch
@khaduch
Oct 18 2017 22:02
@aisolae - are you using jQuery in your code anywhere? There is a console error (in the devtools console) about Uncaught ReferenceError: $ is not defined - usually meaning that jquery wasn't loaded?
Ai rui 艾瑞
@aisolae
Oct 18 2017 22:02
@khaduch
ok
let me check that out
Ken Haduch
@khaduch
Oct 18 2017 22:03
are you using Bootstrap and the bootstrap menu toggle? If so, you need to load jQuery.js and the correct version of Bootstrap.js
Ai rui 艾瑞
@aisolae
Oct 18 2017 22:06
yeah
Ken Haduch
@khaduch
Oct 18 2017 22:06
@aisolae - it looks like you are attempting to load bootstrap.js, but your line for that looks like this: <script src="scipts=""js/bootstrap.js" ></script>
Ai rui 艾瑞
@aisolae
Oct 18 2017 22:07
yeah
i am using the bootstrap. js
Ken Haduch
@khaduch
Oct 18 2017 22:08
so you need jquery.js in order to use bootstrap.js, and jquery.js has to be loaded before bootstrap.js within your HTML code... that might help...
I have to run along because I'm being booted off the dinner table, so I hope that helped a bit... I'll check in later.
Ai rui 艾瑞
@aisolae
Oct 18 2017 22:09
ok, i will check that immediately
thanks for the help @khaduch
CamperBot
@camperbot
Oct 18 2017 22:09
aisolae sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 3377 | @khaduch |http://www.freecodecamp.com/khaduch
Stephen James
@sjames1958gm
Oct 18 2017 23:13
@aisolae src="scipts=""js/bootstrap.js" this should be src="js/bootstrap.js"
Ai rui 艾瑞
@aisolae
Oct 18 2017 23:20
Fixed
Thanks
Will view it in browser once I get to office
Jaquavieon
@Jaquavieon
Oct 18 2017 23:48
hello world im kind of new here does any one know how to properly start
Ken Haduch
@khaduch
Oct 18 2017 23:53
@Jaquavieon - start with the first lessons and make sure you get a good understanding of the early concepts. There is a lot to learn if you’re really a newbie in coding. Ask questions here for guidance. Good luck!