$ bower install gaia-components/gaia-buttonThen include folowing files in HTML
| /** | |
| * Main entry point. | |
| * | |
| * the DOM has been localized and the user sees it in their language. | |
| * | |
| * @class Main | |
| */ | |
| (function() { | |
| 'use strict'; |
| /** | |
| * Take Flux concept | |
| * | |
| * the DOM has been localized and the user sees it in their language. | |
| * | |
| * @class Main | |
| */ | |
| (function(exports) { | |
| 'use strict'; |
| document.getHTML = function(who){ | |
| var txt, ax, el= document.createElement("div"); | |
| el.appendChild(who.cloneNode(false)); | |
| txt= el.innerHTML; | |
| ax= txt.indexOf('>')+1; | |
| txt= txt.substring(0, ax)+who.innerHTML+ txt.substring(ax); | |
| el= null; | |
| return txt.replace(/>/g,'>\n'); | |
| } |
| /* original link http://blog.gasolin.idv.tw/2014/11/flux-javascript.html */ | |
| // Renderer.js | |
| var ClickRenderer = { | |
| init: function s_init(element, Store) { | |
| this.element = element; | |
| this.store = Store; | |
| window.addEventListener('render_view1', this); | |
| }, | |
| handleEvent: s_handleEvent(evt) { |
| # apply patch from PR | |
| $ curl https://github.com/mozilla-b2g/gaia/pull/12345.patch | git apply | |
| # reverse patch from PR, R is for reverse | |
| $ curl https://github.com/mozilla-b2g/gaia/pull/12345.patch | git apply -R |
| https://github.com/gulpjs/gulp/issues/873 |
| .unselectable { | |
| -webkit-touch-callout:none; | |
| -webkit-user-select: none; | |
| -khtml-user-select:none; | |
| -moz-user-select: none; | |
| -ms-user-select: none; | |
| user-select:none; | |
| } |
| alias gpush="git checkout gh-pages && git merge master && git push origin gh-pages && git checkout -" |