diff --git a/.gitignore b/.gitignore index e4f7f2b..a76f419 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ nbproject/private platforms plugins +node_modules \ No newline at end of file diff --git a/appstore.png b/appstore.png new file mode 100644 index 0000000..645ddde Binary files /dev/null and b/appstore.png differ diff --git a/config.xml b/config.xml index d5f03a3..9348df3 100644 --- a/config.xml +++ b/config.xml @@ -1,26 +1,61 @@ - - - Business for Mobile + + + Business Mobile client for the Netsyms Business Apps. Netsyms Technologies - - - - - - - - - + + + + + + + + + - + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/googleplay.png b/googleplay.png new file mode 100644 index 0000000..16f5fef Binary files /dev/null and b/googleplay.png differ diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..bfb9c87 Binary files /dev/null and b/icon.png differ diff --git a/iconoriginal.png b/iconoriginal.png new file mode 100644 index 0000000..7c5a86c Binary files /dev/null and b/iconoriginal.png differ diff --git a/nbproject/plugins.properties b/nbproject/plugins.properties index 505884d..4f3b09f 100644 --- a/nbproject/plugins.properties +++ b/nbproject/plugins.properties @@ -1,31 +1,6 @@ -# This is a list of plugins installed in your project -# You can delete or add new plugins -# -# Format is following: -# id.of.plugin=url_of_repository -# -# Corresponding "id.of.plugin" can be found in the plugin's plugin.xml file: -# -# -# This list contains all core cordova plugins. -# -# For more information about plugins see http://cordova.apache.org/blog/releases/2013/07/23/cordova-3.html -# - -cordova-plugin-device=https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git -cordova-plugin-network-information=https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git -cordova-plugin-battery-status=https://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status.git -cordova-plugin-device-motion=https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion.git -cordova-plugin-device-orientation=https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation.git -cordova-plugin-geolocation=https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git -cordova-plugin-camera=https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git -cordova-plugin-media-capture=https://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture.git -cordova-plugin-media=https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git -cordova-plugin-file=https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git -cordova-plugin-file-transfer=https://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer.git -cordova-plugin-dialogs=https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git -cordova-plugin-vibration=https://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration.git -cordova-plugin-contacts=https://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts.git -cordova-plugin-globalization=https://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization.git -cordova-plugin-splashscreen=https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git -cordova-plugin-console=https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git +cordova-plugin-device=https://github.com/apache/cordova-plugin-device.git +cordova-plugin-dialogs=https://github.com/apache/cordova-plugin-dialogs.git +cordova-plugin-splashscreen=https://github.com/apache/cordova-plugin-splashscreen.git +cordova-plugin-console=https://github.com/apache/cordova-plugin-console.git +cordova-plugin-whitelist=https://github.com/apache/cordova-plugin-whitelist.git +phonegap-plugin-barcodescanner=https://github.com/phonegap/phonegap-plugin-barcodescanner.git diff --git a/nbproject/project.properties b/nbproject/project.properties index 7284d7d..e276e33 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -1,5 +1,5 @@ auxiliary.org-netbeans-modules-cordova.cordova_5f_build_5f_script_5f_version=52 -auxiliary.org-netbeans-modules-cordova.phonegap=true +auxiliary.org-netbeans-modules-cordova.phonegap=false file.reference.BusinessMobile-test=test file.reference.BusinessMobile-www=www files.encoding=UTF-8 diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..82be726 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,181 @@ +{ + "name": "com.netsyms.BusinessMobile", + "version": "1.0.0", + "lockfileVersion": 1, + "dependencies": { + "cordova-android": { + "version": "https://registry.npmjs.org/cordova-android/-/cordova-android-6.2.3.tgz", + "integrity": "sha1-JJ8hts5fHxyEenq4OxaQnb7Vqig=", + "dependencies": { + "abbrev": { + "version": "http://registry.npmjs.org/abbrev/-/abbrev-1.1.0.tgz", + "integrity": "sha1-0FVMIlZjbi9W58LlrRg/hZQo2B8=" + }, + "ansi": { + "version": "http://registry.npmjs.org/ansi/-/ansi-0.3.1.tgz", + "integrity": "sha1-DELU+xcWDVqa8eSEus4cZpIsGyE=" + }, + "balanced-match": { + "version": "http://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz", + "integrity": "sha1-yz8+PHMtwPAe5wtAPzAuYddwmDg=" + }, + "base64-js": { + "version": "http://registry.npmjs.org/base64-js/-/base64-js-0.0.8.tgz", + "integrity": "sha1-EQHpVE9KdrG8OybUUsqW16NeeXg=" + }, + "big-integer": { + "version": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.22.tgz", + "integrity": "sha1-SHyV/OiGAi6kj/XxnjiJMt9G3S4=" + }, + "bplist-parser": { + "version": "http://registry.npmjs.org/bplist-parser/-/bplist-parser-0.1.1.tgz", + "integrity": "sha1-1g1dzCDLptx+HymbNdPh+V2vuuY=" + }, + "brace-expansion": { + "version": "http://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.7.tgz", + "integrity": "sha1-Pv/DxQ4ABTH7cg6v+A8K6O8jz1k=" + }, + "concat-map": { + "version": "http://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "cordova-common": { + "version": "http://registry.npmjs.org/cordova-common/-/cordova-common-2.0.2.tgz", + "integrity": "sha1-V0Z5driv1eC9ChMRG2akIEQWAcs=" + }, + "cordova-registry-mapper": { + "version": "http://registry.npmjs.org/cordova-registry-mapper/-/cordova-registry-mapper-1.1.15.tgz", + "integrity": "sha1-4kS5GFuBdUc7/2B5MkkFEV+D3Hw=" + }, + "elementtree": { + "version": "http://registry.npmjs.org/elementtree/-/elementtree-0.1.6.tgz", + "integrity": "sha1-KsTEbqMFFsjEy9teOsdBjlkt4gw=" + }, + "glob": { + "version": "http://registry.npmjs.org/glob/-/glob-5.0.15.tgz", + "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=" + }, + "inflight": { + "version": "http://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=" + }, + "inherits": { + "version": "http://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + }, + "lodash": { + "version": "http://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", + "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=" + }, + "minimatch": { + "version": "http://registry.npmjs.org/minimatch/-/minimatch-3.0.3.tgz", + "integrity": "sha1-Kk5AkLlrLbBqnX3wEFWmKnfJt3Q=" + }, + "nopt": { + "version": "http://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", + "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=" + }, + "once": { + "version": "http://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=" + }, + "os-homedir": { + "version": "http://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=" + }, + "os-tmpdir": { + "version": "http://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" + }, + "osenv": { + "version": "http://registry.npmjs.org/osenv/-/osenv-0.1.4.tgz", + "integrity": "sha1-Qv5tWVPfBsgGS+bxdsPQWqqjRkQ=" + }, + "path-is-absolute": { + "version": "http://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + }, + "plist": { + "version": "http://registry.npmjs.org/plist/-/plist-1.2.0.tgz", + "integrity": "sha1-CEtQk93JJQbiWfh0uNmxr7jHlZM=" + }, + "properties-parser": { + "version": "http://registry.npmjs.org/properties-parser/-/properties-parser-0.2.3.tgz", + "integrity": "sha1-91kSVfcHq7/yJ8e1a2N9uwNzoQ8=" + }, + "q": { + "version": "http://registry.npmjs.org/q/-/q-1.5.0.tgz", + "integrity": "sha1-3QG6ydBtMObyGa7LglPunr3DCPE=" + }, + "sax": { + "version": "http://registry.npmjs.org/sax/-/sax-0.3.5.tgz", + "integrity": "sha1-iPz8H3PAyLvVt8d2ttPzUB7tBz0=" + }, + "semver": { + "version": "http://registry.npmjs.org/semver/-/semver-5.3.0.tgz", + "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=" + }, + "shelljs": { + "version": "http://registry.npmjs.org/shelljs/-/shelljs-0.5.3.tgz", + "integrity": "sha1-xUmCuZbHbvDB5rWfvcWCX1txMRM=" + }, + "underscore": { + "version": "http://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz", + "integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI=" + }, + "unorm": { + "version": "http://registry.npmjs.org/unorm/-/unorm-1.4.1.tgz", + "integrity": "sha1-NkIA1fE2RsqLzURJAnEzVhR5IwA=" + }, + "util-deprecate": { + "version": "http://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" + }, + "wrappy": { + "version": "http://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + }, + "xmlbuilder": { + "version": "http://registry.npmjs.org/xmlbuilder/-/xmlbuilder-4.0.0.tgz", + "integrity": "sha1-mLj2UcowqmJANvEn0RzGbce5B6M=" + }, + "xmldom": { + "version": "http://registry.npmjs.org/xmldom/-/xmldom-0.1.27.tgz", + "integrity": "sha1-1QH5ezvbQDr4757MIFcxh6rawOk=" + } + } + }, + "cordova-plugin-compat": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/cordova-plugin-compat/-/cordova-plugin-compat-1.1.0.tgz", + "integrity": "sha1-kr3xaf62EgUyPcyWo/+DSON+h/w=" + }, + "cordova-plugin-console": { + "version": "git+https://github.com/apache/cordova-plugin-console.git#45d4e38b5d807aa3eb5e19c712cb387414a80239" + }, + "cordova-plugin-device": { + "version": "git+https://github.com/apache/cordova-plugin-device.git#2d845036befa5152ab9b87011c0970cc95833e69" + }, + "cordova-plugin-dialog": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/cordova-plugin-dialog/-/cordova-plugin-dialog-0.0.1.tgz", + "integrity": "sha1-PbQ9++2318hL4dOjOfGxbZIHyA4=" + }, + "cordova-plugin-dialogs": { + "version": "git+https://github.com/apache/cordova-plugin-dialogs.git#a22b0eb7fd013e5b50486ebc54e6396780cad999" + }, + "cordova-plugin-splashscreen": { + "version": "git+https://github.com/apache/cordova-plugin-splashscreen.git#98f83fea5ae58fb50962af2725310cc199b28f40" + }, + "cordova-plugin-whitelist": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/cordova-plugin-whitelist/-/cordova-plugin-whitelist-1.3.2.tgz", + "integrity": "sha1-W2M1/rn1MB88ATuQlsuIhb29UHY=" + }, + "phonegap-plugin-barcodescanner": { + "version": "6.0.6", + "resolved": "https://registry.npmjs.org/phonegap-plugin-barcodescanner/-/phonegap-plugin-barcodescanner-6.0.6.tgz", + "integrity": "sha1-wy35plMyEU1j3b45Xw9OE206IPI=" + } + } +} diff --git a/package.json b/package.json index 2382e00..c56e222 100644 --- a/package.json +++ b/package.json @@ -5,5 +5,29 @@ "description": "Mobile client for the Netsyms Business Apps.", "main": "index.html", "author": "Netsyms Technologies", - "license": "netsyms-business-license" + "license": "netsyms-business-license", + "dependencies": { + "cordova-android": "^6.2.3", + "cordova-plugin-compat": "^1.1.0", + "cordova-plugin-console": "git+https://github.com/apache/cordova-plugin-console.git", + "cordova-plugin-device": "git+https://github.com/apache/cordova-plugin-device.git", + "cordova-plugin-dialog": "0.0.1", + "cordova-plugin-dialogs": "git+https://github.com/apache/cordova-plugin-dialogs.git", + "cordova-plugin-splashscreen": "git+https://github.com/apache/cordova-plugin-splashscreen.git", + "cordova-plugin-whitelist": "^1.3.2", + "phonegap-plugin-barcodescanner": "^6.0.6" + }, + "cordova": { + "plugins": { + "phonegap-plugin-barcodescanner": {}, + "cordova-plugin-console": {}, + "cordova-plugin-device": {}, + "cordova-plugin-whitelist": {}, + "cordova-plugin-dialogs": {}, + "cordova-plugin-splashscreen": {} + }, + "platforms": [ + "android" + ] + } } \ No newline at end of file diff --git a/res/README.md b/res/README.md deleted file mode 100644 index bffb33b..0000000 --- a/res/README.md +++ /dev/null @@ -1,29 +0,0 @@ - - -Note that these image resources are not copied into a project when a project -is created with the CLI. Although there are default image resources in a -newly-created project, those come from the platform-specific project template, -which can generally be found in the platform's `template` directory. Until -icon and splashscreen support is added to the CLI, these image resources -aren't used directly. - -See https://issues.apache.org/jira/browse/CB-5145 diff --git a/res/icon/android/icon-36-ldpi.png b/res/icon/android/icon-36-ldpi.png deleted file mode 100644 index cd5032a..0000000 Binary files a/res/icon/android/icon-36-ldpi.png and /dev/null differ diff --git a/res/icon/android/icon-48-mdpi.png b/res/icon/android/icon-48-mdpi.png deleted file mode 100644 index e79c606..0000000 Binary files a/res/icon/android/icon-48-mdpi.png and /dev/null differ diff --git a/res/icon/android/icon-72-hdpi.png b/res/icon/android/icon-72-hdpi.png deleted file mode 100644 index 4d27634..0000000 Binary files a/res/icon/android/icon-72-hdpi.png and /dev/null differ diff --git a/res/icon/android/icon-96-xhdpi.png b/res/icon/android/icon-96-xhdpi.png deleted file mode 100644 index ec7ffbf..0000000 Binary files a/res/icon/android/icon-96-xhdpi.png and /dev/null differ diff --git a/res/icon/bada-wac/icon-48-type5.png b/res/icon/bada-wac/icon-48-type5.png deleted file mode 100644 index 8ad8bac..0000000 Binary files a/res/icon/bada-wac/icon-48-type5.png and /dev/null differ diff --git a/res/icon/bada-wac/icon-50-type3.png b/res/icon/bada-wac/icon-50-type3.png deleted file mode 100644 index c6ddf84..0000000 Binary files a/res/icon/bada-wac/icon-50-type3.png and /dev/null differ diff --git a/res/icon/bada-wac/icon-80-type4.png b/res/icon/bada-wac/icon-80-type4.png deleted file mode 100644 index f86a27a..0000000 Binary files a/res/icon/bada-wac/icon-80-type4.png and /dev/null differ diff --git a/res/icon/bada/icon-128.png b/res/icon/bada/icon-128.png deleted file mode 100644 index 3516df3..0000000 Binary files a/res/icon/bada/icon-128.png and /dev/null differ diff --git a/res/icon/blackberry/icon-80.png b/res/icon/blackberry/icon-80.png deleted file mode 100644 index f86a27a..0000000 Binary files a/res/icon/blackberry/icon-80.png and /dev/null differ diff --git a/res/icon/blackberry10/icon-80.png b/res/icon/blackberry10/icon-80.png deleted file mode 100644 index f86a27a..0000000 Binary files a/res/icon/blackberry10/icon-80.png and /dev/null differ diff --git a/res/icon/ios/icon-57-2x.png b/res/icon/ios/icon-57-2x.png deleted file mode 100644 index efd9c37..0000000 Binary files a/res/icon/ios/icon-57-2x.png and /dev/null differ diff --git a/res/icon/ios/icon-57.png b/res/icon/ios/icon-57.png deleted file mode 100644 index c795fc4..0000000 Binary files a/res/icon/ios/icon-57.png and /dev/null differ diff --git a/res/icon/ios/icon-72-2x.png b/res/icon/ios/icon-72-2x.png deleted file mode 100644 index dd819da..0000000 Binary files a/res/icon/ios/icon-72-2x.png and /dev/null differ diff --git a/res/icon/ios/icon-72.png b/res/icon/ios/icon-72.png deleted file mode 100644 index b1cfde7..0000000 Binary files a/res/icon/ios/icon-72.png and /dev/null differ diff --git a/res/icon/tizen/icon-128.png b/res/icon/tizen/icon-128.png deleted file mode 100644 index 3516df3..0000000 Binary files a/res/icon/tizen/icon-128.png and /dev/null differ diff --git a/res/icon/webos/icon-64.png b/res/icon/webos/icon-64.png deleted file mode 100644 index 03b3849..0000000 Binary files a/res/icon/webos/icon-64.png and /dev/null differ diff --git a/res/icon/windows-phone/icon-173-tile.png b/res/icon/windows-phone/icon-173-tile.png deleted file mode 100644 index 4f15e20..0000000 Binary files a/res/icon/windows-phone/icon-173-tile.png and /dev/null differ diff --git a/res/icon/windows-phone/icon-48.png b/res/icon/windows-phone/icon-48.png deleted file mode 100644 index 8ad8bac..0000000 Binary files a/res/icon/windows-phone/icon-48.png and /dev/null differ diff --git a/res/icon/windows-phone/icon-62-tile.png b/res/icon/windows-phone/icon-62-tile.png deleted file mode 100644 index aab6061..0000000 Binary files a/res/icon/windows-phone/icon-62-tile.png and /dev/null differ diff --git a/res/icons/android/icon-144-xxhdpi.png b/res/icons/android/icon-144-xxhdpi.png new file mode 100644 index 0000000..5ed477c Binary files /dev/null and b/res/icons/android/icon-144-xxhdpi.png differ diff --git a/res/icons/android/icon-192-xxxhdpi.png b/res/icons/android/icon-192-xxxhdpi.png new file mode 100644 index 0000000..eb00bad Binary files /dev/null and b/res/icons/android/icon-192-xxxhdpi.png differ diff --git a/res/icons/android/icon-36-ldpi.png b/res/icons/android/icon-36-ldpi.png new file mode 100644 index 0000000..3b07c26 Binary files /dev/null and b/res/icons/android/icon-36-ldpi.png differ diff --git a/res/icons/android/icon-48-mdpi.png b/res/icons/android/icon-48-mdpi.png new file mode 100644 index 0000000..61b1db0 Binary files /dev/null and b/res/icons/android/icon-48-mdpi.png differ diff --git a/res/icons/android/icon-72-hdpi.png b/res/icons/android/icon-72-hdpi.png new file mode 100644 index 0000000..e2e8e31 Binary files /dev/null and b/res/icons/android/icon-72-hdpi.png differ diff --git a/res/icons/android/icon-96-xhdpi.png b/res/icons/android/icon-96-xhdpi.png new file mode 100644 index 0000000..b789c20 Binary files /dev/null and b/res/icons/android/icon-96-xhdpi.png differ diff --git a/res/icons/ios/icon-2x.png b/res/icons/ios/icon-2x.png new file mode 100644 index 0000000..0c7fc95 Binary files /dev/null and b/res/icons/ios/icon-2x.png differ diff --git a/res/icons/ios/icon-40-2x.png b/res/icons/ios/icon-40-2x.png new file mode 100644 index 0000000..49fd5b9 Binary files /dev/null and b/res/icons/ios/icon-40-2x.png differ diff --git a/res/icons/ios/icon-40.png b/res/icons/ios/icon-40.png new file mode 100644 index 0000000..0bd5ade Binary files /dev/null and b/res/icons/ios/icon-40.png differ diff --git a/res/icons/ios/icon-50-2x.png b/res/icons/ios/icon-50-2x.png new file mode 100644 index 0000000..0459cdb Binary files /dev/null and b/res/icons/ios/icon-50-2x.png differ diff --git a/res/icons/ios/icon-50.png b/res/icons/ios/icon-50.png new file mode 100644 index 0000000..12aa3ee Binary files /dev/null and b/res/icons/ios/icon-50.png differ diff --git a/res/icons/ios/icon-60-2x.png b/res/icons/ios/icon-60-2x.png new file mode 100644 index 0000000..3929039 Binary files /dev/null and b/res/icons/ios/icon-60-2x.png differ diff --git a/res/icons/ios/icon-60-3x.png b/res/icons/ios/icon-60-3x.png new file mode 100644 index 0000000..c028004 Binary files /dev/null and b/res/icons/ios/icon-60-3x.png differ diff --git a/res/icons/ios/icon-60.png b/res/icons/ios/icon-60.png new file mode 100644 index 0000000..c5f4764 Binary files /dev/null and b/res/icons/ios/icon-60.png differ diff --git a/res/icons/ios/icon-72-2x.png b/res/icons/ios/icon-72-2x.png new file mode 100644 index 0000000..5ed477c Binary files /dev/null and b/res/icons/ios/icon-72-2x.png differ diff --git a/res/icons/ios/icon-72.png b/res/icons/ios/icon-72.png new file mode 100644 index 0000000..e2e8e31 Binary files /dev/null and b/res/icons/ios/icon-72.png differ diff --git a/res/icons/ios/icon-76-2x.png b/res/icons/ios/icon-76-2x.png new file mode 100644 index 0000000..dfbd493 Binary files /dev/null and b/res/icons/ios/icon-76-2x.png differ diff --git a/res/icons/ios/icon-76.png b/res/icons/ios/icon-76.png new file mode 100644 index 0000000..c3ba84a Binary files /dev/null and b/res/icons/ios/icon-76.png differ diff --git a/res/icons/ios/icon-small-2x.png b/res/icons/ios/icon-small-2x.png new file mode 100644 index 0000000..d5eaa98 Binary files /dev/null and b/res/icons/ios/icon-small-2x.png differ diff --git a/res/icons/ios/icon-small.png b/res/icons/ios/icon-small.png new file mode 100644 index 0000000..42973d6 Binary files /dev/null and b/res/icons/ios/icon-small.png differ diff --git a/res/icons/ios/icon.png b/res/icons/ios/icon.png new file mode 100644 index 0000000..042f1fd Binary files /dev/null and b/res/icons/ios/icon.png differ diff --git a/res/screen/android/screen-hdpi-landscape.png b/res/screen/android/screen-hdpi-landscape.png deleted file mode 100644 index a61e2b1..0000000 Binary files a/res/screen/android/screen-hdpi-landscape.png and /dev/null differ diff --git a/res/screen/android/screen-hdpi-portrait.png b/res/screen/android/screen-hdpi-portrait.png deleted file mode 100644 index 5d6a28a..0000000 Binary files a/res/screen/android/screen-hdpi-portrait.png and /dev/null differ diff --git a/res/screen/android/screen-ldpi-landscape.png b/res/screen/android/screen-ldpi-landscape.png deleted file mode 100644 index f3934cd..0000000 Binary files a/res/screen/android/screen-ldpi-landscape.png and /dev/null differ diff --git a/res/screen/android/screen-ldpi-portrait.png b/res/screen/android/screen-ldpi-portrait.png deleted file mode 100644 index 65ad163..0000000 Binary files a/res/screen/android/screen-ldpi-portrait.png and /dev/null differ diff --git a/res/screen/android/screen-mdpi-landscape.png b/res/screen/android/screen-mdpi-landscape.png deleted file mode 100644 index a1b697c..0000000 Binary files a/res/screen/android/screen-mdpi-landscape.png and /dev/null differ diff --git a/res/screen/android/screen-mdpi-portrait.png b/res/screen/android/screen-mdpi-portrait.png deleted file mode 100644 index ea15693..0000000 Binary files a/res/screen/android/screen-mdpi-portrait.png and /dev/null differ diff --git a/res/screen/android/screen-xhdpi-landscape.png b/res/screen/android/screen-xhdpi-landscape.png deleted file mode 100644 index 79f2f09..0000000 Binary files a/res/screen/android/screen-xhdpi-landscape.png and /dev/null differ diff --git a/res/screen/android/screen-xhdpi-portrait.png b/res/screen/android/screen-xhdpi-portrait.png deleted file mode 100644 index c2e8042..0000000 Binary files a/res/screen/android/screen-xhdpi-portrait.png and /dev/null differ diff --git a/res/screen/bada-wac/screen-type3.png b/res/screen/bada-wac/screen-type3.png deleted file mode 100644 index ea15693..0000000 Binary files a/res/screen/bada-wac/screen-type3.png and /dev/null differ diff --git a/res/screen/bada-wac/screen-type4.png b/res/screen/bada-wac/screen-type4.png deleted file mode 100644 index 5d6a28a..0000000 Binary files a/res/screen/bada-wac/screen-type4.png and /dev/null differ diff --git a/res/screen/bada-wac/screen-type5.png b/res/screen/bada-wac/screen-type5.png deleted file mode 100644 index bd64f76..0000000 Binary files a/res/screen/bada-wac/screen-type5.png and /dev/null differ diff --git a/res/screen/bada/screen-portrait.png b/res/screen/bada/screen-portrait.png deleted file mode 100644 index 5d6a28a..0000000 Binary files a/res/screen/bada/screen-portrait.png and /dev/null differ diff --git a/res/screen/blackberry/screen-225.png b/res/screen/blackberry/screen-225.png deleted file mode 100644 index 29873e9..0000000 Binary files a/res/screen/blackberry/screen-225.png and /dev/null differ diff --git a/res/screen/blackberry10/splash-1280x768.png b/res/screen/blackberry10/splash-1280x768.png deleted file mode 100644 index 5f4bca9..0000000 Binary files a/res/screen/blackberry10/splash-1280x768.png and /dev/null differ diff --git a/res/screen/blackberry10/splash-720x720.png b/res/screen/blackberry10/splash-720x720.png deleted file mode 100644 index fe1756f..0000000 Binary files a/res/screen/blackberry10/splash-720x720.png and /dev/null differ diff --git a/res/screen/blackberry10/splash-768x1280.png b/res/screen/blackberry10/splash-768x1280.png deleted file mode 100644 index 0fb9c1b..0000000 Binary files a/res/screen/blackberry10/splash-768x1280.png and /dev/null differ diff --git a/res/screen/ios/screen-ipad-landscape-2x.png b/res/screen/ios/screen-ipad-landscape-2x.png deleted file mode 100644 index 0b50ed7..0000000 Binary files a/res/screen/ios/screen-ipad-landscape-2x.png and /dev/null differ diff --git a/res/screen/ios/screen-ipad-landscape.png b/res/screen/ios/screen-ipad-landscape.png deleted file mode 100644 index b2f6019..0000000 Binary files a/res/screen/ios/screen-ipad-landscape.png and /dev/null differ diff --git a/res/screen/ios/screen-ipad-portrait-2x.png b/res/screen/ios/screen-ipad-portrait-2x.png deleted file mode 100644 index cdac6a7..0000000 Binary files a/res/screen/ios/screen-ipad-portrait-2x.png and /dev/null differ diff --git a/res/screen/ios/screen-ipad-portrait.png b/res/screen/ios/screen-ipad-portrait.png deleted file mode 100644 index 7f1792c..0000000 Binary files a/res/screen/ios/screen-ipad-portrait.png and /dev/null differ diff --git a/res/screen/ios/screen-iphone-landscape-2x.png b/res/screen/ios/screen-iphone-landscape-2x.png deleted file mode 100644 index 0165669..0000000 Binary files a/res/screen/ios/screen-iphone-landscape-2x.png and /dev/null differ diff --git a/res/screen/ios/screen-iphone-landscape.png b/res/screen/ios/screen-iphone-landscape.png deleted file mode 100644 index d154883..0000000 Binary files a/res/screen/ios/screen-iphone-landscape.png and /dev/null differ diff --git a/res/screen/ios/screen-iphone-portrait-2x.png b/res/screen/ios/screen-iphone-portrait-2x.png deleted file mode 100644 index bd24886..0000000 Binary files a/res/screen/ios/screen-iphone-portrait-2x.png and /dev/null differ diff --git a/res/screen/ios/screen-iphone-portrait-568h-2x.png b/res/screen/ios/screen-iphone-portrait-568h-2x.png deleted file mode 100644 index 10ed683..0000000 Binary files a/res/screen/ios/screen-iphone-portrait-568h-2x.png and /dev/null differ diff --git a/res/screen/ios/screen-iphone-portrait.png b/res/screen/ios/screen-iphone-portrait.png deleted file mode 100644 index 6fcba56..0000000 Binary files a/res/screen/ios/screen-iphone-portrait.png and /dev/null differ diff --git a/res/screen/tizen/README.md b/res/screen/tizen/README.md deleted file mode 100644 index 82c3f21..0000000 --- a/res/screen/tizen/README.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# Tizen Splash Screen - -Splash screens are unsupported on the Tizen platform. diff --git a/res/screen/webos/screen-64.png b/res/screen/webos/screen-64.png deleted file mode 100644 index 03b3849..0000000 Binary files a/res/screen/webos/screen-64.png and /dev/null differ diff --git a/res/screen/windows-phone/screen-portrait.jpg b/res/screen/windows-phone/screen-portrait.jpg deleted file mode 100644 index 479d3e4..0000000 Binary files a/res/screen/windows-phone/screen-portrait.jpg and /dev/null differ diff --git a/res/screens/android/screen-hdpi-landscape.png b/res/screens/android/screen-hdpi-landscape.png new file mode 100644 index 0000000..4d99166 Binary files /dev/null and b/res/screens/android/screen-hdpi-landscape.png differ diff --git a/res/screens/android/screen-hdpi-portrait.png b/res/screens/android/screen-hdpi-portrait.png new file mode 100644 index 0000000..d070952 Binary files /dev/null and b/res/screens/android/screen-hdpi-portrait.png differ diff --git a/res/screens/android/screen-ldpi-landscape.png b/res/screens/android/screen-ldpi-landscape.png new file mode 100644 index 0000000..f9d5699 Binary files /dev/null and b/res/screens/android/screen-ldpi-landscape.png differ diff --git a/res/screens/android/screen-ldpi-portrait.png b/res/screens/android/screen-ldpi-portrait.png new file mode 100644 index 0000000..ca781f7 Binary files /dev/null and b/res/screens/android/screen-ldpi-portrait.png differ diff --git a/res/screens/android/screen-mdpi-landscape.png b/res/screens/android/screen-mdpi-landscape.png new file mode 100644 index 0000000..5dbce6a Binary files /dev/null and b/res/screens/android/screen-mdpi-landscape.png differ diff --git a/res/screens/android/screen-mdpi-portrait.png b/res/screens/android/screen-mdpi-portrait.png new file mode 100644 index 0000000..99a3031 Binary files /dev/null and b/res/screens/android/screen-mdpi-portrait.png differ diff --git a/res/screens/android/screen-xhdpi-landscape.png b/res/screens/android/screen-xhdpi-landscape.png new file mode 100644 index 0000000..2e7ddb4 Binary files /dev/null and b/res/screens/android/screen-xhdpi-landscape.png differ diff --git a/res/screens/android/screen-xhdpi-portrait.png b/res/screens/android/screen-xhdpi-portrait.png new file mode 100644 index 0000000..f5c1c70 Binary files /dev/null and b/res/screens/android/screen-xhdpi-portrait.png differ diff --git a/res/screens/android/screen-xxhdpi-landscape.png b/res/screens/android/screen-xxhdpi-landscape.png new file mode 100644 index 0000000..b634a7b Binary files /dev/null and b/res/screens/android/screen-xxhdpi-landscape.png differ diff --git a/res/screens/android/screen-xxhdpi-portrait.png b/res/screens/android/screen-xxhdpi-portrait.png new file mode 100644 index 0000000..9b965d1 Binary files /dev/null and b/res/screens/android/screen-xxhdpi-portrait.png differ diff --git a/res/screens/android/screen-xxxhdpi-landscape.png b/res/screens/android/screen-xxxhdpi-landscape.png new file mode 100644 index 0000000..00b710c Binary files /dev/null and b/res/screens/android/screen-xxxhdpi-landscape.png differ diff --git a/res/screens/android/screen-xxxhdpi-portrait.png b/res/screens/android/screen-xxxhdpi-portrait.png new file mode 100644 index 0000000..84e3bd0 Binary files /dev/null and b/res/screens/android/screen-xxxhdpi-portrait.png differ diff --git a/res/screens/ios/screen-ipad-landscape-2x.png b/res/screens/ios/screen-ipad-landscape-2x.png new file mode 100644 index 0000000..84ccbec Binary files /dev/null and b/res/screens/ios/screen-ipad-landscape-2x.png differ diff --git a/res/screens/ios/screen-ipad-landscape.png b/res/screens/ios/screen-ipad-landscape.png new file mode 100644 index 0000000..568d5f3 Binary files /dev/null and b/res/screens/ios/screen-ipad-landscape.png differ diff --git a/res/screens/ios/screen-ipad-portrait-2x.png b/res/screens/ios/screen-ipad-portrait-2x.png new file mode 100644 index 0000000..285ad5c Binary files /dev/null and b/res/screens/ios/screen-ipad-portrait-2x.png differ diff --git a/res/screens/ios/screen-ipad-portrait.png b/res/screens/ios/screen-ipad-portrait.png new file mode 100644 index 0000000..abc2ccb Binary files /dev/null and b/res/screens/ios/screen-ipad-portrait.png differ diff --git a/res/screens/ios/screen-iphone-landscape-2x.png b/res/screens/ios/screen-iphone-landscape-2x.png new file mode 100644 index 0000000..71430d4 Binary files /dev/null and b/res/screens/ios/screen-iphone-landscape-2x.png differ diff --git a/res/screens/ios/screen-iphone-landscape-568h-2x.png b/res/screens/ios/screen-iphone-landscape-568h-2x.png new file mode 100644 index 0000000..78cefc8 Binary files /dev/null and b/res/screens/ios/screen-iphone-landscape-568h-2x.png differ diff --git a/res/screens/ios/screen-iphone-landscape-667h.png b/res/screens/ios/screen-iphone-landscape-667h.png new file mode 100644 index 0000000..2d235a7 Binary files /dev/null and b/res/screens/ios/screen-iphone-landscape-667h.png differ diff --git a/res/screens/ios/screen-iphone-landscape-736h.png b/res/screens/ios/screen-iphone-landscape-736h.png new file mode 100644 index 0000000..5bd7c2e Binary files /dev/null and b/res/screens/ios/screen-iphone-landscape-736h.png differ diff --git a/res/screens/ios/screen-iphone-landscape.png b/res/screens/ios/screen-iphone-landscape.png new file mode 100644 index 0000000..5dbce6a Binary files /dev/null and b/res/screens/ios/screen-iphone-landscape.png differ diff --git a/res/screens/ios/screen-iphone-portrait-2x.png b/res/screens/ios/screen-iphone-portrait-2x.png new file mode 100644 index 0000000..04052f2 Binary files /dev/null and b/res/screens/ios/screen-iphone-portrait-2x.png differ diff --git a/res/screens/ios/screen-iphone-portrait-568h-2x.png b/res/screens/ios/screen-iphone-portrait-568h-2x.png new file mode 100644 index 0000000..9991204 Binary files /dev/null and b/res/screens/ios/screen-iphone-portrait-568h-2x.png differ diff --git a/res/screens/ios/screen-iphone-portrait-667h.png b/res/screens/ios/screen-iphone-portrait-667h.png new file mode 100644 index 0000000..97d4192 Binary files /dev/null and b/res/screens/ios/screen-iphone-portrait-667h.png differ diff --git a/res/screens/ios/screen-iphone-portrait-736h.png b/res/screens/ios/screen-iphone-portrait-736h.png new file mode 100644 index 0000000..f81646a Binary files /dev/null and b/res/screens/ios/screen-iphone-portrait-736h.png differ diff --git a/res/screens/ios/screen-iphone-portrait.png b/res/screens/ios/screen-iphone-portrait.png new file mode 100644 index 0000000..99a3031 Binary files /dev/null and b/res/screens/ios/screen-iphone-portrait.png differ diff --git a/splash.png b/splash.png new file mode 100644 index 0000000..6a5140b Binary files /dev/null and b/splash.png differ diff --git a/splashoriginal.png b/splashoriginal.png new file mode 100644 index 0000000..512bc77 Binary files /dev/null and b/splashoriginal.png differ diff --git a/www/css/app.css b/www/css/app.css index 52431ed..6a8c94f 100644 --- a/www/css/app.css +++ b/www/css/app.css @@ -1,58 +1,37 @@ -.banner-image { - max-height: 100px; - margin: 2em auto; - border: 1px solid grey; - border-radius: 12px; -} - -.navbar-brand { - font-size: 110%; +.app-dock-container { + display: flex; } -.footer { - margin-top: 10em; - text-align: center; +.app-dock { + margin: 0 auto 10px auto; + display: flex; + justify-content: space-around; + flex-wrap: wrap; } -/* -============================== - THEMING -============================== - -Changing the .navbar-inverse background should be enough on modern browsers. -If this app is to be used on IE < 9 (not supported), also set a background-color -to replace the rgba()s. - -To use a material-color.css navbar theme, remove all the theming styles in this -file and add a .navbar-[color] class to the navbar in app.php. -*/ - -/* navbar background */ -.navbar-inverse { - /* background-color: green; */ -} - -/* Selected page background */ -.navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus { - background: rgba(0,0,0,.2); -} - -.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { - border-color: rgba(0,0,0,.2); +.app-icon { + border: 1px solid grey; + border-radius: 20%; } -.navbar-inverse .navbar-toggle .icon-bar { - background-color: white; +.app-dock-item { + padding: 0px 5px 2px 5px; + min-width: 100px; } -.navbar-inverse .navbar-brand { - color: white; +.app-dock-item p { + margin-bottom: 0px; + font-size: 95%; + color: #555; } -.navbar-inverse .navbar-nav > li > a { - color: white; +.app-dock-item p img { + width: 50px; + display: block; + margin: 0 auto; } -.navbar-inverse .navbar-link { - color: white; +.app-dock-item p span { + display: block; + text-align: center; } \ No newline at end of file diff --git a/www/css/sidemenu.css b/www/css/sidemenu.css new file mode 100644 index 0000000..e1a9048 --- /dev/null +++ b/www/css/sidemenu.css @@ -0,0 +1,124 @@ +#swipe-nav { + display: none; + visibility: hidden; +} + +#swipe-shader { + display: none; + visibility: hidden; +} + +@media screen and (max-width: 767px) { + #navbar-collapse { + display: none; + } + + button.navbar-toggle[data-toggle="collapse"] { + float: left; + margin-left: 15px; + } + + .navbar-header .navbar-brand { + margin-left: -20px; + } + + .navbar-header .navbar-brand img { + display: none; + } + + #swipe-nav { + display: none; + visibility: visible; + overflow-y: scroll; + position: fixed; + top: 0; + left: 0; + bottom: 0; + width: 60%; + z-index: 9999999; + max-width: 300px; + min-width: 200px; + background-color: #fafafa; + box-shadow: 5px 0px 15px 0px rgba(0,0,0,0.5); + } + + #swipe-nav #swipe-header { + height: 150px; + background-color: #eeeeee; + position: relative; + } + + #swipe-nav #swipe-header #swipe-username { + position: absolute; + bottom: 0; + padding-left: 10px; + padding-bottom: 10px; + font-size: 110%; + } + + #swipe-nav #swipe-header #swipe-appicon { + position: absolute; + top: 0; + padding-left: 20px; + padding-top: 20px; + height: 80px; + } + + #swipe-nav #swipe-header #swipe-username .fa { + font-size: 120%; + } + + #swipe-nav ul { + margin-bottom: 10px; + padding-left: 2px; + list-style-type: none; + padding: 3px; + } + + #swipe-nav ul li { + color: #424242; + padding-top: 5px; + padding-bottom: 5px; + } + + #swipe-nav ul li a:focus,a:active { + background-color: #e0e0e0; + } + + #swipe-nav ul li i.fa { + font-size: 120%; + margin-right: 10px; + margin-left: 5px; + } + + #swipe-nav ul li a { + display: inline-block; + color: #424242; + font-size: 110%; + text-decoration: none; + width: 100%; + padding-top: 10px; + padding-bottom: 10px; + } + + #swipe-nav ul li a:hover { + text-decoration: none; + } + + #swipe-nav #swipe-pages { + padding-bottom: 10px; + border-bottom: 1px solid #eeeeee; + } + + #swipe-shader { + position: fixed; + display: none; + visibility: visible; + top: 0; + right: 0; + bottom: 0; + left: 0; + background-color: rgba(0,0,0,0.5); + z-index: 9999998; + } +} \ No newline at end of file diff --git a/www/index.html b/www/index.html index 4568069..64fd77e 100644 --- a/www/index.html +++ b/www/index.html @@ -4,12 +4,13 @@ Netsyms Business for Mobile - + - + + @@ -19,7 +20,10 @@
- +
+ diff --git a/www/js/app.js b/www/js/app.js index 2321691..ca2e677 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -1,11 +1,37 @@ - +userinfo = null; $(document).ready(function () { /* Fade out alerts */ $(".alert .close").click(function (e) { $(this).parent().fadeOut("slow"); }); + + if (localStorage.getItem("setupcomplete")) { + getuserinfo(function () { + openscreen("home"); + }); + } else { + openscreen("setup1"); + } }); +function getuserinfo(callback) { + $.post(localStorage.getItem("portalurl"), { + username: localStorage.getItem("username"), + key: localStorage.getItem("key"), + password: localStorage.getItem("password"), + action: "user_info" + }, function (data) { + if (data.status === 'OK') { + userinfo = data.info; + callback(); + } else { + navigator.notification.alert(data.msg, null, "Error", 'Dismiss'); + } + }, "json").fail(function () { + navigator.notification.alert("Could not connect to the server. Try again later.", null, "Error", 'Dismiss'); + }); +} + /** * Switches the app to the given screen. * @param {String} screenname The name of the screen to show. @@ -74,8 +100,7 @@ function closemodal(modalselector) { // Handle back button to close things document.addEventListener("backbutton", function (event) { - openscreen("home"); -}, false); - -function check_setup() { -} \ No newline at end of file + if (localStorage.getItem("setupcomplete")) { + openscreen("home"); + } +}, false); \ No newline at end of file diff --git a/www/js/hammer.min.js b/www/js/hammer.min.js new file mode 100644 index 0000000..edadee1 --- /dev/null +++ b/www/js/hammer.min.js @@ -0,0 +1,7 @@ +/*! Hammer.JS - v2.0.8 - 2016-04-23 + * http://hammerjs.github.io/ + * + * Copyright (c) 2016 Jorik Tangelder; + * Licensed under the MIT license */ +!function(a,b,c,d){"use strict";function e(a,b,c){return setTimeout(j(a,c),b)}function f(a,b,c){return Array.isArray(a)?(g(a,c[b],c),!0):!1}function g(a,b,c){var e;if(a)if(a.forEach)a.forEach(b,c);else if(a.length!==d)for(e=0;e\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",f=a.console&&(a.console.warn||a.console.log);return f&&f.call(a.console,e,d),b.apply(this,arguments)}}function i(a,b,c){var d,e=b.prototype;d=a.prototype=Object.create(e),d.constructor=a,d._super=e,c&&la(d,c)}function j(a,b){return function(){return a.apply(b,arguments)}}function k(a,b){return typeof a==oa?a.apply(b?b[0]||d:d,b):a}function l(a,b){return a===d?b:a}function m(a,b,c){g(q(b),function(b){a.addEventListener(b,c,!1)})}function n(a,b,c){g(q(b),function(b){a.removeEventListener(b,c,!1)})}function o(a,b){for(;a;){if(a==b)return!0;a=a.parentNode}return!1}function p(a,b){return a.indexOf(b)>-1}function q(a){return a.trim().split(/\s+/g)}function r(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;dc[b]}):d.sort()),d}function u(a,b){for(var c,e,f=b[0].toUpperCase()+b.slice(1),g=0;g1&&!c.firstMultiple?c.firstMultiple=D(b):1===e&&(c.firstMultiple=!1);var f=c.firstInput,g=c.firstMultiple,h=g?g.center:f.center,i=b.center=E(d);b.timeStamp=ra(),b.deltaTime=b.timeStamp-f.timeStamp,b.angle=I(h,i),b.distance=H(h,i),B(c,b),b.offsetDirection=G(b.deltaX,b.deltaY);var j=F(b.deltaTime,b.deltaX,b.deltaY);b.overallVelocityX=j.x,b.overallVelocityY=j.y,b.overallVelocity=qa(j.x)>qa(j.y)?j.x:j.y,b.scale=g?K(g.pointers,d):1,b.rotation=g?J(g.pointers,d):0,b.maxPointers=c.prevInput?b.pointers.length>c.prevInput.maxPointers?b.pointers.length:c.prevInput.maxPointers:b.pointers.length,C(c,b);var k=a.element;o(b.srcEvent.target,k)&&(k=b.srcEvent.target),b.target=k}function B(a,b){var c=b.center,d=a.offsetDelta||{},e=a.prevDelta||{},f=a.prevInput||{};b.eventType!==Ea&&f.eventType!==Ga||(e=a.prevDelta={x:f.deltaX||0,y:f.deltaY||0},d=a.offsetDelta={x:c.x,y:c.y}),b.deltaX=e.x+(c.x-d.x),b.deltaY=e.y+(c.y-d.y)}function C(a,b){var c,e,f,g,h=a.lastInterval||b,i=b.timeStamp-h.timeStamp;if(b.eventType!=Ha&&(i>Da||h.velocity===d)){var j=b.deltaX-h.deltaX,k=b.deltaY-h.deltaY,l=F(i,j,k);e=l.x,f=l.y,c=qa(l.x)>qa(l.y)?l.x:l.y,g=G(j,k),a.lastInterval=b}else c=h.velocity,e=h.velocityX,f=h.velocityY,g=h.direction;b.velocity=c,b.velocityX=e,b.velocityY=f,b.direction=g}function D(a){for(var b=[],c=0;ce;)c+=a[e].clientX,d+=a[e].clientY,e++;return{x:pa(c/b),y:pa(d/b)}}function F(a,b,c){return{x:b/a||0,y:c/a||0}}function G(a,b){return a===b?Ia:qa(a)>=qa(b)?0>a?Ja:Ka:0>b?La:Ma}function H(a,b,c){c||(c=Qa);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return Math.sqrt(d*d+e*e)}function I(a,b,c){c||(c=Qa);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*Math.atan2(e,d)/Math.PI}function J(a,b){return I(b[1],b[0],Ra)+I(a[1],a[0],Ra)}function K(a,b){return H(b[0],b[1],Ra)/H(a[0],a[1],Ra)}function L(){this.evEl=Ta,this.evWin=Ua,this.pressed=!1,x.apply(this,arguments)}function M(){this.evEl=Xa,this.evWin=Ya,x.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function N(){this.evTarget=$a,this.evWin=_a,this.started=!1,x.apply(this,arguments)}function O(a,b){var c=s(a.touches),d=s(a.changedTouches);return b&(Ga|Ha)&&(c=t(c.concat(d),"identifier",!0)),[c,d]}function P(){this.evTarget=bb,this.targetIds={},x.apply(this,arguments)}function Q(a,b){var c=s(a.touches),d=this.targetIds;if(b&(Ea|Fa)&&1===c.length)return d[c[0].identifier]=!0,[c,c];var e,f,g=s(a.changedTouches),h=[],i=this.target;if(f=c.filter(function(a){return o(a.target,i)}),b===Ea)for(e=0;e-1&&d.splice(a,1)};setTimeout(e,cb)}}function U(a){for(var b=a.srcEvent.clientX,c=a.srcEvent.clientY,d=0;d=f&&db>=g)return!0}return!1}function V(a,b){this.manager=a,this.set(b)}function W(a){if(p(a,jb))return jb;var b=p(a,kb),c=p(a,lb);return b&&c?jb:b||c?b?kb:lb:p(a,ib)?ib:hb}function X(){if(!fb)return!1;var b={},c=a.CSS&&a.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(d){b[d]=c?a.CSS.supports("touch-action",d):!0}),b}function Y(a){this.options=la({},this.defaults,a||{}),this.id=v(),this.manager=null,this.options.enable=l(this.options.enable,!0),this.state=nb,this.simultaneous={},this.requireFail=[]}function Z(a){return a&sb?"cancel":a&qb?"end":a&pb?"move":a&ob?"start":""}function $(a){return a==Ma?"down":a==La?"up":a==Ja?"left":a==Ka?"right":""}function _(a,b){var c=b.manager;return c?c.get(a):a}function aa(){Y.apply(this,arguments)}function ba(){aa.apply(this,arguments),this.pX=null,this.pY=null}function ca(){aa.apply(this,arguments)}function da(){Y.apply(this,arguments),this._timer=null,this._input=null}function ea(){aa.apply(this,arguments)}function fa(){aa.apply(this,arguments)}function ga(){Y.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ha(a,b){return b=b||{},b.recognizers=l(b.recognizers,ha.defaults.preset),new ia(a,b)}function ia(a,b){this.options=la({},ha.defaults,b||{}),this.options.inputTarget=this.options.inputTarget||a,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=a,this.input=y(this),this.touchAction=new V(this,this.options.touchAction),ja(this,!0),g(this.options.recognizers,function(a){var b=this.add(new a[0](a[1]));a[2]&&b.recognizeWith(a[2]),a[3]&&b.requireFailure(a[3])},this)}function ja(a,b){var c=a.element;if(c.style){var d;g(a.options.cssProps,function(e,f){d=u(c.style,f),b?(a.oldCssProps[d]=c.style[d],c.style[d]=e):c.style[d]=a.oldCssProps[d]||""}),b||(a.oldCssProps={})}}function ka(a,c){var d=b.createEvent("Event");d.initEvent(a,!0,!0),d.gesture=c,c.target.dispatchEvent(d)}var la,ma=["","webkit","Moz","MS","ms","o"],na=b.createElement("div"),oa="function",pa=Math.round,qa=Math.abs,ra=Date.now;la="function"!=typeof Object.assign?function(a){if(a===d||null===a)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(a),c=1;ch&&(b.push(a),h=b.length-1):e&(Ga|Ha)&&(c=!0),0>h||(b[h]=a,this.callback(this.manager,e,{pointers:b,changedPointers:[a],pointerType:f,srcEvent:a}),c&&b.splice(h,1))}});var Za={touchstart:Ea,touchmove:Fa,touchend:Ga,touchcancel:Ha},$a="touchstart",_a="touchstart touchmove touchend touchcancel";i(N,x,{handler:function(a){var b=Za[a.type];if(b===Ea&&(this.started=!0),this.started){var c=O.call(this,a,b);b&(Ga|Ha)&&c[0].length-c[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:za,srcEvent:a})}}});var ab={touchstart:Ea,touchmove:Fa,touchend:Ga,touchcancel:Ha},bb="touchstart touchmove touchend touchcancel";i(P,x,{handler:function(a){var b=ab[a.type],c=Q.call(this,a,b);c&&this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:za,srcEvent:a})}});var cb=2500,db=25;i(R,x,{handler:function(a,b,c){var d=c.pointerType==za,e=c.pointerType==Ba;if(!(e&&c.sourceCapabilities&&c.sourceCapabilities.firesTouchEvents)){if(d)S.call(this,b,c);else if(e&&U.call(this,c))return;this.callback(a,b,c)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var eb=u(na.style,"touchAction"),fb=eb!==d,gb="compute",hb="auto",ib="manipulation",jb="none",kb="pan-x",lb="pan-y",mb=X();V.prototype={set:function(a){a==gb&&(a=this.compute()),fb&&this.manager.element.style&&mb[a]&&(this.manager.element.style[eb]=a),this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return g(this.manager.recognizers,function(b){k(b.options.enable,[b])&&(a=a.concat(b.getTouchAction()))}),W(a.join(" "))},preventDefaults:function(a){var b=a.srcEvent,c=a.offsetDirection;if(this.manager.session.prevented)return void b.preventDefault();var d=this.actions,e=p(d,jb)&&!mb[jb],f=p(d,lb)&&!mb[lb],g=p(d,kb)&&!mb[kb];if(e){var h=1===a.pointers.length,i=a.distance<2,j=a.deltaTime<250;if(h&&i&&j)return}return g&&f?void 0:e||f&&c&Na||g&&c&Oa?this.preventSrc(b):void 0},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault()}};var nb=1,ob=2,pb=4,qb=8,rb=qb,sb=16,tb=32;Y.prototype={defaults:{},set:function(a){return la(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(f(a,"recognizeWith",this))return this;var b=this.simultaneous;return a=_(a,this),b[a.id]||(b[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return f(a,"dropRecognizeWith",this)?this:(a=_(a,this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(f(a,"requireFailure",this))return this;var b=this.requireFail;return a=_(a,this),-1===r(b,a)&&(b.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(f(a,"dropRequireFailure",this))return this;a=_(a,this);var b=r(this.requireFail,a);return b>-1&&this.requireFail.splice(b,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function b(b){c.manager.emit(b,a)}var c=this,d=this.state;qb>d&&b(c.options.event+Z(d)),b(c.options.event),a.additionalEvent&&b(a.additionalEvent),d>=qb&&b(c.options.event+Z(d))},tryEmit:function(a){return this.canEmit()?this.emit(a):void(this.state=tb)},canEmit:function(){for(var a=0;af?Ja:Ka,c=f!=this.pX,d=Math.abs(a.deltaX)):(e=0===g?Ia:0>g?La:Ma,c=g!=this.pY,d=Math.abs(a.deltaY))),a.direction=e,c&&d>b.threshold&&e&b.direction},attrTest:function(a){return aa.prototype.attrTest.call(this,a)&&(this.state&ob||!(this.state&ob)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var b=$(a.direction);b&&(a.additionalEvent=this.options.event+b),this._super.emit.call(this,a)}}),i(ca,aa,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[jb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&ob)},emit:function(a){if(1!==a.scale){var b=a.scale<1?"in":"out";a.additionalEvent=this.options.event+b}this._super.emit.call(this,a)}}),i(da,Y,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[hb]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distanceb.time;if(this._input=a,!d||!c||a.eventType&(Ga|Ha)&&!f)this.reset();else if(a.eventType&Ea)this.reset(),this._timer=e(function(){this.state=rb,this.tryEmit()},b.time,this);else if(a.eventType&Ga)return rb;return tb},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===rb&&(a&&a.eventType&Ga?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=ra(),this.manager.emit(this.options.event,this._input)))}}),i(ea,aa,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[jb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&ob)}}),i(fa,aa,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Na|Oa,pointers:1},getTouchAction:function(){return ba.prototype.getTouchAction.call(this)},attrTest:function(a){var b,c=this.options.direction;return c&(Na|Oa)?b=a.overallVelocity:c&Na?b=a.overallVelocityX:c&Oa&&(b=a.overallVelocityY),this._super.attrTest.call(this,a)&&c&a.offsetDirection&&a.distance>this.options.threshold&&a.maxPointers==this.options.pointers&&qa(b)>this.options.velocity&&a.eventType&Ga},emit:function(a){var b=$(a.offsetDirection);b&&this.manager.emit(this.options.event+b,a),this.manager.emit(this.options.event,a)}}),i(ga,Y,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ib]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distancet?0:t>s.max?s.max:t)}function s(i){var s=h(),n=s._rgba=[];return i=i.toLowerCase(),f(l,function(t,o){var a,r=o.re.exec(i),l=r&&o.parse(r),h=o.space||"rgba";return l?(a=s[h](l),s[c[h].cache]=a[c[h].cache],n=s._rgba=a._rgba,!1):e}),n.length?("0,0,0,0"===n.join()&&t.extend(n,o.transparent),s):o[i]}function n(t,e,i){return i=(i+1)%1,1>6*i?t+6*(e-t)*i:1>2*i?e:2>3*i?t+6*(e-t)*(2/3-i):t}var o,a="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",r=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],h=t.Color=function(e,i,s,n){return new t.Color.fn.parse(e,i,s,n)},c={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},u={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=h.support={},p=t("

")[0],f=t.each;p.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(c,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),h.fn=t.extend(h.prototype,{parse:function(n,a,r,l){if(n===e)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=t(n).css(a),a=e);var u=this,d=t.type(n),p=this._rgba=[];return a!==e&&(n=[n,a,r,l],d="array"),"string"===d?this.parse(s(n)||o._default):"array"===d?(f(c.rgba.props,function(t,e){p[e.idx]=i(n[e.idx],e)}),this):"object"===d?(n instanceof h?f(c,function(t,e){n[e.cache]&&(u[e.cache]=n[e.cache].slice())}):f(c,function(e,s){var o=s.cache;f(s.props,function(t,e){if(!u[o]&&s.to){if("alpha"===t||null==n[t])return;u[o]=s.to(u._rgba)}u[o][e.idx]=i(n[t],e,!0)}),u[o]&&0>t.inArray(null,u[o].slice(0,3))&&(u[o][3]=1,s.from&&(u._rgba=s.from(u[o])))}),this):e},is:function(t){var i=h(t),s=!0,n=this;return f(c,function(t,o){var a,r=i[o.cache];return r&&(a=n[o.cache]||o.to&&o.to(n._rgba)||[],f(o.props,function(t,i){return null!=r[i.idx]?s=r[i.idx]===a[i.idx]:e})),s}),s},_space:function(){var t=[],e=this;return f(c,function(i,s){e[s.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var s=h(t),n=s._space(),o=c[n],a=0===this.alpha()?h("transparent"):this,r=a[o.cache]||o.to(a._rgba),l=r.slice();return s=s[o.cache],f(o.props,function(t,n){var o=n.idx,a=r[o],h=s[o],c=u[n.type]||{};null!==h&&(null===a?l[o]=h:(c.mod&&(h-a>c.mod/2?a+=c.mod:a-h>c.mod/2&&(a-=c.mod)),l[o]=i((h-a)*e+a,n)))}),this[n](l)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),s=i.pop(),n=h(e)._rgba;return h(t.map(i,function(t,e){return(1-s)*n[e]+s*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),s=i.pop();return e&&i.push(~~(255*s)),"#"+t.map(i,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),h.fn.parse.prototype=h.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,s=t[0]/255,n=t[1]/255,o=t[2]/255,a=t[3],r=Math.max(s,n,o),l=Math.min(s,n,o),h=r-l,c=r+l,u=.5*c;return e=l===r?0:s===r?60*(n-o)/h+360:n===r?60*(o-s)/h+120:60*(s-n)/h+240,i=0===h?0:.5>=u?h/c:h/(2-c),[Math.round(e)%360,i,u,null==a?1:a]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],s=t[2],o=t[3],a=.5>=s?s*(1+i):s+i-s*i,r=2*s-a;return[Math.round(255*n(r,a,e+1/3)),Math.round(255*n(r,a,e)),Math.round(255*n(r,a,e-1/3)),o]},f(c,function(s,n){var o=n.props,a=n.cache,l=n.to,c=n.from;h.fn[s]=function(s){if(l&&!this[a]&&(this[a]=l(this._rgba)),s===e)return this[a].slice();var n,r=t.type(s),u="array"===r||"object"===r?s:arguments,d=this[a].slice();return f(o,function(t,e){var s=u["object"===r?t:e.idx];null==s&&(s=d[e.idx]),d[e.idx]=i(s,e)}),c?(n=h(c(d)),n[a]=d,n):h(d)},f(o,function(e,i){h.fn[e]||(h.fn[e]=function(n){var o,a=t.type(n),l="alpha"===e?this._hsla?"hsla":"rgba":s,h=this[l](),c=h[i.idx];return"undefined"===a?c:("function"===a&&(n=n.call(this,c),a=t.type(n)),null==n&&i.empty?this:("string"===a&&(o=r.exec(n),o&&(n=c+parseFloat(o[2])*("+"===o[1]?1:-1))),h[i.idx]=n,this[l](h)))})})}),h.hook=function(e){var i=e.split(" ");f(i,function(e,i){t.cssHooks[i]={set:function(e,n){var o,a,r="";if("transparent"!==n&&("string"!==t.type(n)||(o=s(n)))){if(n=h(o||n),!d.rgba&&1!==n._rgba[3]){for(a="backgroundColor"===i?e.parentNode:e;(""===r||"transparent"===r)&&a&&a.style;)try{r=t.css(a,"backgroundColor"),a=a.parentNode}catch(l){}n=n.blend(r&&"transparent"!==r?r:"_default")}n=n.toRgbaString()}try{e.style[i]=n}catch(l){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=h(e.elem,i),e.end=h(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},h.hook(a),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(i,s){e["border"+s+"Color"]=t}),e}},o=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(n),function(){function e(e){var i,s,n=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(n&&n.length&&n[0]&&n[n[0]])for(s=n.length;s--;)i=n[s],"string"==typeof n[i]&&(o[t.camelCase(i)]=n[i]);else for(i in n)"string"==typeof n[i]&&(o[i]=n[i]);return o}function i(e,i){var s,n,a={};for(s in i)n=i[s],e[s]!==n&&(o[s]||(t.fx.step[s]||!isNaN(parseFloat(n)))&&(a[s]=n));return a}var s=["add","remove","toggle"],o={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(n.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(n,o,a,r){var l=t.speed(o,a,r);return this.queue(function(){var o,a=t(this),r=a.attr("class")||"",h=l.children?a.find("*").addBack():a;h=h.map(function(){var i=t(this);return{el:i,start:e(this)}}),o=function(){t.each(s,function(t,e){n[e]&&a[e+"Class"](n[e])})},o(),h=h.map(function(){return this.end=e(this.el[0]),this.diff=i(this.start,this.end),this}),a.attr("class",r),h=h.map(function(){var e=this,i=t.Deferred(),s=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,s),i.promise()}),t.when.apply(t,h.get()).done(function(){o(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(a[0])})})},t.fn.extend({addClass:function(e){return function(i,s,n,o){return s?t.effects.animateClass.call(this,{add:i},s,n,o):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,s,n,o){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},s,n,o):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(i,s,n,o,a){return"boolean"==typeof s||void 0===s?n?t.effects.animateClass.call(this,s?{add:i}:{remove:i},n,o,a):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:i},s,n,o)}}(t.fn.toggleClass),switchClass:function(e,i,s,n,o){return t.effects.animateClass.call(this,{add:i,remove:e},s,n,o)}})}(),function(){function n(e,i,s,n){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(n=i,s=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(n=s,s=i,i={}),t.isFunction(s)&&(n=s,s=null),i&&t.extend(e,i),s=s||i.duration,e.duration=t.fx.off?0:"number"==typeof s?s:s in t.fx.speeds?t.fx.speeds[s]:t.fx.speeds._default,e.complete=n||i.complete,e}function o(e){return!e||"number"==typeof e||t.fx.speeds[e]?!0:"string"!=typeof e||t.effects.effect[e]?t.isFunction(e)?!0:"object"!=typeof e||e.effect?!1:!0:!0}function a(t,e){var i=e.outerWidth(),s=e.outerHeight(),n=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,o=n.exec(t)||["",0,i,s,0];return{top:parseFloat(o[1])||0,right:"auto"===o[2]?i:parseFloat(o[2]),bottom:"auto"===o[3]?s:parseFloat(o[3]),left:parseFloat(o[4])||0}}t.expr&&t.expr.filters&&t.expr.filters.animated&&(t.expr.filters.animated=function(e){return function(i){return!!t(i).data(s)||e(i)}}(t.expr.filters.animated)),t.uiBackCompat!==!1&&t.extend(t.effects,{save:function(t,i){for(var s=0,n=i.length;n>s;s++)null!==i[s]&&t.data(e+i[s],t[0].style[i[s]])},restore:function(t,i){for(var s,n=0,o=i.length;o>n;n++)null!==i[n]&&(s=t.data(e+i[n]),t.css(i[n],s))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},s=t("

").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(a){o=document.body}return e.wrap(s),(e[0]===o||t.contains(e[0],o))&&t(o).trigger("focus"),s=e.parent(),"static"===e.css("position")?(s.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,s){i[s]=e.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(n),s.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12.1",define:function(e,i,s){return s||(s=i,i="effect"),t.effects.effect[e]=s,t.effects.effect[e].mode=i,s},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var s="horizontal"!==i?(e||100)/100:1,n="vertical"!==i?(e||100)/100:1;return{height:t.height()*n,width:t.width()*s,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*s}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var s=t.queue();e>1&&s.splice.apply(s,[1,0].concat(s.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(i,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(i)||"",t.removeData(i)},mode:function(t,e){var i=t.is(":hidden");return"toggle"===e&&(e=i?"show":"hide"),(i?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var i,s;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=t[1]/e.width}return{x:s,y:i}},createPlaceholder:function(i){var s,n=i.css("position"),o=i.position();return i.css({marginTop:i.css("marginTop"),marginBottom:i.css("marginBottom"),marginLeft:i.css("marginLeft"),marginRight:i.css("marginRight")}).outerWidth(i.outerWidth()).outerHeight(i.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",s=t("<"+i[0].nodeName+">").insertAfter(i).css({display:/^(inline|ruby)/.test(i.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:i.css("marginTop"),marginBottom:i.css("marginBottom"),marginLeft:i.css("marginLeft"),marginRight:i.css("marginRight"),"float":i.css("float")}).outerWidth(i.outerWidth()).outerHeight(i.outerHeight()).addClass("ui-effects-placeholder"),i.data(e+"placeholder",s)),i.css({position:n,left:o.left,top:o.top}),s},removePlaceholder:function(t){var i=e+"placeholder",s=t.data(i);s&&(s.remove(),t.removeData(i))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,i,s,n){return n=n||{},t.each(i,function(t,i){var o=e.cssUnit(i);o[0]>0&&(n[i]=o[0]*s+o[1])}),n}}),t.fn.extend({effect:function(){function e(e){function n(){l.removeData(s),t.effects.cleanUp(l),"hide"===i.mode&&l.hide(),r()}function r(){t.isFunction(h)&&h.call(l[0]),t.isFunction(e)&&e()}var l=t(this);i.mode=u.shift(),t.uiBackCompat===!1||a?"none"===i.mode?(l[c](),r()):o.call(l[0],i,n):(l.is(":hidden")?"hide"===c:"show"===c)?(l[c](),r()):o.call(l[0],i,r)}var i=n.apply(this,arguments),o=t.effects.effect[i.effect],a=o.mode,r=i.queue,l=r||"fx",h=i.complete,c=i.mode,u=[],d=function(e){var i=t(this),n=t.effects.mode(i,c)||a;i.data(s,!0),u.push(n),a&&("show"===n||n===a&&"hide"===n)&&i.show(),a&&"none"===n||t.effects.saveStyle(i),t.isFunction(e)&&e()};return t.fx.off||!o?c?this[c](i.duration,h):this.each(function(){h&&h.call(this)}):r===!1?this.each(d).each(e):this.queue(l,d).queue(l,e)},show:function(t){return function(e){if(o(e))return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="show",this.effect.call(this,i)}}(t.fn.show),hide:function(t){return function(e){if(o(e))return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="hide",this.effect.call(this,i)}}(t.fn.hide),toggle:function(t){return function(e){if(o(e)||"boolean"==typeof e)return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="toggle",this.effect.call(this,i)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),s=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(s=[parseFloat(i),e])}),s},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):a(this.css("clip"),this)},transfer:function(e,i){var s=t(this),n=t(e.to),o="fixed"===n.css("position"),a=t("body"),r=o?a.scrollTop():0,l=o?a.scrollLeft():0,h=n.offset(),c={top:h.top-r,left:h.left-l,height:n.innerHeight(),width:n.innerWidth()},u=s.offset(),d=t("
").appendTo("body").addClass(e.className).css({top:u.top-r,left:u.left-l,height:s.innerHeight(),width:s.innerWidth(),position:o?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){d.remove(),t.isFunction(i)&&i()})}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=a(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}})}(),t.effects,t.effects.define("fade","toggle",function(e,i){var s="show"===e.mode;t(this).css("opacity",s?0:1).animate({opacity:s?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("slide","show",function(e,i){var s,n,o=t(this),a={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},r=e.mode,l=e.direction||"left",h="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l,u=e.distance||o["top"===h?"outerHeight":"outerWidth"](!0),d={};t.effects.createPlaceholder(o),s=o.cssClip(),n=o.position()[h],d[h]=(c?-1:1)*u+n,d.clip=o.cssClip(),d.clip[a[l][1]]=d.clip[a[l][0]],"show"===r&&(o.cssClip(d.clip),o.css(h,d[h]),d.clip=s,d[h]=n),o.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:i})})}); \ No newline at end of file diff --git a/www/js/sidemenu.js b/www/js/sidemenu.js new file mode 100644 index 0000000..c3bf4d8 --- /dev/null +++ b/www/js/sidemenu.js @@ -0,0 +1,69 @@ +/*! jQuery UI - v1.12.1 - 2017-06-29 +* http://jqueryui.com +* Includes: effect.js, effects/effect-fade.js, effects/effect-slide.js +* Copyright jQuery Foundation and other contributors; Licensed MIT */ + +(function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){t.ui=t.ui||{},t.ui.version="1.12.1";var e="ui-effects-",i="ui-effects-style",s="ui-effects-animated",n=t;t.effects={effect:{}},function(t,e){function i(t,e,i){var s=u[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+s.mod)%s.mod:0>t?0:t>s.max?s.max:t)}function s(i){var s=h(),n=s._rgba=[];return i=i.toLowerCase(),f(l,function(t,o){var a,r=o.re.exec(i),l=r&&o.parse(r),h=o.space||"rgba";return l?(a=s[h](l),s[c[h].cache]=a[c[h].cache],n=s._rgba=a._rgba,!1):e}),n.length?("0,0,0,0"===n.join()&&t.extend(n,o.transparent),s):o[i]}function n(t,e,i){return i=(i+1)%1,1>6*i?t+6*(e-t)*i:1>2*i?e:2>3*i?t+6*(e-t)*(2/3-i):t}var o,a="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",r=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],h=t.Color=function(e,i,s,n){return new t.Color.fn.parse(e,i,s,n)},c={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},u={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=h.support={},p=t("

")[0],f=t.each;p.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(c,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),h.fn=t.extend(h.prototype,{parse:function(n,a,r,l){if(n===e)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=t(n).css(a),a=e);var u=this,d=t.type(n),p=this._rgba=[];return a!==e&&(n=[n,a,r,l],d="array"),"string"===d?this.parse(s(n)||o._default):"array"===d?(f(c.rgba.props,function(t,e){p[e.idx]=i(n[e.idx],e)}),this):"object"===d?(n instanceof h?f(c,function(t,e){n[e.cache]&&(u[e.cache]=n[e.cache].slice())}):f(c,function(e,s){var o=s.cache;f(s.props,function(t,e){if(!u[o]&&s.to){if("alpha"===t||null==n[t])return;u[o]=s.to(u._rgba)}u[o][e.idx]=i(n[t],e,!0)}),u[o]&&0>t.inArray(null,u[o].slice(0,3))&&(u[o][3]=1,s.from&&(u._rgba=s.from(u[o])))}),this):e},is:function(t){var i=h(t),s=!0,n=this;return f(c,function(t,o){var a,r=i[o.cache];return r&&(a=n[o.cache]||o.to&&o.to(n._rgba)||[],f(o.props,function(t,i){return null!=r[i.idx]?s=r[i.idx]===a[i.idx]:e})),s}),s},_space:function(){var t=[],e=this;return f(c,function(i,s){e[s.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var s=h(t),n=s._space(),o=c[n],a=0===this.alpha()?h("transparent"):this,r=a[o.cache]||o.to(a._rgba),l=r.slice();return s=s[o.cache],f(o.props,function(t,n){var o=n.idx,a=r[o],h=s[o],c=u[n.type]||{};null!==h&&(null===a?l[o]=h:(c.mod&&(h-a>c.mod/2?a+=c.mod:a-h>c.mod/2&&(a-=c.mod)),l[o]=i((h-a)*e+a,n)))}),this[n](l)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),s=i.pop(),n=h(e)._rgba;return h(t.map(i,function(t,e){return(1-s)*n[e]+s*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),s=i.pop();return e&&i.push(~~(255*s)),"#"+t.map(i,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),h.fn.parse.prototype=h.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,s=t[0]/255,n=t[1]/255,o=t[2]/255,a=t[3],r=Math.max(s,n,o),l=Math.min(s,n,o),h=r-l,c=r+l,u=.5*c;return e=l===r?0:s===r?60*(n-o)/h+360:n===r?60*(o-s)/h+120:60*(s-n)/h+240,i=0===h?0:.5>=u?h/c:h/(2-c),[Math.round(e)%360,i,u,null==a?1:a]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],s=t[2],o=t[3],a=.5>=s?s*(1+i):s+i-s*i,r=2*s-a;return[Math.round(255*n(r,a,e+1/3)),Math.round(255*n(r,a,e)),Math.round(255*n(r,a,e-1/3)),o]},f(c,function(s,n){var o=n.props,a=n.cache,l=n.to,c=n.from;h.fn[s]=function(s){if(l&&!this[a]&&(this[a]=l(this._rgba)),s===e)return this[a].slice();var n,r=t.type(s),u="array"===r||"object"===r?s:arguments,d=this[a].slice();return f(o,function(t,e){var s=u["object"===r?t:e.idx];null==s&&(s=d[e.idx]),d[e.idx]=i(s,e)}),c?(n=h(c(d)),n[a]=d,n):h(d)},f(o,function(e,i){h.fn[e]||(h.fn[e]=function(n){var o,a=t.type(n),l="alpha"===e?this._hsla?"hsla":"rgba":s,h=this[l](),c=h[i.idx];return"undefined"===a?c:("function"===a&&(n=n.call(this,c),a=t.type(n)),null==n&&i.empty?this:("string"===a&&(o=r.exec(n),o&&(n=c+parseFloat(o[2])*("+"===o[1]?1:-1))),h[i.idx]=n,this[l](h)))})})}),h.hook=function(e){var i=e.split(" ");f(i,function(e,i){t.cssHooks[i]={set:function(e,n){var o,a,r="";if("transparent"!==n&&("string"!==t.type(n)||(o=s(n)))){if(n=h(o||n),!d.rgba&&1!==n._rgba[3]){for(a="backgroundColor"===i?e.parentNode:e;(""===r||"transparent"===r)&&a&&a.style;)try{r=t.css(a,"backgroundColor"),a=a.parentNode}catch(l){}n=n.blend(r&&"transparent"!==r?r:"_default")}n=n.toRgbaString()}try{e.style[i]=n}catch(l){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=h(e.elem,i),e.end=h(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},h.hook(a),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(i,s){e["border"+s+"Color"]=t}),e}},o=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(n),function(){function e(e){var i,s,n=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(n&&n.length&&n[0]&&n[n[0]])for(s=n.length;s--;)i=n[s],"string"==typeof n[i]&&(o[t.camelCase(i)]=n[i]);else for(i in n)"string"==typeof n[i]&&(o[i]=n[i]);return o}function i(e,i){var s,n,a={};for(s in i)n=i[s],e[s]!==n&&(o[s]||(t.fx.step[s]||!isNaN(parseFloat(n)))&&(a[s]=n));return a}var s=["add","remove","toggle"],o={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(n.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(n,o,a,r){var l=t.speed(o,a,r);return this.queue(function(){var o,a=t(this),r=a.attr("class")||"",h=l.children?a.find("*").addBack():a;h=h.map(function(){var i=t(this);return{el:i,start:e(this)}}),o=function(){t.each(s,function(t,e){n[e]&&a[e+"Class"](n[e])})},o(),h=h.map(function(){return this.end=e(this.el[0]),this.diff=i(this.start,this.end),this}),a.attr("class",r),h=h.map(function(){var e=this,i=t.Deferred(),s=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,s),i.promise()}),t.when.apply(t,h.get()).done(function(){o(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(a[0])})})},t.fn.extend({addClass:function(e){return function(i,s,n,o){return s?t.effects.animateClass.call(this,{add:i},s,n,o):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,s,n,o){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},s,n,o):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(i,s,n,o,a){return"boolean"==typeof s||void 0===s?n?t.effects.animateClass.call(this,s?{add:i}:{remove:i},n,o,a):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:i},s,n,o)}}(t.fn.toggleClass),switchClass:function(e,i,s,n,o){return t.effects.animateClass.call(this,{add:i,remove:e},s,n,o)}})}(),function(){function n(e,i,s,n){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(n=i,s=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(n=s,s=i,i={}),t.isFunction(s)&&(n=s,s=null),i&&t.extend(e,i),s=s||i.duration,e.duration=t.fx.off?0:"number"==typeof s?s:s in t.fx.speeds?t.fx.speeds[s]:t.fx.speeds._default,e.complete=n||i.complete,e}function o(e){return!e||"number"==typeof e||t.fx.speeds[e]?!0:"string"!=typeof e||t.effects.effect[e]?t.isFunction(e)?!0:"object"!=typeof e||e.effect?!1:!0:!0}function a(t,e){var i=e.outerWidth(),s=e.outerHeight(),n=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,o=n.exec(t)||["",0,i,s,0];return{top:parseFloat(o[1])||0,right:"auto"===o[2]?i:parseFloat(o[2]),bottom:"auto"===o[3]?s:parseFloat(o[3]),left:parseFloat(o[4])||0}}t.expr&&t.expr.filters&&t.expr.filters.animated&&(t.expr.filters.animated=function(e){return function(i){return!!t(i).data(s)||e(i)}}(t.expr.filters.animated)),t.uiBackCompat!==!1&&t.extend(t.effects,{save:function(t,i){for(var s=0,n=i.length;n>s;s++)null!==i[s]&&t.data(e+i[s],t[0].style[i[s]])},restore:function(t,i){for(var s,n=0,o=i.length;o>n;n++)null!==i[n]&&(s=t.data(e+i[n]),t.css(i[n],s))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},s=t("

").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(a){o=document.body}return e.wrap(s),(e[0]===o||t.contains(e[0],o))&&t(o).trigger("focus"),s=e.parent(),"static"===e.css("position")?(s.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,s){i[s]=e.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(n),s.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12.1",define:function(e,i,s){return s||(s=i,i="effect"),t.effects.effect[e]=s,t.effects.effect[e].mode=i,s},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var s="horizontal"!==i?(e||100)/100:1,n="vertical"!==i?(e||100)/100:1;return{height:t.height()*n,width:t.width()*s,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*s}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var s=t.queue();e>1&&s.splice.apply(s,[1,0].concat(s.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(i,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(i)||"",t.removeData(i)},mode:function(t,e){var i=t.is(":hidden");return"toggle"===e&&(e=i?"show":"hide"),(i?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var i,s;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=t[1]/e.width}return{x:s,y:i}},createPlaceholder:function(i){var s,n=i.css("position"),o=i.position();return i.css({marginTop:i.css("marginTop"),marginBottom:i.css("marginBottom"),marginLeft:i.css("marginLeft"),marginRight:i.css("marginRight")}).outerWidth(i.outerWidth()).outerHeight(i.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",s=t("<"+i[0].nodeName+">").insertAfter(i).css({display:/^(inline|ruby)/.test(i.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:i.css("marginTop"),marginBottom:i.css("marginBottom"),marginLeft:i.css("marginLeft"),marginRight:i.css("marginRight"),"float":i.css("float")}).outerWidth(i.outerWidth()).outerHeight(i.outerHeight()).addClass("ui-effects-placeholder"),i.data(e+"placeholder",s)),i.css({position:n,left:o.left,top:o.top}),s},removePlaceholder:function(t){var i=e+"placeholder",s=t.data(i);s&&(s.remove(),t.removeData(i))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,i,s,n){return n=n||{},t.each(i,function(t,i){var o=e.cssUnit(i);o[0]>0&&(n[i]=o[0]*s+o[1])}),n}}),t.fn.extend({effect:function(){function e(e){function n(){l.removeData(s),t.effects.cleanUp(l),"hide"===i.mode&&l.hide(),r()}function r(){t.isFunction(h)&&h.call(l[0]),t.isFunction(e)&&e()}var l=t(this);i.mode=u.shift(),t.uiBackCompat===!1||a?"none"===i.mode?(l[c](),r()):o.call(l[0],i,n):(l.is(":hidden")?"hide"===c:"show"===c)?(l[c](),r()):o.call(l[0],i,r)}var i=n.apply(this,arguments),o=t.effects.effect[i.effect],a=o.mode,r=i.queue,l=r||"fx",h=i.complete,c=i.mode,u=[],d=function(e){var i=t(this),n=t.effects.mode(i,c)||a;i.data(s,!0),u.push(n),a&&("show"===n||n===a&&"hide"===n)&&i.show(),a&&"none"===n||t.effects.saveStyle(i),t.isFunction(e)&&e()};return t.fx.off||!o?c?this[c](i.duration,h):this.each(function(){h&&h.call(this)}):r===!1?this.each(d).each(e):this.queue(l,d).queue(l,e)},show:function(t){return function(e){if(o(e))return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="show",this.effect.call(this,i)}}(t.fn.show),hide:function(t){return function(e){if(o(e))return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="hide",this.effect.call(this,i)}}(t.fn.hide),toggle:function(t){return function(e){if(o(e)||"boolean"==typeof e)return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="toggle",this.effect.call(this,i)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),s=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(s=[parseFloat(i),e])}),s},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):a(this.css("clip"),this)},transfer:function(e,i){var s=t(this),n=t(e.to),o="fixed"===n.css("position"),a=t("body"),r=o?a.scrollTop():0,l=o?a.scrollLeft():0,h=n.offset(),c={top:h.top-r,left:h.left-l,height:n.innerHeight(),width:n.innerWidth()},u=s.offset(),d=t("
").appendTo("body").addClass(e.className).css({top:u.top-r,left:u.left-l,height:s.innerHeight(),width:s.innerWidth(),position:o?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){d.remove(),t.isFunction(i)&&i()})}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=a(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}})}(),t.effects,t.effects.define("fade","toggle",function(e,i){var s="show"===e.mode;t(this).css("opacity",s?0:1).animate({opacity:s?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("slide","show",function(e,i){var s,n,o=t(this),a={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},r=e.mode,l=e.direction||"left",h="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l,u=e.distance||o["top"===h?"outerHeight":"outerWidth"](!0),d={};t.effects.createPlaceholder(o),s=o.cssClip(),n=o.position()[h],d[h]=(c?-1:1)*u+n,d.clip=o.cssClip(),d.clip[a[l][1]]=d.clip[a[l][0]],"show"===r&&(o.cssClip(d.clip),o.css(h,d[h]),d.clip=s,d[h]=n),o.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:i})})}); + +/*! Hammer.JS - v2.0.8 - 2016-04-23 + * http://hammerjs.github.io/ + * + * Copyright (c) 2016 Jorik Tangelder; + * Licensed under the MIT license */ +!function(a,b,c,d){"use strict";function e(a,b,c){return setTimeout(j(a,c),b)}function f(a,b,c){return Array.isArray(a)?(g(a,c[b],c),!0):!1}function g(a,b,c){var e;if(a)if(a.forEach)a.forEach(b,c);else if(a.length!==d)for(e=0;e\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",f=a.console&&(a.console.warn||a.console.log);return f&&f.call(a.console,e,d),b.apply(this,arguments)}}function i(a,b,c){var d,e=b.prototype;d=a.prototype=Object.create(e),d.constructor=a,d._super=e,c&&la(d,c)}function j(a,b){return function(){return a.apply(b,arguments)}}function k(a,b){return typeof a==oa?a.apply(b?b[0]||d:d,b):a}function l(a,b){return a===d?b:a}function m(a,b,c){g(q(b),function(b){a.addEventListener(b,c,!1)})}function n(a,b,c){g(q(b),function(b){a.removeEventListener(b,c,!1)})}function o(a,b){for(;a;){if(a==b)return!0;a=a.parentNode}return!1}function p(a,b){return a.indexOf(b)>-1}function q(a){return a.trim().split(/\s+/g)}function r(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;dc[b]}):d.sort()),d}function u(a,b){for(var c,e,f=b[0].toUpperCase()+b.slice(1),g=0;g1&&!c.firstMultiple?c.firstMultiple=D(b):1===e&&(c.firstMultiple=!1);var f=c.firstInput,g=c.firstMultiple,h=g?g.center:f.center,i=b.center=E(d);b.timeStamp=ra(),b.deltaTime=b.timeStamp-f.timeStamp,b.angle=I(h,i),b.distance=H(h,i),B(c,b),b.offsetDirection=G(b.deltaX,b.deltaY);var j=F(b.deltaTime,b.deltaX,b.deltaY);b.overallVelocityX=j.x,b.overallVelocityY=j.y,b.overallVelocity=qa(j.x)>qa(j.y)?j.x:j.y,b.scale=g?K(g.pointers,d):1,b.rotation=g?J(g.pointers,d):0,b.maxPointers=c.prevInput?b.pointers.length>c.prevInput.maxPointers?b.pointers.length:c.prevInput.maxPointers:b.pointers.length,C(c,b);var k=a.element;o(b.srcEvent.target,k)&&(k=b.srcEvent.target),b.target=k}function B(a,b){var c=b.center,d=a.offsetDelta||{},e=a.prevDelta||{},f=a.prevInput||{};b.eventType!==Ea&&f.eventType!==Ga||(e=a.prevDelta={x:f.deltaX||0,y:f.deltaY||0},d=a.offsetDelta={x:c.x,y:c.y}),b.deltaX=e.x+(c.x-d.x),b.deltaY=e.y+(c.y-d.y)}function C(a,b){var c,e,f,g,h=a.lastInterval||b,i=b.timeStamp-h.timeStamp;if(b.eventType!=Ha&&(i>Da||h.velocity===d)){var j=b.deltaX-h.deltaX,k=b.deltaY-h.deltaY,l=F(i,j,k);e=l.x,f=l.y,c=qa(l.x)>qa(l.y)?l.x:l.y,g=G(j,k),a.lastInterval=b}else c=h.velocity,e=h.velocityX,f=h.velocityY,g=h.direction;b.velocity=c,b.velocityX=e,b.velocityY=f,b.direction=g}function D(a){for(var b=[],c=0;ce;)c+=a[e].clientX,d+=a[e].clientY,e++;return{x:pa(c/b),y:pa(d/b)}}function F(a,b,c){return{x:b/a||0,y:c/a||0}}function G(a,b){return a===b?Ia:qa(a)>=qa(b)?0>a?Ja:Ka:0>b?La:Ma}function H(a,b,c){c||(c=Qa);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return Math.sqrt(d*d+e*e)}function I(a,b,c){c||(c=Qa);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*Math.atan2(e,d)/Math.PI}function J(a,b){return I(b[1],b[0],Ra)+I(a[1],a[0],Ra)}function K(a,b){return H(b[0],b[1],Ra)/H(a[0],a[1],Ra)}function L(){this.evEl=Ta,this.evWin=Ua,this.pressed=!1,x.apply(this,arguments)}function M(){this.evEl=Xa,this.evWin=Ya,x.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function N(){this.evTarget=$a,this.evWin=_a,this.started=!1,x.apply(this,arguments)}function O(a,b){var c=s(a.touches),d=s(a.changedTouches);return b&(Ga|Ha)&&(c=t(c.concat(d),"identifier",!0)),[c,d]}function P(){this.evTarget=bb,this.targetIds={},x.apply(this,arguments)}function Q(a,b){var c=s(a.touches),d=this.targetIds;if(b&(Ea|Fa)&&1===c.length)return d[c[0].identifier]=!0,[c,c];var e,f,g=s(a.changedTouches),h=[],i=this.target;if(f=c.filter(function(a){return o(a.target,i)}),b===Ea)for(e=0;e-1&&d.splice(a,1)};setTimeout(e,cb)}}function U(a){for(var b=a.srcEvent.clientX,c=a.srcEvent.clientY,d=0;d=f&&db>=g)return!0}return!1}function V(a,b){this.manager=a,this.set(b)}function W(a){if(p(a,jb))return jb;var b=p(a,kb),c=p(a,lb);return b&&c?jb:b||c?b?kb:lb:p(a,ib)?ib:hb}function X(){if(!fb)return!1;var b={},c=a.CSS&&a.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(d){b[d]=c?a.CSS.supports("touch-action",d):!0}),b}function Y(a){this.options=la({},this.defaults,a||{}),this.id=v(),this.manager=null,this.options.enable=l(this.options.enable,!0),this.state=nb,this.simultaneous={},this.requireFail=[]}function Z(a){return a&sb?"cancel":a&qb?"end":a&pb?"move":a&ob?"start":""}function $(a){return a==Ma?"down":a==La?"up":a==Ja?"left":a==Ka?"right":""}function _(a,b){var c=b.manager;return c?c.get(a):a}function aa(){Y.apply(this,arguments)}function ba(){aa.apply(this,arguments),this.pX=null,this.pY=null}function ca(){aa.apply(this,arguments)}function da(){Y.apply(this,arguments),this._timer=null,this._input=null}function ea(){aa.apply(this,arguments)}function fa(){aa.apply(this,arguments)}function ga(){Y.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ha(a,b){return b=b||{},b.recognizers=l(b.recognizers,ha.defaults.preset),new ia(a,b)}function ia(a,b){this.options=la({},ha.defaults,b||{}),this.options.inputTarget=this.options.inputTarget||a,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=a,this.input=y(this),this.touchAction=new V(this,this.options.touchAction),ja(this,!0),g(this.options.recognizers,function(a){var b=this.add(new a[0](a[1]));a[2]&&b.recognizeWith(a[2]),a[3]&&b.requireFailure(a[3])},this)}function ja(a,b){var c=a.element;if(c.style){var d;g(a.options.cssProps,function(e,f){d=u(c.style,f),b?(a.oldCssProps[d]=c.style[d],c.style[d]=e):c.style[d]=a.oldCssProps[d]||""}),b||(a.oldCssProps={})}}function ka(a,c){var d=b.createEvent("Event");d.initEvent(a,!0,!0),d.gesture=c,c.target.dispatchEvent(d)}var la,ma=["","webkit","Moz","MS","ms","o"],na=b.createElement("div"),oa="function",pa=Math.round,qa=Math.abs,ra=Date.now;la="function"!=typeof Object.assign?function(a){if(a===d||null===a)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(a),c=1;ch&&(b.push(a),h=b.length-1):e&(Ga|Ha)&&(c=!0),0>h||(b[h]=a,this.callback(this.manager,e,{pointers:b,changedPointers:[a],pointerType:f,srcEvent:a}),c&&b.splice(h,1))}});var Za={touchstart:Ea,touchmove:Fa,touchend:Ga,touchcancel:Ha},$a="touchstart",_a="touchstart touchmove touchend touchcancel";i(N,x,{handler:function(a){var b=Za[a.type];if(b===Ea&&(this.started=!0),this.started){var c=O.call(this,a,b);b&(Ga|Ha)&&c[0].length-c[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:za,srcEvent:a})}}});var ab={touchstart:Ea,touchmove:Fa,touchend:Ga,touchcancel:Ha},bb="touchstart touchmove touchend touchcancel";i(P,x,{handler:function(a){var b=ab[a.type],c=Q.call(this,a,b);c&&this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:za,srcEvent:a})}});var cb=2500,db=25;i(R,x,{handler:function(a,b,c){var d=c.pointerType==za,e=c.pointerType==Ba;if(!(e&&c.sourceCapabilities&&c.sourceCapabilities.firesTouchEvents)){if(d)S.call(this,b,c);else if(e&&U.call(this,c))return;this.callback(a,b,c)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var eb=u(na.style,"touchAction"),fb=eb!==d,gb="compute",hb="auto",ib="manipulation",jb="none",kb="pan-x",lb="pan-y",mb=X();V.prototype={set:function(a){a==gb&&(a=this.compute()),fb&&this.manager.element.style&&mb[a]&&(this.manager.element.style[eb]=a),this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return g(this.manager.recognizers,function(b){k(b.options.enable,[b])&&(a=a.concat(b.getTouchAction()))}),W(a.join(" "))},preventDefaults:function(a){var b=a.srcEvent,c=a.offsetDirection;if(this.manager.session.prevented)return void b.preventDefault();var d=this.actions,e=p(d,jb)&&!mb[jb],f=p(d,lb)&&!mb[lb],g=p(d,kb)&&!mb[kb];if(e){var h=1===a.pointers.length,i=a.distance<2,j=a.deltaTime<250;if(h&&i&&j)return}return g&&f?void 0:e||f&&c&Na||g&&c&Oa?this.preventSrc(b):void 0},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault()}};var nb=1,ob=2,pb=4,qb=8,rb=qb,sb=16,tb=32;Y.prototype={defaults:{},set:function(a){return la(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(f(a,"recognizeWith",this))return this;var b=this.simultaneous;return a=_(a,this),b[a.id]||(b[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return f(a,"dropRecognizeWith",this)?this:(a=_(a,this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(f(a,"requireFailure",this))return this;var b=this.requireFail;return a=_(a,this),-1===r(b,a)&&(b.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(f(a,"dropRequireFailure",this))return this;a=_(a,this);var b=r(this.requireFail,a);return b>-1&&this.requireFail.splice(b,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function b(b){c.manager.emit(b,a)}var c=this,d=this.state;qb>d&&b(c.options.event+Z(d)),b(c.options.event),a.additionalEvent&&b(a.additionalEvent),d>=qb&&b(c.options.event+Z(d))},tryEmit:function(a){return this.canEmit()?this.emit(a):void(this.state=tb)},canEmit:function(){for(var a=0;af?Ja:Ka,c=f!=this.pX,d=Math.abs(a.deltaX)):(e=0===g?Ia:0>g?La:Ma,c=g!=this.pY,d=Math.abs(a.deltaY))),a.direction=e,c&&d>b.threshold&&e&b.direction},attrTest:function(a){return aa.prototype.attrTest.call(this,a)&&(this.state&ob||!(this.state&ob)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var b=$(a.direction);b&&(a.additionalEvent=this.options.event+b),this._super.emit.call(this,a)}}),i(ca,aa,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[jb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&ob)},emit:function(a){if(1!==a.scale){var b=a.scale<1?"in":"out";a.additionalEvent=this.options.event+b}this._super.emit.call(this,a)}}),i(da,Y,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[hb]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distanceb.time;if(this._input=a,!d||!c||a.eventType&(Ga|Ha)&&!f)this.reset();else if(a.eventType&Ea)this.reset(),this._timer=e(function(){this.state=rb,this.tryEmit()},b.time,this);else if(a.eventType&Ga)return rb;return tb},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===rb&&(a&&a.eventType&Ga?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=ra(),this.manager.emit(this.options.event,this._input)))}}),i(ea,aa,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[jb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&ob)}}),i(fa,aa,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Na|Oa,pointers:1},getTouchAction:function(){return ba.prototype.getTouchAction.call(this)},attrTest:function(a){var b,c=this.options.direction;return c&(Na|Oa)?b=a.overallVelocity:c&Na?b=a.overallVelocityX:c&Oa&&(b=a.overallVelocityY),this._super.attrTest.call(this,a)&&c&a.offsetDirection&&a.distance>this.options.threshold&&a.maxPointers==this.options.pointers&&qa(b)>this.options.velocity&&a.eventType&Ga},emit:function(a){var b=$(a.offsetDirection);b&&this.manager.emit(this.options.event+b,a),this.manager.emit(this.options.event,a)}}),i(ga,Y,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ib]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance
\n
    " + pages + "
\n
    " + user + "
"); + var username = "%%USERNAME%%"; + var menucolor = $('.navbar').css('background-color'); + var textcolor = $('.navbar .navbar-nav > li > a').css('color'); + var logo = "%%LOGO%%"; + $('body').append("
" + username + "
\n
    " + pages + "
"); + $('body').append("
"); + + $('button.navbar-toggle[data-toggle="collapse"]').click(togglemenu); + + $('#swipe-shader').click(togglemenu); + + Hammer(document.body).on("swiperight", function (e) { + var endPoint = e.pointers[0].pageX; + var distance = e.distance; + var origin = endPoint - distance; + if (origin <= 25) { + openmenu(); + } + }); + + Hammer(document.body).on("swipeleft", function (e) { + closemenu(); + }); +}); \ No newline at end of file diff --git a/www/views/app.html b/www/views/app.html new file mode 100644 index 0000000..0f8a02c --- /dev/null +++ b/www/views/app.html @@ -0,0 +1,35 @@ + + + + \ No newline at end of file diff --git a/www/views/home.html b/www/views/home.html index e69de29..3bb7137 100644 --- a/www/views/home.html +++ b/www/views/home.html @@ -0,0 +1,39 @@ +
+
+
+ +
+
+ + \ No newline at end of file diff --git a/www/views/setup.html b/www/views/setup.html deleted file mode 100644 index ec883b7..0000000 --- a/www/views/setup.html +++ /dev/null @@ -1,45 +0,0 @@ -
-
-

Setup

-
-
-

Welcome! There's a few things we need to do to get everything ready.

- -
- -
-
- -
- - \ No newline at end of file diff --git a/www/views/setup/step1.html b/www/views/setup/step1.html deleted file mode 100644 index 1a9d44a..0000000 --- a/www/views/setup/step1.html +++ /dev/null @@ -1,24 +0,0 @@ -

- Step One -
- Enter the Portal API connection URL. If you don't know this, contact your - technical support for assistance. -

- - - - \ No newline at end of file diff --git a/www/views/setup1.html b/www/views/setup1.html new file mode 100644 index 0000000..d2df12c --- /dev/null +++ b/www/views/setup1.html @@ -0,0 +1,60 @@ +
+
+
+

Setup

+
+
+

Welcome! There's a few things we need to do to get everything ready. +

+ Open Portal on another device and go to your account settings. Generate a mobile sync code, then press the button below to scan it. +

+
Scan Code
+
+
+ + \ No newline at end of file diff --git a/www/views/setup2.html b/www/views/setup2.html new file mode 100644 index 0000000..53bea3b --- /dev/null +++ b/www/views/setup2.html @@ -0,0 +1,37 @@ +
+
+
+

Setup

+
+
+

Almost done! +

+ Please enter your password, then press Finish. +

+ +
+
Finish
+
+
+ + \ No newline at end of file