Avand Amiri

Results 22 issues of Avand Amiri

There's a clever solution I cooked up to make it super easy to show and hide content when you click on stuff. The basic idea is to add an attribute...

A super common helper I use all the time is `autoFocusFirstInput()`. It actually has some edge cases that are annoying to solve over and over again. Another one is `disableButtonsWhileFormsSubmit()`....

I've cooked up two animation helpers over the years: `animate()` and `queueAnimation()`. Doing hardware-accelerated animations purely by adding/removing classes is just impossible. So I want to polish up these functions...

Extracted from #13.

enhancement

Extracted from #13.

enhancement

``` js pushItem(k, v) { var a = getItems(k); a.push(v); localStorage.setItem(JSON.stringify(a)); } ``` ``` js getItems(k) { var a = getObject(k); if (a == null) a = []; return a;...

enhancement

Just like how [Rails](http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#method-i-number_with_delimiter) does. This will (eventually) have to leverage whatever I18n solution gets sorted out. Can get a lot of inspiration from Rails for sure.

Certain methods like `Date.prototype.dayName()` assume English.

enhancement