-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Д/з №6 — Жевак Антон #3
base: master
Are you sure you want to change the base?
Conversation
return num < 10 ? '0' + num : num; | ||
}, | ||
|
||
formatDate : function(date) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не смотрел на http://momentjs.com/?
Для текущего функционала, конечно, оверкилл, но если брать навырост — самое то.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ну, библиотека может и крутая, но это какой вырост должен быть :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
«Библиотека отличная» – я бы сказал
Выглядит очень круто. Но у меня изображения появляются только через три секунды после открытия страницы. Можно это как-то победить? |
Потом приделаю какой-нибудь анимационный лоадер. |
{ | ||
margin: 0; | ||
|
||
font: 14px/normal sans-serif; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А normal !== 1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
По рекомендациями W3C 1.0 < normal < 1.2 (http://www.w3.org/TR/CSS21/visudet.html#propdef-line-height)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
С точки зрения «однозначности», пожалуй, лучше все-таки задавать конкретно. Но в данном случае да, можно и так. Ок
width: 16px; | ||
height: 16px; | ||
|
||
vertical-align: text-top; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Хм, это эмуляция <sup>
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Эм, нет. Это чтоб иконка визуально по центру селекта была.
|
||
initialize: function(options) { | ||
_.bindAll(this, 'keyPress'); | ||
App.vent.on('picture:select', this.close, this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vent._events будет разбухать при каждом создании инстанса, было бы неплохо делать .off по закрытию
@solomein, спасибо, поправил. |
http://rawgithub.com/mayton/6-api-and-markup/master/index.html