Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
Mikhail Panichev
@denisinvader
Hi. Is there somebody who've made tic tac toe?
Henry Cabello
@hacu9
Sorin Ruse
@sorinr
@hacu9 4.02+2.03=6.04(9) instead of 6.05
@hacu9 make: output= (eval(str).toFixed(no of resulting decimals) )
Annu Nirmal
@annunirmal
@jdtdesigns hi tadlock, for which line i should be changing my js ?
here is the link: http://codepen.io/nirmalannu/pen/qaqdbR?editors=1011
JD Tadlock
@jdtdesigns
@grantknaver I coded out a header for you. I have nothing against Bootstrap, but it's bloated and uses legacy code. We have way better layout options available today like flexbox. You'll see that the html is way less and the css for the menu is very minimal as well. I did some custom styling for the brand and such, but the main stuff that handles the responsiveness is very little. http://jsbin.com/wozahu/edit?output
@annunirmal
// take all this out
   $(".html body").animate({
      backgroundColor: colors[color],
      color: colors[color]
    }, 1000);
   $(".button").animate({
      backgroundColor: colors[color]
    }, 1000);

// replace with this
$('body').css('background', '#' + colors[color]);
$('.button').css('background', '#' + colors[color]);
Annu Nirmal
@annunirmal
@jdtdesigns perfect it is working thanks alot.
one more thing why you kept transition value .7s.
CamperBot
@camperbot
annunirmal sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 608 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
JD Tadlock
@jdtdesigns
@annunirmal It can be any amount you choose. I just did .7s ;)
Sorin Ruse
@sorinr
@hacu9 or at least you can go for a precision of 4 and don't show the last two decimals if they are zero
Annu Nirmal
@annunirmal
@jdtdesigns okay , thanks alot man. i have been working on this from quite some time. thanks alot. keep helping
CamperBot
@camperbot
annunirmal sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:warning: annunirmal already gave jdtdesigns points
Henry Cabello
@hacu9
@sorinr Just adding .toFixed?
JD Tadlock
@jdtdesigns
@annunirmal You can actually replace the 2 new lines of js with this one line. ;)
$('body, .button').css('background', '#' + colors[color]);
Henry Cabello
@hacu9
How do i make the = buttom full width e-e
Annu Nirmal
@annunirmal
@jdtdesigns yeah right i figured that out :)
JD Tadlock
@jdtdesigns
:D
Sorin Ruse
@sorinr
@hacu9 toFixed() its like toFixed(0) means no decimals
JD Tadlock
@jdtdesigns
or Math.round(myNum) ;)
Sorin Ruse
@sorinr
@jdtdesigns only it rounds to nearest integer and get rid of decimals
Annu Nirmal
@annunirmal
@jdtdesigns hey if i want to change text instead of background what should i be writing ?
$('.quote_text').css('text', '#' + colors[color]);
CamperBot
@camperbot
hacu9 sends brownie points to @sorinr and @jdtdesigns :sparkles: :thumbsup: :sparkles:
Henry Cabello
@hacu9
@sorinr @jdtdesigns thanks c:
CamperBot
@camperbot
:cookie: 730 | @sorinr |http://www.freecodecamp.com/sorinr
:cookie: 609 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
JD Tadlock
@jdtdesigns
@annunirmal
$('.quote_text').css('color', '#' + colors[color]);
.css() refers to the css properties just like you would use in your css stylesheet
Annu Nirmal
@annunirmal
@jdtdesigns :+1: perfect . thanks
CamperBot
@camperbot
annunirmal sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:warning: annunirmal already gave jdtdesigns points
Sorin Ruse
@sorinr
@annunirmal if you have defined your colors in the array like '#hex' no need for '#' + colors[color] just colors[color]
Annu Nirmal
@annunirmal
@sorinr okay. thanks
CamperBot
@camperbot
annunirmal sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
:cookie: 731 | @sorinr |http://www.freecodecamp.com/sorinr
Hansi2468
@Hansi2468

Can anyone tell me what am i doing wrong, since it returns 4 and not [["a", "b"], ["c", "d”]]

function chunkArrayInGroups(arr, size) {

if (size ===2 ){
var arr1 = arr.splice(4);
var arr2 = arr1.push([arr[0]],[arr1],[arr2],[arr3]);
return arr2;}
}

chunkArrayInGroups(["a", "b", "c", "d"], 2);

Evan W
@Dirtier
Anyone know how to create forms like this?
alt
Woops
![pic](http://imgur.com/IjdC1Xt)
O.o how do you post images
Evan W
@Dirtier
blob
Need help making a form like that ^
shreyas23sk
@shreyas23sk
has anyone here completed that calculator project
santosh
@coderpsk
var myStr ="I am a\"double quoted\" string inside" \"double quotes.\";
not working
Abdur Rehman
@HQuser
var myStr ="I am a\"double quoted\" string inside \"double quotes.\";
try that
var myStr ="I am a\"double quoted\" string inside\"double quotes.\" ";
d wilder
@alhazen1
@Dirtier
maybe something like this would work for you
input {
  border: 0;
  background: transparent; /* maybe don't need this? not sure */
  border-bottom: 2px solid lightgrey;
}