mirror of
https://github.com/owenlejeune/AirHockey.git
synced 2025-12-28 02:11:19 -05:00
Electron desktop client added
This commit is contained in:
4
Electron Client/node_modules/doc-ready/.npmignore
generated
vendored
Normal file
4
Electron Client/node_modules/doc-ready/.npmignore
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
components/
|
||||
bower_components/
|
||||
node_modules/
|
||||
npm-debug.log
|
||||
23
Electron Client/node_modules/doc-ready/README.md
generated
vendored
Normal file
23
Electron Client/node_modules/doc-ready/README.md
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
# docReady
|
||||
|
||||
Cross browser document ready helper. Supported by IE8+ and good browsers.
|
||||
|
||||
```js
|
||||
docReady( function() {
|
||||
console.log("DOM is ready. Let's party");
|
||||
});
|
||||
```
|
||||
|
||||
Props to [dperini/ContentLoaded](https://github.com/dperini/ContentLoaded) for original code
|
||||
|
||||
## Install
|
||||
|
||||
Install with [Bower](http://bower.io) `bower install doc-ready`
|
||||
|
||||
Install with npm `npm install doc-ready`
|
||||
|
||||
Install with [Component](http://github.com/component/component) `component install desandro/doc-ready`
|
||||
|
||||
## MIT License
|
||||
|
||||
docReady is released under the [MIT license](http://desandro.mit-license.org).
|
||||
35
Electron Client/node_modules/doc-ready/bower.json
generated
vendored
Normal file
35
Electron Client/node_modules/doc-ready/bower.json
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"name": "doc-ready",
|
||||
"version": "1.0.4",
|
||||
"description": "Let's get this party started... on document ready",
|
||||
"main": "doc-ready.js",
|
||||
"dependencies": {
|
||||
"eventie": "^1"
|
||||
},
|
||||
"homepage": "https://github.com/desandro/doc-ready",
|
||||
"authors": [
|
||||
"David DeSandro"
|
||||
],
|
||||
"moduleType": [
|
||||
"amd",
|
||||
"globals",
|
||||
"node"
|
||||
],
|
||||
"keywords": [
|
||||
"DOM",
|
||||
"document",
|
||||
"ready"
|
||||
],
|
||||
"license": "MIT",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"test",
|
||||
"tests",
|
||||
"examples",
|
||||
"package.json",
|
||||
"component.json",
|
||||
"index.html"
|
||||
]
|
||||
}
|
||||
11
Electron Client/node_modules/doc-ready/component.json
generated
vendored
Normal file
11
Electron Client/node_modules/doc-ready/component.json
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "doc-ready",
|
||||
"repo": "desandro/doc-ready",
|
||||
"description": "Let's get this party started... on document ready",
|
||||
"version": "1.0.4",
|
||||
"dependencies": {
|
||||
"desandro/eventie": "*"
|
||||
},
|
||||
"scripts": ["doc-ready.js"],
|
||||
"main": "doc-ready.js"
|
||||
}
|
||||
80
Electron Client/node_modules/doc-ready/doc-ready.js
generated
vendored
Normal file
80
Electron Client/node_modules/doc-ready/doc-ready.js
generated
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
/*!
|
||||
* docReady v1.0.4
|
||||
* Cross browser DOMContentLoaded event emitter
|
||||
* MIT license
|
||||
*/
|
||||
|
||||
/*jshint browser: true, strict: true, undef: true, unused: true*/
|
||||
/*global define: false, require: false, module: false */
|
||||
|
||||
( function( window ) {
|
||||
|
||||
'use strict';
|
||||
|
||||
var document = window.document;
|
||||
// collection of functions to be triggered on ready
|
||||
var queue = [];
|
||||
|
||||
function docReady( fn ) {
|
||||
// throw out non-functions
|
||||
if ( typeof fn !== 'function' ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( docReady.isReady ) {
|
||||
// ready now, hit it
|
||||
fn();
|
||||
} else {
|
||||
// queue function when ready
|
||||
queue.push( fn );
|
||||
}
|
||||
}
|
||||
|
||||
docReady.isReady = false;
|
||||
|
||||
// triggered on various doc ready events
|
||||
function onReady( event ) {
|
||||
// bail if already triggered or IE8 document is not ready just yet
|
||||
var isIE8NotReady = event.type === 'readystatechange' && document.readyState !== 'complete';
|
||||
if ( docReady.isReady || isIE8NotReady ) {
|
||||
return;
|
||||
}
|
||||
|
||||
trigger();
|
||||
}
|
||||
|
||||
function trigger() {
|
||||
docReady.isReady = true;
|
||||
// process queue
|
||||
for ( var i=0, len = queue.length; i < len; i++ ) {
|
||||
var fn = queue[i];
|
||||
fn();
|
||||
}
|
||||
}
|
||||
|
||||
function defineDocReady( eventie ) {
|
||||
// trigger ready if page is ready
|
||||
if ( document.readyState === 'complete' ) {
|
||||
trigger();
|
||||
} else {
|
||||
// listen for events
|
||||
eventie.bind( document, 'DOMContentLoaded', onReady );
|
||||
eventie.bind( document, 'readystatechange', onReady );
|
||||
eventie.bind( window, 'load', onReady );
|
||||
}
|
||||
|
||||
return docReady;
|
||||
}
|
||||
|
||||
// transport
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD
|
||||
define( [ 'eventie/eventie' ], defineDocReady );
|
||||
} else if ( typeof exports === 'object' ) {
|
||||
module.exports = defineDocReady( require('eventie') );
|
||||
} else {
|
||||
// browser global
|
||||
window.docReady = defineDocReady( window.eventie );
|
||||
}
|
||||
|
||||
})( window );
|
||||
18
Electron Client/node_modules/doc-ready/examples/require-js.html
generated
vendored
Normal file
18
Electron Client/node_modules/doc-ready/examples/require-js.html
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>docReady</title>
|
||||
|
||||
<style>body { font-family: sans-serif; }</style>
|
||||
|
||||
<script data-main="require-js" src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.1.5/require.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>docReady</h1>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
17
Electron Client/node_modules/doc-ready/examples/require-js.js
generated
vendored
Normal file
17
Electron Client/node_modules/doc-ready/examples/require-js.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/*global requirejs: false*/
|
||||
|
||||
requirejs.config({
|
||||
baseUrl: '../bower_components'
|
||||
// OR
|
||||
// paths: {
|
||||
// eventie: '../bower_components/eventie'
|
||||
// }
|
||||
});
|
||||
|
||||
requirejs( [ '../doc-ready' ], function( docReady ) {
|
||||
|
||||
docReady( function() {
|
||||
document.body.innerHTML += '\<p>okay ready now\</p>';
|
||||
});
|
||||
|
||||
});
|
||||
38
Electron Client/node_modules/doc-ready/index.html
generated
vendored
Normal file
38
Electron Client/node_modules/doc-ready/index.html
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>docReady</title>
|
||||
|
||||
<style>body { font-family: sans-serif; }</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>docReady</h1>
|
||||
|
||||
<script src="bower_components/eventie/eventie.js"></script>
|
||||
<script src="doc-ready.js"></script>
|
||||
<script>
|
||||
( function( window ) {
|
||||
|
||||
docReady( function() {
|
||||
document.body.innerHTML += '\<p>okay ready now\</p>';
|
||||
});
|
||||
|
||||
docReady( function() {
|
||||
document.body.innerHTML += '\<p>im ready too\</p>';
|
||||
|
||||
setTimeout( function() {
|
||||
docReady( function() {
|
||||
document.body.innerHTML += '\<p>Already ready, Right? ' + docReady.isReady + '\</p>';
|
||||
});
|
||||
}, 1000 );
|
||||
});
|
||||
|
||||
})( this );
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
57
Electron Client/node_modules/doc-ready/package.json
generated
vendored
Normal file
57
Electron Client/node_modules/doc-ready/package.json
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"_from": "doc-ready@^1.0.4",
|
||||
"_id": "doc-ready@1.0.4",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-N/U5GWnP+ZQwP9/vLl1QNX+BZNM=",
|
||||
"_location": "/doc-ready",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "doc-ready@^1.0.4",
|
||||
"name": "doc-ready",
|
||||
"escapedName": "doc-ready",
|
||||
"rawSpec": "^1.0.4",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.4"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/electron-prompt"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/doc-ready/-/doc-ready-1.0.4.tgz",
|
||||
"_shasum": "37f5391969cff994303fdfef2e5d50357f8164d3",
|
||||
"_spec": "doc-ready@^1.0.4",
|
||||
"_where": "/Volumes/Clear Drive/Code/Javascript/AirHockey Elec/node_modules/electron-prompt",
|
||||
"author": {
|
||||
"name": "David DeSandro"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/desandro/doc-ready/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"eventie": "^1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Let's get this party started... on document ready",
|
||||
"directories": {
|
||||
"example": "examples"
|
||||
},
|
||||
"homepage": "https://github.com/desandro/doc-ready",
|
||||
"keywords": [
|
||||
"DOM",
|
||||
"document",
|
||||
"ready"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "doc-ready.js",
|
||||
"name": "doc-ready",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/desandro/doc-ready.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"version": "1.0.4"
|
||||
}
|
||||
Reference in New Issue
Block a user