├── .gitignore ├── LICENSE ├── README.ja.md ├── README.md ├── bower_components ├── jasmine-jquery │ ├── .bower.json │ ├── CONTRIBUTING.md │ ├── Gruntfile.js │ ├── LICENSE │ ├── README.md │ ├── bower.json │ ├── lib │ │ └── jasmine-jquery.js │ ├── package.json │ └── spec │ │ ├── fixtures │ │ ├── fixture_with_checkbox_with_checked.html │ │ ├── fixture_with_javascript.html │ │ ├── fixture_with_javascript_block.html │ │ ├── javascripts │ │ │ ├── jasmine_javascript_click.js │ │ │ └── jasmine_javascript_hover.js │ │ ├── json │ │ │ └── jasmine_json_test.json │ │ ├── real_non_mocked_fixture.html │ │ └── real_non_mocked_fixture_style.css │ │ └── suites │ │ └── jasmine-jquery-spec.js └── jquery │ ├── .bower.json │ ├── AUTHORS.txt │ ├── LICENSE.txt │ ├── README.md │ ├── bower.json │ ├── dist │ ├── core.js │ ├── jquery.js │ ├── jquery.min.js │ ├── jquery.min.map │ ├── jquery.slim.js │ ├── jquery.slim.min.js │ └── jquery.slim.min.map │ ├── external │ └── sizzle │ │ ├── LICENSE.txt │ │ └── dist │ │ ├── sizzle.js │ │ ├── sizzle.min.js │ │ └── sizzle.min.map │ └── src │ ├── .eslintrc │ ├── ajax.js │ ├── ajax │ ├── jsonp.js │ ├── load.js │ ├── parseXML.js │ ├── script.js │ ├── var │ │ ├── location.js │ │ ├── nonce.js │ │ └── rquery.js │ └── xhr.js │ ├── attributes.js │ ├── attributes │ ├── attr.js │ ├── classes.js │ ├── prop.js │ ├── support.js │ └── val.js │ ├── callbacks.js │ ├── core.js │ ├── core │ ├── DOMEval.js │ ├── access.js │ ├── init.js │ ├── parseHTML.js │ ├── ready-no-deferred.js │ ├── ready.js │ ├── readyException.js │ ├── support.js │ └── var │ │ └── rsingleTag.js │ ├── css.js │ ├── css │ ├── addGetHookIf.js │ ├── adjustCSS.js │ ├── curCSS.js │ ├── hiddenVisibleSelectors.js │ ├── showHide.js │ ├── support.js │ └── var │ │ ├── cssExpand.js │ │ ├── getStyles.js │ │ ├── isHiddenWithinTree.js │ │ ├── rmargin.js │ │ ├── rnumnonpx.js │ │ └── swap.js │ ├── data.js │ ├── data │ ├── Data.js │ └── var │ │ ├── acceptData.js │ │ ├── dataPriv.js │ │ └── dataUser.js │ ├── deferred.js │ ├── deferred │ └── exceptionHook.js │ ├── deprecated.js │ ├── dimensions.js │ ├── effects.js │ ├── effects │ ├── Tween.js │ └── animatedSelector.js │ ├── event.js │ ├── event │ ├── ajax.js │ ├── alias.js │ ├── focusin.js │ ├── support.js │ └── trigger.js │ ├── exports │ ├── amd.js │ └── global.js │ ├── jquery.js │ ├── manipulation.js │ ├── manipulation │ ├── _evalUrl.js │ ├── buildFragment.js │ ├── getAll.js │ ├── setGlobalEval.js │ ├── support.js │ ├── var │ │ ├── rcheckableType.js │ │ ├── rscriptType.js │ │ └── rtagName.js │ └── wrapMap.js │ ├── offset.js │ ├── queue.js │ ├── queue │ └── delay.js │ ├── selector-native.js │ ├── selector-sizzle.js │ ├── selector.js │ ├── serialize.js │ ├── traversing.js │ ├── traversing │ ├── findFilter.js │ └── var │ │ ├── dir.js │ │ ├── rneedsContext.js │ │ └── siblings.js │ ├── var │ ├── ObjectFunctionString.js │ ├── arr.js │ ├── class2type.js │ ├── concat.js │ ├── document.js │ ├── documentElement.js │ ├── fnToString.js │ ├── getProto.js │ ├── hasOwn.js │ ├── indexOf.js │ ├── pnum.js │ ├── push.js │ ├── rcssNum.js │ ├── rnotwhite.js │ ├── slice.js │ ├── support.js │ └── toString.js │ └── wrap.js ├── karma.conf.js ├── package.json ├── push_notification.js ├── push_notification.js.coffee ├── push_notification.min.js └── test └── unit └── PushNotificationSpec.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 asmsuechan 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /README.ja.md: -------------------------------------------------------------------------------- 1 | JqueryPushNotification 2 | ==== 3 | 4 | ## 概要 5 | このライブラリはNotificationAPIをjQueryで使用できるようにしたものです。 6 | 7 | ## デモ 8 | もっともシンプルな使用例は以下のように書きます 9 | ``` 10 | $.notify("body") 11 | ``` 12 | 13 | [デモサイト](https://asmsuechan.github.io/jquery_push_notification/) 14 | 15 | ## 使い方 16 | このライブラリを使用するにはjQueryが必要になります 17 | ``` 18 | 19 | ``` 20 | 21 | エッジを使いたいのであればrawgitからインクルードしてください 22 | ``` 23 | 24 | ``` 25 | 26 | .minファイルも使用できます 27 | ``` 28 | 29 | ``` 30 | 31 | ## もっと見る 32 | [MDN Notification API](https://developer.mozilla.org/ja/docs/Web/API/Notifications_API) 33 | 34 | ## Contribution 35 | バグや改善点を見つけたらいつでもプルリクエストを送ってください! 36 | 37 | みなさんのプルリクエストをお待ちしております! 38 | 39 | ## Licence 40 | 41 | [MIT](https://github.com/asmsuechan/jquery_push_notification/blob/master/LICENCE) 42 | 43 | ## 作者 44 | 45 | [asmsuechan](https://github.com/asmsuechan) 46 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | JqueryPushNotification 2 | ==== 3 | 4 | [日本語](https://github.com/asmsuechan/jquery_push_notification/blob/master/README.ja.md) 5 | 6 | ## Description 7 | This library expands jquery for use html5 NotificationAPI. 8 | 9 | ## Demo 10 | The following is the most simple usecase. 11 | ``` 12 | $.notify("body") 13 | ``` 14 | 15 | [Demosite](https://asmsuechan.github.io/jquery_push_notification/) 16 | 17 | ## Usage 18 | Before you use, include jquery. 19 | ``` 20 | 21 | ``` 22 | 23 | If you'd like to use edge, you can include by the following. 24 | ``` 25 | 26 | ``` 27 | 28 | You can also use minified file. 29 | ``` 30 | 31 | ``` 32 | 33 | ## Further Reading 34 | [MDN Notification API](https://developer.mozilla.org/ja/docs/Web/API/Notifications_API) 35 | 36 | ## Contribution 37 | When you detect bugs or improvements, you can send PRs! 38 | 39 | I'm looking forward to your PRs! 40 | 41 | ## Licence 42 | 43 | [MIT](https://github.com/asmsuechan/jquery_push_notification/blob/master/LICENSE) 44 | 45 | ## Author 46 | 47 | [asmsuechan](https://github.com/asmsuechan) 48 | -------------------------------------------------------------------------------- /bower_components/jasmine-jquery/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jasmine-jquery", 3 | "main": "lib/jasmine-jquery.js", 4 | "ignore": [ 5 | "test", 6 | "vendor", 7 | ".*", 8 | "HISTORY.md", 9 | "SpecRunner.html" 10 | ], 11 | "dependencies": { 12 | "jasmine": ">=2", 13 | "jquery": ">=2" 14 | }, 15 | "homepage": "https://github.com/velesin/jasmine-jquery", 16 | "version": "2.1.1", 17 | "_release": "2.1.1", 18 | "_resolution": { 19 | "type": "version", 20 | "tag": "2.1.1", 21 | "commit": "fdd234f58d4997ec13400ba4f070e8a803f6ecbe" 22 | }, 23 | "_source": "https://github.com/velesin/jasmine-jquery.git", 24 | "_target": "^2.1.1", 25 | "_originalSource": "jasmine-jquery", 26 | "_direct": true 27 | } -------------------------------------------------------------------------------- /bower_components/jasmine-jquery/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Jasmine-jQuery 2 | 3 | Looking to contribute something to Jasmine-jQuery? **Here's how you can help.** 4 | 5 | ## Reporting issues 6 | 7 | We only accept issues that are bug reports or feature requests. Bugs must be isolated and reproducible problems that we can fix within the Jasmine-jQuery. Please read the following guidelines before opening any issue. 8 | 9 | 1. **Search for existing issues.** Somemeone else may have reported the same issue. Moreover, the issue may have already been resolved with a fix available. 10 | 2. **Create an isolated and reproducible test case.** Be sure the problem exists in Jasmine-jQuery's code with a [reduced test case](http://css-tricks.com/reduced-test-cases/) that should be included in each bug report. 11 | 3. **Include a live example.** Make use of jsFiddle or jsBin to share your isolated test cases. 12 | 4. **Share as much information as possible.** Include operating system and version, browser and version, version of Jasmine-jQuery. Also include steps to reproduce the bug. 13 | 14 | ## Pull requests 15 | 16 | - Try not to pollute your pull request with unintended changes--keep them simple and small 17 | - Please squash your commits when appropriate. This simplifies future cherry picks, and also keeps the git log clean. 18 | - Include tests that fail without your code, and pass with it. 19 | - Update the documentation, examples elsewhere, and the guides: whatever is affected by your contribution. 20 | - If you can, have another developer sanity check your change. 21 | 22 | ## Coding standards 23 | 24 | - No semicolons 25 | - Comma first 26 | - 2 spaces (no tabs) 27 | - strict mode 28 | - "Attractive" 29 | -------------------------------------------------------------------------------- /bower_components/jasmine-jquery/Gruntfile.js: -------------------------------------------------------------------------------- 1 | /* jshint node: true */ 2 | 3 | module.exports = function (grunt) { 4 | "use strict"; 5 | 6 | grunt.initConfig({ 7 | pkg: grunt.file.readJSON('package.json') 8 | , jshint: { 9 | all: [ 10 | "Gruntfile.js" 11 | , "lib/**/*.js" 12 | , "spec/**/*.js" 13 | ] 14 | , options: { 15 | jshintrc: '.jshintrc' 16 | }, 17 | } 18 | , jasmine: { 19 | src: "lib/**/*.js" 20 | , options: { 21 | specs: "spec/**/*.js" 22 | , vendor: "vendor/**/*.js" 23 | , version: '2.0.0' 24 | } 25 | } 26 | }) 27 | 28 | grunt.loadNpmTasks('grunt-contrib-jshint') 29 | grunt.loadNpmTasks('grunt-contrib-jasmine') 30 | 31 | grunt.registerTask('syncversion', "Sync the versions between files.", function () { 32 | var json = require('./package.json') 33 | var fs = require('fs') 34 | var file = './lib/jasmine-jquery.js' 35 | 36 | fs.readFile(file, 'utf8', function (err, data) { 37 | if (err) return console.log(err) 38 | 39 | var res = data.replace(/^Version .*$/m, 'Version ' + json.version) 40 | 41 | fs.writeFile(file, res, 'utf8', function (err) { 42 | if (err) return console.log(err) 43 | }) 44 | }) 45 | }) 46 | 47 | grunt.registerTask('test', ['jshint', 'jasmine']) 48 | grunt.registerTask('default', ['syncversion', 'test']) 49 | }; 50 | -------------------------------------------------------------------------------- /bower_components/jasmine-jquery/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010-2014 Wojciech Zawistowski, Travis Jeffery 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /bower_components/jasmine-jquery/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jasmine-jquery", 3 | "main": "lib/jasmine-jquery.js", 4 | "ignore": [ 5 | "test", 6 | "vendor", 7 | ".*", 8 | "HISTORY.md", 9 | "SpecRunner.html" 10 | ], 11 | "dependencies": { 12 | "jasmine": ">=2", 13 | "jquery": ">=2" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /bower_components/jasmine-jquery/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jasmine-jquery", 3 | "description": "jQuery matchers and fixture loader for Jasmine framework", 4 | "version": "2.1.1", 5 | "keywords": [ 6 | "jasmine", 7 | "jquery" 8 | ], 9 | "main": "lib/jasmine-jquery.js", 10 | "files": [ 11 | "lib/" 12 | ], 13 | "homepage": "http://github.com/velesin/jasmine-jquery", 14 | "author": { 15 | "name": "Travis Jeffery", 16 | "email": "tj@travisjeffery.com", 17 | "url": "travisjeffery.com" 18 | }, 19 | "scripts": { 20 | "test": "grunt test" 21 | }, 22 | "repository": { 23 | "type": "git", 24 | "url": "https://github.com/velesin/jasmine-jquery.git" 25 | }, 26 | "bugs": { 27 | "url": "http://github.com/velesin/jasmine-jquery/issues" 28 | }, 29 | "license": "MIT", 30 | "devDependencies": { 31 | "grunt": "0.4.5", 32 | "grunt-contrib-jshint": "0.10.0", 33 | "grunt-contrib-jasmine": "git://github.com/travisjeffery/grunt-contrib-jasmine#9d5874dd592cf41e8268918fe9baeb261afd75b2" 34 | } 35 | } -------------------------------------------------------------------------------- /bower_components/jasmine-jquery/spec/fixtures/fixture_with_checkbox_with_checked.html: -------------------------------------------------------------------------------- 1 |