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
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]);
Henry Cabello
@hacu9
@sorinr @jdtdesigns thanks c:
CamperBot
@camperbot
hacu9 sends brownie points to @sorinr and @jdtdesigns :sparkles: :thumbsup: :sparkles:
: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;
}
Evan W
@Dirtier
@alhazen1 Yea I figured it out, thanks though :P
CamperBot
@camperbot
dirtier sends brownie points to @alhazen1 :sparkles: :thumbsup: :sparkles:
:cookie: 374 | @alhazen1 |http://www.freecodecamp.com/alhazen1
Evan W
@Dirtier
@alhazen1 While you're here, would you by any chance take a look at my codepen and help me figure out why the push menu wont work at lower resolutions?
d wilder
@alhazen1
@Dirtier got just a minute but I'll take a peek
Evan W
@Dirtier
Blah it is right there, but most of the time when you start squeezing it smaller and smaller you cant click on it anymore
d wilder
@alhazen1
@Dirtier Seems to work for me. I'm looking in dev tool, not on a real device but at telephone size it is still animating but everything is very tiny
Evan W
@Dirtier
Ah yea I'm sure it is haha I didn't really design it for phones. Not that great at that yet
Sorin Ruse
@sorinr
@Dirtier you can use @media queries in your css to change the font size you want for smaller screens. you can read more here: https://css-tricks.com/snippets/css/media-queries-for-standard-devices/
Istvan Kokuti
@zaturek
hi guys! How can I get accurate location in html5? I've made the weather app, but the location is not accurate. The site doesn't ask for permission to reach location of the user. What could I do?
Stephen James
@sjames1958gm
@zaturek I assume you aren't using the browser geolocation feature?
Istvan Kokuti
@zaturek
I've use navigator.geolocation.getCurrentPosition(showPosition)
@sjames1958gm I'm not sure, if it is the right one I've choosed
Stephen James
@sjames1958gm
Hmm that should require the browser to ask for location, and likely the most accurate that you can get.
Istvan Kokuti
@zaturek
But when I handled the errors, i've got a "permission denied" respond
and the browser don't asked for my location
Stephen James
@sjames1958gm
@zaturek You are running over http:// (on chrome?)
Istvan Kokuti
@zaturek
yep
@sjames1958gm yep
Stephen James
@sjames1958gm
getCurrentPosition on chrome only works over https:// - you can use an alternate api such as http://ip-api.com/json to get location on ip address, not as accurate.
Istvan Kokuti
@zaturek
and I couldn't force it to use https?