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
zootechdrum
@zootechdrum
hey guys
I was wondering how you could place buttons right below images in css
here is the link to my pen
Justin
@Syncthetic
Just wrap the items in a container div, and have the button element after the image
if it sets next to it, just use display: block, or clear: both
@zootechdrum looks like you set the button styling as clear: "left" when it should just be something like clear: left
Dennis Magnusson
@magnden
Hey guys, I'm working on the freeCodeCamp weather app. Having some issues getting the latitude and longitude with the navigator object. It takes sooo long. I set up a timer in the app and it takes more than a minute to get the coordinates. Was wondering if you guys get the same if you try it? Link to it: https://codepen.io/dennismagnusson/pen/EEOaZy?editors=0010
Justin
@Syncthetic
@magnden 59.1s
then 37.96s
Dennis Magnusson
@magnden
I can't figure out why it takes so long... should be pretty quick, right? I need help if someone can help
thanks @Syncthetic
CamperBot
@camperbot
magnden sends brownie points to @syncthetic :sparkles: :thumbsup: :sparkles:
:cookie: 297 | @syncthetic |http://www.freecodecamp.org/syncthetic
Ian
@toianw
@magnden I think those results are out by a factor of ten. Divide ms by 1000 (not 100) to get seconds
Dennis Magnusson
@magnden
Thats right. Thanks @toianw!
CamperBot
@camperbot
magnden sends brownie points to @toianw :sparkles: :thumbsup: :sparkles:
:cookie: 514 | @toianw |http://www.freecodecamp.org/toianw
Corey Pennington
@JuiceyDuecy
Guys newbie question: what's the difference between a function and a method?
Markus Kiili
@Masd925
@JuiceyDuecy If a function is an object property value, it is called a method.
Corey Pennington
@JuiceyDuecy
@Masd925 thanks... I think that makes sense... I'm using react and didn't quite understand some of the errors I was getting
CamperBot
@camperbot
juiceyduecy sends brownie points to @masd925 :sparkles: :thumbsup: :sparkles:
:star2: 4768 | @masd925 |http://www.freecodecamp.org/masd925
Corey Pennington
@JuiceyDuecy
,
Federico Dente
@fez994
Hello guys i need help with javascript
Stephen James
@sjames1958gm
@fez994 Ask away.
Federico Dente
@fez994
https://codepen.io/fez994/pen/bvQrvZ I would like to get the value of the selcted item of the dropdown menu, but instead i keep getting an empty string, how can i fix this?
@sjames1958gm
even if i type $('.dropdown-menu li:selected').val(); i get the same result
Stephen James
@sjames1958gm
@fez994 I don't know that <a> has a val() property, I think that is reserved for input elements
var g = $(this).attr("value"); this will get the attribute by name
Dušan Todorović
@krckyboy
@krckyboy
I need to change the content of an element::before using pure JavaScript with each click? So, when I click on an element, the element::before's content should change / toggle with each click?
Basically it's like a checkbox, but instead of just changing the content of the element itself, in each element I need to generate an icon in the element::before
Stephen James
@sjames1958gm
@krckyboy I found this pen where it looks like they are trying that
https://codepen.io/felquis/pen/wHAxe
Dušan Todorović
@krckyboy
@sjames1958gm I don't even know what is Babel, but I'll take a look.
Stephen James
@sjames1958gm
@krckyboy I think the babel is only allowing ES6 in this pen.
translating from ES6 to ES5
THe key is the data-content attribute, I believe
Dušan Todorović
@krckyboy
@sjames1958gm I'm looking at CSS attr(data-content), I guess that's the main part in CSS.
Stephen James
@sjames1958gm
@krckyboy yeah I think so. it is saying that the content is coming from the data-content attribute of the element
Dušan Todorović
@krckyboy
I see how it could work, but now I need to figure out how to deal with :hover.. Basically, when I hover over an element, it needs to have the icon that would appear if I was to make the element "active" (the icon that toggles on and off each click).
.filter .select-filter ul.list-filter li:hover span:before {
         content: "\e64d"; 
        /*content: attr(data-content);*/
    }
Stephen James
@sjames1958gm
you could have a different attribute for hover? I don't think data-content is a fixed value
Dušan Todorović
@krckyboy
Actually, you're right. Makes sense. I'm new at this and first time working with JS in reality.
Thank you!
Stephen James
@sjames1958gm
@krckyboy :+1: I had not seen this use of attr() in css - so I learned something new as well :)
Spacetime
@justinemar

Does anyone know why i can't select the same image after deleting it? use this account to test it
email: test@gmail.com
pw: test

I am using the createObjectURL file API
https://jwt-jstinmhar.c9users.io/#/dashboard

Dušan Todorović
@krckyboy
@sjames1958gm I didn't know it, as well. :D
Federico Dente
@fez994
@sjames1958gm I see thanks, how can i use the variable g outside of that function?
CamperBot
@camperbot
fez994 sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 9174 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
Stephen James
@sjames1958gm
@fez994 What do you mean use it outside the function? I guess you could make the variable "global".
That would probably be considered bad form.