Daily Archives: 28.05.2014
Как сделать свой chrome extension
manifest.json должен выглядеть примерно так:
| 
					 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23  | 
						{   "manifest_version": 2,   "name": "Jira print extension",   "description": "This extension is to print tasks in Jira",   "version": "1.0",   "background": {     "scripts": ["background.js"]   },   "permissions": [     "tabs", "https://*/*", "http://*/*"   ],   "browser_action": {     "default_icon": "icon.png",     "default_popup": "popup.html"   },   "content_scripts": [       {           "matches": ["http://*/*", "https://*/*"],           "js": ["libs/jquery.js", "content.js"]       }   ] }  | 
					
При этом: background.js крутится всегда и один для всего браузера, умеет только слать сообщения на разные слои и слушать их. content.js (всё, что указано в content_scripts) имеет доступ к DOM и может слушать сообщения от background.js. popup.html открывается при нажатии на кнопку расширения в панельке, обычный html, должен содержать …
Анимация в css
С картинками и примерами. Understanding CSS Timing Functions http://www.smashingmagazine.com/2014/04/15/understanding-css-timing-functions/