3 ms·
Yeah, I did mention the line count in the title but the real point is that it doesn’t come with extra features that you’ll have to customize anyway. For exampl
by adeelk 15y ago
Yeah, I did mention the line count in the title but the real point is that it doesn’t come with extra features that you’ll have to customize anyway. For example, there are a million ways to present next and previous buttons when you’re showing a group of dialogs, and if you want to use a different way than the one your library comes with, it’s going to be frustrating. I looked at five or six different libraries before deciding that just putting buttons where required in the DOM and attaching onclick handlers would be a lot easier (see the third example).
- tar 15y agoI don't really understand what's the point of using your 75 line script for creating modal dialogs instead of the one line solution mentioned by chrisacky.
- adeelk 15y agoIf you're not trolling, can you show me how to reproduce my third example in one line?
- deleted 15y ago[deleted]
- adrianparsons 15y agoIf we want people to make their code public, to create libraries and to share their thoughts about how to make things better, we need to treat them better when they do. I'm all for constructive criticism, but many of the posts in this thread are purely negative. We have a responsibility to foster a community that creates, shares, and improves the state of the web for all of us. That won't happen through vicious infighting.