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
Dardan Demiri
@dardandmr
@DarkxPunk
Yes we can try
;)
niniyzni
@niniyzni
@asparism hey can you update in my fiddle...its confusing :(
DarkxPunk
@DarkxPunk
Dardan Demiri
@dardandmr
Yes
what's the issue ?
DarkxPunk
@DarkxPunk
@dardandmr That directed at me or @asparism ?
Dardan Demiri
@dardandmr
to you @DarkxPunk
DarkxPunk
@DarkxPunk
@dardandmr If you load the code pen I put explanations. But at the moment I am trying to optimize these as best I can to make them as flexible as possible.
Dardan Demiri
@dardandmr
hmm I can not understand exactly what you mean
Ian Lee
@asparism
@niniyzni I think it would be best if you did it yourself. That way you would understand everything because you wrote it yourself. but i will give you the outline. there are two parts: 1) - if there's not an array in localStorage, put one there, filled with the values of your select's child options. if there is an array, pull it down and JSON.parse it to javascript. every time the page loads, get that array and use it to fill the drop down menu. 2) when a new item is added, push it to the javascript array, then overwrite your local storage with the JSON.stringified javascript array.
DarkxPunk
@DarkxPunk
@dardandmr Where are you confused?
@dardandmr To clarify there is no "problem" with this. I am trying to improve one or both systems it is all.
Dardan Demiri
@dardandmr
ahh okey
I thought something is wrong in the code and when I looked inside it worked perfect
nice work
DarkxPunk
@DarkxPunk
@dardandmr So any suggestions on how to improve or meet some of the goals I have?
Jonathan Tey
@jontey
@darksx
@DarkxPunk i'm curious, ...is there a way for the second method to not have the order of divs reversed?
@DarkxPunk are there any other methods you've considered trying?
DarkxPunk
@DarkxPunk
@jontey I havent been able to achieve it, because there is no way to work backwards in CSS only down XD
@jontey I am open to suggestions
DarkxPunk
@DarkxPunk
No suggestions?
Dardan Demiri
@dardandmr
@DarkxPunk you can do all this with JS
:P
my suggestion
DarkxPunk
@DarkxPunk
Yes I know
I am trying to avoid JS as much as possible XD
Dardan Demiri
@dardandmr
I understand and it's really helpful to know JS
CSS
Jonathan Tey
@jontey
@DarkxPunk hmm.. i tried the target method with the divs arranged in order and it still works
Dardan Demiri
@dardandmr
but you can not achieve everything with CSS
DarkxPunk
@DarkxPunk
I know how to do it in JS, its not an issue of knowledge, its the challenge!
Dardan Demiri
@dardandmr
I understand, and that's really good challange
Jonathan Tey
@jontey
or am i doing smething wrong?
DarkxPunk
@DarkxPunk
@jontey Shoot me a fork of the codepen
@dardandmr I felt so pround last night when I managed to get the target to display the first input data XD
Jonathan Tey
@jontey
@DarkxPunk maybe something to add would be a show/hide function
DarkxPunk
@DarkxPunk
@jontey It is not working as expected, by flipping the order the first input data isnt shown but rather the last. Yes the function works, but not the correct data is shown.
Dardan Demiri
@dardandmr

@DarkxPunk nice work really I don't know how that actually works

And to be honest, when I saw there is no JS there I thought something is wrong here !

haha

DarkxPunk
@DarkxPunk
@jontey This is a pure css show/hide function XD we dont want JS
@dardandmr CSS3 has been a dream man, and the death of IE has made me breath so much easier.
Dardan Demiri
@dardandmr
@DarkxPunk Good luck with your challenge
And you have done a good job
See you next time
DarkxPunk
@DarkxPunk
@dardandmr Thanks, hope to see you around.
CamperBot
@camperbot
darkxpunk sends brownie points to @dardandmr :sparkles: :thumbsup: :sparkles:
:cookie: 288 | @dardandmr |http://www.freecodecamp.org/dardandmr
Dardan Demiri
@dardandmr
;)