get help in general - we have more specialized help rooms here: https://gitter.im/FreeCodeCamp/home
thecodingaviator on master
remove A (#31157) (compare)
function yourTurn() {
var currentPosition = 0;
var pressTracker = 0;
$('.gameButton').mousedown(function() {
yourNum = parseInt(this.id)
lightPressed(yourNum);
yourSeq[currentPosition] = yourNum;
})
$('.gameButton').mouseup(function() {
checkLight(currentPosition);
currentPosition++;
console.log(currentPosition, yourSeq.length);
})
if (currentPosition == 1) {
console.log("done");
return;
}
}
:star: 379 | @moigithub | http://www.freecodecamp.com/moigithub
hi, what does it means this :
"Give your form's text input field a class of form-control. "
and how i can fix it on the right way?
Here's my code:
<form action="/submit-cat-photo">
<div class="row">
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
</div>
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
</div>
</div>
<div class="row">
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Loving</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Lazy</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Crazy</label>
</div>
</div>
<input type="text" placeholder="cat photo URL" required>
<button class="btn btn-primary" type="submit"><i class="fa fa-paper-plane"></i>Submit</button>
</form>
@francescoeri just give your text input field i.e. <input type="text" placeholder="cat photo URL" required> a class of "form-control." So it will be
<input class="form-control" type="text" placeholder="cat photo URL" required>
"form-control" is class from Bootstrap for input text fields.
Okay. I'm just starting out, and I can't get h2 to have the font-family Lobster. Here's my code:
<style>
.red-text {
color: red;
}
<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
h2 {
font-family: Lobster;
}
Can someone tell me what I'm doing wrong?
:star: 1080 | @saintpeter | http://www.freecodecamp.com/saintpeter
this.
before its name it is public. Without this.
before its name it is private. There should be no other changes to the code other than removing/adding this.
in these two positions. Do you understand?
:star: 471 | @catapixel | http://www.freecodecamp.com/catapixel
:star: 46 | @mildused | http://www.freecodecamp.com/mildused
var Car = function() {
this.wheels = 4;
};
// Only change code below this line.
var myCar = new Car();
//Add the property "engines" to myCar, and make it a number.
// Only change code above this line.
(function() {return JSON.stringify(myCar);})();
has anyone gotten past this one yet? i'm stumped. i've tried so many variations but i just don't understand the proper structure of writing the function. explain please