Sha256: 855804f7937ede5ba498eafd83edcf4f53f93720b7fece5d6b1d775b1fe28a31

Contents?: true

Size: 436 Bytes

Versions: 5

Compression:

Stored size: 436 Bytes

Contents

pw.component.register("notifier",function(i,n){var e=this;this.listen("notification:published",function(i){e.show(i.notification)}),this.listen("response:received",function(i){var n=i.response.headers["Pakyow-Notify"];n&&e.show(n)}),i.node.addEventListener("click",function(n){i.node.classList.add("hide")}),this.message=function(i,n){e.show(n.notification)},this.show=function(n){i.node.innerText=n,i.node.classList.remove("hide")}});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pakyow-0.11.3 lib/generators/pakyow/app/templates/public/scripts/ring/components/notifier.min.js
pakyow-0.11.2 lib/generators/pakyow/app/templates/public/scripts/ring/components/notifier.min.js
pakyow-0.11.1 lib/generators/pakyow/app/templates/public/scripts/ring/components/notifier.min.js
pakyow-0.11.0 lib/generators/pakyow/app/templates/public/scripts/ring/components/notifier.min.js
pakyow-0.10.2 lib/generators/pakyow/app/templates/public/scripts/ring/components/notifier.min.js