Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Remove dependency artifacts and update docs

Jo Spragueae3461bbb200
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index b91e390ed..6fe52107d 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -24,6 +24,22 @@ If you want to submit your own contributions, follow these steps;
We ask that you follow these guidelines with your contributions;
+### Style Guidelines
+
+Please lint your code with `npm run lint`. Our style rules are defined in `.stylelintrc` and `.eslintrc`. We follow a modified version of [Standard JS](https://github.com/standard), with semi-colons. You can install linting plugins in your editor to check against our style guides automatically:
+
+#### Atom
+
+* [AtomLinter](https://atomlinter.github.io/)
+* [`linter-eslint`](https://atom.io/packages/linter-eslint)
+* [`linter-stylelint`](https://atom.io/packages/linter-stylelint)
+
+#### Sublime
+
+* [SublimeLinter](http://www.sublimelinter.com/en/latest/)
+* [`SublimeLinter-eslint`](https://github.com/roadhump/SublimeLinter-eslint)
+* [`SublimeLinter-contrib-stylelint`](https://github.com/kungfusheep/SublimeLinter-contrib-stylelint)
+
### Unit Tests
All of the unit tests for this project need to pass before your submission will be accepted. You can run `npm test` in the command line after making changes to verify that the tests pass. If you add new functionality, please consider adding tests for that functionality as well.
diff --git a/README.md b/README.md
index 924f5e048..7ca65e2c6 100644
--- a/README.md
+++ b/README.md
@@ -122,10 +122,8 @@ git clone https://github.com/nasa-gibs/worldview-options-eosdis.git options
* [Optional Features](doc/features.md)
* [Configuration](doc/config.md)
* [Development Notes](doc/developing.md)
-* [Coding Style Guide](doc/style_guide.md)
* [Testing](doc/testing.md)
* [Project Roadmap](https://github.com/nasa-gibs/worldview/projects/7)
-* [Third-Party Library Use](THIRD_PARTY.md)
## Contributing
diff --git a/THIRD_PARTY.md b/THIRD_PARTY.md
deleted file mode 100644
index 7464a28d7..000000000
--- a/THIRD_PARTY.md
+++ /dev/null
@@ -1,137 +0,0 @@
-# Acknowledgement of Open Source Libraries
-
-## jQuery: A fast, small, and feature-rich JavaScript library
-
-* [http://jquery.com/](http://jquery.com/)
-* [http://jqueryui.com/](http://jqueryui.com/)
-* [https://github.com/jquery/jquery](https://github.com/jquery/jquery)
-* [https://github.com/jquery/jquery-ui](https://github.com/jquery/jquery-ui)
-
-You may use any jQuery project under the terms of the MIT License.
-Copyright © 2013 jQuery Foundation and other contributors
-
-## OpenLayers: Free Maps for the Web
-
-* [http://openlayers.org/](http://openlayers.org/)
-* [https://github.com/openlayers/openlayers](https://github.com/openlayers/openlayers)
-
-OpenLayers is a JavaScript library for building map applications on the web.
-OpenLayers is made available under a BSD-license.
-Copyright © 2005-2013 OpenLayers Contributors.
-
-## Proj4js
-
-* [http://trac.osgeo.org/proj4js](http://trac.osgeo.org/proj4js)
-* [https://github.com/proj4js/proj4js](https://github.com/proj4js/proj4js)
-
-Licensed under an MIT style license.
-Copyright © 2012, Mike Adair, Richard Greenwood, Didier Richard, Stephen
-Irons and Olivier Terral
-
-## MobiScroll: the date scroller on mobile
-
-[http://mobiscroll.com](http://mobiscroll.com)
-
-Licensed under MIT license. Copyright © 2013 Acid Media
-
-"The Date & Time Scroller, Select, Image & Text and Treelist Scrollers are
-under the MIT License and are free to use."
-
-## Jcrop: The jQuery Image Cropping Plugin
-
-* [http://deepliquid.com/content/Jcrop.html](http://deepliquid.com/content/Jcrop.html)
-* [http://github.com/tapmodo/Jcrop](http://github.com/tapmodo/Jcrop)
-
-Jcrop is free software under MIT License.
-Copyright © 2008-2012 Tapmodo Interactive LLC.
-
-## jScrollPane: Cross browser styleable scrollbars with jQuery and CSS
-
-* [http://jscrollpane.kelvinluck.com/](http://jscrollpane.kelvinluck.com/)
-* [https://github.com/vitch/jScrollPane](https://github.com/vitch/jScrollPane)
-
-"jScrollPane is a personal project that is open source for anybody to use as
-they want to."
-
-
-## JoyRide: Create jQuery Feature Tours in a Breeze
-
-* [http://www.zurb.com/playground/jquery-joyride-feature-tour-plugin](http://www.zurb.com/playground/jquery-joyride-feature-tour-plugin)
-* [https://github.com/zurb/joyride](https://github.com/zurb/joyride)
-
-Joyride is MIT-licensed and absolutely free to use.
-
-## Perceptually Balanced Rainbow Palette (cube YF) from MyCarta / Matteo Niccoli
-
-[http://mycarta.wordpress.com/2013/02/21/perceptual-rainbow-palette-the-method/](http://mycarta.wordpress.com/2013/02/21/perceptual-rainbow-palette-the-method/)
-
-"Go ahead if you want to use my code, modify it, improve it, for non-commercial
-AND for commercial use."
-
-## Lo-Dash
-
-* [http://lodash.com](http://lodash.com)
-* [https://github.com/lodash/lodash](https://github.com/lodash/lodash)
-
-Licensed under the MIT license.
-Copyright © 2012-2014 The Dojo Foundation
-[http://dojofoundation.org](http://dojofoundation.org)
-
-## JavaScript LRU Cache
-
-[https://github.com/monsur/jscache](https://github.com/monsur/jscache)
-
-Licensed under the MIT license.
-Copyright © 2007 Monsur Hossain
-
-# Licenses
-
-## MIT License
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
-## OpenLayers BSD License
-
-Copyright © 2005-2013 OpenLayers Contributors. All rights reserved.
-See authors.txt for full list.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice,
-this list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright notice,
-this list of conditions and the following disclaimer in the documentation
-and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY OPENLAYERS CONTRIBUTORS ``AS IS'' AND ANY EXPRESS
-OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
-EVENT SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-The views and conclusions contained in the software and documentation are
-those of the authors and should not be interpreted as representing official
-policies, either expressed or implied, of OpenLayers Contributors.
diff --git a/doc/developing.md b/doc/developing.md
index ab582aca0..70f8349d8 100644
--- a/doc/developing.md
+++ b/doc/developing.md
@@ -1,156 +1,53 @@
-## Development
+# Developing
-*Please Note*: There is little to no documentation at this time and any
-comments in the code may be out of date.
+## npm scripts
-### Minification of CSS and JavaScript files
+This project uses npm to run build scripts and other tasks. Here are the essential scripts;
-The build script needs to know which files to minify and the correct order used
-to concatenate. Anytime a CSS or JavaScript file is added. renamed, or removed,
-the following files must be updated:
+`npm start`: Starts the app for local development. More specifically, starts a web server that serves the contents of the `/web` directory.
-* ``etc/deploy/wv.css.json``
-* ``etc/deploy/wv.js.json``
+`npm test`: Runs all tests and linting to verify code quality.
-To ensure that references to the unminified value are removed in the production
-version, prefix all CSS or JavaScript link tags with
+`npm run lint`: Lints code against the project's style guides. Use `npm run lint:css` or `npm run lint:js` to lint CSS or JS files separately.
- <!-- link.dev -->
+`npm run e2e`: Runs end-to-end tests locally. Use `npm run e2e:chrome` or `npm run e2e:firefox` to run tests in a specific browser.
-If there are some CSS or JavaScript files that must be available in
-non-concatenated form, add exceptions in the ``remove:source`` task in
-``Gruntfile.js``
+`npm run browserstack`: Runs end-to-end test on Browserstack.
-## Syncing with remote branch
-Update packages that may have been adjusted since your last pull
+`npm build`: Creates JS and CSS bundles from the source and places them in `/web/build`. Use `npm run build:js` or `npm run build:css` to build JS or CSS individually.
- grunt update-packages
+These scripts are also available;
-## Naming and Versioning
+`npm run report`: Generates a readable HTML report with the results of the last end-to-end test.
-The ``options.json`` file contains the name, version, and release number
-that is used when building the deployment packages. The name can be changed
-to allow side-by-side deployments of different branches. Executing:
+`npm run preinstall`: Checks to see if your installed version of Node matches the recommended version for Worldview.
- grunt
+## Grunt tasks
-also creates distribution tarballs in the dist directory. Three "unversioned"
-files are generated:
+We're in the process of replacing our Grunt tasks with npm scripts, but here are the Grunt build scripts that are available. Note, these are poorly documented and you should use caution when running these scripts if you don't know what you're doing. Your mileage may vary when running scripts marked with a `*` by themselves.
-* ``dist/worldview.tar.bz2``
-* ``dist/worldview-debug.tar.bz2``
-* ``dist/worldview-doc.tar.bz2``
+`grunt`: The default Grunt task runs all of the scripts necessary to generate a build. Among other things, it updates Python dependencies, applies branding and other configuration options, compiles assets and generates build artifacts in `/build` and `/dist`. The default Grunt task does not run tests.
-Three "versioned" files are also generated in the form of:
+`grunt test`: Runs Buster integration tests.
-* ``dist/<name>-<version>-<release>.git<revision>.tar.bz2``
+`grunt config`* : Updates branding and configuration options.
-Where ``name``, ``version``, ``release`` are the values found in the
-``package.json`` file and ``revision`` is the value from:
+`grunt site`* : Generates build assets for deployment.
- git rev-parse --short HEAD
+`grunt fetch`* : Makes a request to the GIBS `GetCapabilities` API and updates layer configurations.
-The ``options.json`` file in the repository root is copied from the
-active brand directory. To make changes, edit the official copy in the
-brand directory.
+`grunt build`* : Generates build assets.
+`grunt lint`: Lints JavaScript files
-## Grunt Targets
+`grunt check`: Runs `grunt test` and `grunt lint`.
-These additional grunt targets are available.
+`grunt distclean`: Removes build artifacts in `/build` and `/dist`.
-### Sync runtime node modules
+`grunt clean`: Removes build artifacts in `/build`.
-Any new update to runtime npm modules, by such means as 'npm install', 'npm update', or a version change in package.json will need to be synced to the web directory:
+`grunt update-packages`: Updates Python dependencies.
- grunt update
+`grunt rpm-only`: Creates an RPM on CentOS 6 and places it in the `/dist` directory.
-### Branding
-
-Any changes to the brading directories need to be applied to the source
-tree to take effect:
-
- grunt brand
-
-### Edit Libraries and sync changes on save
-
-Make edits to node_modules that are [npm linked](https://docs.npmjs.com/cli/link) and have them relocate to the web directory automatically.
-
- grunt watch
-
-### Configuration
-
-The Worldivew configuration file is generated by concatenating all files
-in ``conf/web``
-
-To regenerate the master configuration file in the source tree after making
-an edit, issue the following command:
-
- grunt config
-
-
-### Autoprefix CSS
-
-Parse all CSS files and automatically add vendor prefixes to CSS rules using values from Can I Use.
-
-Run autoprefix with the following:
-
- grunt autoprefix
-
-
-### Linting
-
-Check for common errors in the JavaScript and CSS files with:
-
- grunt lint
-
-[eslint](http://eslint.org) is used for JavaScript linting.
-Run the following to check only check Javascript errors:
-
- grunt eslint
-
-[stylelint](https://stylelint.io) is used for CSS linting.
-Run the following to checkout only CSS errors:
-
- grunt stylelint
-
-Run the following to automatically fix stylelint errors:
-
- grunt stylefmt
-
-### Documentation
-
-Documentation can be built separately with:
-
- grunt doc
-
-### Unit Tests
-
-Run unit test with the following:
-
- grunt test
-
-This uses BusterJS with PhantomJS for headless browser testing. To test in an
-actual browser which is quicker, install the Buster command line tools
-with:
-
- sudo npm install --global buster-cli
-
-For static testing like QUnit, run the following and navigate the web browser
-to the address shown:
-
- buster-static
-
-For browser capturing, run the following and navigate the web browser to
-the address shown:
-
- buster-server
-
-
-### RPM
-
-To create an RPM on CentOS 6, issue the following:
-
- grunt rpm-only
-
-Built RPMs will be found in the ``dist`` directory.
+`grunt apache-config`* : Generates `/dist/worldview.conf` for deployment to an Apache server.
diff --git a/doc/style_guide.md b/doc/style_guide.md
deleted file mode 100644
index 04312a03d..000000000
--- a/doc/style_guide.md
+++ /dev/null
@@ -1,151 +0,0 @@
-# Developer Guide
-
-This document is an attempt to normalize the code.
-
-## Writing code
-
-### CSS
-
-We use stylelint to enforce our CSS code standards. You can run `grunt stylelint` to check your CSS code. CSS that does not adhere to our standards will not pass the Travis CI build. Please use a linter while developing to catch any issues as they occur. We provide a style format development tool via `grunt stylefmt` to auto-correct CSS issues. All css lint rules are located in a [.stylelintrc](https://github.com/nasa-gibs/worldview/blob/development/.stylelintrc) file in the project root.
-
-#### Main Focus
-* CSS should be written in a clean, consistent, cascading manner with equal spaced rules and properties.
-* **Class based cascading specificity.** ID and chained type selectors (i.e. span.icon) are highly discouraged and will be forbidden in the future.
-* Do no over comment the code; comments are not allowed in rules
-
-#### Syntax
-* Always use 2 space indenting
-* Always use a newline for multiple selectors
-* Always use 1 space before the opening bracket
-* Always use a newline after the opening bracket
-* Always use a newline after closing bracket
-* Never use spaces between function brackets (i.e. url('here.gif');)
-* Never use spaces before semicolons or commas
-* Always use 1 space after commas
-* Operators must use spaces (i.e. `this + that`)
-* Single or double quotations can be used for strings
-* Never use a newline between strings
-* Always use lowercase
-* Never leave end of line whitespace
-* Always include an end of file newline
-
-#### Rules
-* Rules must be followed by a newline
-* Only 1 newline between rules
-* No empty rules allowed
-
-#### At rules
-* Only the following at-rules are allowed: "media", "charset", "font-face"
-* **No import rules.** If you want to add a css file, include it via a def link in the [index.html](https://github.com/nasa-gibs/worldview/blob/development/web/index.html), then add it to the [wv.css.json](https://github.com/nasa-gibs/worldview/blob/master/deploy/wv.css.json) file.
-* At media rules should always be on a single line and should not contain spaces between parentheses
-
-#### Selectors
-* Use class selectors. ID and type chained selectors will be forbidden in the future. (i.e. `#foo, div.bar`)
-* Selectors can be 5 levels deep max: (i.e. `div .bar[data-val] > a.baz + .boom > #lorem {}`)
- Universal selectors should be avoided. Only 1 universal selector is allowed per rule.
-* No duplicate selectors allowed. i.e (`.foo {} .bar {} .foo {}`)
-* Selector pseudo classes use a single colon (i.e. `.foo:focus`), pseudo elements use a double colon (i.e. `.foo::before`)
-* A maximum of 2 selectors can be used (i.e. [type="text"][disabled])
-
-#### Properties
-* Only use [known properties](https://github.com/betit/known-css-properties#source)
-* No duplicate properties (except beside each other for fallbacks)
-* No redundant values when using shorthand properties (i.e. `margin: 1px 1px 1px 1px;` should be `margin: 1px;`)
-* If a combination of properties have a shorthand, the shorthand version must be used (i.e. `.foo { padding-top: 1px; padding-right: 2px; padding-bottom: 3px; padding-left: 4px; }` should be `.foo { padding: 1px 2px 3px 4px; }`)
-* Always use shorthand properties first. (i.e. `background: #000; background-repeat: repeat;` _the reverse would be incorrect_)
-
-#### Fonts
-* Only use font-families defined in `fonts.css`. Currently this includes `"Open Sans"` and `"Roboto Mono"`
-* Use proper font fallbacks (i.e. a sans-serif font like `"Open Sans"` would fall back to `sans-serif`)
-* Don't declare duplicate font-family names in properties.
-* Always use quotes around fonts unless it is a keyword font (i.e. font-family: "Times New Roman", "Times", serif;). Single or double quotes can be used.
-* Font weights must always be specified in numeric format. (i.e. `font-weight: 700;` instead of `font-weight: bold;` / `font-weight: 400;` instead of `font-weight: normal;`)
-
-#### Colors
-* Never use named colors. Use only valid hexadecimal or rgb / rgba colors instead.
-* A shorthand hexadecimal value must be used if applicable (i.e. #000000 should be #000).
-
-#### Units
-* Always use `px` units
-* Units not allowed: `c`, `ex`, `in`, `mm`, `pc`, `pt`, `rem`, `vh`, `vmin`, `vw`
-* Avoid using `em` units as these will be forbidden in the future.
-* `0px` zero units must be `0`
-* `%` units can have a max precision of 6 (i.e. 0.666667%); all other units, must be a precision of 1. (i.e. 9.5px)
-* Always include leading zeros. (i.e. `.5%` should be `0.5%`)
-* Never include trailing zeros (i.e. `1.0px` should be `1px`)
-
-#### Comments
-* An empty line must always come before a comment, except on the first line of a file.
-* Multiline comments are acceptable
-* js style (//) comments are forbidden
-* Comments must include a space at the beginning
-* Comments cannot be inside rules
-* Comments must come directly before a rule with no newlines in between
-
-#### Example
-```css
-/* There must always be an empty line before a comment, except on the first line of a file. */
-
-/* Rules must be followed by a newline */
-h1,
-.h1 {
- font-size: 16px; /* Only use px units */
- line-height: 0; /* When a zero unit is present you must use 0, not 0px */
-}
-
-
-/* Only 1 newline after rules; the above would be incorrect */
-.main { /* No empty rules allowed */
-}
-
-.main .subclass {
- background: #fff; /* shorthand color, hex only no color names */
-}
-
-.main .subclass::before { /* pseudo elements use 2 colons */
- content: url('smiley.gif'); /* no spacing in url (either quote type is fine) */
-}
-
-.main .subclass:hover { /* pseudo classes use 1 colon */
- background: #ccc;
-}
-
-.main .subclass:hover::before {
- content: '';
-}
-
-.main .subclass .title {
- font-family: "Open Sans", sans-serif;
- font-weight: 400;
-}
-
-@media only screen and (min-width: 740px) {
- .main .subclass {
- display: none;
- }
-}
-
-```
-
-### JavaScript
-
-* Functions should be pure when possible; pass parameters that are used to return a result
-
-```js
-function getWordArray(str) {
- return str.split(' ');
-}
-```
-* Keep variable declaration at the top of the scope to be a more literal representation of where variables are declared
-
-```js
-function varDeclare() {
- var all, variables, here;
-
- // then do something with vars
-}
-```
-* If a variable is a jQuery object use a $ at the start of the variable
-` var $element = $('#some_element');`
-* Use camelback notation
-` var camelBack = 'First world lowercase, following words uppercase';`
diff --git a/lib/joyride-2.0.3-3/Gruntfile.js b/lib/joyride-2.0.3-3/Gruntfile.js
deleted file mode 100644
index e9909c4cd..000000000
--- a/lib/joyride-2.0.3-3/Gruntfile.js
+++ /dev/null
@@ -1,62 +0,0 @@
-module.exports = function(grunt) {
-
- var name = "joyride";
- var version = "2.0.3-3";
- var base = "tour";
-
- var lib = "lib/" + name + "-" + version + "/";
- var ext = "web/ext/" + base + "/" + name + "-" + version + "/";
- var debug_js = ext + name + ".js";
- var debug_css = ext + name + ".css";
- var min_js = ext + name + ".min.js";
- var min_css = ext + name + ".min.css";
-
- var css = [
- lib + "joyride.css"
- ];
-
- var js = [
- lib + "jquery.cookie.js",
- lib + "jquery.joyride.js",
- lib + "modernizr.mq.js"
- ];
-
- var uglifyFiles = {};
- uglifyFiles[min_js] = [debug_js];
-
- var cssminFiles = {};
- cssminFiles[min_css] = [debug_css];
-
- grunt.initConfig({
- concat: {
- js: {
- src: js,
- dest: debug_js
- },
- css: {
- src: css,
- dest: debug_css
- }
- },
-
- uglify: {
- js: {
- files: uglifyFiles
- }
- },
-
- cssmin: {
- css: {
- files: cssminFiles
- }
- }
- });
-
- grunt.file.setBase("../..");
- grunt.loadNpmTasks("grunt-contrib-concat");
- grunt.loadNpmTasks("grunt-contrib-cssmin");
- grunt.loadNpmTasks("grunt-contrib-uglify");
-
- grunt.registerTask("default", ["concat", "uglify", "cssmin"]);
-
-};
diff --git a/lib/joyride-2.0.3-3/demo-style.css b/lib/joyride-2.0.3-3/demo-style.css
deleted file mode 100644
index f3141ce0c..000000000
--- a/lib/joyride-2.0.3-3/demo-style.css
+++ /dev/null
@@ -1,115 +0,0 @@
-/* These are just the demo styles and these can be removed and Orbit
-will still work like a champ (except any content block needs a background which
-our demo gets from this sheet) */
-
-/* --------------------------------------------------
- Global Reset & Standards
- -------------------------------------------------- */
- html, body { margin: 0; padding: 0; }
- h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite, code, img, small, strike, strong, em, sub, sup, tt, dd, dl, dt, li, ol, ul, fieldset, form, label, legend, button, table, caption, tbody, tfoot, thead, tr, th, td, section { margin: 0; padding: 0; border: 0; font-weight: normal; font-style: normal; font-size: 100%; line-height: 1; font-family: inherit; text-align: left; }
- table { border-collapse: collapse; border-spacing: 0; }
- ol, ul { list-style: none; }
-
-
-
-/* --------------------------------------------------
- :: Grid
- -------------------------------------------------- */
-
- .container { padding: 40px 20px 0 20px; }
-
- .row { width: 100%; max-width: 940px; min-width: 727px; margin: 0 auto; }
- /* To fix the grid into a certain size, set max-width to width */
- .row .row { min-width: 0px; }
-
- .column, .columns { margin-left: 4.4%; float: left; min-height: 1px; position: relative; }
- .column:first-child, .columns:first-child { margin-left: 0px; }
-
- .row .one.columns { width: 4.3%; }
- .row .two.columns { width: 13%; }
- .row .three.columns { width: 21.7%; }
- .row .four.columns { width: 30.4%; }
- .row .five.columns { width: 39.1%; }
- .row .six.columns { width: 47.8%; }
- .row .seven.columns { width: 56.5%; }
- .row .eight.columns { width: 65.2%; }
- .row .nine.columns { width: 73.9%; }
- .row .ten.columns { width: 82.6%; }
- .row .eleven.columns { width: 91.3%; }
- .row .twelve.columns { width: 100%; }
-
- .row .offset-by-one { margin-left: 8.7%; }
- .row .offset-by-two { margin-left: 17.4%; }
- .row .offset-by-three { margin-left: 26.1%; }
- .row .offset-by-four { margin-left: 34.8%; }
- .row .offset-by-five { margin-left: 43.5%; }
- .row .offset-by-six { margin-left: 52.2%; }
- .row .offset-by-seven { margin-left: 60.9%; }
- .row .offset-by-eight { margin-left: 69.6%; }
- .row .offset-by-nine { margin-left: 78.3%; }
- .row .offset-by-ten { margin-left: 87%; }
- .row .offset-by-eleven { margin-left: 95.7%; }
-
- img, object, embed { max-width: 100%; }
- img { -ms-interpolation-mode: bicubic; }
-
-
- /* Clear the columns automagically */
- .row:after, .clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
- .row:last-child:after { content: ""; }
- * html .row, * html .clearfix { height: 1%; }
- .row, .clearfix { display: inline-block; }
- .row, .clearfix { display: block; }
-
-
-
- body { background: #fff; font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 13px; line-height: 18px; text-shadow: 0 0 1px rgba(0,0,0,0.01); color: #555; }
-
- p {
- line-height: 1.25;
- }
-
- h1 {
- font-weight: bold;
- color: #222;
- font-size: 36px;
- line-height: 1.5;
- }
-
- h2 {
- font-weight: bold;
- color: #222;
- font-size: 28px;
- line-height: 1.25;
- }
-
- h3 {
- font-weight: bold;
- color: #222;
- font-size: 22px;
- line-height: 1.25;
- }
-
- h4 {
- font-weight: bold;
- color: #222;
- font-size: 18px;
- line-height: 1.25;
- }
-
- h1 + a {
- color: #00baff;
- text-decoration: none;
- font-weight: normal;
- font-size: 20px;
- }
-
- a:hover { text-decoration: underline; }
-
- hr {
- margin: 20px 0;
- border: solid 1px #ccc;
- border-width: 1px 0 0 0;
- }
-
-
\ No newline at end of file
diff --git a/lib/joyride-2.0.3-3/joyride.css b/lib/joyride-2.0.3-3/joyride.css
deleted file mode 100644
index 2b313c567..000000000
--- a/lib/joyride-2.0.3-3/joyride.css
+++ /dev/null
@@ -1,320 +0,0 @@
-/* Artfully masterminded by ZURB */
-body {
- position: relative;
-}
-
-#joyRideTipContent { display: none; }
-
-/* Default styles for the container */
-.joyride-tip-guide {
- position: absolute;
- background: #000;
- background: rgba(175, 181, 196, 1);
- display: none;
- color: rgb(38, 43, 49);
- width: 350px;
- z-index: 1050;
- top: 0; /* keeps the page from scrolling when calculating position */
- left: 0;
- font-family: "Gill Sans", sans-serif;
- font-weight: normal;
- -moz-border-radius: 4px;
- -webkit-border-radius: 4px;
- border-radius: 4px;
-}
-
-.joyride-content-wrapper {
- padding: 10px 10px 15px 15px;
-}
-
-.bordered {
- border: #808080 solid 1px;
-}
-
-.wide {
- width:450px;
-}
-
-/* Mobile */
-/* @media only screen and (max-width: 767px) */
-.joyride-tip-guide.mobile {
- width: 95% !important;
- -moz-border-radius: 0;
- -webkit-border-radius: 0;
- border-radius: 0;
- left: 2.5% !important;
-}
-
-.joyride-tip-guide-wrapper.mobile {
- width: 100%;
-}
-
-/* Add a little css triangle pip, older browser just miss out on the fanciness of it */
-.joyride-tip-guide span.joyride-nub {
- display: block;
- position: absolute;
- left: 22px;
- width: 0;
- height: 0;
- border: solid 14px;
-}
-
-.joyride-tip-guide span.joyride-nub-border {
- display: block;
- position: absolute;
- left: 22px;
- width: 0;
- height: 0;
- border: solid #808080 15px;
-}
-
-.joyride-tip-guide span.joyride-nub.top {
- /*
- IE7/IE8 Don't support rgba so we set the fallback
- border color here. However, IE7/IE8 are also buggy
- in that the fallback color doesn't work for
- border-bottom-color so here we set the border-color
- and override the top,left,right colors below.
- */
- border-color: #000;
- border-color: rgba(175, 181, 196, 1);
- border-top-color: transparent !important;
- border-left-color: transparent !important;
- border-right-color: transparent !important;
- top: -28px;
- left: 250px;
- bottom: none;
-}
-
-.joyride-tip-guide span.joyride-nub-border.top {
- border-top-color: transparent !important;
- border-left-color: transparent !important;
- border-right-color: transparent !important;
- left: 249px;
- top: -30px;
-}
-
-.joyride-tip-guide span.joyride-nub.bottom {
- /*
- IE7/IE8 Don't support rgba so we set the fallback
- border color here. However, IE7/IE8 are also buggy
- in that the fallback color doesn't work for
- border-top-color so here we set the border-color
- and override the bottom,left,right colors below.
- */
- border-color: #000;
- border-color: rgba(175, 181, 196, 1) !important;
- border-bottom-color: transparent !important;
- border-left-color: transparent !important;
- border-right-color: transparent !important;
- left: 22px;
- bottom: -28px;
- bottom: none;
-}
-
-.joyride-tip-guide span.joyride-nub-border.bottom {
- border-bottom-color: transparent !important;
- border-left-color: transparent !important;
- border-right-color: transparent !important;
- left: 21px;
- bottom: -30px;
-}
-
-.joyride-tip-guide span.joyride-nub.right {
- border-color: #000;
- border-color: rgba(175, 181, 196, 1) !important;
- border-top-color: transparent !important;
- border-right-color: transparent !important;
- border-bottom-color: transparent !important;
- top: 22px;
- bottom: none;
- left: auto;
- right: -28px;
-}
-
-.joyride-tip-guide span.joyride-nub-border.right {
- border-top-color: transparent !important;
- border-bottom-color: transparent !important;
- border-right-color: transparent !important;
- left: auto;
- right: -30px;
- top: 21px;
- bottom: none;
-}
-
-.joyride-tip-guide span.joyride-nub.left {
- border-color: #000;
- border-color: rgba(175, 181, 196, 1) !important;
- border-top-color: transparent !important;
- border-left-color: transparent !important;
- border-bottom-color: transparent !important;
- top: 22px;
- left: -28px;
- right: auto;
- bottom: none;
-}
-
-.joyride-tip-guide span.joyride-nub-border.left {
- border-bottom-color: transparent !important;
- border-left-color: transparent !important;
- border-top-color: transparent !important;
- top: 21px;
- left: -30px;
- right: auto;
- bottom: none;
-}
-
-/* Typography */
-.joyride-tip-guide h1,.joyride-tip-guide h2,.joyride-tip-guide h3,.joyride-tip-guide h4,.joyride-tip-guide h5,.joyride-tip-guide h6 {
- line-height: 1.25;
- margin: 0;
- font-weight: bold;
- color: rgb(38, 43, 49);
-}
-.joyride-tip-guide h1 { font-size: 30px; }
-.joyride-tip-guide h2 { font-size: 26px; }
-.joyride-tip-guide h3 { color:rgb(38, 43, 49); font: 18px "Gill Sans", sans-serif; font-weight:400; text-decoration:none; }
-.joyride-tip-guide h4 { font-size: 18px; }
-.joyride-tip-guide h5 { font-size: 16px; }
-.joyride-tip-guide h6 { font-size: 14px; }
-.joyride-tip-guide p {
- margin: 0 0 14px 0;
- font-size: 12px;
- line-height: 1;
-}
-
-.joyride-tip-guide ul {
- margin: 0 0 14px 0;
- font-size: 12px;
- line-height: 1;
-}
-
-.joyride-tip-guide a {
- color: rgb(0, 0, 0);
- text-decoration: none;
- border-bottom: dotted 1px rgba(255,255,255,0.6);
-}
-
-.joyride-tip-guide a:hover {
- color: rgb(0, 0, 0);
- border-bottom: none;
-}
-
-/* Button Style */
-.joyride-tip-guide .joyride-next-tip {
- width: auto;
- float: right;
- padding: 6px 18px 4px;
- font-size: 13px;
- border:1px solid #d7dada;
- -webkit-border-radius: 6px;
- -moz-border-radius: 6px;
- border-radius: 6px;
- text-align: center;
- color: #000000;
- background-color: #f4f5f5;
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f4f5f5), color-stop(100%, #dfdddd));
- background-image: -webkit-linear-gradient(top, #f4f5f5, #dfdddd);
- background-image: -moz-linear-gradient(top, #f4f5f5, #dfdddd);
- background-image: -ms-linear-gradient(top, #f4f5f5, #dfdddd);
- background-image: -o-linear-gradient(top, #f4f5f5, #dfdddd);
- background-image: linear-gradient(top, #f4f5f5, #dfdddd);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#f4f5f5, endColorstr=#dfdddd);
-}
-
-
-.joyride-next-tip:hover {
- border:1px solid #bfc4c4;
- background-color: #d9dddd;
- color: #000000;
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#d9dddd), color-stop(100%, #c6c3c3));
- background-image: -webkit-linear-gradient(top, #d9dddd, #c6c3c3);
- background-image: -moz-linear-gradient(top, #d9dddd, #c6c3c3);
- background-image: -ms-linear-gradient(top, #d9dddd, #c6c3c3);
- background-image: -o-linear-gradient(top, #d9dddd, #c6c3c3);
- background-image: linear-gradient(top, #d9dddd, #c6c3c3);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#d9dddd, endColorstr=#c6c3c3);
-}
-
-
-/*BETH*/
-.joyride-tip-guide .joyride-prev-tip {
- width: auto;
- float: left;
- padding: 6px 18px 4px;
- font-size: 13px;
- border:1px solid #d7dada;
- -webkit-border-radius: 6px;
- -moz-border-radius: 6px;
- border-radius: 6px;
- text-align: center;
- color: #000000;
- background-color: #f4f5f5;
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f4f5f5), color-stop(100%, #dfdddd));
- background-image: -webkit-linear-gradient(top, #f4f5f5, #dfdddd);
- background-image: -moz-linear-gradient(top, #f4f5f5, #dfdddd);
- background-image: -ms-linear-gradient(top, #f4f5f5, #dfdddd);
- background-image: -o-linear-gradient(top, #f4f5f5, #dfdddd);
- background-image: linear-gradient(top, #f4f5f5, #dfdddd);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#f4f5f5, endColorstr=#dfdddd);
-}
-
-/*BETH*/
-
-.joyride-prev-tip:hover {
- border:1px solid #bfc4c4;
- background-color: #d9dddd;
- color: #000000;
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#d9dddd), color-stop(100%, #c6c3c3));
- background-image: -webkit-linear-gradient(top, #d9dddd, #c6c3c3);
- background-image: -moz-linear-gradient(top, #d9dddd, #c6c3c3);
- background-image: -ms-linear-gradient(top, #d9dddd, #c6c3c3);
- background-image: -o-linear-gradient(top, #d9dddd, #c6c3c3);
- background-image: linear-gradient(top, #d9dddd, #c6c3c3);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#d9dddd, endColorstr=#c6c3c3);
-}
-
-.joyride-timer-indicator-wrap {
- width: 50px;
- height: 3px;
- border: solid 1px rgba(255,255,255,0.1);
- position: absolute;
- right: 17px;
- bottom: 16px;
-}
-
-.joyride-timer-indicator {
- display: block;
- width: 0;
- height: inherit;
- background: rgba(255,255,255,0.25);
-}
-
-.joyride-close-tip {
- position: absolute;
- right: 10px;
- top: 10px;
- color: rgba(38, 43, 49, 0.4) !important;
- text-decoration: none;
- font-family: Verdana, sans-serif;
- font-size: 10px;
- font-weight: bold;
- border-bottom: none !important;
-}
-
-.joyride-close-tip:hover {
- color: rgba(38, 43, 49, 0.9) !important;
-}
-
-.joyride-modal-bg {
- position: fixed;
- height: 100%;
- width: 100%;
- background: rgb(0,0,0);
- background: transparent;
- background: rgba(0,0,0, 0.5);
- -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
- filter: alpha(opacity=50);
- opacity: 0.5;
- z-index: 100;
- display: none;
- top: 0;
- left: 0;
- cursor: pointer;
-}
diff --git a/lib/joyride-2.0.3-3/jquery.cookie.js b/lib/joyride-2.0.3-3/jquery.cookie.js
deleted file mode 100644
index 68db832b0..000000000
--- a/lib/joyride-2.0.3-3/jquery.cookie.js
+++ /dev/null
@@ -1,72 +0,0 @@
-/*jshint eqnull:true */
-/*!
- * jQuery Cookie Plugin v1.2
- * https://github.com/carhartl/jquery-cookie
- *
- * Copyright 2011, Klaus Hartl
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://www.opensource.org/licenses/mit-license.php
- * http://www.opensource.org/licenses/GPL-2.0
- */
-(function ($, document, undefined) {
-
- var pluses = /\+/g;
-
- function raw(s) {
- return s;
- }
-
- function decoded(s) {
- return decodeURIComponent(s.replace(pluses, ' '));
- }
-
- $.cookie = function (key, value, options) {
-
- // key and at least value given, set cookie...
- if (value !== undefined && !/Object/.test(Object.prototype.toString.call(value))) {
- options = $.extend({}, $.cookie.defaults, options);
-
- if (value === null) {
- options.expires = -1;
- }
-
- if (typeof options.expires === 'number') {
- var days = options.expires, t = options.expires = new Date();
- t.setDate(t.getDate() + days);
- }
-
- value = String(value);
-
- return (document.cookie = [
- encodeURIComponent(key), '=', options.raw ? value : encodeURIComponent(value),
- options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
- options.path ? '; path=' + options.path : '',
- options.domain ? '; domain=' + options.domain : '',
- options.secure ? '; secure' : ''
- ].join(''));
- }
-
- // key and possibly options given, get cookie...
- options = value || $.cookie.defaults || {};
- var decode = options.raw ? raw : decoded;
- var cookies = document.cookie.split('; ');
- for (var i = 0, parts; (parts = cookies[i] && cookies[i].split('=')); i++) {
- if (decode(parts.shift()) === key) {
- return decode(parts.join('='));
- }
- }
-
- return null;
- };
-
- $.cookie.defaults = {};
-
- $.removeCookie = function (key, options) {
- if ($.cookie(key, options) !== null) {
- $.cookie(key, null, options);
- return true;
- }
- return false;
- };
-
-})(jQuery, document);
\ No newline at end of file
diff --git a/lib/joyride-2.0.3-3/jquery.joyride.js b/lib/joyride-2.0.3-3/jquery.joyride.js
deleted file mode 100644
index 2ca2d5bdf..000000000
--- a/lib/joyride-2.0.3-3/jquery.joyride.js
+++ /dev/null
@@ -1,960 +0,0 @@
-/*
- * jQuery Foundation Joyride Plugin 2.0.3
- * http://foundation.zurb.com
- * Copyright 2012, ZURB
- * Free to use under the MIT license.
- * http://www.opensource.org/licenses/mit-license.php
-*/
-
-/*jslint unparam: true, browser: true, indent: 2 */
-
-;(function ($, window, undefined) {
- 'use strict';
-
- var defaults = {
- 'version' : '2.0.3',
- 'tipLocation' : 'bottom', // 'top' or 'bottom' in relation to parent
- 'nubPosition' : 'auto', // override on a per tooltip bases
- 'scrollSpeed' : 300, // Page scrolling speed in milliseconds
- 'timer' : 0, // 0 = no timer , all other numbers = timer in milliseconds
- 'startTimerOnClick' : true, // true or false - true requires clicking the first button start the timer
- 'startOffset' : 0, // the index of the tooltip you want to start on (index of the li)
- 'nextButton' : true, // true or false to control whether a next button is used
- 'prevButton' : false, // true or false to control whether a previous button is used
- 'tipAnimation' : 'fade', // 'pop' or 'fade' in each tip
- 'pauseAfter' : [], // array of indexes where to pause the tour after
- 'tipAnimationFadeSpeed': 300, // when tipAnimation = 'fade' this is speed in milliseconds for the transition
- 'cookieMonster' : false, // true or false to control whether cookies are used
- 'cookieName' : 'joyride', // Name the cookie you'll use
- 'cookieDomain' : false, // Will this cookie be attached to a domain, ie. '.notableapp.com'
- 'tipContainer' : 'body', // Where will the tip be attached
- 'postRideCallback' : $.noop, // A method to call once the tour closes (canceled or complete)
- 'postStepCallback' : $.noop, // A method to call after each step
- 'bordered' : false, // true or false to control whether a border is shown
- 'includepage' : false, // true or false to control whether a page number is shown under the next button
- 'adjustForPhone' : true, // change window position for phones (if false, windows show in default position)
- 'template' : { // HTML segments for tip layout
- 'link' : '<a href="#close" class="joyride-close-tip">X</a>',
- 'timer' : '<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>',
- 'tip' : '<div class="joyride-tip-guide"></div>',
- 'nub' : '<span class="joyride-nub"></span>',
- 'tipborder' : '<span class="joyride-nub-border"></span>',
- 'wrapper' : '<div class="joyride-content-wrapper"></div>',
- 'button' : '<a href="#" class="joyride-next-tip"></a>',
- 'prevbutton' : '<a href="#" class="joyride-prev-tip"></a>'
- }
- },
-
- Modernizr = Modernizr || false,
-
- settings = {},
-
- methods = {
-
- init : function (opts) {
- return this.each(function () {
-
- if ($.isEmptyObject(settings)) {
- settings = $.extend(true, defaults, opts);
-
- // non configurable settings
- settings.document = window.document;
- settings.$document = $(settings.document);
- settings.$window = $(window);
- settings.$content_el = $(this);
- settings.body_offset = $(settings.tipContainer).position();
- settings.$tip_content = $('> li', settings.$content_el);
- settings.paused = false;
- settings.attempts = 0;
-
- settings.tipLocationPatterns = {
- top: ['bottom'],
- bottom: [], // bottom should not need to be repositioned
- left: ['right', 'top', 'bottom'],
- right: ['left', 'top', 'bottom']
- };
-
- // are we using jQuery 1.7+
- methods.jquery_check();
-
- // can we create cookies?
- if (!$.isFunction($.cookie)) {
- settings.cookieMonster = false;
- }
-
- // generate the tips and insert into dom.
- if (!settings.cookieMonster || !$.cookie(settings.cookieName)) {
-
- settings.$tip_content.each(function (index) {
- methods.create({$li : $(this), index : index});
- });
-
- // show first tip
- if (!settings.startTimerOnClick && settings.timer > 0) {
- methods.show('init');
- methods.startTimer();
- } else {
- methods.show('init');
- }
-
- }
-
- settings.$document.on('click', '.joyride-next-tip, .joyride-modal-bg', function (e) {
- if(e.target.text === "Next" || e.target.text === "Finish") {
- e.preventDefault();
- e.stopImmediatePropagation();
- if (settings.$li.next().length < 1) {
- methods.end("next");
- } else if (settings.timer > 0) {
- clearTimeout(settings.automate);
- methods.hide("next");
- methods.show();
- methods.startTimer();
- } else {
- methods.hide("next");
- methods.show();
- }}
- });
-
- //BETH
- settings.$document.on('click.joyride', '.joyride-prev-tip, .joyride-modal-bg', function (e) {
- if(e.target.text === "Prev") {
- e.preventDefault();
- e.stopImmediatePropagation();
- if (settings.$li.prev().length < 1) {
- methods.end("previous");
- } else if (settings.timer > 0) {
- clearTimeout(settings.automate);
- methods.hideNoCallback();
- methods.showPrev();
- methods.startTimer();
- } else {
- //methods.hideNoCallback();
- methods.hide("previous");
- methods.showPrev();
- }}
-
- });
- //END BETH
-
- settings.$document.on('click.joyride', '.joyride-close-tip', function (e) {
- if(e.target.text === "X") {
- e.preventDefault();
- methods.endNoCallback();
- }
- });
-
- settings.$window.bind('resize.joyride', function (e) {
- if (methods.is_phone()) {
- methods.pos_phone();
- } else {
- methods.pos_default();
- }
- });
- } else {
- methods.restart();
- }
-
- });
- },
-
- // call this method when you want to resume the tour
- resume : function () {
- methods.set_li();
- methods.show();
- },
-
- tip_template : function (opts) {
- var $blank, content;
-
- // vars
- var opts_arr = (opts.li.data('options') || ':').split(';');
- var opts_len = opts_arr.length;
- var ii, p;
- var isBordered = settings.bordered;
- var isShifted = settings.shiftedArrow;
- var usePage = settings.includepage;
-
- opts.tip_class = opts.tip_class || '';
- if(isBordered) {
- opts.tip_class += " bordered";
- }
-
- $blank = $(settings.template.tip).addClass(opts.tip_class);
-
- content = $.trim($(opts.li).html()) +
- methods.button_text(opts.button_text, opts.li) +
- settings.template.link +
- methods.timer_instance(opts.index);
- if(usePage) {
- var numpages = settings.$content_el[0].children.length;
- var page = opts.index + 1;
- var pagestr = "<p class='wv-tour-page-count'>(page " + page + " of " + numpages + ")</p>"
- content += pagestr;
- }
- if(isBordered) {
- $blank.append($(settings.template.tipborder));
- }
- $blank.append($(settings.template.nub));
- $blank.append($(settings.template.wrapper));
- $blank.first().attr('data-index', opts.index);
- $('.joyride-content-wrapper', $blank).append(content);
-
- return $blank[0];
- },
-
- timer_instance : function (index) {
- var txt;
-
- if ((index === 0 && settings.startTimerOnClick && settings.timer > 0) || settings.timer === 0) {
- txt = '';
- } else {
- txt = methods.outerHTML($(settings.template.timer)[0]);
- }
- return txt;
- },
-
- button_text : function (txt, li) {
- //BETH
- // vars
- var opts_arr = (li.data('options') || ':').split(';');
- var opts_len = opts_arr.length;
- var ii, p;
- var hasPrev, hasNext, prev;
-
- // parse options
- for (ii = opts_len - 1; ii >= 0; ii--) {
- p = opts_arr[ii].split(':');
-
- if (p.length === 2) {
- if(p[0] == "prevButton") {
- if(p[1] == "true") {
- hasPrev = true;
- }
- else {
- hasPrev = false;
- }
- }
- if(p[0] == "nextButton") {
- if(p[1] == "true") {
- hasNext = true;
- }
- else {
- hasNext = false;
- }
- }
- }
- }
-
- // fill in defaults if buttons were not specified
- if(hasPrev === undefined) {
- hasPrev = settings.prevButton;
- }
- if(hasNext === undefined) {
- hasNext = settings.nextButton;
- }
-
- // construct and return button string
- if (hasPrev) {
- prev = 'Prev';
- prev = methods.outerHTML($(settings.template.prevbutton).append(prev)[0]);
- } else {
- prev = '';
- }
- if (hasNext) {
- txt = $.trim(txt) || 'Next';
- txt = methods.outerHTML($(settings.template.button).append(txt)[0]);
- } else {
- txt = '';
- }
- return prev + txt + "</br></br>";
- //END BETH
- },
-
- create : function (opts) {
- // backwards compatibility with data-text attribute
- var buttonText = opts.$li.attr('data-button') || opts.$li.attr('data-text'),
- tipClass = opts.$li.attr('class'),
- $tip_content = $(methods.tip_template({
- tip_class : tipClass,
- index : opts.index,
- button_text : buttonText,
- li : opts.$li,
- }));
-
- $(settings.tipContainer).append($tip_content);
- },
-
- show : function (init) {
- var opts = {}, ii, opts_arr = [], opts_len = 0, p,
- $timer = null;
-
- // are we paused?
- if (settings.$li === undefined || ($.inArray(settings.$li.index(), settings.pauseAfter) === -1)) {
-
- // don't go to the next li if the tour was paused
- if (settings.paused) {
- settings.paused = false;
- } else {
- methods.set_li(init);
- }
-
- settings.attempts = 0;
- if (settings.$li.length && settings.$target.length > 0) {
- opts_arr = (settings.$li.data('options') || ':').split(';');
- opts_len = opts_arr.length;
-
- // parse options
- for (ii = opts_len - 1; ii >= 0; ii--) {
- p = opts_arr[ii].split(':');
-
- if (p.length === 2) {
- opts[$.trim(p[0])] = $.trim(p[1]);
- }
- }
-
- settings.tipSettings = $.extend({}, settings, opts);
-
- settings.tipSettings.tipLocationPattern = settings.tipLocationPatterns[settings.tipSettings.tipLocation];
-
- // scroll if not modal
- if (!/body/i.test(settings.$target.selector)) {
- methods.scroll_to();
- }
-
- if (methods.is_phone()) {
- methods.pos_phone(true);
- } else {
- methods.pos_default(true);
- }
- $timer = $('.joyride-timer-indicator', settings.$next_tip);
-
- if (/pop/i.test(settings.tipAnimation)) {
- $timer.outerWidth(0);
-
- if (settings.timer > 0) {
-
- settings.$next_tip.show();
- $timer.animate({
- width: $('.joyride-timer-indicator-wrap', settings.$next_tip).outerWidth()
- }, settings.timer);
-
- } else {
- settings.$next_tip.show();
-
- }
-
-
- } else if (/fade/i.test(settings.tipAnimation)) {
- $timer.outerWidth(0);
-
- if (settings.timer > 0) {
-
- settings.$next_tip.fadeIn(settings.tipAnimationFadeSpeed);
- settings.$next_tip.show();
- $timer.animate({
- width: $('.joyride-timer-indicator-wrap', settings.$next_tip).outerWidth()
- }, settings.timer);
-
- } else {
- settings.$next_tip.fadeIn(settings.tipAnimationFadeSpeed);
-
- }
- }
-
- settings.$current_tip = settings.$next_tip;
-
- // skip non-existent targets
- } else if (settings.$li && settings.$target.length < 1) {
- //console.log("showNext2 nubposition = " + settings.tipSettings.nubPosition);
- methods.show();
-
- } else {
-
- methods.end("next");
-
- }
- } else {
-
- settings.paused = true;
-
- }
-
- },
-
- //BETH
- showPrev : function (init) {
- var opts = {}, ii, opts_arr = [], opts_len = 0, p,
- $timer = null;
-
- // are we paused?
- if (settings.$li === undefined || ($.inArray(settings.$li.index(), settings.pauseAfter) === -1)) {
- // don't go to the next li if the tour was paused
- if (settings.paused) {
- settings.paused = false;
- } else {
- methods.set_li_prev(init);
- }
-
- settings.attempts = 0;
-
- if (settings.$li.length && settings.$target.length > 0) {
- opts_arr = (settings.$li.data('options') || ':').split(';');
- opts_len = opts_arr.length;
-
- // parse options
- for (ii = opts_len - 1; ii >= 0; ii--) {
- p = opts_arr[ii].split(':');
-
- if (p.length === 2) {
- opts[$.trim(p[0])] = $.trim(p[1]);
- }
- }
-
- settings.tipSettings = $.extend({}, settings, opts);
-
- settings.tipSettings.tipLocationPattern = settings.tipLocationPatterns[settings.tipSettings.tipLocation];
-
- // scroll if not modal
- if (!/body/i.test(settings.$target.selector)) {
- methods.scroll_to();
- }
-
- if (methods.is_phone()) {
- methods.pos_phone(true);
- } else {
- methods.pos_default_prev(true);
- }
- $timer = $('.joyride-timer-indicator', settings.$prev_tip);
-
- if (/pop/i.test(settings.tipAnimation)) {
-
- $timer.outerWidth(0);
-
- if (settings.timer > 0) {
-
- settings.$prev_tip.show();
- $timer.animate({
- width: $('.joyride-timer-indicator-wrap', settings.$prev_tip).outerWidth()
- }, settings.timer);
-
- } else {
-
- settings.$prev_tip.show();
-
- }
-
-
- } else if (/fade/i.test(settings.tipAnimation)) {
-
- $timer.outerWidth(0);
-
- if (settings.timer > 0) {
-
- settings.$prev_tip.fadeIn(settings.tipAnimationFadeSpeed);
-
- settings.$prev_tip.show();
- $timer.animate({
- width: $('.joyride-timer-indicator-wrap', settings.$prev_tip).outerWidth()
- }, settings.timer);
-
- } else {
-
- settings.$prev_tip.fadeIn(settings.tipAnimationFadeSpeed);
-
- }
- }
-
- settings.$current_tip = settings.$prev_tip;
-
- // skip non-existent targets
- } else if (settings.$li && settings.$target.length < 1) {
-
- methods.showPrev();
-
- } else {
-
- methods.end("previous");
-
- }
- } else {
-
- settings.paused = true;
-
- }
-
- },
- //END BETH
-
- // detect phones with media queries if supported.
- is_phone : function () {
- if(settings.adjustForPhone) {
- //console.log("adjustForPhone");
- if (Modernizr) {
- return Modernizr.mq('only screen and (max-width: 767px)');
- }
-
- return (settings.$window.width() < 767) ? true : false;
- }
- else {
- //console.log("no adjustForPhone");
- return false;
- }
- },
-
- hide : function (button) {
- settings.postStepCallback(settings.$li.index(), settings.$current_tip, button);
- $('.joyride-modal-bg').hide();
- settings.$current_tip.hide();
- },
-
- hideNoCallback : function () {
- $('.joyride-modal-bg').hide();
- settings.$current_tip.hide();
- },
-
- set_li : function (init) {
- if (init) {
- settings.$li = settings.$tip_content.eq(settings.startOffset);
- methods.set_next_tip();
- settings.$current_tip = settings.$next_tip;
- } else {
- settings.$li = settings.$li.next();
- methods.set_next_tip();
- }
-
- methods.set_target();
- },
-
- //BETH
- set_li_prev : function (init) {
- if (init) {
- settings.$li = settings.$tip_content.eq(settings.startOffset);
- methods.set_prev_tip();
- settings.$current_tip = settings.$prev_tip;
- } else {
- settings.$li = settings.$li.prev();
- methods.set_prev_tip();
- }
-
- methods.set_target();
- },
- //END BETH
-
- set_next_tip : function () {
- settings.$next_tip = $('.joyride-tip-guide[data-index=' + settings.$li.index() + ']');
- },
-
- //BETH
- set_prev_tip : function () {
- settings.$prev_tip = $('.joyride-tip-guide[data-index=' + settings.$li.index() + ']');
- },
- //END BETH
-
- set_target : function () {
- var cl = settings.$li.attr('data-class'),
- id = settings.$li.attr('data-id'),
-
- $sel = function () {
- if (id) {
- return $(settings.document.getElementById(id));
- } else if (cl) {
- return $('.' + cl).first();
- } else {
- return $('body');
- }
- };
-
- settings.$target = $sel();
- },
-
- scroll_to : function () {
- var window_half, tipOffset;
-
- window_half = settings.$window.height() / 2;
- tipOffset = Math.ceil(settings.$target.offset().top - window_half + settings.$next_tip.outerHeight());
-
- $("html, body").stop().animate({
- scrollTop: tipOffset
- }, settings.scrollSpeed);
- },
-
- paused : function () {
- if (($.inArray((settings.$li.index() + 1), settings.pauseAfter) === -1)) {
- return true;
- }
-
- return false;
- },
-
- destroy : function () {
- settings.$document.off('.joyride');
- $(window).off('.joyride');
- $('.joyride-close-tip, .joyride-next-tip, .joyride-modal-bg').off('.joyride');
- $('.joyride-tip-guide, .joyride-modal-bg').remove();
- clearTimeout(settings.automate);
- settings = {};
- },
-
- restart : function () {
- methods.hide("restart");
- settings.$li = undefined;
- methods.show('init');
- },
-
- pos_default : function (init) {
- var half_fold = Math.ceil(settings.$window.height() / 2),
- tip_position = settings.$next_tip.offset(),
- $nub = $('.joyride-nub', settings.$next_tip),
- $border = $('.joyride-nub-border', settings.$next_tip),
- nub_height = Math.ceil($nub.outerHeight() / 2),
- toggle = init || false;
-
- settings.$next_tip.removeClass("mobile");
-
- // tip must not be "display: none" to calculate position
- if (toggle) {
- settings.$next_tip.css('visibility', 'hidden');
- settings.$next_tip.show();
- }
-
- if (!/body/i.test(settings.$target.selector)) {
-
- if (methods.bottom()) {
-
- settings.$next_tip.css({
- top: (settings.$target.offset().top + nub_height + settings.$target.outerHeight()),
- left: settings.$target.offset().left});
- methods.nub_position($nub, $border, settings.tipSettings.nubPosition, 'top');
-
- } else if (methods.top()) {
-
- settings.$next_tip.css({
- top: (settings.$target.offset().top - settings.$next_tip.outerHeight() - nub_height),
- left: settings.$target.offset().left});
- methods.nub_position($nub, $border, settings.tipSettings.nubPosition, 'bottom');
-
- } else if (methods.right()) {
- settings.$next_tip.css({
- top: settings.$target.offset().top,
- left: (settings.$target.outerWidth() + settings.$target.offset().left + 20)});
- methods.nub_position($nub, $border, settings.tipSettings.nubPosition, 'left');
-
- } else if (methods.left()) {
-
- settings.$next_tip.css({
- top: settings.$target.offset().top,
- left: (settings.$target.offset().left - settings.$next_tip.outerWidth() - nub_height)});
- methods.nub_position($nub, $border, settings.tipSettings.nubPosition, 'right');
-
- }
-
- if (!methods.visible(methods.corners(settings.$next_tip)) && settings.attempts < settings.tipSettings.tipLocationPattern.length) {
- $nub.removeClass('bottom')
- .removeClass('top')
- .removeClass('right')
- .removeClass('left');
-
- settings.tipSettings.tipLocation = settings.tipSettings.tipLocationPattern[settings.attempts];
-
- settings.attempts++;
-
- methods.pos_default(true);
-
- }
-
- } else if (settings.$li.length) {
-
- methods.pos_modal($nub);
-
- }
-
- if (toggle) {
- settings.$next_tip.hide();
- settings.$next_tip.css('visibility', 'visible');
- }
-
- },
-
- pos_default_prev : function (init) {
- var half_fold = Math.ceil(settings.$window.height() / 2),
- tip_position = settings.$prev_tip.offset(),
- $nub = $('.joyride-nub', settings.$prev_tip),
- $border = $('.joyride-nub-border', settings.$prev_tip),
- nub_height = Math.ceil($nub.outerHeight() / 2),
- toggle = init || false;
-
- settings.$next_tip.addClass("mobile");
-
- // tip must not be "display: none" to calculate position
- if (toggle) {
- settings.$prev_tip.css('visibility', 'hidden');
- settings.$prev_tip.show();
- }
-
- if (!/body/i.test(settings.$target.selector)) {
-
- if (methods.bottom()) {
- settings.$prev_tip.css({
- top: (settings.$target.offset().top + nub_height + settings.$target.outerHeight()),
- left: settings.$target.offset().left});
- methods.nub_position($nub, $border, settings.tipSettings.nubPosition, 'top');
-
- } else if (methods.top()) {
-
- settings.$prev_tip.css({
- top: (settings.$target.offset().top - settings.$prev_tip.outerHeight() - nub_height),
- left: settings.$target.offset().left});
- methods.nub_position($nub, $border, settings.tipSettings.nubPosition, 'bottom');
-
- } else if (methods.right()) {
-
- settings.$prev_tip.css({
- top: settings.$target.offset().top,
- left: (settings.$target.outerWidth() + settings.$target.offset().left + 20)});
- methods.nub_position($nub, $border, settings.tipSettings.nubPosition, 'left');
-
- } else if (methods.left()) {
-
- settings.$prev_tip.css({
- top: settings.$target.offset().top,
- left: (settings.$target.offset().left - settings.$prev_tip.outerWidth() - nub_height)});
- methods.nub_position($nub, $border, settings.tipSettings.nubPosition, 'right');
-
- }
-
- if (!methods.visible(methods.corners(settings.$prev_tip)) && settings.attempts < settings.tipSettings.tipLocationPattern.length) {
- $nub.removeClass('bottom')
- .removeClass('top')
- .removeClass('right')
- .removeClass('left');
-
- settings.tipSettings.tipLocation = settings.tipSettings.tipLocationPattern[settings.attempts];
-
- settings.attempts++;
-
- methods.pos_default_prev(true);
-
- }
-
- } else if (settings.$li.length) {
-
- methods.pos_modal($nub);
-
- }
-
- if (toggle) {
- settings.$prev_tip.hide();
- settings.$prev_tip.css('visibility', 'visible');
- }
-
- },
-
- pos_phone : function (init) {
- //console.log("pos_phone");
- var tip_height = settings.$next_tip.outerHeight(),
- tip_offset = settings.$next_tip.offset(),
- target_height = settings.$target.outerHeight(),
- $nub = $('.joyride-nub', settings.$next_tip),
- nub_height = Math.ceil($nub.outerHeight() / 2),
- toggle = init || false;
-
- $nub.removeClass('bottom')
- .removeClass('top')
- .removeClass('right')
- .removeClass('left');
-
- settings.$next_tip.addClass("mobile");
-
- if (toggle) {
- settings.$next_tip.css('visibility', 'hidden');
- settings.$next_tip.show();
- }
-
- if (!/body/i.test(settings.$target.selector)) {
-
- if (methods.top()) {
-
- settings.$next_tip.offset({top: settings.$target.offset().top - tip_height - nub_height});
- $nub.addClass('bottom');
-
- } else {
-
- settings.$next_tip.offset({top: settings.$target.offset().top + target_height + nub_height});
- $nub.addClass('top');
-
- }
-
- } else if (settings.$li.length) {
-
- methods.pos_modal($nub);
-
- }
-
- if (toggle) {
- settings.$next_tip.hide();
- settings.$next_tip.css('visibility', 'visible');
- }
- },
-
- pos_modal : function ($nub) {
- methods.center();
- $nub.hide();
-
- if ($('.joyride-modal-bg').length < 1) {
- $('body').append('<div class="joyride-modal-bg">').show();
- }
-
- if (/pop/i.test(settings.tipAnimation)) {
- $('.joyride-modal-bg').show();
- } else {
- $('.joyride-modal-bg').fadeIn(settings.tipAnimationFadeSpeed);
- }
- },
-
- center : function () {
- var $w = settings.$window;
-
- settings.$next_tip.css({
- top : ((($w.height() - settings.$next_tip.outerHeight()) / 2) + $w.scrollTop()),
- left : ((($w.width() - settings.$next_tip.outerWidth()) / 2) + $w.scrollLeft())
- });
-
- return true;
- },
-
- bottom : function () {
- return /bottom/i.test(settings.tipSettings.tipLocation);
- },
-
- top : function () {
- return /top/i.test(settings.tipSettings.tipLocation);
- },
-
- right : function () {
- return /right/i.test(settings.tipSettings.tipLocation);
- },
-
- left : function () {
- return /left/i.test(settings.tipSettings.tipLocation);
- },
-
- corners : function (el) {
- var w = settings.$window,
- right = w.width() + w.scrollLeft(),
- bottom = w.height() + w.scrollTop();
-
- return [
- el.offset().top <= w.scrollTop(),
- right <= el.offset().left + el.outerWidth(),
- bottom <= el.offset().top + el.outerHeight(),
- w.scrollLeft() >= el.offset().left
- ];
- },
-
- visible : function (hidden_corners) {
- var i = hidden_corners.length;
-
- while (i--) {
- if (hidden_corners[i]) return false;
- }
-
- return true;
- },
-
- nub_position : function (nub, border, pos, def) {
- if (pos === 'auto') {
- nub.addClass(def);
- border.addClass(def);
- } else {
- nub.addClass(pos);
- border.addClass(pos);
- }
- },
-
- startTimer : function () {
- if (settings.$li.length) {
- settings.automate = setTimeout(function () {
- methods.hide("timer");
- methods.show();
- methods.startTimer();
- }, settings.timer);
- } else {
- clearTimeout(settings.automate);
- }
- },
-
- end : function (button) {
- if (settings.cookieMonster) {
- $.cookie(settings.cookieName, 'ridden', { expires: 365, domain: settings.cookieDomain });
- }
-
- if (settings.timer > 0) {
- clearTimeout(settings.automate);
- }
-
- $('.joyride-modal-bg').hide();
- settings.$current_tip.hide();
- settings.postStepCallback(settings.$li.index(), settings.$current_tip, button);
- settings.postRideCallback(settings.$li.index(), settings.$current_tip, button);
- methods.destroy();
- },
-
- endNoCallback : function() {
- if (settings.cookieMonster) {
- $.cookie(settings.cookieName, 'ridden', { expires: 365, domain: settings.cookieDomain });
- }
-
- if (settings.timer > 0) {
- clearTimeout(settings.automate);
- }
-
- $('.joyride-modal-bg').hide();
- settings.$current_tip.hide();
- methods.destroy();
- },
-
- jquery_check : function () {
- // define on() and off() for older jQuery
- if (!$.isFunction($.fn.on)) {
-
- $.fn.on = function (types, sel, fn) {
-
- return this.delegate(sel, types, fn);
-
- };
-
- $.fn.off = function (types, sel, fn) {
-
- return this.undelegate(sel, types, fn);
-
- };
-
- return false;
- }
-
- return true;
- },
-
- outerHTML : function (el) {
- // support FireFox < 11
- return el.outerHTML || new XMLSerializer().serializeToString(el);
- },
-
- version : function () {
- return settings.version;
- }
-
- };
-
- $.fn.joyride = function (method) {
- if (methods[method]) {
- return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
- } else if (typeof method === 'object' || !method) {
- return methods.init.apply(this, arguments);
- } else {
- $.error('Method ' + method + ' does not exist on jQuery.joyride');
- }
- };
-
-}(jQuery, this));
diff --git a/lib/joyride-2.0.3-3/modernizr.mq.js b/lib/joyride-2.0.3-3/modernizr.mq.js
deleted file mode 100644
index 9e1d0d53c..000000000
--- a/lib/joyride-2.0.3-3/modernizr.mq.js
+++ /dev/null
@@ -1,224 +0,0 @@
-/* Modernizr 2.6.1 (Custom Build) | MIT & BSD
- * Build: http://modernizr.com/download/#-mq-teststyles
- */
-;
-
-
-
-window.Modernizr = (function( window, document, undefined ) {
-
- var version = '2.6.1',
-
- Modernizr = {},
-
-
- docElement = document.documentElement,
-
- mod = 'modernizr',
- modElem = document.createElement(mod),
- mStyle = modElem.style,
-
- inputElem ,
-
-
- toString = {}.toString, tests = {},
- inputs = {},
- attrs = {},
-
- classes = [],
-
- slice = classes.slice,
-
- featureName,
-
-
- injectElementWithStyles = function( rule, callback, nodes, testnames ) {
-
- var style, ret, node,
- div = document.createElement('div'),
- body = document.body,
- fakeBody = body ? body : document.createElement('body');
-
- if ( parseInt(nodes, 10) ) {
- while ( nodes-- ) {
- node = document.createElement('div');
- node.id = testnames ? testnames[nodes] : mod + (nodes + 1);
- div.appendChild(node);
- }
- }
-
- style = ['&#173;','<style id="s', mod, '">', rule, '</style>'].join('');
- div.id = mod;
- (body ? div : fakeBody).innerHTML += style;
- fakeBody.appendChild(div);
- if ( !body ) {
- fakeBody.style.background = "";
- docElement.appendChild(fakeBody);
- }
-
- ret = callback(div, rule);
- !body ? fakeBody.parentNode.removeChild(fakeBody) : div.parentNode.removeChild(div);
-
- return !!ret;
-
- },
-
- testMediaQuery = function( mq ) {
-
- var matchMedia = window.matchMedia || window.msMatchMedia;
- if ( matchMedia ) {
- return matchMedia(mq).matches;
- }
-
- var bool;
-
- injectElementWithStyles('@media ' + mq + ' { #' + mod + ' { position: absolute; } }', function( node ) {
- bool = (window.getComputedStyle ?
- getComputedStyle(node, null) :
- node.currentStyle)['position'] == 'absolute';
- });
-
- return bool;
-
- },
- _hasOwnProperty = ({}).hasOwnProperty, hasOwnProp;
-
- if ( !is(_hasOwnProperty, 'undefined') && !is(_hasOwnProperty.call, 'undefined') ) {
- hasOwnProp = function (object, property) {
- return _hasOwnProperty.call(object, property);
- };
- }
- else {
- hasOwnProp = function (object, property) {
- return ((property in object) && is(object.constructor.prototype[property], 'undefined'));
- };
- }
-
-
- if (!Function.prototype.bind) {
- Function.prototype.bind = function bind(that) {
-
- var target = this;
-
- if (typeof target != "function") {
- throw new TypeError();
- }
-
- var args = slice.call(arguments, 1),
- bound = function () {
-
- if (this instanceof bound) {
-
- var F = function(){};
- F.prototype = target.prototype;
- var self = new F();
-
- var result = target.apply(
- self,
- args.concat(slice.call(arguments))
- );
- if (Object(result) === result) {
- return result;
- }
- return self;
-
- } else {
-
- return target.apply(
- that,
- args.concat(slice.call(arguments))
- );
-
- }
-
- };
-
- return bound;
- };
- }
-
- function setCss( str ) {
- mStyle.cssText = str;
- }
-
- function setCssAll( str1, str2 ) {
- return setCss(prefixes.join(str1 + ';') + ( str2 || '' ));
- }
-
- function is( obj, type ) {
- return typeof obj === type;
- }
-
- function contains( str, substr ) {
- return !!~('' + str).indexOf(substr);
- }
-
-
- function testDOMProps( props, obj, elem ) {
- for ( var i in props ) {
- var item = obj[props[i]];
- if ( item !== undefined) {
-
- if (elem === false) return props[i];
-
- if (is(item, 'function')){
- return item.bind(elem || obj);
- }
-
- return item;
- }
- }
- return false;
- }
- for ( var feature in tests ) {
- if ( hasOwnProp(tests, feature) ) {
- featureName = feature.toLowerCase();
- Modernizr[featureName] = tests[feature]();
-
- classes.push((Modernizr[featureName] ? '' : 'no-') + featureName);
- }
- }
-
-
-
- Modernizr.addTest = function ( feature, test ) {
- if ( typeof feature == 'object' ) {
- for ( var key in feature ) {
- if ( hasOwnProp( feature, key ) ) {
- Modernizr.addTest( key, feature[ key ] );
- }
- }
- } else {
-
- feature = feature.toLowerCase();
-
- if ( Modernizr[feature] !== undefined ) {
- return Modernizr;
- }
-
- test = typeof test == 'function' ? test() : test;
-
- if (enableClasses) {
- docElement.className += ' ' + (test ? '' : 'no-') + feature;
- }
- Modernizr[feature] = test;
-
- }
-
- return Modernizr;
- };
-
-
- setCss('');
- modElem = inputElem = null;
-
-
- Modernizr._version = version;
-
-
- Modernizr.mq = testMediaQuery;
- Modernizr.testStyles = injectElementWithStyles;
- return Modernizr;
-
-})(this, this.document);
-;
\ No newline at end of file
diff --git a/lib/jquery.dd-3.3/Gruntfile.js b/lib/jquery.dd-3.3/Gruntfile.js
deleted file mode 100644
index 39ff94bb0..000000000
--- a/lib/jquery.dd-3.3/Gruntfile.js
+++ /dev/null
@@ -1,61 +0,0 @@
-module.exports = function(grunt) {
-
- var name = "jquery.dd";
- var version = "3.3";
- var base = "wv.palette";
-
- var lib = "lib/" + name + "-" + version + "/";
- var ext = "src/ext/" + base + "/" + name + "-" + version + "/";
- var debug_js = ext + name + ".js";
- var debug_css = ext + name + ".css";
- var min_js = ext + name + ".min.js";
- var min_css = ext + name + ".min.css";
-
- var css = [
- lib + "dd.css",
- lib + "skin2.css"
- ];
-
- var js = [
- lib + "jquery.dd.js",
- ];
-
- var uglifyFiles = {};
- uglifyFiles[min_js] = [debug_js];
-
- var cssminFiles = {};
- cssminFiles[min_css] = [debug_css];
-
- grunt.initConfig({
- concat: {
- js: {
- src: js,
- dest: debug_js
- },
- css: {
- src: css,
- dest: debug_css
- }
- },
-
- uglify: {
- js: {
- files: uglifyFiles
- }
- },
-
- cssmin: {
- css: {
- files: cssminFiles
- }
- }
- });
-
- grunt.file.setBase("../..");
- grunt.loadNpmTasks("grunt-contrib-concat");
- grunt.loadNpmTasks("grunt-contrib-cssmin");
- grunt.loadNpmTasks("grunt-contrib-uglify");
-
- grunt.registerTask("default", ["concat", "uglify", "cssmin"]);
-
-};
diff --git a/lib/jquery.dd-3.3/dd.css b/lib/jquery.dd-3.3/dd.css
deleted file mode 100644
index 7c952d7bb..000000000
--- a/lib/jquery.dd-3.3/dd.css
+++ /dev/null
@@ -1,64 +0,0 @@
-.borderRadius{-moz-border-radius:5px; border-radius:5px; }
-.borderRadiusTp{-moz-border-radius:5px 5px 0 0; border-radius:5px 5px 0 0;}
-.borderRadiusBtm{-moz-border-radius:0 0 5px 5px ; border-radius:0 0 5px 5px;}
-
-.ddcommon {position:relative;display:-moz-inline-stack; zoom:1; display:inline-block; *display:inline; cursor:default;}
-.ddcommon ul{padding:0;margin:0;}
-.ddcommon ul li{list-style-type:none;}
-.borderRadiusTp ul li:last-child{-moz-border-radius:0 0 5px 5px ; border-radius:0 0 5px 5px;border-bottom:0 none #c3c3c3; }
-.borderRadiusBtm ul li:first-child{-moz-border-radius:5px 5px 0 0; border-radius:5px 5px 0 0 ;border-bottom:1 solid #c3c3c3; }
-
-.ddcommon .disabled img, .ddcommon .disabled span, .ddcommon.disabledAll{
-opacity: .5; /* standard: ff gt 1.5, opera, safari */
--ms-filter:"alpha(opacity=50)"; /* ie 8 */
-filter:alpha(opacity=50); /* ie lt 7 */
--khtml-opacity:.5; /* safari 1.x */
--moz-opacity:.5; /* ff lt 1.5, netscape */
-color:#999999;
-}
-.ddcommon .clear{clear:both}
-.ddcommon .shadow{-moz-box-shadow:5px 5px 5px -5px #888888;-webkit-box-shadow:5px 5px 5px -5px #888888;box-shadow: 5px 5px 5px -5px #888888;}
-.ddcommon input.text{color:#7e7e7e;padding:0 0 0 0; position:absolute; background:#fff; display:block; width:98%; height:98%; left:2px; top:0; border:none;}
-.ddOutOfVision{position:relative; display:-moz-inline-stack; display:inline-block; zoom:1; *display:inline;}
-.borderRadius .shadow{-moz-box-shadow:5px 5px 5px -5px #888888;-webkit-box-shadow:5px 5px 5px -5px #888888;box-shadow: 5px 5px 5px -5px #888888;}
-.borderRadiusBtm .shadow{-moz-box-shadow:-5px -5px 5px -5px #888888;-webkit-box-shadow:-5px -5px 5px -5px #888888;box-shadow: -5px -5px 5px -5px #888888}
-.borderRadiusTp .border, .borderRadius .border{-moz-border-radius:0 0 5px 5px ; border-radius:0 0 5px 5px;}
-.borderRadiusBtm .border{-moz-border-radius:5px 5px 0 0; border-radius:5px 5px 0 0;}
-img.fnone{float:none !important}
-.ddcommon .divider{width:0; height:100%; position:absolute;}
-.ddcommon .arrow{display:inline-block; position:absolute; top:50%; right:4px;}
-.ddcommon .arrow:hover{background-position:0 100%;}
-.ddcommon .ddTitle{padding:0; position:relative; display:inline-block; width:100%}
-.ddcommon .ddTitle .ddTitleText{display:block;}
-.ddcommon .ddTitle .ddTitleText .ddTitleText{padding:0;}
-.ddcommon .ddTitle .description{display:block;}
-.ddcommon .ddTitle .ddTitleText img{position:relative; vertical-align:middle; float:left}
-.ddcommon .ddChild{position:absolute;display:none;width:100%;overflow-y:auto; overflow-x:hidden; zoom:1; z-index:9999}
-.ddcommon .ddChild li{clear:both;}
-.ddcommon .ddChild li .description{display:block;}
-.ddcommon .ddChild li img{border:0 none; position:relative;vertical-align:middle;float:left}
-.ddcommon .ddChild li.optgroup{padding:0;}
-.ddcommon .ddChild li.optgroup .optgroupTitle{padding:0 5px; font-weight:bold; font-style:italic}
-.ddcommon .ddChild li.optgroup ul li{padding:5px 5px 5px 15px}
-.ddcommon .noBorderTop{border-top:none 0 !important; padding:0; margin:0;}
-
-/*************** default theme **********************/
-.dd{border:1px solid #c3c3c3;}
-.dd .divider{border-left:1px solid #c3c3c3; border-right:1px solid #fff;; right:24px;}
-.dd .arrow{width:16px;height:16px; margin-top:-8px; background:url(images/jquery.dd-3.3/skin1/dd_arrow.gif) no-repeat;}
-.dd .arrow:hover{background-position:0 100%;}
-.dd .ddTitle{color:#000;background:#e2e2e4 url(images/jquery.dd-3.3/skin1/title-bg.gif) repeat-x left top;}
-.dd .ddTitle .ddTitleText{padding:5px 20px 5px 5px;}
-.dd .ddTitle .ddTitleText .ddTitleText{padding:0;}
-.dd .ddTitle .description{font-size:12px; color:#666}
-.dd .ddTitle .ddTitleText img{padding-right:5px;}
-.dd .ddChild{border:1px solid #c3c3c3; background-color:#fff; left:-1px;}
-.dd .ddChild li{padding:5px; background-color:#fff; border-bottom:1px solid #c3c3c3;}
-.dd .ddChild li .description{color:#666;}
-.dd .ddChild li .ddlabel{color:#333;}
-.dd .ddChild li.hover{background-color:#f2f2f2}
-.dd .ddChild li img{padding:0 6px 0 0;}
-.dd .ddChild li.optgroup{padding:0;}
-.dd .ddChild li.optgroup .optgroupTitle{padding:0 5px; font-weight:bold; font-style:italic}
-.dd .ddChild li.optgroup ul li{padding:5px 5px 5px 15px}
-.dd .ddChild li.selected{background-color:#d5d5d5; color:#000;}
diff --git a/lib/jquery.dd-3.3/jquery.dd.js b/lib/jquery.dd-3.3/jquery.dd.js
deleted file mode 100644
index 6bae8bddc..000000000
--- a/lib/jquery.dd-3.3/jquery.dd.js
+++ /dev/null
@@ -1,1482 +0,0 @@
-// MSDropDown - jquery.dd.js
-// author: Marghoob Suleman - http://www.marghoobsuleman.com/
-// Date: 10 Nov, 2012
-// Version: 3.3
-// Revision: 22
-// web: www.marghoobsuleman.com
-/*
-// msDropDown is free jQuery Plugin: you can redistribute it and/or modify
-// it under the terms of the either the MIT License or the Gnu General Public License (GPL) Version 2
-*/
-var msBeautify = msBeautify || {};
-(function ($) {
-msBeautify = {
- version: {msDropdown:'3.3'},
- author: "Marghoob Suleman",
- counter: 20,
- debug: function (v) {
- if (v !== false) {
- $(".ddOutOfVision").css({height: 'auto', position: 'relative'});
- } else {
- $(".ddOutOfVision").css({height: '0px', position: 'absolute'});
- }
- },
- oldDiv: '',
- create: function (id, settings, type) {
- type = type || "dropdown";
- var data;
- switch (type.toLowerCase()) {
- case "dropdown":
- case "select":
- data = $(id).msDropdown(settings).data("dd");
- break;
- }
- return data;
- }
-};
-
-$.msDropDown = {};
-$.msDropdown = {};
-$.extend(true, $.msDropDown, msBeautify);
-$.extend(true, $.msDropdown, msBeautify);
-// make compatibiliy with old and new jquery
-if ($.fn.prop === undefined) {$.fn.prop = $.fn.attr;}
-if ($.fn.on === undefined) {$.fn.on = $.fn.bind;$.fn.off = $.fn.unbind;}
-if (typeof $.expr.createPseudo === 'function') {
- //jQuery 1.8 or greater
- $.expr[':'].Contains = $.expr.createPseudo(function (arg) {return function (elem) { return $(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0; }; });
-} else {
- //lower version
- $.expr[':'].Contains = function (a, i, m) {return $(a).text().toUpperCase().indexOf(m[3].toUpperCase()) >= 0; };
-}
-//dropdown class
-function dd(element, settings) {
- var _settings = $.extend(true,{byJson: {data: null, selectedIndex: 0, name: null, size: 0, multiple: false, width: 250},
- mainCSS: 'dd',
- height: 120, //not using currently
- visibleRows: 7,
- rowHeight: 0,
- showIcon: true,
- zIndex: 9999,
- useSprite: false,
- animStyle: 'slideDown',
- event:'click',
- openDirection: 'auto', //auto || alwaysUp
- jsonTitle: true,
- style: '',
- disabledOpacity: 0.7,
- disabledOptionEvents: true,
- childWidth:0,
- enableCheckbox:false, //this needs to multiple or it will set element to multiple
- checkboxNameSuffix:'_mscheck',
- append:'',
- prepend:'',
- on: {create: null,open: null,close: null,add: null,remove: null,change: null,blur: null,click: null,dblclick: null,mousemove: null,mouseover: null,mouseout: null,focus: null,mousedown: null,mouseup: null}
- }, settings);
- var _this = this; //this class
- var _holderId = {postElementHolder: '_msddHolder', postID: '_msdd', postTitleID: '_title',postTitleTextID: '_titleText', postChildID: '_child'};
- var _styles = {dd:_settings.mainCSS, ddTitle: 'ddTitle', arrow: 'arrow arrowoff', ddChild: 'ddChild', ddTitleText: 'ddTitleText',disabled: 'disabled', enabled: 'enabled', ddOutOfVision: 'ddOutOfVision', borderTop: 'borderTop', noBorderTop: 'noBorderTop', selected: 'selected', divider: 'divider', optgroup: "optgroup", optgroupTitle: "optgroupTitle", description: "description", label: "ddlabel",hover: 'hover',disabledAll: 'disabledAll'};
- var _styles_i = {li: '_msddli_',borderRadiusTp: 'borderRadiusTp',ddChildMore: 'border shadow',fnone: "fnone"};
- var _isList = false, _isMultiple=false,_isDisabled=false, _cacheElement = {}, _element, _orginial = {}, _isOpen=false;
- var DOWN_ARROW = 40, UP_ARROW = 38, LEFT_ARROW=37, RIGHT_ARROW=39, ESCAPE = 27, ENTER = 13, ALPHABETS_START = 47, SHIFT=16 , CONTROL = 17;
- var _shiftHolded=false, _controlHolded=false,_lastTarget=null,_forcedTrigger=false, _oldSelected, _isCreated = false;
- var _doc = document, _ua = window.navigator.userAgent, _isIE = _ua.match(/msie/i);
- var msieversion = function()
- {
- var msie = _ua.indexOf("MSIE");
- if ( msie > 0 ) { // If Internet Explorer, return version number
- return parseInt (_ua.substring (msie+5, _ua.indexOf (".", msie)));
- } else { // If another browser, return 0
- return 0;
- };
- };
- var _checkDataSetting = function() {
- _settings.mainCSS = $("#"+_element).data("maincss") || _settings.mainCSS;
- _settings.visibleRows = $("#"+_element).data("visiblerows") || _settings.visibleRows;
- if($("#"+_element).data("showicon")==false) {_settings.showIcon = $("#"+_element).data("showicon");};
- _settings.useSprite = $("#"+_element).data("usesprite") || _settings.useSprite;
- _settings.animStyle = $("#"+_element).data("animstyle") || _settings.animStyle;
- _settings.event = $("#"+_element).data("event") || _settings.event;
- _settings.openDirection = $("#"+_element).data("opendirection") || _settings.openDirection;
- _settings.jsonTitle = $("#"+_element).data("jsontitle") || _settings.jsonTitle;
- _settings.disabledOpacity = $("#"+_element).data("disabledopacity") || _settings.disabledOpacity;
- _settings.childWidth = $("#"+_element).data("childwidth") || _settings.childWidth;
- _settings.enableCheckbox = $("#"+_element).data("enablecheckbox") || _settings.enableCheckbox;
- _settings.checkboxNameSuffix = $("#"+_element).data("checkboxnamesuffix") || _settings.checkboxNameSuffix;
- _settings.append = $("#"+_element).data("append") || _settings.append;
- _settings.prepend = $("#"+_element).data("prepend") || _settings.prepend;
- };
- var getElement = function(ele) {
- if (_cacheElement[ele] === undefined) {
- _cacheElement[ele] = _doc.getElementById(ele);
- }
- return _cacheElement[ele];
- };
- var _getIndex = function(opt) {
- var childid = _getPostID("postChildID");
- return $("#"+childid + " li."+_styles_i.li).index(opt);
- };
- var _createByJson = function() {
- if (_settings.byJson.data) {
- var validData = ["description","image", "title"];
- try {
- if (!element.id) {
- element.id = "dropdown"+msBeautify.counter;
- };
- _settings.byJson.data = eval(_settings.byJson.data);
- //change element
- var id = "msdropdown"+(msBeautify.counter++);
- var obj = {};
- obj.id = id;
- obj.name = _settings.byJson.name || element.id; //its name
- if (_settings.byJson.size>0) {
- obj.size = _settings.byJson.size;
- };
- obj.multiple = _settings.byJson.multiple;
- var oSelect = _createElement("select", obj);
- for(var i=0;i<_settings.byJson.data.length;i++) {
- var current = _settings.byJson.data[i];
- var opt = new Option(current.text, current.value);
- for(var p in current) {
- if (p.toLowerCase() != 'text') {
- var key = ($.inArray(p.toLowerCase(), validData)!=-1) ? "data-" : "";
- opt.setAttribute(key+p, current[p]);
- };
- };
- oSelect.options[i] = opt;
- };
- getElement(element.id).appendChild(oSelect);
- oSelect.selectedIndex = _settings.byJson.selectedIndex;
- $(oSelect).css({width: _settings.byJson.width+'px'});
- //now change element for access other things
- element = oSelect;
- } catch(e) {
- throw "There is an error in json data.";
- };
- };
- };
- var _construct = function() {
- //set properties
- _createByJson();
- if (!element.id) {
- element.id = "msdrpdd"+(msBeautify.counter++);
- };
- _element = element.id;
- _this._element = _element;
- _checkDataSetting();
- _isDisabled = getElement(_element).disabled;
- var useCheckbox = _settings.enableCheckbox;
- if(Boolean(useCheckbox)===true) {
- getElement(_element).multiple = true;
- _settings.enableCheckbox = true;
- };
- _isList = (getElement(_element).size>1 || getElement(_element).multiple==true) ? true : false;
- //trace("_isList "+_isList);
- if (_isList) {_isMultiple = getElement(_element).multiple;};
- _mergeAllProp();
- //create layout
- _createLayout();
- //set ui prop
- _updateProp("uiData", _getDataAndUI());
- _updateProp("selectedOptions", $("#"+_element +" option:selected"));
- var childid = _getPostID("postChildID");
- _oldSelected = $("#" + childid + " li." + _styles.selected);
-
- };
- /********************************************************************************************/
- var _getPostID = function (id) {
- return _element+_holderId[id];
- };
- var _getInternalStyle = function(ele) {
- var s = (ele.style === undefined) ? "" : ele.style.cssText;
- return s;
- };
- var _parseOption = function(opt) {
- var imagePath = '', title ='', description='', value=-1, text='', className='', imagecss = '';
- if (opt !== undefined) {
- var attrTitle = opt.title || "";
- //data-title
- if (attrTitle!="") {
- var reg = /^\{.*\}$/;
- var isJson = reg.test(attrTitle);
- if (isJson && _settings.jsonTitle) {
- var obj = eval("["+attrTitle+"]");
- };
- title = (isJson && _settings.jsonTitle) ? obj[0].title : title;
- description = (isJson && _settings.jsonTitle) ? obj[0].description : description;
- imagePath = (isJson && _settings.jsonTitle) ? obj[0].image : attrTitle;
- imagecss = (isJson && _settings.jsonTitle) ? obj[0].imagecss : imagecss;
- };
-
- text = opt.text || '';
- value = opt.value || '';
- className = opt.className || "";
- //ignore title attribute if playing with data tags
- title = $(opt).prop("data-title") || $(opt).data("title") || (title || "");
- description = $(opt).prop("data-description") || $(opt).data("description") || (description || "");
- imagePath = $(opt).prop("data-image") || $(opt).data("image") || (imagePath || "");
- imagecss = $(opt).prop("data-imagecss") || $(opt).data("imagecss") || (imagecss || "");
-
- };
- var o = {image: imagePath, title: title, description: description, value: value, text: text, className: className, imagecss:imagecss};
- return o;
- };
- var _createElement = function(nm, attr, html) {
- var tag = _doc.createElement(nm);
- if (attr) {
- for(var i in attr) {
- switch(i) {
- case "style":
- tag.style.cssText = attr[i];
- break;
- default:
- tag[i] = attr[i];
- break;
- };
- };
- };
- if (html) {
- tag.innerHTML = html;
- };
- return tag;
- };
- /********************************************************************************************/
- /*********************** <layout> *************************************/
- var _hideOriginal = function() {
- var hidid = _getPostID("postElementHolder");
- if ($("#"+hidid).length==0) {
- var obj = {style: 'height: 0px;overflow: hidden;position: absolute;',className: _styles.ddOutOfVision};
- obj.id = hidid;
- var oDiv = _createElement("div", obj);
- $("#"+_element).after(oDiv);
- $("#"+_element).appendTo($("#"+hidid));
- } else {
- $("#"+hidid).css({height: 0,overflow: 'hidden',position: 'absolute'});
- };
- };
- var _createWrapper = function () {
- var obj = {
- className: _styles.dd + " ddcommon borderRadius"
- };
- var styles = _getInternalStyle(getElement(_element));
- var w = $("#" + _element).outerWidth();
- obj.style = "width: " + w + "px;";
- if (styles.length > 0) {
- obj.style = obj.style + "" + styles;
- };
- obj.id = _getPostID("postID");
- var oDiv = _createElement("div", obj);
- return oDiv;
- };
- var _createTitle = function () {
- var selectedOption;
- if(getElement(_element).selectedIndex>=0) {
- selectedOption = getElement(_element).options[getElement(_element).selectedIndex];
- } else {
- selectedOption = {value:'', text:''};
- }
- var spriteClass = "", selectedClass = "";
- //check sprite
- var useSprite = $("#"+_element).data("usesprite");
- if(useSprite) { _settings.useSprite = useSprite; };
- if (_settings.useSprite != false) {
- spriteClass = " " + _settings.useSprite;
- selectedClass = " " + selectedOption.className;
- };
- var oTitle = _createElement("div", {className: _styles.ddTitle + spriteClass + " " + _styles_i.borderRadiusTp});
- //divider
- var oDivider = _createElement("span", {className: _styles.divider});
- //arrow
- var oArrow = _createElement("span", {className: _styles.arrow});
- //title Text
- var titleid = _getPostID("postTitleID");
- var oTitleText = _createElement("span", {className: _styles.ddTitleText + selectedClass, id: titleid});
-
- var parsed = _parseOption(selectedOption);
- var arrowPath = parsed.image;
- var sText = parsed.text || "";
- if (arrowPath != "" && _settings.showIcon) {
- var oIcon = _createElement("img");
- oIcon.src = arrowPath;
- if(parsed.imagecss!="") {
- oIcon.className = parsed.imagecss+" ";
- };
- };
- var oTitleText_in = _createElement("span", {className: _styles.label}, sText);
- oTitle.appendChild(oDivider);
- oTitle.appendChild(oArrow);
- if (oIcon) {
- oTitleText.appendChild(oIcon);
- };
- oTitleText.appendChild(oTitleText_in);
- oTitle.appendChild(oTitleText);
- var oDescription = _createElement("span", {className: _styles.description}, parsed.description);
- oTitleText.appendChild(oDescription);
- return oTitle;
- };
- var _createFilterBox = function () {
- var tid = _getPostID("postTitleTextID");
- var sText = _createElement("input", {id: tid, type: 'text', value: '', autocomplete: 'off', className: 'text shadow borderRadius', style: 'display: none'});
- return sText;
- };
- var _createChild = function (opt) {
- var obj = {};
- var styles = _getInternalStyle(opt);
- if (styles.length > 0) {obj.style = styles; };
- var css = (opt.disabled) ? _styles.disabled : _styles.enabled;
- css = (opt.selected) ? (css + " " + _styles.selected) : css;
- css = css + " " + _styles_i.li;
- obj.className = css;
- if (_settings.useSprite != false) {
- obj.className = css + " " + opt.className;
- };
- var li = _createElement("li", obj);
- var parsed = _parseOption(opt);
- if (parsed.title != "") {
- li.title = parsed.title;
- };
- var arrowPath = parsed.image;
- if (arrowPath != "" && _settings.showIcon) {
- var oIcon = _createElement("img");
- oIcon.src = arrowPath;
- if(parsed.imagecss!="") {
- oIcon.className = parsed.imagecss+" ";
- };
- };
- if (parsed.description != "") {
- var oDescription = _createElement("span", {
- className: _styles.description
- }, parsed.description);
- };
- var sText = opt.text || "";
- var oTitleText = _createElement("span", {
- className: _styles.label
- }, sText);
- //checkbox
- if(_settings.enableCheckbox===true) {
- var chkbox = _createElement("input", {
- type: 'checkbox', name:_element+_settings.checkboxNameSuffix+'[]', value:opt.value||""}); //this can be used for future
- li.appendChild(chkbox);
- if(_settings.enableCheckbox===true) {
- chkbox.checked = (opt.selected) ? true : false;
- };
- };
- if (oIcon) {
- li.appendChild(oIcon);
- };
- li.appendChild(oTitleText);
- if (oDescription) {
- li.appendChild(oDescription);
- } else {
- if (oIcon) {
- oIcon.className = oIcon.className+_styles_i.fnone;
- };
- };
- var oClear = _createElement("div", {className: 'clear'});
- li.appendChild(oClear);
- return li;
- };
- var _createChildren = function () {
- var childid = _getPostID("postChildID");
- var obj = {className: _styles.ddChild + " ddchild_ " + _styles_i.ddChildMore, id: childid};
- if (_isList == false) {
- obj.style = "z-index: " + _settings.zIndex;
- } else {
- obj.style = "z-index:1";
- };
- var childWidth = $("#"+_element).data("childwidth") || _settings.childWidth;
- if(childWidth) {
- obj.style = (obj.style || "") + ";width:"+childWidth;
- };
- var oDiv = _createElement("div", obj);
- var ul = _createElement("ul");
- if (_settings.useSprite != false) {
- ul.className = _settings.useSprite;
- };
- var allOptions = getElement(_element).children;
- for (var i = 0; i < allOptions.length; i++) {
- var current = allOptions[i];
- var li;
- if (current.nodeName.toLowerCase() == "optgroup") {
- //create ul
- li = _createElement("li", {className: _styles.optgroup});
- var span = _createElement("span", {className: _styles.optgroupTitle}, current.label);
- li.appendChild(span);
- var optChildren = current.children;
- var optul = _createElement("ul");
- for (var j = 0; j < optChildren.length; j++) {
- var opt_li = _createChild(optChildren[j]);
- optul.appendChild(opt_li);
- };
- li.appendChild(optul);
- } else {
- li = _createChild(current);
- };
- ul.appendChild(li);
- };
- oDiv.appendChild(ul);
- return oDiv;
- };
- var _childHeight = function (val) {
- var childid = _getPostID("postChildID");
- if (val) {
- if (val == -1) { //auto
- $("#"+childid).css({height: "auto", overflow: "auto"});
- } else {
- $("#"+childid).css("height", val+"px");
- };
- return false;
- };
- //else return height
- var iHeight;
- if (getElement(_element).options.length > _settings.visibleRows) {
- var margin = parseInt($("#" + childid + " li:first").css("padding-bottom")) + parseInt($("#" + childid + " li:first").css("padding-top"));
- if(_settings.rowHeight===0) {
- $("#" + childid).css({visibility:'hidden',display:'block'}); //hack for first child
- _settings.rowHeight = Math.round($("#" + childid + " li:first").height());
- $("#" + childid).css({visibility:'visible'});
- if(!_isList || _settings.enableCheckbox===true) {
- $("#" + childid).css({display:'none'});
- };
- };
- iHeight = ((_settings.rowHeight + margin) * _settings.visibleRows);
- } else if (_isList) {
- iHeight = $("#" + _element).height(); //get height from original element
- };
- return iHeight;
- };
- var _applyChildEvents = function () {
- var childid = _getPostID("postChildID");
- $("#" + childid).on("click", function (e) {
- if (_isDisabled === true) return false;
- //prevent body click
- e.preventDefault();
- e.stopPropagation();
- if (_isList) {
- _bind_on_events();
- };
- });
- $("#" + childid + " li." + _styles.enabled).on("click", function (e) {
- if(e.target.nodeName.toLowerCase() !== "input") {
- _close(this);
- };
- });
- $("#" + childid + " li." + _styles.enabled).on("mousedown", function (e) {
- if (_isDisabled === true) return false;
- _oldSelected = $("#" + childid + " li." + _styles.selected);
- _lastTarget = this;
- e.preventDefault();
- e.stopPropagation();
- //select current input
- if(_settings.enableCheckbox===true) {
- if(e.target.nodeName.toLowerCase() === "input") {
- _controlHolded = true;
- };
- };
- if (_isList === true) {
- if (_isMultiple) {
- if (_shiftHolded === true) {
- $(this).addClass(_styles.selected);
- var selected = $("#" + childid + " li." + _styles.selected);
- var lastIndex = _getIndex(this);
- if (selected.length > 1) {
- var items = $("#" + childid + " li." + _styles_i.li);
- var ind1 = _getIndex(selected[0]);
- var ind2 = _getIndex(selected[1]);
- if (lastIndex > ind2) {
- ind1 = (lastIndex);
- ind2 = ind2 + 1;
- };
- for (var i = Math.min(ind1, ind2); i <= Math.max(ind1, ind2); i++) {
- var current = items[i];
- if ($(current).hasClass(_styles.enabled)) {
- $(current).addClass(_styles.selected);
- };
- };
- };
- } else if (_controlHolded === true) {
- $(this).toggleClass(_styles.selected); //toggle
- if(_settings.enableCheckbox===true) {
- var checkbox = this.childNodes[0];
- checkbox.checked = !checkbox.checked; //toggle
- };
- } else {
- $("#" + childid + " li." + _styles.selected).removeClass(_styles.selected);
- $("#" + childid + " input:checkbox").prop("checked", false);
- $(this).addClass(_styles.selected);
- if(_settings.enableCheckbox===true) {
- this.childNodes[0].checked = true;
- };
- };
- } else {
- $("#" + childid + " li." + _styles.selected).removeClass(_styles.selected);
- $(this).addClass(_styles.selected);
- };
- //fire event on mouseup
- } else {
- $("#" + childid + " li." + _styles.selected).removeClass(_styles.selected);
- $(this).addClass(_styles.selected);
- };
- });
- $("#" + childid + " li." + _styles.enabled).on("mouseenter", function (e) {
- if (_isDisabled === true) return false;
- e.preventDefault();
- e.stopPropagation();
- if (_lastTarget != null) {
- if (_isMultiple) {
- $(this).addClass(_styles.selected);
- if(_settings.enableCheckbox===true) {
- this.childNodes[0].checked = true;
- };
- };
- };
- });
-
- $("#" + childid + " li." + _styles.enabled).on("mouseover", function (e) {
- if (_isDisabled === true) return false;
- $(this).addClass(_styles.hover);
- });
- $("#" + childid + " li." + _styles.enabled).on("mouseout", function (e) {
- if (_isDisabled === true) return false;
- $("#" + childid + " li." + _styles.hover).removeClass(_styles.hover);
- });
-
- $("#" + childid + " li." + _styles.enabled).on("mouseup", function (e) {
- if (_isDisabled === true) return false;
- e.preventDefault();
- e.stopPropagation();
- if(_settings.enableCheckbox===true) {
- _controlHolded = false;
- };
- var selected = $("#" + childid + " li." + _styles.selected).length;
- _forcedTrigger = (_oldSelected.length != selected || selected == 0) ? true : false;
- _fireAfterItemClicked();
- _unbind_on_events(); //remove old one
- _bind_on_events();
- _lastTarget = null;
- });
-
- /* options events */
- if (_settings.disabledOptionEvents == false) {
- $("#" + childid + " li." + _styles_i.li).on("click", function (e) {
- if (_isDisabled === true) return false;
- fireOptionEventIfExist(this, "click");
- });
- $("#" + childid + " li." + _styles_i.li).on("mouseenter", function (e) {
- if (_isDisabled === true) return false;
- fireOptionEventIfExist(this, "mouseenter");
- });
- $("#" + childid + " li." + _styles_i.li).on("mouseover", function (e) {
- if (_isDisabled === true) return false;
- fireOptionEventIfExist(this, "mouseover");
- });
- $("#" + childid + " li." + _styles_i.li).on("mouseout", function (e) {
- if (_isDisabled === true) return false;
- fireOptionEventIfExist(this, "mouseout");
- });
- $("#" + childid + " li." + _styles_i.li).on("mousedown", function (e) {
- if (_isDisabled === true) return false;
- fireOptionEventIfExist(this, "mousedown");
- });
- $("#" + childid + " li." + _styles_i.li).on("mouseup", function (e) {
- if (_isDisabled === true) return false;
- fireOptionEventIfExist(this, "mouseup");
- });
- };
- };
- var _removeChildEvents = function () {
- var childid = _getPostID("postChildID");
- $("#" + childid).off("click");
- $("#" + childid + " li." + _styles.enabled).off("mouseenter");
- $("#" + childid + " li." + _styles.enabled).off("click");
- $("#" + childid + " li." + _styles.enabled).off("mouseover");
- $("#" + childid + " li." + _styles.enabled).off("mouseout");
- $("#" + childid + " li." + _styles.enabled).off("mousedown");
- $("#" + childid + " li." + _styles.enabled).off("mouseup");
- };
- var _applyEvents = function () {
- var id = _getPostID("postID");
- var childid = _getPostID("postChildID");
- $("#" + id).on(_settings.event, function (e) {
- if (_isDisabled === true) return false;
- fireEventIfExist("click");
- //prevent body click
- e.preventDefault();
- e.stopPropagation();
- _open(e);
- });
- _applyChildEvents();
- $("#" + id).on("dblclick", on_dblclick);
- $("#" + id).on("mousemove", on_mousemove);
- $("#" + id).on("mouseenter", on_mouseover);
- $("#" + id).on("mouseleave", on_mouseout);
- $("#" + id).on("mousedown", on_mousedown);
- $("#" + id).on("mouseup", on_mouseup);
- };
- //after create
- var _fixedForList = function () {
- var id = _getPostID("postID");
- var childid = _getPostID("postChildID");
- if (_isList === true && _settings.enableCheckbox===false) {
- $("#" + id + " ." + _styles.ddTitle).hide();
- $("#" + childid).css({display: 'block', position: 'relative'});
- //_open();
- } else {
- if(_settings.enableCheckbox===false) {
- _isMultiple = false; //set multiple off if this is not a list
- };
- $("#" + id + " ." + _styles.ddTitle).show();
- $("#" + childid).css({display: 'none', position: 'absolute'});
- //set value
- var first = $("#" + childid + " li." + _styles.selected)[0];
- $("#" + childid + " li." + _styles.selected).removeClass(_styles.selected);
- var index = _getIndex($(first).addClass(_styles.selected));
- _setValue(index);
- };
- _childHeight(_childHeight()); //get and set height
- };
- var _fixedForDisabled = function () {
- var id = _getPostID("postID");
- var opc = (_isDisabled == true) ? _settings.disabledOpacity : 1;
- if (_isDisabled === true) {
- $("#" + id).addClass(_styles.disabledAll);
- } else {
- $("#" + id).removeClass(_styles.disabledAll);
- };
- };
- var _fixedSomeUI = function () {
- //auto filter
- var tid = _getPostID("postTitleTextID");
- $("#" + tid).on("keyup", _applyFilters);
- //if is list
- _fixedForList();
- _fixedForDisabled();
- };
- var _createLayout = function () {
- var oDiv = _createWrapper();
- var oTitle = _createTitle();
- oDiv.appendChild(oTitle);
- //auto filter box
- var oFilterBox = _createFilterBox();
- oDiv.appendChild(oFilterBox);
-
- var oChildren = _createChildren();
- oDiv.appendChild(oChildren);
- $("#" + _element).after(oDiv);
- _hideOriginal(); //hideOriginal
- _fixedSomeUI();
- _applyEvents();
-
- var childid = _getPostID("postChildID");
- //append
- if(_settings.append!='') {
- $("#" + childid).append(_settings.append);
- };
- //prepend
- if(_settings.prepend!='') {
- $("#" + childid).prepend(_settings.prepend);
- };
- if (typeof _settings.on.create == "function") {
- _settings.on.create.apply(_this, arguments);
- };
- };
- var _selectMutipleOptions = function (bySelected) {
- var childid = _getPostID("postChildID");
- var selected = bySelected || $("#" + childid + " li." + _styles.selected); //bySelected or by argument
- for (var i = 0; i < selected.length; i++) {
- var ind = _getIndex(selected[i]);
- getElement(_element).options[ind].selected = "selected";
- };
- _setValue(selected);
- };
- var _fireAfterItemClicked = function () {
- //console.log("_fireAfterItemClicked")
- var childid = _getPostID("postChildID");
- var selected = $("#" + childid + " li." + _styles.selected);
- if (_isMultiple && (_shiftHolded || _controlHolded) || _forcedTrigger) {
- getElement(_element).selectedIndex = -1; //reset old
- };
- var index;
- if (selected.length == 0) {
- index = -1;
- } else if (selected.length > 1) {
- //selected multiple
- _selectMutipleOptions(selected);
- //index = $("#" + childid + " li." + _styles.selected);
-
- } else {
- //if one selected
- index = _getIndex($("#" + childid + " li." + _styles.selected));
- };
- if ((getElement(_element).selectedIndex != index || _forcedTrigger) && selected.length<=1) {
- _forcedTrigger = false;
- var evt = has_handler("change");
- getElement(_element).selectedIndex = index;
- _setValue(index);
- //local
- if (typeof _settings.on.change == "function") {
- var d = _getDataAndUI();
- _settings.on.change(d.data, d.ui);
- };
- $("#" + _element).trigger("change");
- };
- };
- var _setValue = function (index, byvalue) {
- if (index !== undefined) {
- var selectedIndex, value, selectedText;
- if (index == -1) {
- selectedIndex = -1;
- value = "";
- selectedText = "";
- _updateTitleUI(-1);
- } else {
- //by index or byvalue
- if (typeof index != "object") {
- var opt = getElement(_element).options[index];
- getElement(_element).selectedIndex = index;
- selectedIndex = index;
- value = _parseOption(opt);
- selectedText = (index >= 0) ? getElement(_element).options[index].text : "";
- _updateTitleUI(undefined, value);
- value = value.value; //for bottom
- } else {
- //this is multiple or by option
- selectedIndex = (byvalue && byvalue.index) || getElement(_element).selectedIndex;
- value = (byvalue && byvalue.value) || getElement(_element).value;
- selectedText = (byvalue && byvalue.text) || getElement(_element).options[getElement(_element).selectedIndex].text || "";
- _updateTitleUI(selectedIndex);
- };
- };
- _updateProp("selectedIndex", selectedIndex);
- _updateProp("value", value);
- _updateProp("selectedText", selectedText);
- _updateProp("children", getElement(_element).children);
- _updateProp("uiData", _getDataAndUI());
- _updateProp("selectedOptions", $("#" + _element + " option:selected"));
- };
- };
- var has_handler = function (name) {
- //True if a handler has been added in the html.
- var evt = {byElement: false, byJQuery: false, hasEvent: false};
- var obj = $("#" + _element);
- //console.log(name)
- try {
- //console.log(obj.prop("on" + name) + " "+name);
- if (obj.prop("on" + name) !== null) {
- evt.hasEvent = true;
- evt.byElement = true;
- };
- } catch(e) {
- //console.log(e.message);
- }
- // True if a handler has been added using jQuery.
- var evs;
- if (typeof $._data == "function") { //1.8
- evs = $._data(obj[0], "events");
- } else {
- evs = obj.data("events");
- };
- if (evs && evs[name]) {
- evt.hasEvent = true;
- evt.byJQuery = true;
- };
- return evt;
- };
- var _bind_on_events = function () {
- _unbind_on_events();
- $("body").on("click", _close);
- //bind more events
- $(document).on("keydown", on_keydown);
- $(document).on("keyup", on_keyup);
- //focus will work on this
- };
- var _unbind_on_events = function () {
- $("body").off("click", _close);
- //bind more events
- $(document).off("keydown", on_keydown);
- $(document).off("keyup", on_keyup);
- };
- var _applyFilters = function () {
- var childid = _getPostID("postChildID");
- var tid = _getPostID("postTitleTextID");
- var sText = getElement(tid).value;
- if (sText.length == 0) {
- $("#" + childid + " li:hidden").show(); //show if hidden
- _childHeight(_childHeight());
- } else {
- $("#" + childid + " li").hide();
- $("#" + childid + " li:Contains('" + sText + "')").show();
- if ($("#" + childid + " li:visible").length <= _settings.visibleRows) {
- _childHeight(-1); //set autoheight
- };
- };
- };
- var _showFilterBox = function () {
- var tid = _getPostID("postTitleTextID");
- if ($("#" + tid + ":hidden").length > 0 && _controlHolded == false) {
- $("#" + tid + ":hidden").show().val("");
- getElement(tid).focus();
- };
- };
- var _hideFilterBox = function () {
- var tid = _getPostID("postTitleTextID");
- if ($("#" + tid + ":visible").length > 0) {
- $("#" + tid + ":visible").hide();
- getElement(tid).blur();
- };
- };
- var on_keydown = function (evt) {
- var tid = _getPostID("postTitleTextID");
- var childid = _getPostID("postChildID");
- switch (evt.keyCode) {
- case DOWN_ARROW:
- case RIGHT_ARROW:
- evt.preventDefault();
- evt.stopPropagation();
- //_hideFilterBox();
- _next();
- break;
- case UP_ARROW:
- case LEFT_ARROW:
- evt.preventDefault();
- evt.stopPropagation();
- //_hideFilterBox();
- _previous();
- break;
- case ESCAPE:
- case ENTER:
- evt.preventDefault();
- evt.stopPropagation();
- _close();
- var selected = $("#" + childid + " li." + _styles.selected).length;
- _forcedTrigger = (_oldSelected.length != selected || selected == 0) ? true : false;
- _fireAfterItemClicked();
- _unbind_on_events(); //remove old one
- _lastTarget = null;
- break;
- case SHIFT:
- _shiftHolded = true;
- break;
- case CONTROL:
- _controlHolded = true;
- break;
- default:
- if (evt.keyCode >= ALPHABETS_START && _isList === false) {
- _showFilterBox();
- };
- break;
- };
- if (_isDisabled === true) return false;
- fireEventIfExist("keydown");
- };
- var on_keyup = function (evt) {
- switch (evt.keyCode) {
- case SHIFT:
- _shiftHolded = false;
- break;
- case CONTROL:
- _controlHolded = false;
- break;
- };
- if (_isDisabled === true) return false;
- fireEventIfExist("keyup");
- };
- var on_dblclick = function (evt) {
- if (_isDisabled === true) return false;
- fireEventIfExist("dblclick");
- };
- var on_mousemove = function (evt) {
- if (_isDisabled === true) return false;
- fireEventIfExist("mousemove");
- };
-
- var on_mouseover = function (evt) {
- if (_isDisabled === true) return false;
- evt.preventDefault();
- fireEventIfExist("mouseover");
- };
- var on_mouseout = function (evt) {
- if (_isDisabled === true) return false;
- evt.preventDefault();
- fireEventIfExist("mouseout");
- };
- var on_mousedown = function (evt) {
- if (_isDisabled === true) return false;
- fireEventIfExist("mousedown");
- };
- var on_mouseup = function (evt) {
- if (_isDisabled === true) return false;
- fireEventIfExist("mouseup");
- };
- var option_has_handler = function (opt, name) {
- //True if a handler has been added in the html.
- var evt = {byElement: false, byJQuery: false, hasEvent: false};
- if ($(opt).prop("on" + name) != undefined) {
- evt.hasEvent = true;
- evt.byElement = true;
- };
- // True if a handler has been added using jQuery.
- var evs = $(opt).data("events");
- if (evs && evs[name]) {
- evt.hasEvent = true;
- evt.byJQuery = true;
- };
- return evt;
- };
- var fireOptionEventIfExist = function (li, evt_n) {
- if (_settings.disabledOptionEvents == false) {
- var opt = getElement(_element).options[_getIndex(li)];
- //check if original has some
- if (option_has_handler(opt, evt_n).hasEvent === true) {
- if (option_has_handler(opt, evt_n).byElement === true) {
- opt["on" + evt_n]();
- };
- if (option_has_handler(opt, evt_n).byJQuery === true) {
- switch (evt_n) {
- case "keydown":
- case "keyup":
- //key down/up will check later
- break;
- default:
- $(opt).trigger(evt_n);
- break;
- };
- };
- return false;
- };
- };
- };
- var fireEventIfExist = function (evt_n) {
- //local
- if (typeof _settings.on[evt_n] == "function") {
- _settings.on[evt_n].apply(this, arguments);
- };
- //check if original has some
- if (has_handler(evt_n).hasEvent === true) {
- if (has_handler(evt_n).byElement === true) {
- getElement(_element)["on" + evt_n]();
- };
- if (has_handler(evt_n).byJQuery === true) {
- switch (evt_n) {
- case "keydown":
- case "keyup":
- //key down/up will check later
- break;
- default:
- $("#" + _element).trigger(evt_n);
- break;
- };
- };
- return false;
- };
- };
- /******************************* navigation **********************************************/
- var _scrollToIfNeeded = function (opt) {
- var childid = _getPostID("postChildID");
- //if scroll is needed
- opt = (opt !== undefined) ? opt : $("#" + childid + " li." + _styles.selected);
- if (opt.length > 0) {
- var pos = parseInt(($(opt).position().top));
- var ch = parseInt($("#" + childid).height());
- if (pos > ch) {
- var top = pos + $("#" + childid).scrollTop() - (ch/2);
- $("#" + childid).animate({scrollTop:top}, 500);
- };
- };
- };
- var _next = function () {
- var childid = _getPostID("postChildID");
- var items = $("#" + childid + " li:visible." + _styles_i.li);
- var selected = $("#" + childid + " li:visible." + _styles.selected);
- selected = (selected.length==0) ? items[0] : selected;
- var index = $("#" + childid + " li:visible." + _styles_i.li).index(selected);
- if ((index < items.length - 1)) {
- index = getNext(index);
- if (index < items.length) { //check again - hack for last disabled
- if (!_shiftHolded || !_isList || !_isMultiple) {
- $("#" + childid + " ." + _styles.selected).removeClass(_styles.selected);
- };
- $(items[index]).addClass(_styles.selected);
- _updateTitleUI(index);
- if (_isList == true) {
- _fireAfterItemClicked();
- };
- _scrollToIfNeeded($(items[index]));
- };
- if (!_isList) {
- _adjustOpen();
- };
- };
- function getNext(ind) {
- ind = ind + 1;
- if (ind > items.length) {
- return ind;
- };
- if ($(items[ind]).hasClass(_styles.enabled) === true) {
- return ind;
- };
- return ind = getNext(ind);
- };
- };
- var _previous = function () {
- var childid = _getPostID("postChildID");
- var selected = $("#" + childid + " li:visible." + _styles.selected);
- var items = $("#" + childid + " li:visible." + _styles_i.li);
- var index = $("#" + childid + " li:visible." + _styles_i.li).index(selected[0]);
- if (index >= 0) {
- index = getPrev(index);
- if (index >= 0) { //check again - hack for disabled
- if (!_shiftHolded || !_isList || !_isMultiple) {
- $("#" + childid + " ." + _styles.selected).removeClass(_styles.selected);
- };
- $(items[index]).addClass(_styles.selected);
- _updateTitleUI(index);
- if (_isList == true) {
- _fireAfterItemClicked();
- };
- if (parseInt(($(items[index]).position().top + $(items[index]).height())) <= 0) {
- var top = ($("#" + childid).scrollTop() - $("#" + childid).height()) - $(items[index]).height();
- $("#" + childid).animate({scrollTop: top}, 500);
- };
- };
- if (!_isList) {
- _adjustOpen();
- };
- };
-
- function getPrev(ind) {
- ind = ind - 1;
- if (ind < 0) {
- return ind;
- };
- if ($(items[ind]).hasClass(_styles.enabled) === true) {
- return ind;
- };
- return ind = getPrev(ind);
- };
- };
- var _adjustOpen = function () {
- var id = _getPostID("postID");
- var childid = _getPostID("postChildID");
- var pos = $("#" + id).offset();
- var mH = $("#" + id).height();
- var wH = $(window).height();
- var st = $(window).scrollTop();
- var cH = $("#" + childid).height();
- var top = $("#" + id).height(); //this close so its title height
- if ((wH + st) < Math.floor(cH + mH + pos.top) || _settings.openDirection.toLowerCase() == 'alwaysup') {
- top = cH;
- $("#" + childid).css({top: "-" + top + "px", display: 'block', zIndex: _settings.zIndex});
- $("#" + id).removeClass("borderRadius borderRadiusTp").addClass("borderRadiusBtm");
- var top = $("#" + childid).offset().top;
- if (top < -10) {
- $("#" + childid).css({top: (parseInt($("#" + childid).css("top")) - top + 20 + st) + "px", zIndex: _settings.zIndex});
- $("#" + id).removeClass("borderRadiusBtm borderRadiusTp").addClass("borderRadius");
- };
- } else {
- $("#" + childid).css({top: top + "px", zIndex: _settings.zIndex});
- $("#" + id).removeClass("borderRadius borderRadiusBtm").addClass("borderRadiusTp");
- };
- //hack for ie zindex
- //i hate ie :D
- if(_isIE) {
- if(msieversion()<=7) {
- $('div.ddcommon').css("zIndex", _settings.zIndex-10);
- $("#" + id).css("zIndex", _settings.zIndex+5);
- };
- };
- };
- var _open = function (e) {
- if (_isDisabled === true) return false;
- var id = _getPostID("postID");
- var childid = _getPostID("postChildID");
- if (!_isOpen) {
- _isOpen = true;
- if (msBeautify.oldDiv != '') {
- $("#" + msBeautify.oldDiv).css({display: "none"}); //hide all
- };
- msBeautify.oldDiv = childid;
- $("#" + childid + " li:hidden").show(); //show if hidden
- _adjustOpen();
- var animStyle = _settings.animStyle;
- if(animStyle=="" || animStyle=="none") {
- $("#" + childid).css({display:"block"});
- _scrollToIfNeeded();
- if (typeof _settings.on.open == "function") {
- var d = _getDataAndUI();
- _settings.on.open(d.data, d.ui);
- };
- } else {
- $("#" + childid)[animStyle]("fast", function () {
- _scrollToIfNeeded();
- if (typeof _settings.on.open == "function") {
- var d = _getDataAndUI();
- _settings.on.open(d.data, d.ui);
- };
- });
- };
- _bind_on_events();
- } else {
- if(_settings.event!=='mouseover') {
- _close();
- };
- };
- };
- var _close = function (e) {
- _isOpen = false;
- var id = _getPostID("postID");
- var childid = _getPostID("postChildID");
- if (_isList === false || _settings.enableCheckbox===true) {
- $("#" + childid).css({display: "none"});
- $("#" + id).removeClass("borderRadiusTp borderRadiusBtm").addClass("borderRadius");
- };
- _unbind_on_events();
- if (typeof _settings.on.close == "function") {
- var d = _getDataAndUI();
- _settings.on.close(d.data, d.ui);
- };
- //rest some old stuff
- _hideFilterBox();
- _childHeight(_childHeight()); //its needed after filter applied
- $("#" + childid).css({zIndex:1})
- };
- /*********************** </layout> *************************************/
- var _mergeAllProp = function () {
- try {
- _orginial = $.extend(true, {}, getElement(_element));
- for (var i in _orginial) {
- if (typeof _orginial[i] != "function") {
- _this[i] = _orginial[i]; //properties
- };
- };
- } catch(e) {
- //silent
- };
- _this.selectedText = (getElement(_element).selectedIndex >= 0) ? getElement(_element).options[getElement(_element).selectedIndex].text : "";
- _this.version = msBeautify.version.msDropdown;
- _this.author = msBeautify.author;
- };
- var _getDataAndUIByOption = function (opt) {
- if (opt != null && typeof opt != "undefined") {
- var childid = _getPostID("postChildID");
- var data = _parseOption(opt);
- var ui = $("#" + childid + " li." + _styles_i.li + ":eq(" + (opt.index) + ")");
- return {data: data, ui: ui, option: opt, index: opt.index};
- };
- return null;
- };
- var _getDataAndUI = function () {
- var childid = _getPostID("postChildID");
- var ele = getElement(_element);
- var data, ui, option, index;
- if (ele.selectedIndex == -1) {
- data = null;
- ui = null;
- option = null;
- index = -1;
- } else {
- ui = $("#" + childid + " li." + _styles.selected);
- if (ui.length > 1) {
- var d = [], op = [], ind = [];
- for (var i = 0; i < ui.length; i++) {
- var pd = _getIndex(ui[i]);
- d.push(pd);
- op.push(ele.options[pd]);
- };
- data = d;
- option = op;
- index = d;
- } else {
- option = ele.options[ele.selectedIndex];
- data = _parseOption(option);
- index = ele.selectedIndex;
- };
- };
- return {data: data, ui: ui, index: index, option: option};
- };
- var _updateTitleUI = function (index, byvalue) {
- var titleid = _getPostID("postTitleID");
- var value = {};
- if (index == -1) {
- value.text = "&nbsp;";
- value.className = "";
- value.description = "";
- value.image = "";
- } else if (typeof index != "undefined") {
- var opt = getElement(_element).options[index];
- value = _parseOption(opt);
- } else {
- value = byvalue;
- };
- //update title and current
- $("#" + titleid).find("." + _styles.label).html(value.text);
- getElement(titleid).className = _styles.ddTitleText + " " + value.className;
- //update desction
- if (value.description != "") {
- $("#" + titleid).find("." + _styles.description).html(value.description).show();
- } else {
- $("#" + titleid).find("." + _styles.description).html("").hide();
- };
- //update icon
- var img = $("#" + titleid).find("img");
- if (img.length > 0) {
- $(img).remove();
- };
- if (value.image != "" && _settings.showIcon) {
- img = _createElement("img", {src: value.image});
- $("#" + titleid).prepend(img);
- if(value.imagecss!="") {
- img.className = value.imagecss+" ";
- };
- if (value.description == "") {
- img.className = img.className+_styles_i.fnone;
- };
- };
- };
- var _updateProp = function (p, v) {
- _this[p] = v;
- };
- var _updateUI = function (a, opt, i) { //action, index, opt
- var childid = _getPostID("postChildID");
- var wasSelected = false;
- switch (a) {
- case "add":
- var li = _createChild(opt || getElement(_element).options[i]);
- var index;
- if (arguments.length == 3) {
- index = i;
- } else {
- index = $("#" + childid + " li." + _styles_i.li).length - 1;
- };
- if (index < 0 || !index) {
- $("#" + childid + " ul").append(li);
- } else {
- var at = $("#" + childid + " li." + _styles_i.li)[index];
- $(at).before(li);
- };
- _removeChildEvents();
- _applyChildEvents();
- if (_settings.on.add != null) {
- _settings.on.add.apply(this, arguments);
- };
- break;
- case "remove":
- wasSelected = $($("#" + childid + " li." + _styles_i.li)[i]).hasClass(_styles.selected);
- $("#" + childid + " li." + _styles_i.li + ":eq(" + i + ")").remove();
- var items = $("#" + childid + " li." + _styles.enabled);
- if (wasSelected == true) {
- if (items.length > 0) {
- $(items[0]).addClass(_styles.selected);
- var ind = $("#" + childid + " li." + _styles_i.li).index(items[0]);
- _setValue(ind);
- };
- };
- if (items.length == 0) {
- _setValue(-1);
- };
- if ($("#" + childid + " li." + _styles_i.li).length < _settings.visibleRows && !_isList) {
- _childHeight(-1); //set autoheight
- };
- if (_settings.on.remove != null) {
- _settings.on.remove.apply(this, arguments);
- };
- break;
- };
- };
- /************************** public methods/events **********************/
- this.act = function () {
- var action = arguments[0];
- Array.prototype.shift.call(arguments);
- switch (action) {
- case "add":
- _this.add.apply(this, arguments);
- break;
- case "remove":
- _this.remove.apply(this, arguments);
- break;
- default:
- try {
- getElement(_element)[action].apply(getElement(_element), arguments);
- } catch (e) {
- //there is some error.
- };
- break;
- };
- };
-
- this.add = function () {
- var text, value, title, image, description;
- var obj = arguments[0];
- if (typeof obj == "string") {
- text = obj;
- value = text;
- opt = new Option(text, value);
- } else {
- text = obj.text || '';
- value = obj.value || text;
- title = obj.title || '';
- image = obj.image || '';
- description = obj.description || '';
- //image:imagePath, title:title, description:description, value:opt.value, text:opt.text, className:opt.className||""
- opt = new Option(text, value);
- $(opt).data("description", description);
- $(opt).data("image", image);
- $(opt).data("title", title);
- };
- arguments[0] = opt; //this option
- getElement(_element).add.apply(getElement(_element), arguments);
- _updateProp("children", getElement(_element)["children"]);
- _updateProp("length", getElement(_element).length);
- _updateUI("add", opt, arguments[1]);
- };
- this.remove = function (i) {
- getElement(_element).remove(i);
- _updateProp("children", getElement(_element)["children"]);
- _updateProp("length", getElement(_element).length);
- _updateUI("remove", undefined, i);
- };
- this.set = function (prop, val) {
- if (typeof prop == "undefined" || typeof val == "undefined") return false;
- prop = prop.toString();
- try {
- _updateProp(prop, val);
- } catch (e) {/*this is ready only */};
-
- switch (prop) {
- case "size":
- getElement(_element)[prop] = val;
- if (val == 0) {
- getElement(_element).multiple = false; //if size is zero multiple should be false
- };
- _isList = (getElement(_element).size > 1 || getElement(_element).multiple == true) ? true : false;
- _fixedForList();
- break;
- case "multiple":
- getElement(_element)[prop] = val;
- _isList = (getElement(_element).size > 1 || getElement(_element).multiple == true) ? true : false;
- _isMultiple = getElement(_element).multiple;
- _fixedForList();
- _updateProp(prop, val);
- break;
- case "disabled":
- getElement(_element)[prop] = val;
- _isDisabled = val;
- _fixedForDisabled();
- break;
- case "selectedIndex":
- case "value":
- getElement(_element)[prop] = val;
- var childid = _getPostID("postChildID");
- $("#" + childid + " li." + _styles_i.li).removeClass(_styles.selected);
- $($("#" + childid + " li." + _styles_i.li)[getElement(_element).selectedIndex]).addClass(_styles.selected);
- _setValue(getElement(_element).selectedIndex);
- break;
- case "length":
- var childid = _getPostID("postChildID");
- if (val < getElement(_element).length) {
- getElement(_element)[prop] = val;
- if (val == 0) {
- $("#" + childid + " li." + _styles_i.li).remove();
- _setValue(-1);
- } else {
- $("#" + childid + " li." + _styles_i.li + ":gt(" + (val - 1) + ")").remove();
- if ($("#" + childid + " li." + _styles.selected).length == 0) {
- $("#" + childid + " li." + _styles.enabled + ":eq(0)").addClass(_styles.selected);
- };
- };
- _updateProp(prop, val);
- _updateProp("children", getElement(_element)["children"]);
- };
- break;
- case "id":
- //please i need this. so preventing to change it. will work on this later
- break;
- default:
- //check if this is not a readonly properties
- try {
- getElement(_element)[prop] = val;
- _updateProp(prop, val);
- } catch (e) {
- //silent
- };
- break;
- }
- };
- this.get = function (prop) {
- return _this[prop] || getElement(_element)[prop]; //return if local else from original
- };
- this.visible = function (val) {
- var id = _getPostID("postID");
- if (val === true) {
- $("#" + id).show();
- } else if (val === false) {
- $("#" + id).hide();
- } else {
- return ($("#" + id).css("display")=="none") ? false : true;
- };
- };
- this.debug = function (v) {
- msBeautify.debug(v);
- };
- this.close = function () {
- _close();
- };
- this.open = function () {
- _open();
- };
- this.showRows = function (r) {
- if (typeof r == "undefined" || r == 0) {
- return false;
- };
- _settings.visibleRows = r;
- _childHeight(_childHeight());
- };
- this.visibleRows = this.showRows;
- this.on = function (type, fn) {
- $("#" + _element).on(type, fn);
- };
- this.off = function (type, fn) {
- $("#" + _element).off(type, fn);
- };
- this.addMyEvent = this.on;
- this.getData = function () {
- return _getDataAndUI()
- };
- this.namedItem = function () {
- var opt = getElement(_element).namedItem.apply(getElement(_element), arguments);
- return _getDataAndUIByOption(opt);
- };
- this.item = function () {
- var opt = getElement(_element).item.apply(getElement(_element), arguments);
- return _getDataAndUIByOption(opt);
- };
- //v 3.2
- this.setIndexByValue = function(val) {
- this.set("value", val);
- };
- this.destroy = function () {
- var hidid = _getPostID("postElementHolder");
- var id = _getPostID("postID");
- $("#" + id + ", #" + id + " *").off();
- $("#" + id).remove();
- $("#" + _element).parent().replaceWith($("#" + _element));
- $("#" + _element).data("dd", null);
- };
- //Create msDropDown
- _construct();
-};
-//bind in jquery
-$.fn.extend({
- msDropDown: function(settings)
- {
- return this.each(function()
- {
- if (!$(this).data('dd')){
- var mydropdown = new dd(this, settings);
- $(this).data('dd', mydropdown);
- };
- });
- }
-});
-$.fn.msDropdown = $.fn.msDropDown; //make a copy
-})(jQuery);
\ No newline at end of file
diff --git a/lib/jquery.dd-3.3/skin2.css b/lib/jquery.dd-3.3/skin2.css
deleted file mode 100644
index 6fddd2bcd..000000000
--- a/lib/jquery.dd-3.3/skin2.css
+++ /dev/null
@@ -1,20 +0,0 @@
-.blue{border:1px solid #ddd;}
-.blue .divider{display:none}
-.blue .arrow{width:27px;height:27px; margin-top:-14px; background:url(../../../images/jquery.dd/skin2/dd_arrow.gif) no-repeat;}
-.blue .arrow:hover{background-position:0 100%;}
-.blue .ddTitle{color:#fff;background:#10bbe6 url(../../../images/jquery.dd/skin2/title-bg.gif) repeat-x left top;}
-.blue .ddTitle .ddTitleText{padding:10px 20px 10px 5px; font-weight:bold; font-size:16px;}
-.blue .ddTitle .ddTitleText .ddTitleText{padding:0;}
-.blue .ddTitle .description{font-size:12px; color:#666}
-.blue .ddTitle .ddTitleText img{padding-right:5px;}
-.blue .ddChild{border:1px solid #c3c3c3; background-color:#fff; left:-1px;}
-.blue .ddChild li{padding:5px; background-color:#fff; border-bottom:1px solid #c3c3c3;}
-.blue .ddChild li .description{color:#666;}
-.blue .ddChild li .ddlabel{color:#333;}
-.blue .ddChild li.hover{background-color:#66CCFF;}
-.blue .ddChild li img{padding:0 6px 0 0;}
-.blue .ddChild li.optgroup{padding:0;}
-.blue .ddChild li.optgroup .optgroupTitle{padding:0 5px; font-weight:bold; font-style:italic}
-.blue .ddChild li.optgroup ul li{padding:5px 5px 5px 15px}
-.blue .ddChild li.selected{background-color:#0d97ba;}
-.blue .ddChild li.selected .ddlabel{color:#fff;}
diff --git a/lib/jquery.jscrollpane-2.0.17/Gruntfile.js b/lib/jquery.jscrollpane-2.0.17/Gruntfile.js
deleted file mode 100644
index 715f6e781..000000000
--- a/lib/jquery.jscrollpane-2.0.17/Gruntfile.js
+++ /dev/null
@@ -1,42 +0,0 @@
-module.exports = function(grunt) {
-
- var name = "jquery.jscrollpane";
- var version = "2.0.17";
- var base = "wv.ui";
-
- var lib = "lib/" + name + "-" + version + "/";
- var ext = "src/ext/" + base + "/" + name + "-" + version + "/";
- var debug_js = ext + name + ".js";
- var min_js = ext + name + ".min.js";
-
- var js = [
- lib + "jquery.mousewheel.js",
- lib + "mwheelIntent.js",
- lib + "jquery.jscrollpane.js",
- ];
-
- var uglifyFiles = {};
- uglifyFiles[min_js] = [debug_js];
-
- grunt.initConfig({
- concat: {
- js: {
- src: js,
- dest: debug_js
- },
- },
-
- uglify: {
- js: {
- files: uglifyFiles
- }
- }
- });
-
- grunt.file.setBase("../..");
- grunt.loadNpmTasks("grunt-contrib-concat");
- grunt.loadNpmTasks("grunt-contrib-uglify");
-
- grunt.registerTask("default", ["concat", "uglify"]);
-
-};
diff --git a/lib/jquery.jscrollpane-2.0.17/jquery.jscrollpane.js b/lib/jquery.jscrollpane-2.0.17/jquery.jscrollpane.js
deleted file mode 100644
index 12983881a..000000000
--- a/lib/jquery.jscrollpane-2.0.17/jquery.jscrollpane.js
+++ /dev/null
@@ -1,1447 +0,0 @@
-/*!
- * jScrollPane - v2.0.17 - 2013-08-17
- * http://jscrollpane.kelvinluck.com/
- *
- * Copyright (c) 2013 Kelvin Luck
- * Dual licensed under the MIT or GPL licenses.
- */
-
-// Script: jScrollPane - cross browser customisable scrollbars
-//
-// *Version: 2.0.17, Last updated: 2013-08-17*
-//
-// Project Home - http://jscrollpane.kelvinluck.com/
-// GitHub - http://github.com/vitch/jScrollPane
-// Source - http://github.com/vitch/jScrollPane/raw/master/script/jquery.jscrollpane.js
-// (Minified) - http://github.com/vitch/jScrollPane/raw/master/script/jquery.jscrollpane.min.js
-//
-// About: License
-//
-// Copyright (c) 2013 Kelvin Luck
-// Dual licensed under the MIT or GPL Version 2 licenses.
-// http://jscrollpane.kelvinluck.com/MIT-LICENSE.txt
-// http://jscrollpane.kelvinluck.com/GPL-LICENSE.txt
-//
-// About: Examples
-//
-// All examples and demos are available through the jScrollPane example site at:
-// http://jscrollpane.kelvinluck.com/
-//
-// About: Support and Testing
-//
-// This plugin is tested on the browsers below and has been found to work reliably on them. If you run
-// into a problem on one of the supported browsers then please visit the support section on the jScrollPane
-// website (http://jscrollpane.kelvinluck.com/) for more information on getting support. You are also
-// welcome to fork the project on GitHub if you can contribute a fix for a given issue.
-//
-// jQuery Versions - tested in 1.4.2+ - reported to work in 1.3.x
-// Browsers Tested - Firefox 3.6.8, Safari 5, Opera 10.6, Chrome 5.0, IE 6, 7, 8
-//
-// About: Release History
-//
-// 2.0.17 - (2013-08-17) Working correctly when box-sizing is set to border-box (thanks @pieht)
-// 2.0.16 - (2013-07-30) Resetting left position when scroll is removed. Fixes #189
-// 2.0.15 - (2013-07-29) Fixed issue with scrollToElement where the destX and destY are undefined.
-// 2.0.14 - (2013-05-01) Updated to most recent mouse wheel plugin (see #106) and related changes for sensible scroll speed
-// 2.0.13 - (2013-05-01) Switched to semver compatible version name
-// 2.0.0beta12 - (2012-09-27) fix for jQuery 1.8+
-// 2.0.0beta11 - (2012-05-14)
-// 2.0.0beta10 - (2011-04-17) cleaner required size calculation, improved keyboard support, stickToBottom/Left, other small fixes
-// 2.0.0beta9 - (2011-01-31) new API methods, bug fixes and correct keyboard support for FF/OSX
-// 2.0.0beta8 - (2011-01-29) touchscreen support, improved keyboard support
-// 2.0.0beta7 - (2011-01-23) scroll speed consistent (thanks Aivo Paas)
-// 2.0.0beta6 - (2010-12-07) scrollToElement horizontal support
-// 2.0.0beta5 - (2010-10-18) jQuery 1.4.3 support, various bug fixes
-// 2.0.0beta4 - (2010-09-17) clickOnTrack support, bug fixes
-// 2.0.0beta3 - (2010-08-27) Horizontal mousewheel, mwheelIntent, keyboard support, bug fixes
-// 2.0.0beta2 - (2010-08-21) Bug fixes
-// 2.0.0beta1 - (2010-08-17) Rewrite to follow modern best practices and enable horizontal scrolling, initially hidden
-// elements and dynamically sized elements.
-// 1.x - (2006-12-31 - 2010-07-31) Initial version, hosted at googlecode, deprecated
-
-(function($,window,undefined){
-
- $.fn.jScrollPane = function(settings)
- {
- // JScrollPane "class" - public methods are available through $('selector').data('jsp')
- function JScrollPane(elem, s)
- {
- var settings, jsp = this, pane, paneWidth, paneHeight, container, contentWidth, contentHeight,
- percentInViewH, percentInViewV, isScrollableV, isScrollableH, verticalDrag, dragMaxY,
- verticalDragPosition, horizontalDrag, dragMaxX, horizontalDragPosition,
- verticalBar, verticalTrack, scrollbarWidth, verticalTrackHeight, verticalDragHeight, arrowUp, arrowDown,
- horizontalBar, horizontalTrack, horizontalTrackWidth, horizontalDragWidth, arrowLeft, arrowRight,
- reinitialiseInterval, originalPadding, originalPaddingTotalWidth, previousContentWidth,
- wasAtTop = true, wasAtLeft = true, wasAtBottom = false, wasAtRight = false,
- originalElement = elem.clone(false, false).empty(),
- mwEvent = $.fn.mwheelIntent ? 'mwheelIntent.jsp' : 'mousewheel.jsp';
-
- if (elem.css('box-sizing') === 'border-box') {
- originalPadding = 0;
- originalPaddingTotalWidth = 0;
- } else {
- originalPadding = elem.css('paddingTop') + ' ' +
- elem.css('paddingRight') + ' ' +
- elem.css('paddingBottom') + ' ' +
- elem.css('paddingLeft');
- originalPaddingTotalWidth = (parseInt(elem.css('paddingLeft'), 10) || 0) +
- (parseInt(elem.css('paddingRight'), 10) || 0);
- }
-
- function initialise(s)
- {
-
- var /*firstChild, lastChild, */isMaintainingPositon, lastContentX, lastContentY,
- hasContainingSpaceChanged, originalScrollTop, originalScrollLeft,
- maintainAtBottom = false, maintainAtRight = false;
-
- settings = s;
-
- if (pane === undefined) {
- originalScrollTop = elem.scrollTop();
- originalScrollLeft = elem.scrollLeft();
-
- elem.css(
- {
- overflow: 'hidden',
- padding: 0
- }
- );
- // TODO: Deal with where width/ height is 0 as it probably means the element is hidden and we should
- // come back to it later and check once it is unhidden...
- paneWidth = elem.innerWidth() + originalPaddingTotalWidth;
- paneHeight = elem.innerHeight();
-
- elem.width(paneWidth);
-
- pane = $('<div class="jspPane" />').css('padding', originalPadding).append(elem.children());
- container = $('<div class="jspContainer" />')
- .css({
- 'width': paneWidth + 'px',
- 'height': paneHeight + 'px'
- }
- ).append(pane).appendTo(elem);
-
- /*
- // Move any margins from the first and last children up to the container so they can still
- // collapse with neighbouring elements as they would before jScrollPane
- firstChild = pane.find(':first-child');
- lastChild = pane.find(':last-child');
- elem.css(
- {
- 'margin-top': firstChild.css('margin-top'),
- 'margin-bottom': lastChild.css('margin-bottom')
- }
- );
- firstChild.css('margin-top', 0);
- lastChild.css('margin-bottom', 0);
- */
- } else {
- elem.css('width', '');
-
- maintainAtBottom = settings.stickToBottom && isCloseToBottom();
- maintainAtRight = settings.stickToRight && isCloseToRight();
-
- hasContainingSpaceChanged = elem.innerWidth() + originalPaddingTotalWidth != paneWidth || elem.outerHeight() != paneHeight;
-
- if (hasContainingSpaceChanged) {
- paneWidth = elem.innerWidth() + originalPaddingTotalWidth;
- paneHeight = elem.innerHeight();
- container.css({
- width: paneWidth + 'px',
- height: paneHeight + 'px'
- });
- }
-
- // If nothing changed since last check...
- if (!hasContainingSpaceChanged && previousContentWidth == contentWidth && pane.outerHeight() == contentHeight) {
- elem.width(paneWidth);
- return;
- }
- previousContentWidth = contentWidth;
-
- pane.css('width', '');
- elem.width(paneWidth);
-
- container.find('>.jspVerticalBar,>.jspHorizontalBar').remove().end();
- }
-
- pane.css('overflow', 'auto');
- if (s.contentWidth) {
- contentWidth = s.contentWidth;
- } else {
- contentWidth = pane[0].scrollWidth;
- }
- contentHeight = pane[0].scrollHeight;
- pane.css('overflow', '');
-
- percentInViewH = contentWidth / paneWidth;
- percentInViewV = contentHeight / paneHeight;
- isScrollableV = percentInViewV > 1;
-
- isScrollableH = percentInViewH > 1;
-
- //console.log(paneWidth, paneHeight, contentWidth, contentHeight, percentInViewH, percentInViewV, isScrollableH, isScrollableV);
-
- if (!(isScrollableH || isScrollableV)) {
- elem.removeClass('jspScrollable');
- pane.css({
- top: 0,
- left: 0,
- width: container.width() - originalPaddingTotalWidth
- });
- removeMousewheel();
- removeFocusHandler();
- removeKeyboardNav();
- removeClickOnTrack();
- } else {
- elem.addClass('jspScrollable');
-
- isMaintainingPositon = settings.maintainPosition && (verticalDragPosition || horizontalDragPosition);
- if (isMaintainingPositon) {
- lastContentX = contentPositionX();
- lastContentY = contentPositionY();
- }
-
- initialiseVerticalScroll();
- initialiseHorizontalScroll();
- resizeScrollbars();
-
- if (isMaintainingPositon) {
- scrollToX(maintainAtRight ? (contentWidth - paneWidth ) : lastContentX, false);
- scrollToY(maintainAtBottom ? (contentHeight - paneHeight) : lastContentY, false);
- }
-
- initFocusHandler();
- initMousewheel();
- initTouch();
-
- if (settings.enableKeyboardNavigation) {
- initKeyboardNav();
- }
- if (settings.clickOnTrack) {
- initClickOnTrack();
- }
-
- observeHash();
- if (settings.hijackInternalLinks) {
- hijackInternalLinks();
- }
- }
-
- if (settings.autoReinitialise && !reinitialiseInterval) {
- reinitialiseInterval = setInterval(
- function()
- {
- initialise(settings);
- },
- settings.autoReinitialiseDelay
- );
- } else if (!settings.autoReinitialise && reinitialiseInterval) {
- clearInterval(reinitialiseInterval);
- }
-
- originalScrollTop && elem.scrollTop(0) && scrollToY(originalScrollTop, false);
- originalScrollLeft && elem.scrollLeft(0) && scrollToX(originalScrollLeft, false);
-
- elem.trigger('jsp-initialised', [isScrollableH || isScrollableV]);
- }
-
- function initialiseVerticalScroll()
- {
- if (isScrollableV) {
-
- container.append(
- $('<div class="jspVerticalBar" />').append(
- $('<div class="jspCap jspCapTop" />'),
- $('<div class="jspTrack" />').append(
- $('<div class="jspDrag" />').append(
- $('<div class="jspDragTop" />'),
- $('<div class="jspDragBottom" />')
- )
- ),
- $('<div class="jspCap jspCapBottom" />')
- )
- );
-
- verticalBar = container.find('>.jspVerticalBar');
- verticalTrack = verticalBar.find('>.jspTrack');
- verticalDrag = verticalTrack.find('>.jspDrag');
-
- if (settings.showArrows) {
- arrowUp = $('<a class="jspArrow jspArrowUp" />').bind(
- 'mousedown.jsp', getArrowScroll(0, -1)
- ).bind('click.jsp', nil);
- arrowDown = $('<a class="jspArrow jspArrowDown" />').bind(
- 'mousedown.jsp', getArrowScroll(0, 1)
- ).bind('click.jsp', nil);
- if (settings.arrowScrollOnHover) {
- arrowUp.bind('mouseover.jsp', getArrowScroll(0, -1, arrowUp));
- arrowDown.bind('mouseover.jsp', getArrowScroll(0, 1, arrowDown));
- }
-
- appendArrows(verticalTrack, settings.verticalArrowPositions, arrowUp, arrowDown);
- }
-
- verticalTrackHeight = paneHeight;
- container.find('>.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow').each(
- function()
- {
- verticalTrackHeight -= $(this).outerHeight();
- }
- );
-
-
- verticalDrag.hover(
- function()
- {
- verticalDrag.addClass('jspHover');
- },
- function()
- {
- verticalDrag.removeClass('jspHover');
- }
- ).bind(
- 'mousedown.jsp',
- function(e)
- {
- // Stop IE from allowing text selection
- $('html').bind('dragstart.jsp selectstart.jsp', nil);
-
- verticalDrag.addClass('jspActive');
-
- var startY = e.pageY - verticalDrag.position().top;
-
- $('html').bind(
- 'mousemove.jsp',
- function(e)
- {
- positionDragY(e.pageY - startY, false);
- }
- ).bind('mouseup.jsp mouseleave.jsp', cancelDrag);
- return false;
- }
- );
- sizeVerticalScrollbar();
- }
- }
-
- function sizeVerticalScrollbar()
- {
- verticalTrack.height(verticalTrackHeight + 'px');
- verticalDragPosition = 0;
- scrollbarWidth = settings.verticalGutter + verticalTrack.outerWidth();
-
- // Make the pane thinner to allow for the vertical scrollbar
- pane.width(paneWidth - scrollbarWidth - originalPaddingTotalWidth);
-
- // Add margin to the left of the pane if scrollbars are on that side (to position
- // the scrollbar on the left or right set it's left or right property in CSS)
- try {
- if (verticalBar.position().left === 0) {
- pane.css('margin-left', scrollbarWidth + 'px');
- }
- } catch (err) {
- }
- }
-
- function initialiseHorizontalScroll()
- {
- if (isScrollableH) {
-
- container.append(
- $('<div class="jspHorizontalBar" />').append(
- $('<div class="jspCap jspCapLeft" />'),
- $('<div class="jspTrack" />').append(
- $('<div class="jspDrag" />').append(
- $('<div class="jspDragLeft" />'),
- $('<div class="jspDragRight" />')
- )
- ),
- $('<div class="jspCap jspCapRight" />')
- )
- );
-
- horizontalBar = container.find('>.jspHorizontalBar');
- horizontalTrack = horizontalBar.find('>.jspTrack');
- horizontalDrag = horizontalTrack.find('>.jspDrag');
-
- if (settings.showArrows) {
- arrowLeft = $('<a class="jspArrow jspArrowLeft" />').bind(
- 'mousedown.jsp', getArrowScroll(-1, 0)
- ).bind('click.jsp', nil);
- arrowRight = $('<a class="jspArrow jspArrowRight" />').bind(
- 'mousedown.jsp', getArrowScroll(1, 0)
- ).bind('click.jsp', nil);
- if (settings.arrowScrollOnHover) {
- arrowLeft.bind('mouseover.jsp', getArrowScroll(-1, 0, arrowLeft));
- arrowRight.bind('mouseover.jsp', getArrowScroll(1, 0, arrowRight));
- }
- appendArrows(horizontalTrack, settings.horizontalArrowPositions, arrowLeft, arrowRight);
- }
-
- horizontalDrag.hover(
- function()
- {
- horizontalDrag.addClass('jspHover');
- },
- function()
- {
- horizontalDrag.removeClass('jspHover');
- }
- ).bind(
- 'mousedown.jsp',
- function(e)
- {
- // Stop IE from allowing text selection
- $('html').bind('dragstart.jsp selectstart.jsp', nil);
-
- horizontalDrag.addClass('jspActive');
-
- var startX = e.pageX - horizontalDrag.position().left;
-
- $('html').bind(
- 'mousemove.jsp',
- function(e)
- {
- positionDragX(e.pageX - startX, false);
- }
- ).bind('mouseup.jsp mouseleave.jsp', cancelDrag);
- return false;
- }
- );
- horizontalTrackWidth = container.innerWidth();
- sizeHorizontalScrollbar();
- }
- }
-
- function sizeHorizontalScrollbar()
- {
- container.find('>.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow').each(
- function()
- {
- horizontalTrackWidth -= $(this).outerWidth();
- }
- );
-
- horizontalTrack.width(horizontalTrackWidth + 'px');
- horizontalDragPosition = 0;
- }
-
- function resizeScrollbars()
- {
- if (isScrollableH && isScrollableV) {
- var horizontalTrackHeight = horizontalTrack.outerHeight(),
- verticalTrackWidth = verticalTrack.outerWidth();
- verticalTrackHeight -= horizontalTrackHeight;
- $(horizontalBar).find('>.jspCap:visible,>.jspArrow').each(
- function()
- {
- horizontalTrackWidth += $(this).outerWidth();
- }
- );
- horizontalTrackWidth -= verticalTrackWidth;
- paneHeight -= verticalTrackWidth;
- paneWidth -= horizontalTrackHeight;
- horizontalTrack.parent().append(
- $('<div class="jspCorner" />').css('width', horizontalTrackHeight + 'px')
- );
- sizeVerticalScrollbar();
- sizeHorizontalScrollbar();
- }
- // reflow content
- if (isScrollableH) {
- pane.width((container.outerWidth() - originalPaddingTotalWidth) + 'px');
- }
- contentHeight = pane.outerHeight();
- percentInViewV = contentHeight / paneHeight;
-
- if (isScrollableH) {
- horizontalDragWidth = Math.ceil(1 / percentInViewH * horizontalTrackWidth);
- if (horizontalDragWidth > settings.horizontalDragMaxWidth) {
- horizontalDragWidth = settings.horizontalDragMaxWidth;
- } else if (horizontalDragWidth < settings.horizontalDragMinWidth) {
- horizontalDragWidth = settings.horizontalDragMinWidth;
- }
- horizontalDrag.width(horizontalDragWidth + 'px');
- dragMaxX = horizontalTrackWidth - horizontalDragWidth;
- _positionDragX(horizontalDragPosition); // To update the state for the arrow buttons
- }
- if (isScrollableV) {
- verticalDragHeight = Math.ceil(1 / percentInViewV * verticalTrackHeight);
- if (verticalDragHeight > settings.verticalDragMaxHeight) {
- verticalDragHeight = settings.verticalDragMaxHeight;
- } else if (verticalDragHeight < settings.verticalDragMinHeight) {
- verticalDragHeight = settings.verticalDragMinHeight;
- }
- verticalDrag.height(verticalDragHeight + 'px');
- dragMaxY = verticalTrackHeight - verticalDragHeight;
- _positionDragY(verticalDragPosition); // To update the state for the arrow buttons
- }
- }
-
- function appendArrows(ele, p, a1, a2)
- {
- var p1 = "before", p2 = "after", aTemp;
-
- // Sniff for mac... Is there a better way to determine whether the arrows would naturally appear
- // at the top or the bottom of the bar?
- if (p == "os") {
- p = /Mac/.test(navigator.platform) ? "after" : "split";
- }
- if (p == p1) {
- p2 = p;
- } else if (p == p2) {
- p1 = p;
- aTemp = a1;
- a1 = a2;
- a2 = aTemp;
- }
-
- ele[p1](a1)[p2](a2);
- }
-
- function getArrowScroll(dirX, dirY, ele)
- {
- return function()
- {
- arrowScroll(dirX, dirY, this, ele);
- this.blur();
- return false;
- };
- }
-
- function arrowScroll(dirX, dirY, arrow, ele)
- {
- arrow = $(arrow).addClass('jspActive');
-
- var eve,
- scrollTimeout,
- isFirst = true,
- doScroll = function()
- {
- if (dirX !== 0) {
- jsp.scrollByX(dirX * settings.arrowButtonSpeed);
- }
- if (dirY !== 0) {
- jsp.scrollByY(dirY * settings.arrowButtonSpeed);
- }
- scrollTimeout = setTimeout(doScroll, isFirst ? settings.initialDelay : settings.arrowRepeatFreq);
- isFirst = false;
- };
-
- doScroll();
-
- eve = ele ? 'mouseout.jsp' : 'mouseup.jsp';
- ele = ele || $('html');
- ele.bind(
- eve,
- function()
- {
- arrow.removeClass('jspActive');
- scrollTimeout && clearTimeout(scrollTimeout);
- scrollTimeout = null;
- ele.unbind(eve);
- }
- );
- }
-
- function initClickOnTrack()
- {
- removeClickOnTrack();
- if (isScrollableV) {
- verticalTrack.bind(
- 'mousedown.jsp',
- function(e)
- {
- if (e.originalTarget === undefined || e.originalTarget == e.currentTarget) {
- var clickedTrack = $(this),
- offset = clickedTrack.offset(),
- direction = e.pageY - offset.top - verticalDragPosition,
- scrollTimeout,
- isFirst = true,
- doScroll = function()
- {
- var offset = clickedTrack.offset(),
- pos = e.pageY - offset.top - verticalDragHeight / 2,
- contentDragY = paneHeight * settings.scrollPagePercent,
- dragY = dragMaxY * contentDragY / (contentHeight - paneHeight);
- if (direction < 0) {
- if (verticalDragPosition - dragY > pos) {
- jsp.scrollByY(-contentDragY);
- } else {
- positionDragY(pos);
- }
- } else if (direction > 0) {
- if (verticalDragPosition + dragY < pos) {
- jsp.scrollByY(contentDragY);
- } else {
- positionDragY(pos);
- }
- } else {
- cancelClick();
- return;
- }
- scrollTimeout = setTimeout(doScroll, isFirst ? settings.initialDelay : settings.trackClickRepeatFreq);
- isFirst = false;
- },
- cancelClick = function()
- {
- scrollTimeout && clearTimeout(scrollTimeout);
- scrollTimeout = null;
- $(document).unbind('mouseup.jsp', cancelClick);
- };
- doScroll();
- $(document).bind('mouseup.jsp', cancelClick);
- return false;
- }
- }
- );
- }
-
- if (isScrollableH) {
- horizontalTrack.bind(
- 'mousedown.jsp',
- function(e)
- {
- if (e.originalTarget === undefined || e.originalTarget == e.currentTarget) {
- var clickedTrack = $(this),
- offset = clickedTrack.offset(),
- direction = e.pageX - offset.left - horizontalDragPosition,
- scrollTimeout,
- isFirst = true,
- doScroll = function()
- {
- var offset = clickedTrack.offset(),
- pos = e.pageX - offset.left - horizontalDragWidth / 2,
- contentDragX = paneWidth * settings.scrollPagePercent,
- dragX = dragMaxX * contentDragX / (contentWidth - paneWidth);
- if (direction < 0) {
- if (horizontalDragPosition - dragX > pos) {
- jsp.scrollByX(-contentDragX);
- } else {
- positionDragX(pos);
- }
- } else if (direction > 0) {
- if (horizontalDragPosition + dragX < pos) {
- jsp.scrollByX(contentDragX);
- } else {
- positionDragX(pos);
- }
- } else {
- cancelClick();
- return;
- }
- scrollTimeout = setTimeout(doScroll, isFirst ? settings.initialDelay : settings.trackClickRepeatFreq);
- isFirst = false;
- },
- cancelClick = function()
- {
- scrollTimeout && clearTimeout(scrollTimeout);
- scrollTimeout = null;
- $(document).unbind('mouseup.jsp', cancelClick);
- };
- doScroll();
- $(document).bind('mouseup.jsp', cancelClick);
- return false;
- }
- }
- );
- }
- }
-
- function removeClickOnTrack()
- {
- if (horizontalTrack) {
- horizontalTrack.unbind('mousedown.jsp');
- }
- if (verticalTrack) {
- verticalTrack.unbind('mousedown.jsp');
- }
- }
-
- function cancelDrag()
- {
- $('html').unbind('dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp');
-
- if (verticalDrag) {
- verticalDrag.removeClass('jspActive');
- }
- if (horizontalDrag) {
- horizontalDrag.removeClass('jspActive');
- }
- }
-
- function positionDragY(destY, animate)
- {
- if (!isScrollableV) {
- return;
- }
- if (destY < 0) {
- destY = 0;
- } else if (destY > dragMaxY) {
- destY = dragMaxY;
- }
-
- // can't just check if(animate) because false is a valid value that could be passed in...
- if (animate === undefined) {
- animate = settings.animateScroll;
- }
- if (animate) {
- jsp.animate(verticalDrag, 'top', destY, _positionDragY);
- } else {
- verticalDrag.css('top', destY);
- _positionDragY(destY);
- }
-
- }
-
- function _positionDragY(destY)
- {
- if (destY === undefined) {
- destY = verticalDrag.position().top;
- }
-
- container.scrollTop(0);
- verticalDragPosition = destY;
-
- var isAtTop = verticalDragPosition === 0,
- isAtBottom = verticalDragPosition == dragMaxY,
- percentScrolled = destY/ dragMaxY,
- destTop = -percentScrolled * (contentHeight - paneHeight);
-
- if (wasAtTop != isAtTop || wasAtBottom != isAtBottom) {
- wasAtTop = isAtTop;
- wasAtBottom = isAtBottom;
- elem.trigger('jsp-arrow-change', [wasAtTop, wasAtBottom, wasAtLeft, wasAtRight]);
- }
-
- updateVerticalArrows(isAtTop, isAtBottom);
- pane.css('top', destTop);
- elem.trigger('jsp-scroll-y', [-destTop, isAtTop, isAtBottom]).trigger('scroll');
- }
-
- function positionDragX(destX, animate)
- {
- if (!isScrollableH) {
- return;
- }
- if (destX < 0) {
- destX = 0;
- } else if (destX > dragMaxX) {
- destX = dragMaxX;
- }
-
- if (animate === undefined) {
- animate = settings.animateScroll;
- }
- if (animate) {
- jsp.animate(horizontalDrag, 'left', destX, _positionDragX);
- } else {
- horizontalDrag.css('left', destX);
- _positionDragX(destX);
- }
- }
-
- function _positionDragX(destX)
- {
- if (destX === undefined) {
- destX = horizontalDrag.position().left;
- }
-
- container.scrollTop(0);
- horizontalDragPosition = destX;
-
- var isAtLeft = horizontalDragPosition === 0,
- isAtRight = horizontalDragPosition == dragMaxX,
- percentScrolled = destX / dragMaxX,
- destLeft = -percentScrolled * (contentWidth - paneWidth);
-
- if (wasAtLeft != isAtLeft || wasAtRight != isAtRight) {
- wasAtLeft = isAtLeft;
- wasAtRight = isAtRight;
- elem.trigger('jsp-arrow-change', [wasAtTop, wasAtBottom, wasAtLeft, wasAtRight]);
- }
-
- updateHorizontalArrows(isAtLeft, isAtRight);
- pane.css('left', destLeft);
- elem.trigger('jsp-scroll-x', [-destLeft, isAtLeft, isAtRight]).trigger('scroll');
- }
-
- function updateVerticalArrows(isAtTop, isAtBottom)
- {
- if (settings.showArrows) {
- arrowUp[isAtTop ? 'addClass' : 'removeClass']('jspDisabled');
- arrowDown[isAtBottom ? 'addClass' : 'removeClass']('jspDisabled');
- }
- }
-
- function updateHorizontalArrows(isAtLeft, isAtRight)
- {
- if (settings.showArrows) {
- arrowLeft[isAtLeft ? 'addClass' : 'removeClass']('jspDisabled');
- arrowRight[isAtRight ? 'addClass' : 'removeClass']('jspDisabled');
- }
- }
-
- function scrollToY(destY, animate)
- {
- var percentScrolled = destY / (contentHeight - paneHeight);
- positionDragY(percentScrolled * dragMaxY, animate);
- }
-
- function scrollToX(destX, animate)
- {
- var percentScrolled = destX / (contentWidth - paneWidth);
- positionDragX(percentScrolled * dragMaxX, animate);
- }
-
- function scrollToElement(ele, stickToTop, animate)
- {
- var e, eleHeight, eleWidth, eleTop = 0, eleLeft = 0, viewportTop, viewportLeft, maxVisibleEleTop, maxVisibleEleLeft, destY, destX;
-
- // Legal hash values aren't necessarily legal jQuery selectors so we need to catch any
- // errors from the lookup...
- try {
- e = $(ele);
- } catch (err) {
- return;
- }
- eleHeight = e.outerHeight();
- eleWidth= e.outerWidth();
-
- container.scrollTop(0);
- container.scrollLeft(0);
-
- // loop through parents adding the offset top of any elements that are relatively positioned between
- // the focused element and the jspPane so we can get the true distance from the top
- // of the focused element to the top of the scrollpane...
- while (!e.is('.jspPane')) {
- eleTop += e.position().top;
- eleLeft += e.position().left;
- e = e.offsetParent();
- if (/^body|html$/i.test(e[0].nodeName)) {
- // we ended up too high in the document structure. Quit!
- return;
- }
- }
-
- viewportTop = contentPositionY();
- maxVisibleEleTop = viewportTop + paneHeight;
- if (eleTop < viewportTop || stickToTop) { // element is above viewport
- destY = eleTop - settings.verticalGutter;
- } else if (eleTop + eleHeight > maxVisibleEleTop) { // element is below viewport
- destY = eleTop - paneHeight + eleHeight + settings.verticalGutter;
- }
- if (!isNaN(destY)) {
- scrollToY(destY, animate);
- }
-
- viewportLeft = contentPositionX();
- maxVisibleEleLeft = viewportLeft + paneWidth;
- if (eleLeft < viewportLeft || stickToTop) { // element is to the left of viewport
- destX = eleLeft - settings.horizontalGutter;
- } else if (eleLeft + eleWidth > maxVisibleEleLeft) { // element is to the right viewport
- destX = eleLeft - paneWidth + eleWidth + settings.horizontalGutter;
- }
- if (!isNaN(destX)) {
- scrollToX(destX, animate);
- }
-
- }
-
- function contentPositionX()
- {
- return -pane.position().left;
- }
-
- function contentPositionY()
- {
- return -pane.position().top;
- }
-
- function isCloseToBottom()
- {
- var scrollableHeight = contentHeight - paneHeight;
- return (scrollableHeight > 20) && (scrollableHeight - contentPositionY() < 10);
- }
-
- function isCloseToRight()
- {
- var scrollableWidth = contentWidth - paneWidth;
- return (scrollableWidth > 20) && (scrollableWidth - contentPositionX() < 10);
- }
-
- function initMousewheel()
- {
- container.unbind(mwEvent).bind(
- mwEvent,
- function (event, delta, deltaX, deltaY) {
- var dX = horizontalDragPosition, dY = verticalDragPosition;
- jsp.scrollBy(deltaX * settings.mouseWheelSpeed, -deltaY * settings.mouseWheelSpeed, false);
- // return true if there was no movement so rest of screen can scroll
- return dX == horizontalDragPosition && dY == verticalDragPosition;
- }
- );
- }
-
- function removeMousewheel()
- {
- container.unbind(mwEvent);
- }
-
- function nil()
- {
- return false;
- }
-
- function initFocusHandler()
- {
- pane.find(':input,a').unbind('focus.jsp').bind(
- 'focus.jsp',
- function(e)
- {
- scrollToElement(e.target, false);
- }
- );
- }
-
- function removeFocusHandler()
- {
- pane.find(':input,a').unbind('focus.jsp');
- }
-
- function initKeyboardNav()
- {
- var keyDown, elementHasScrolled, validParents = [];
- isScrollableH && validParents.push(horizontalBar[0]);
- isScrollableV && validParents.push(verticalBar[0]);
-
- // IE also focuses elements that don't have tabindex set.
- pane.focus(
- function()
- {
- elem.focus();
- }
- );
-
- elem.attr('tabindex', 0)
- .unbind('keydown.jsp keypress.jsp')
- .bind(
- 'keydown.jsp',
- function(e)
- {
- if (e.target !== this && !(validParents.length && $(e.target).closest(validParents).length)){
- return;
- }
- var dX = horizontalDragPosition, dY = verticalDragPosition;
- switch(e.keyCode) {
- case 40: // down
- case 38: // up
- case 34: // page down
- case 32: // space
- case 33: // page up
- case 39: // right
- case 37: // left
- keyDown = e.keyCode;
- keyDownHandler();
- break;
- case 35: // end
- scrollToY(contentHeight - paneHeight);
- keyDown = null;
- break;
- case 36: // home
- scrollToY(0);
- keyDown = null;
- break;
- }
-
- elementHasScrolled = e.keyCode == keyDown && dX != horizontalDragPosition || dY != verticalDragPosition;
- return !elementHasScrolled;
- }
- ).bind(
- 'keypress.jsp', // For FF/ OSX so that we can cancel the repeat key presses if the JSP scrolls...
- function(e)
- {
- if (e.keyCode == keyDown) {
- keyDownHandler();
- }
- return !elementHasScrolled;
- }
- );
-
- if (settings.hideFocus) {
- elem.css('outline', 'none');
- if ('hideFocus' in container[0]){
- elem.attr('hideFocus', true);
- }
- } else {
- elem.css('outline', '');
- if ('hideFocus' in container[0]){
- elem.attr('hideFocus', false);
- }
- }
-
- function keyDownHandler()
- {
- var dX = horizontalDragPosition, dY = verticalDragPosition;
- switch(keyDown) {
- case 40: // down
- jsp.scrollByY(settings.keyboardSpeed, false);
- break;
- case 38: // up
- jsp.scrollByY(-settings.keyboardSpeed, false);
- break;
- case 34: // page down
- case 32: // space
- jsp.scrollByY(paneHeight * settings.scrollPagePercent, false);
- break;
- case 33: // page up
- jsp.scrollByY(-paneHeight * settings.scrollPagePercent, false);
- break;
- case 39: // right
- jsp.scrollByX(settings.keyboardSpeed, false);
- break;
- case 37: // left
- jsp.scrollByX(-settings.keyboardSpeed, false);
- break;
- }
-
- elementHasScrolled = dX != horizontalDragPosition || dY != verticalDragPosition;
- return elementHasScrolled;
- }
- }
-
- function removeKeyboardNav()
- {
- elem.attr('tabindex', '-1')
- .removeAttr('tabindex')
- .unbind('keydown.jsp keypress.jsp');
- }
-
- function observeHash()
- {
- if (location.hash && location.hash.length > 1) {
- var e,
- retryInt,
- hash = escape(location.hash.substr(1)) // hash must be escaped to prevent XSS
- ;
- try {
- e = $('#' + hash + ', a[name="' + hash + '"]');
- } catch (err) {
- return;
- }
-
- if (e.length && pane.find(hash)) {
- // nasty workaround but it appears to take a little while before the hash has done its thing
- // to the rendered page so we just wait until the container's scrollTop has been messed up.
- if (container.scrollTop() === 0) {
- retryInt = setInterval(
- function()
- {
- if (container.scrollTop() > 0) {
- scrollToElement(e, true);
- $(document).scrollTop(container.position().top);
- clearInterval(retryInt);
- }
- },
- 50
- );
- } else {
- scrollToElement(e, true);
- $(document).scrollTop(container.position().top);
- }
- }
- }
- }
-
- function hijackInternalLinks()
- {
- // only register the link handler once
- if ($(document.body).data('jspHijack')) {
- return;
- }
-
- // remember that the handler was bound
- $(document.body).data('jspHijack', true);
-
- // use live handler to also capture newly created links
- $(document.body).delegate('a[href*=#]', 'click', function(event) {
- // does the link point to the same page?
- // this also takes care of cases with a <base>-Tag or Links not starting with the hash #
- // e.g. <a href="index.html#test"> when the current url already is index.html
- var href = this.href.substr(0, this.href.indexOf('#')),
- locationHref = location.href,
- hash,
- element,
- container,
- jsp,
- scrollTop,
- elementTop;
- if (location.href.indexOf('#') !== -1) {
- locationHref = location.href.substr(0, location.href.indexOf('#'));
- }
- if (href !== locationHref) {
- // the link points to another page
- return;
- }
-
- // check if jScrollPane should handle this click event
- hash = escape(this.href.substr(this.href.indexOf('#') + 1));
-
- // find the element on the page
- element;
- try {
- element = $('#' + hash + ', a[name="' + hash + '"]');
- } catch (e) {
- // hash is not a valid jQuery identifier
- return;
- }
-
- if (!element.length) {
- // this link does not point to an element on this page
- return;
- }
-
- container = element.closest('.jspScrollable');
- jsp = container.data('jsp');
-
- // jsp might be another jsp instance than the one, that bound this event
- // remember: this event is only bound once for all instances.
- jsp.scrollToElement(element, true);
-
- if (container[0].scrollIntoView) {
- // also scroll to the top of the container (if it is not visible)
- scrollTop = $(window).scrollTop();
- elementTop = element.offset().top;
- if (elementTop < scrollTop || elementTop > scrollTop + $(window).height()) {
- container[0].scrollIntoView();
- }
- }
-
- // jsp handled this event, prevent the browser default (scrolling :P)
- event.preventDefault();
- });
- }
-
- // Init touch on iPad, iPhone, iPod, Android
- function initTouch()
- {
- var startX,
- startY,
- touchStartX,
- touchStartY,
- moved,
- moving = false;
-
- container.unbind('touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick').bind(
- 'touchstart.jsp',
- function(e)
- {
- var touch = e.originalEvent.touches[0];
- startX = contentPositionX();
- startY = contentPositionY();
- touchStartX = touch.pageX;
- touchStartY = touch.pageY;
- moved = false;
- moving = true;
- }
- ).bind(
- 'touchmove.jsp',
- function(ev)
- {
- if(!moving) {
- return;
- }
-
- var touchPos = ev.originalEvent.touches[0],
- dX = horizontalDragPosition, dY = verticalDragPosition;
-
- jsp.scrollTo(startX + touchStartX - touchPos.pageX, startY + touchStartY - touchPos.pageY);
-
- moved = moved || Math.abs(touchStartX - touchPos.pageX) > 5 || Math.abs(touchStartY - touchPos.pageY) > 5;
-
- // return true if there was no movement so rest of screen can scroll
- return dX == horizontalDragPosition && dY == verticalDragPosition;
- }
- ).bind(
- 'touchend.jsp',
- function(e)
- {
- moving = false;
- /*if(moved) {
- return false;
- }*/
- }
- ).bind(
- 'click.jsp-touchclick',
- function(e)
- {
- if(moved) {
- moved = false;
- return false;
- }
- }
- );
- }
-
- function destroy(){
- var currentY = contentPositionY(),
- currentX = contentPositionX();
- elem.removeClass('jspScrollable').unbind('.jsp');
- elem.replaceWith(originalElement.append(pane.children()));
- originalElement.scrollTop(currentY);
- originalElement.scrollLeft(currentX);
-
- // clear reinitialize timer if active
- if (reinitialiseInterval) {
- clearInterval(reinitialiseInterval);
- }
- }
-
- // Public API
- $.extend(
- jsp,
- {
- // Reinitialises the scroll pane (if it's internal dimensions have changed since the last time it
- // was initialised). The settings object which is passed in will override any settings from the
- // previous time it was initialised - if you don't pass any settings then the ones from the previous
- // initialisation will be used.
- reinitialise: function(s)
- {
- s = $.extend({}, settings, s);
- initialise(s);
- },
- // Scrolls the specified element (a jQuery object, DOM node or jQuery selector string) into view so
- // that it can be seen within the viewport. If stickToTop is true then the element will appear at
- // the top of the viewport, if it is false then the viewport will scroll as little as possible to
- // show the element. You can also specify if you want animation to occur. If you don't provide this
- // argument then the animateScroll value from the settings object is used instead.
- scrollToElement: function(ele, stickToTop, animate)
- {
- scrollToElement(ele, stickToTop, animate);
- },
- // Scrolls the pane so that the specified co-ordinates within the content are at the top left
- // of the viewport. animate is optional and if not passed then the value of animateScroll from
- // the settings object this jScrollPane was initialised with is used.
- scrollTo: function(destX, destY, animate)
- {
- scrollToX(destX, animate);
- scrollToY(destY, animate);
- },
- // Scrolls the pane so that the specified co-ordinate within the content is at the left of the
- // viewport. animate is optional and if not passed then the value of animateScroll from the settings
- // object this jScrollPane was initialised with is used.
- scrollToX: function(destX, animate)
- {
- scrollToX(destX, animate);
- },
- // Scrolls the pane so that the specified co-ordinate within the content is at the top of the
- // viewport. animate is optional and if not passed then the value of animateScroll from the settings
- // object this jScrollPane was initialised with is used.
- scrollToY: function(destY, animate)
- {
- scrollToY(destY, animate);
- },
- // Scrolls the pane to the specified percentage of its maximum horizontal scroll position. animate
- // is optional and if not passed then the value of animateScroll from the settings object this
- // jScrollPane was initialised with is used.
- scrollToPercentX: function(destPercentX, animate)
- {
- scrollToX(destPercentX * (contentWidth - paneWidth), animate);
- },
- // Scrolls the pane to the specified percentage of its maximum vertical scroll position. animate
- // is optional and if not passed then the value of animateScroll from the settings object this
- // jScrollPane was initialised with is used.
- scrollToPercentY: function(destPercentY, animate)
- {
- scrollToY(destPercentY * (contentHeight - paneHeight), animate);
- },
- // Scrolls the pane by the specified amount of pixels. animate is optional and if not passed then
- // the value of animateScroll from the settings object this jScrollPane was initialised with is used.
- scrollBy: function(deltaX, deltaY, animate)
- {
- jsp.scrollByX(deltaX, animate);
- jsp.scrollByY(deltaY, animate);
- },
- // Scrolls the pane by the specified amount of pixels. animate is optional and if not passed then
- // the value of animateScroll from the settings object this jScrollPane was initialised with is used.
- scrollByX: function(deltaX, animate)
- {
- var destX = contentPositionX() + Math[deltaX<0 ? 'floor' : 'ceil'](deltaX),
- percentScrolled = destX / (contentWidth - paneWidth);
- positionDragX(percentScrolled * dragMaxX, animate);
- },
- // Scrolls the pane by the specified amount of pixels. animate is optional and if not passed then
- // the value of animateScroll from the settings object this jScrollPane was initialised with is used.
- scrollByY: function(deltaY, animate)
- {
- var destY = contentPositionY() + Math[deltaY<0 ? 'floor' : 'ceil'](deltaY),
- percentScrolled = destY / (contentHeight - paneHeight);
- positionDragY(percentScrolled * dragMaxY, animate);
- },
- // Positions the horizontal drag at the specified x position (and updates the viewport to reflect
- // this). animate is optional and if not passed then the value of animateScroll from the settings
- // object this jScrollPane was initialised with is used.
- positionDragX: function(x, animate)
- {
- positionDragX(x, animate);
- },
- // Positions the vertical drag at the specified y position (and updates the viewport to reflect
- // this). animate is optional and if not passed then the value of animateScroll from the settings
- // object this jScrollPane was initialised with is used.
- positionDragY: function(y, animate)
- {
- positionDragY(y, animate);
- },
- // This method is called when jScrollPane is trying to animate to a new position. You can override
- // it if you want to provide advanced animation functionality. It is passed the following arguments:
- // * ele - the element whose position is being animated
- // * prop - the property that is being animated
- // * value - the value it's being animated to
- // * stepCallback - a function that you must execute each time you update the value of the property
- // You can use the default implementation (below) as a starting point for your own implementation.
- animate: function(ele, prop, value, stepCallback)
- {
- var params = {};
- params[prop] = value;
- ele.animate(
- params,
- {
- 'duration' : settings.animateDuration,
- 'easing' : settings.animateEase,
- 'queue' : false,
- 'step' : stepCallback
- }
- );
- },
- // Returns the current x position of the viewport with regards to the content pane.
- getContentPositionX: function()
- {
- return contentPositionX();
- },
- // Returns the current y position of the viewport with regards to the content pane.
- getContentPositionY: function()
- {
- return contentPositionY();
- },
- // Returns the width of the content within the scroll pane.
- getContentWidth: function()
- {
- return contentWidth;
- },
- // Returns the height of the content within the scroll pane.
- getContentHeight: function()
- {
- return contentHeight;
- },
- // Returns the horizontal position of the viewport within the pane content.
- getPercentScrolledX: function()
- {
- return contentPositionX() / (contentWidth - paneWidth);
- },
- // Returns the vertical position of the viewport within the pane content.
- getPercentScrolledY: function()
- {
- return contentPositionY() / (contentHeight - paneHeight);
- },
- // Returns whether or not this scrollpane has a horizontal scrollbar.
- getIsScrollableH: function()
- {
- return isScrollableH;
- },
- // Returns whether or not this scrollpane has a vertical scrollbar.
- getIsScrollableV: function()
- {
- return isScrollableV;
- },
- // Gets a reference to the content pane. It is important that you use this method if you want to
- // edit the content of your jScrollPane as if you access the element directly then you may have some
- // problems (as your original element has had additional elements for the scrollbars etc added into
- // it).
- getContentPane: function()
- {
- return pane;
- },
- // Scrolls this jScrollPane down as far as it can currently scroll. If animate isn't passed then the
- // animateScroll value from settings is used instead.
- scrollToBottom: function(animate)
- {
- positionDragY(dragMaxY, animate);
- },
- // Hijacks the links on the page which link to content inside the scrollpane. If you have changed
- // the content of your page (e.g. via AJAX) and want to make sure any new anchor links to the
- // contents of your scroll pane will work then call this function.
- hijackInternalLinks: $.noop,
- // Removes the jScrollPane and returns the page to the state it was in before jScrollPane was
- // initialised.
- destroy: function()
- {
- destroy();
- }
- }
- );
-
- initialise(s);
- }
-
- // Pluginifying code...
- settings = $.extend({}, $.fn.jScrollPane.defaults, settings);
-
- // Apply default speed
- $.each(['arrowButtonSpeed', 'trackClickSpeed', 'keyboardSpeed'], function() {
- settings[this] = settings[this] || settings.speed;
- });
-
- return this.each(
- function()
- {
- var elem = $(this), jspApi = elem.data('jsp');
- if (jspApi) {
- jspApi.reinitialise(settings);
- } else {
- $("script",elem).filter('[type="text/javascript"],:not([type])').remove();
- jspApi = new JScrollPane(elem, settings);
- elem.data('jsp', jspApi);
- }
- }
- );
- };
-
- $.fn.jScrollPane.defaults = {
- showArrows : false,
- maintainPosition : true,
- stickToBottom : false,
- stickToRight : false,
- clickOnTrack : true,
- autoReinitialise : false,
- autoReinitialiseDelay : 500,
- verticalDragMinHeight : 0,
- verticalDragMaxHeight : 99999,
- horizontalDragMinWidth : 0,
- horizontalDragMaxWidth : 99999,
- contentWidth : undefined,
- animateScroll : false,
- animateDuration : 300,
- animateEase : 'linear',
- hijackInternalLinks : false,
- verticalGutter : 4,
- horizontalGutter : 4,
- mouseWheelSpeed : 3,
- arrowButtonSpeed : 0,
- arrowRepeatFreq : 50,
- arrowScrollOnHover : false,
- trackClickSpeed : 0,
- trackClickRepeatFreq : 70,
- verticalArrowPositions : 'split',
- horizontalArrowPositions : 'split',
- enableKeyboardNavigation : true,
- hideFocus : false,
- keyboardSpeed : 0,
- initialDelay : 300, // Delay before starting repeating
- speed : 30, // Default speed when others falsey
- scrollPagePercent : .8 // Percent of visible area scrolled when pageUp/Down or track area pressed
- };
-
-})(jQuery,this);
-
diff --git a/lib/jquery.jscrollpane-2.0.17/jquery.mousewheel.js b/lib/jquery.jscrollpane-2.0.17/jquery.mousewheel.js
deleted file mode 100644
index 9d65c7162..000000000
--- a/lib/jquery.jscrollpane-2.0.17/jquery.mousewheel.js
+++ /dev/null
@@ -1,117 +0,0 @@
-/*! Copyright (c) 2013 Brandon Aaron (http://brandonaaron.net)
- * Licensed under the MIT License (LICENSE.txt).
- *
- * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
- * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
- * Thanks to: Seamus Leahy for adding deltaX and deltaY
- *
- * Version: 3.1.3
- *
- * Requires: 1.2.2+
- */
-
-(function (factory) {
- if ( typeof define === 'function' && define.amd ) {
- // AMD. Register as an anonymous module.
- define(['jquery'], factory);
- } else if (typeof exports === 'object') {
- // Node/CommonJS style for Browserify
- module.exports = factory;
- } else {
- // Browser globals
- factory(jQuery);
- }
-}(function ($) {
-
- var toFix = ['wheel', 'mousewheel', 'DOMMouseScroll', 'MozMousePixelScroll'];
- var toBind = 'onwheel' in document || document.documentMode >= 9 ? ['wheel'] : ['mousewheel', 'DomMouseScroll', 'MozMousePixelScroll'];
- var lowestDelta, lowestDeltaXY;
-
- if ( $.event.fixHooks ) {
- for ( var i = toFix.length; i; ) {
- $.event.fixHooks[ toFix[--i] ] = $.event.mouseHooks;
- }
- }
-
- $.event.special.mousewheel = {
- setup: function() {
- if ( this.addEventListener ) {
- for ( var i = toBind.length; i; ) {
- this.addEventListener( toBind[--i], handler, false );
- }
- } else {
- this.onmousewheel = handler;
- }
- },
-
- teardown: function() {
- if ( this.removeEventListener ) {
- for ( var i = toBind.length; i; ) {
- this.removeEventListener( toBind[--i], handler, false );
- }
- } else {
- this.onmousewheel = null;
- }
- }
- };
-
- $.fn.extend({
- mousewheel: function(fn) {
- return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel");
- },
-
- unmousewheel: function(fn) {
- return this.unbind("mousewheel", fn);
- }
- });
-
-
- function handler(event) {
- var orgEvent = event || window.event,
- args = [].slice.call(arguments, 1),
- delta = 0,
- deltaX = 0,
- deltaY = 0,
- absDelta = 0,
- absDeltaXY = 0,
- fn;
- event = $.event.fix(orgEvent);
- event.type = "mousewheel";
-
- // Old school scrollwheel delta
- if ( orgEvent.wheelDelta ) { delta = orgEvent.wheelDelta; }
- if ( orgEvent.detail ) { delta = orgEvent.detail * -1; }
-
- // New school wheel delta (wheel event)
- if ( orgEvent.deltaY ) {
- deltaY = orgEvent.deltaY * -1;
- delta = deltaY;
- }
- if ( orgEvent.deltaX ) {
- deltaX = orgEvent.deltaX;
- delta = deltaX * -1;
- }
-
- // Webkit
- if ( orgEvent.wheelDeltaY !== undefined ) { deltaY = orgEvent.wheelDeltaY; }
- if ( orgEvent.wheelDeltaX !== undefined ) { deltaX = orgEvent.wheelDeltaX * -1; }
-
- // Look for lowest delta to normalize the delta values
- absDelta = Math.abs(delta);
- if ( !lowestDelta || absDelta < lowestDelta ) { lowestDelta = absDelta; }
- absDeltaXY = Math.max(Math.abs(deltaY), Math.abs(deltaX));
- if ( !lowestDeltaXY || absDeltaXY < lowestDeltaXY ) { lowestDeltaXY = absDeltaXY; }
-
- // Get a whole value for the deltas
- fn = delta > 0 ? 'floor' : 'ceil';
- delta = Math[fn](delta / lowestDelta);
- deltaX = Math[fn](deltaX / lowestDeltaXY);
- deltaY = Math[fn](deltaY / lowestDeltaXY);
-
- // Add event and delta to the front of the arguments
- args.unshift(event, delta, deltaX, deltaY);
-
- return ($.event.dispatch || $.event.handle).apply(this, args);
- }
-
-}));
diff --git a/lib/jquery.jscrollpane-2.0.17/mwheelIntent.js b/lib/jquery.jscrollpane-2.0.17/mwheelIntent.js
deleted file mode 100644
index 0a86d0589..000000000
--- a/lib/jquery.jscrollpane-2.0.17/mwheelIntent.js
+++ /dev/null
@@ -1,76 +0,0 @@
-/**
- * @author trixta
- * @version 1.2
- */
-(function($){
-
-var mwheelI = {
- pos: [-260, -260]
- },
- minDif = 3,
- doc = document,
- root = doc.documentElement,
- body = doc.body,
- longDelay, shortDelay
-;
-
-function unsetPos(){
- if(this === mwheelI.elem){
- mwheelI.pos = [-260, -260];
- mwheelI.elem = false;
- minDif = 3;
- }
-}
-
-$.event.special.mwheelIntent = {
- setup: function(){
- var jElm = $(this).bind('mousewheel', $.event.special.mwheelIntent.handler);
- if( this !== doc && this !== root && this !== body ){
- jElm.bind('mouseleave', unsetPos);
- }
- jElm = null;
- return true;
- },
- teardown: function(){
- $(this)
- .unbind('mousewheel', $.event.special.mwheelIntent.handler)
- .unbind('mouseleave', unsetPos)
- ;
- return true;
- },
- handler: function(e, d){
- var pos = [e.clientX, e.clientY];
- if( this === mwheelI.elem || Math.abs(mwheelI.pos[0] - pos[0]) > minDif || Math.abs(mwheelI.pos[1] - pos[1]) > minDif ){
- mwheelI.elem = this;
- mwheelI.pos = pos;
- minDif = 250;
-
- clearTimeout(shortDelay);
- shortDelay = setTimeout(function(){
- minDif = 10;
- }, 200);
- clearTimeout(longDelay);
- longDelay = setTimeout(function(){
- minDif = 3;
- }, 1500);
- e = $.extend({}, e, {type: 'mwheelIntent'});
- return ($.event.dispatch || $.event.handle).apply(this, arguments);
- }
- }
-};
-$.fn.extend({
- mwheelIntent: function(fn) {
- return fn ? this.bind("mwheelIntent", fn) : this.trigger("mwheelIntent");
- },
-
- unmwheelIntent: function(fn) {
- return this.unbind("mwheelIntent", fn);
- }
-});
-
-$(function(){
- body = doc.body;
- //assume that document is always scrollable, doesn't hurt if not
- $(doc).bind('mwheelIntent.mwheelIntentDefault', $.noop);
-});
-})(jQuery);
diff --git a/lib/mobiscroll-2.6.0/Gruntfile.js b/lib/mobiscroll-2.6.0/Gruntfile.js
deleted file mode 100644
index aae24c565..000000000
--- a/lib/mobiscroll-2.6.0/Gruntfile.js
+++ /dev/null
@@ -1,74 +0,0 @@
-module.exports = function(grunt) {
-
- var name = "mobiscroll";
- var version = "2.6.0";
- var base = "wv.date";
-
- var lib = "lib/" + name + "-" + version + "/";
- var ext = "src/ext/" + base + "/" + name + "-" + version + "/";
- var debug_js = ext + name + ".js";
- var debug_css = ext + name + ".css";
- var min_js = ext + name + ".min.js";
- var min_css = ext + name + ".min.css";
-
- var css = [
- lib + "mobiscroll.core.css",
- lib + "mobiscroll.jqm.css",
- lib + "mobiscroll.android.css",
- lib + "mobiscroll.android-ics.css",
- lib + "mobiscroll.ios.css",
- lib + "mobiscroll.sense-ui.css",
- lib + "mobiscroll.wp.css",
- lib + "mobiscroll.animation.css"
- ];
-
- var js = [
- lib + "mobiscroll.core.js",
- lib + "mobiscroll.datetime.js",
- lib + "mobiscroll.select.js",
- lib + "mobiscroll.jqm.js",
- lib + "mobiscroll.ios.js",
- lib + "mobiscroll.android.js",
- lib + "mobiscroll.android-ics.js",
- lib + "mobiscroll.wp.js"
- ];
-
- var uglifyFiles = {};
- uglifyFiles[min_js] = [debug_js];
-
- var cssminFiles = {};
- cssminFiles[min_css] = [debug_css];
-
- grunt.initConfig({
- concat: {
- js: {
- src: js,
- dest: debug_js
- },
- css: {
- src: css,
- dest: debug_css
- }
- },
-
- uglify: {
- js: {
- files: uglifyFiles
- }
- },
-
- cssmin: {
- css: {
- files: cssminFiles
- }
- }
- });
-
- grunt.file.setBase("../..");
- grunt.loadNpmTasks("grunt-contrib-concat");
- grunt.loadNpmTasks("grunt-contrib-cssmin");
- grunt.loadNpmTasks("grunt-contrib-uglify");
-
- grunt.registerTask("default", ["concat", "uglify", "cssmin"]);
-
-};
diff --git a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.de.js b/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.de.js
deleted file mode 100644
index 311287984..000000000
--- a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.de.js
+++ /dev/null
@@ -1,40 +0,0 @@
-(function ($) {
- $.mobiscroll.i18n.de = $.extend($.mobiscroll.i18n.de, {
- // Core
- setText: 'OK',
- cancelText: 'Abbrechen',
- // Datetime component
- dateFormat: 'dd.mm.yy',
- dateOrder: 'ddmmyy',
- dayNames: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'],
- dayNamesShort: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],
- dayText: 'Tag',
- hourText: 'Stunde',
- minuteText: 'Minuten',
- monthNames: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'],
- monthNamesShort: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'],
- monthText: 'Monat',
- secText: 'Sekunden',
- timeFormat: 'HH:ii',
- timeWheels: 'HHii',
- yearText: 'Jahr',
- nowText: 'Jetzt',
- // Calendar component
- dateText: 'Datum',
- timeText: 'Zeit',
- calendarText: 'Kalender',
- // Measurement components
- wholeText: 'Ganze Zahl',
- fractionText: 'Bruchzahl',
- unitText: 'Maßeinheit',
- // Time / Timespan component
- labels: ['Jahre', 'Monate', 'Tage', 'Stunden', 'Minuten', 'Sekunden', ''],
- labelsShort: ['Yrs', 'Mths', 'Days', 'Hrs', 'Mins', 'Secs', ''],
- // Timer component
- startText: 'Start',
- stopText: 'Stop',
- resetText: 'Reset',
- lapText: 'Lap',
- hideText: 'Hide'
- });
-})(jQuery);
diff --git a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.es.js b/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.es.js
deleted file mode 100644
index d02d4aa16..000000000
--- a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.es.js
+++ /dev/null
@@ -1,40 +0,0 @@
-(function ($) {
- $.mobiscroll.i18n.es = $.extend($.mobiscroll.i18n.es, {
- // Core
- setText: 'Aceptar',
- cancelText: 'Cancelar',
- // Datetime component
- dateFormat: 'dd/mm/yy',
- dateOrder: 'ddmmyy',
- dayNames: ['Domingo','Lunes','Martes','Mi&#xE9;rcoles','Jueves','Viernes','S&#xE1;bado'],
- dayNamesShort: ['Do','Lu','Ma','Mi','Ju','Vi','S&#xE1;'],
- dayText: 'D&#237;a',
- hourText: 'Horas',
- minuteText: 'Minutos',
- monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'],
- monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun','Jul','Ago','Sep','Oct','Nov','Dic'],
- monthText: 'Mes',
- secText: 'Segundos',
- timeFormat: 'HH:ii',
- timeWheels: 'HHii',
- yearText: 'A&ntilde;o',
- nowText: 'Ahora',
- // Calendar component
- dateText: 'Fecha',
- timeText: 'Tiempo',
- calendarText: 'Calendario',
- // Measurement components
- wholeText: 'Entero',
- fractionText: 'Fracción',
- unitText: 'Unidad',
- // Time / Timespan component
- labels: ['Años', 'Meses', 'Días', 'Horas', 'Minutos', 'Segundos', ''],
- labelsShort: ['Yrs', 'Mths', 'Days', 'Hrs', 'Mins', 'Secs', ''],
- // Timer component
- startText: 'Iniciar',
- stopText: 'Deténgase',
- resetText: 'Reinicializar',
- lapText: 'Lap',
- hideText: 'Esconder'
- });
-})(jQuery);
diff --git a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.fr.js b/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.fr.js
deleted file mode 100644
index ee7e35e3a..000000000
--- a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.fr.js
+++ /dev/null
@@ -1,40 +0,0 @@
-(function ($) {
- $.mobiscroll.i18n.fr = $.extend($.mobiscroll.i18n.fr, {
- // Core
- setText: 'Terminé',
- cancelText: 'Annuler',
- // Datetime component
- dateFormat: 'dd/mm/yy',
- dateOrder: 'ddmmyy',
- dayNames: ['&#68;imanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'],
- dayNamesShort: ['&#68;im.', 'Lun.', 'Mar.', 'Mer.', 'Jeu.', 'Ven.', 'Sam.'],
- dayText: 'Jour',
- monthText: 'Mois',
- monthNames: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],
- monthNamesShort: ['Janv.', 'Févr.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Août', 'Sept.', 'Oct.', 'Nov.', 'Déc.'],
- hourText: 'Heures',
- minuteText: 'Minutes',
- secText: 'Secondes',
- timeFormat: 'HH:ii',
- timeWheels: 'HHii',
- yearText: 'Année',
- nowText: 'Maintenant',
- // Calendar component
- dateText: 'Date',
- timeText: 'Heure',
- calendarText: 'Calendrier',
- // Measurement components
- wholeText: 'Entier',
- fractionText: 'Fraction',
- unitText: 'Unité',
- // Time / Timespan component
- labels: ['Ans', 'Mois', 'Jours', 'Heures', 'Minutes', 'Secondes', ''],
- labelsShort: ['Yrs', 'Mths', 'Days', 'Hrs', 'Mins', 'Secs', ''],
- // Timer component
- startText: 'Indít',
- stopText: 'Megállít',
- resetText: 'Visszaállít',
- lapText: 'Lap',
- hideText: 'Elrejt'
- });
-})(jQuery);
diff --git a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.hu.js b/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.hu.js
deleted file mode 100644
index 3b0dcec7a..000000000
--- a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.hu.js
+++ /dev/null
@@ -1,40 +0,0 @@
-(function ($) {
- $.mobiscroll.i18n.hu = $.extend($.mobiscroll.i18n.hu, {
- // Core
- setText: 'OK',
- cancelText: 'Mégse',
- // Datetime component
- dateFormat: 'dd.mm.yy',
- dateOrder: 'ddmmyy',
- dayNames: ['Vasárnap', 'Hétfő', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'],
- dayNamesShort: ['Va', 'Hé', 'Ke', 'Sze', 'Csü', 'Pé', 'Szo'],
- dayText: 'Nap',
- hourText: 'Óra',
- minuteText: 'Perc',
- monthNames: ['Január', 'Február', 'Március', 'Április', 'Május', 'Június', 'Július', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'],
- monthNamesShort: ['Jan', 'Feb', 'Már', 'Ápr', 'Máj', 'Jún', 'Júl', 'Aug', 'Szep', 'Okt', 'Nov', 'Dec'],
- monthText: 'Hónap',
- secText: 'Másodperc',
- timeFormat: 'HH:ii',
- timeWheels: 'HHii',
- yearText: 'Év',
- nowText: 'Most',
- // Calendar component
- dateText: 'Dátum',
- timeText: 'Idő',
- calendarText: 'Naptár',
- // Measurement components
- wholeText: 'Egész',
- fractionText: 'Tört',
- unitText: 'Egység',
- // Time / Timespan component
- labels: ['Év', 'Hónap', 'Nap', 'Óra', 'Perc', 'Másodperc', ''],
- labelsShort: ['Év', 'Hó.', 'Nap', 'Óra', 'Perc', 'Mp.', ''],
- // Timer component
- startText: 'Indít',
- stopText: 'Megállít',
- resetText: 'Visszaállít',
- lapText: 'Lap',
- hideText: 'Elrejt'
- });
-})(jQuery);
diff --git a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.it.js b/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.it.js
deleted file mode 100644
index 38c6c13db..000000000
--- a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.it.js
+++ /dev/null
@@ -1,39 +0,0 @@
-(function ($) {
- $.mobiscroll.i18n.it = $.extend($.mobiscroll.i18n.it, {
- // Core
- setText: 'OK',
- cancelText: 'Annulla',
- // Datetime component
- dateFormat: 'dd-mm-yyyy',
- dateOrder: 'ddmmyy',
- dayNames: ['Domenica', 'Luned&Igrave;', 'Merted&Igrave;', 'Mercoled&Igrave;', 'Gioved&Igrave;', 'Venerd&Igrave;', 'Sabato'],
- dayNamesShort: ['Do', 'Lu', 'Ma', 'Me', 'Gi', 'Ve', 'Sa'],
- dayText: 'Giorno',
- hourText: 'Ore',
- minuteText: 'Minuti',
- monthNames: ['Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre'],
- monthNamesShort: ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic'],
- monthText: 'Mese',
- secText: 'Secondi',
- timeFormat: 'HH:ii',
- timeWheels: 'HHii',
- yearText: 'Anno',
- // Calendar component
- dateText: 'Data',
- timeText: 'Volta',
- calendarText: 'Calendario',
- // Measurement components
- wholeText: 'Intero',
- fractionText: 'Frazione',
- unitText: 'Unità',
- // Time / Timespan component
- labels: ['Anni', 'Mesi', 'Giorni', 'Ore', 'Minuti', 'Secondi', ''],
- labelsShort: ['Yrs', 'Mths', 'Days', 'Hrs', 'Mins', 'Secs', ''],
- // Timer component
- startText: 'Inizio',
- stopText: 'Arresto',
- resetText: 'Ripristina',
- lapText: 'Lap',
- hideText: 'Nascondi'
- });
-})(jQuery);
diff --git a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.ja.js b/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.ja.js
deleted file mode 100644
index 2e609edb6..000000000
--- a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.ja.js
+++ /dev/null
@@ -1,40 +0,0 @@
-(function ($) {
- $.mobiscroll.i18n.ja = $.extend($.mobiscroll.i18n.ja, {
- // Core
- setText: 'セット',
- cancelText: 'キャンセル',
- // Datetime component
- dateFormat: 'yy年mm月dd日',
- dateOrder: 'yymmdd',
- dayNames: ['日','月','火','水','木','金','土'],
- dayNamesShort: ['日','月','火','水','木','金','土'],
- dayText: '日',
- hourText: '時',
- minuteText: '分',
- monthNames: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
- monthNamesShort: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
- monthText: '月',
- secText: '秒',
- timeFormat: 'HH:ii',
- timeWheels: 'HHii',
- yearText: '年',
- nowText: '今',
- // Calendar component
- dateText: '日付',
- timeText: '時間',
- calendarText: 'カレンダー',
- // Measurement components
- wholeText: '全数',
- fractionText: '分数',
- unitText: '単位',
- // Time / Timespan component
- labels: ['年間', '月間', '日間', '時間', '分', '秒', ''],
- labelsShort: ['年間', '月間', '日間', '時間', '分', '秒', ''],
- // Timer component
- startText: '開始',
- stopText: '停止',
- resetText: 'リセット',
- lapText: 'ラップ',
- hideText: '隠す'
- });
-})(jQuery);
diff --git a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.nl.js b/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.nl.js
deleted file mode 100644
index 554ae1370..000000000
--- a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.nl.js
+++ /dev/null
@@ -1,40 +0,0 @@
-(function ($) {
- $.mobiscroll.i18n.nl = $.extend($.mobiscroll.i18n.nl, {
- // Core
- setText: 'Instellen',
- cancelText: 'Annuleer',
- // Datetime component
- dateFormat: 'dd/mm/yy',
- dateOrder: 'ddmmyy',
- dayNames: ['zondag', 'maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag'],
- dayNamesShort: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
- dayText: 'Dag',
- hourText: 'Uur',
- minuteText: 'Minuten',
- monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
- monthNamesShort: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
- monthText: 'Maand',
- secText: 'Seconden',
- timeFormat: 'hh:ii A',
- timeWheels: 'hhiiA',
- yearText: 'Jaar',
- nowText: 'Nu',
- // Calendar component
- dateText: 'Datum',
- timeText: 'Tijd',
- calendarText: 'Kalender',
- // Measurement components
- wholeText: 'geheel',
- fractionText: 'fractie',
- unitText: 'eenheid',
- // Time / Timespan component
- labels: ['Jaren', 'Maanden', 'Dagen', 'Uren', 'Minuten', 'Seconden', ''],
- labelsShort: ['j', 'm', 'd', 'u', 'min', 'sec', ''],
- // Timer component
- startText: 'Start',
- stopText: 'Stop',
- resetText: 'Reset',
- lapText: 'Lap',
- hideText: 'Verbergen'
- });
-})(jQuery);
diff --git a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.no.js b/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.no.js
deleted file mode 100644
index 99205b332..000000000
--- a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.no.js
+++ /dev/null
@@ -1,40 +0,0 @@
-(function ($) {
- $.mobiscroll.i18n.no = $.extend($.mobiscroll.i18n.no, {
- // Core
- setText: 'OK',
- cancelText: 'Avbryt',
- // Datetime component
- dateFormat: 'dd.mm.yy',
- dateOrder: 'ddmmyy',
- dayNames: ['Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag'],
- dayNamesShort: ['Sø', 'Ma', 'Ti', 'On', 'To', 'Fr', 'Lø'],
- dayText: 'Dag',
- hourText: 'Time',
- minuteText: 'Minutt',
- monthNames: ['Januar', 'Februar', 'Mars', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Desember'],
- monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'],
- monthText: 'Måned',
- secText: 'Sekund',
- timeFormat: 'HH:ii',
- timeWheels: 'HHii',
- yearText: 'År',
- nowText: 'Nå',
- // Calendar component
- dateText: 'Dato',
- timeText: 'Tid',
- calendarText: 'Kalender',
- // Measurement components
- wholeText: 'Hele',
- fractionText: 'Fraksjon',
- unitText: 'Enhet',
- // Time / Timespan component
- labels: ['År', 'Måneder', 'Dager', 'Timer', 'Minutter', 'Sekunder', ''],
- labelsShort: ['Yrs', 'Mths', 'Days', 'Hrs', 'Mins', 'Secs', ''],
- // Timer component
- startText: 'Start',
- stopText: 'Stopp',
- resetText: 'Tilbakestille',
- lapText: 'Runde',
- hideText: 'Skjul'
- });
-})(jQuery);
diff --git a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.pt-BR.js b/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.pt-BR.js
deleted file mode 100644
index 0f6ef9cd7..000000000
--- a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.pt-BR.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Translation by: Ivan Gomes <[email protected]>
- *
- */
-(function ($) {
- $.mobiscroll.i18n['pt-BR'] = $.extend($.mobiscroll.i18n['pt-BR'], {
- // Core
- setText: 'Selecionar',
- cancelText: 'Cancelar',
- // Datetime component
- dateFormat: 'dd/mm/yy',
- dateOrder: 'ddMMyy',
- dayNames: ['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sábado'],
- dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],
- dayText: 'Dia',
- hourText: 'Hora',
- minuteText: 'Minutos',
- monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],
- monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun','Jul','Ago','Set','Out','Nov','Dez'],
- monthText: 'Mês',
- secText: 'Segundo',
- timeFormat: 'HH:ii',
- timeWheels: 'HHii',
- yearText: 'Ano',
- // Calendar component
- dateText: 'Data',
- timeText: 'Tempo',
- calendarText: 'Calendário',
- // Measurement components
- wholeText: 'Inteiro',
- fractionText: 'Fração',
- unitText: 'Unidade',
- // Time / Timespan component
- labels: ['Anos', 'Meses', 'Dias', 'Horas', 'Minutos', 'Segundos', ''],
- labelsShort: ['Yrs', 'Mths', 'Days', 'Hrs', 'Mins', 'Secs', ''],
- // Timer component
- startText: 'Começar',
- stopText: 'Pare',
- resetText: 'Reinicializar',
- lapText: 'Lap',
- hideText: 'Esconder'
- });
-})(jQuery);
diff --git a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.tr.js b/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.tr.js
deleted file mode 100644
index 862b0d283..000000000
--- a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.tr.js
+++ /dev/null
@@ -1,40 +0,0 @@
-(function ($) {
- $.mobiscroll.i18n.tr = $.extend($.mobiscroll.i18n.tr, {
- // Core
- setText: 'Seç',
- cancelText: 'İptal',
- // Datetime component
- dateFormat: 'dd.mm.yy',
- dateOrder: 'ddmmyy',
- dayNames: ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'],
- dayNamesShort: ['Paz', 'Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cmt'],
- dayText: 'Gün',
- hourText: 'Saat',
- minuteText: 'Dakika',
- monthNames: ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'],
- monthNamesShort: ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'],
- monthText: 'Ay',
- secText: 'Saniye',
- timeFormat: 'hh:ii A',
- timeWheels: 'hhiiA',
- yearText: 'Yıl',
- nowText: 'Şimdi',
- // Calendar component
- dateText: 'Tarih',
- timeText: 'Zaman',
- calendarText: 'Takvim',
- // Measurement components
- wholeText: 'Tam',
- fractionText: 'Kesir',
- unitText: 'Birim',
- // Time / Timespan component
- labels: ['Yıl', 'Ay', 'Gün', 'Saat', 'Dakika', 'Saniye', ''],
- labelsShort: ['Yıl', 'Ay', 'Gün', 'Sa', 'Dak', 'Sn', ''],
- // Timer component
- startText: 'Başla',
- stopText: 'Durdur',
- resetText: 'Sıfırla',
- lapText: 'Tur',
- hideText: 'Gizle'
- });
-})(jQuery);
diff --git a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.zh.js b/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.zh.js
deleted file mode 100644
index 421b097a8..000000000
--- a/lib/mobiscroll-2.6.0/i18n/mobiscroll.i18n.zh.js
+++ /dev/null
@@ -1,40 +0,0 @@
-(function ($) {
- $.mobiscroll.i18n.zh = $.extend($.mobiscroll.i18n.zh, {
- // Core
- setText: '确定',
- cancelText: '取消',
- // Datetime component
- dateFormat: 'dd/mm/yy',
- dateOrder: 'ddmmyy',
- dayNames: ['周日','周一','周二','周三','周四','周五','周六'],
- dayNamesShort: ['日','一','二','三','四','五','六'],
- dayText: '日',
- hourText: '时',
- minuteText: '分',
- monthNames: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
- monthNamesShort: ['一','二','三','四','五','六','七','八','九','十','十一','十二'],
- monthText: '月',
- secText: '秒',
- timeFormat: 'HH:ii',
- timeWheels: 'HHii',
- yearText: '年',
- nowText: '当前',
- // Calendar component
- dateText: '日',
- timeText: '时间',
- calendarText: '日历',
- // Measurement components
- wholeText: 'Whole',
- fractionText: 'Fraction',
- unitText: 'Unit',
- // Time / Timespan component
- labels: ['Years', 'Months', 'Days', 'Hours', 'Minutes', 'Seconds', ''],
- labelsShort: ['Yrs', 'Mths', 'Days', 'Hrs', 'Mins', 'Secs', ''],
- // Timer component
- startText: 'Start',
- stopText: 'Stop',
- resetText: 'Reset',
- lapText: 'Lap',
- hideText: 'Hide'
- });
-})(jQuery);
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.android-ics.css b/lib/mobiscroll-2.6.0/mobiscroll.android-ics.css
deleted file mode 100644
index 4ab9ab46f..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.android-ics.css
+++ /dev/null
@@ -1,204 +0,0 @@
-/* Android ICS skin */
-.android-ics .dw {
- padding: 0;
- color: #31b6e7;
- background: #292829;
-}
-.android-ics .dw .dwwc,
-.android-ics .dw .dwwl,
-.android-ics .dw .dww,
-.android-ics .dw .dwb,
-.android-ics .dw .dwpm .dww {
- background: none;
-}
-.android-ics .dwwr {
- padding: 0;
-}
-.android-ics .dwc {
- padding: 30px 10px 1px 10px;
-}
-.android-ics .dwhl {
- padding: 1px 10px;
-}
-.android-ics .dwv {
- height: 36px;
- line-height: 36px;
- padding: 0;
- border-bottom: 2px solid #31b6e7;
- font-size: 18px;
-}
-.android-ics .dwwl {
- margin: 0 2px;
-}
-.android-ics .dww,
-.android-ics .dw .dwpm .dwwl,
-.android-ics .dw .dwpm .dww {
- border: 0;
-}
-.android-ics .dww .dw-li {
- color: #fff;
- font-size: 18px;
- text-shadow: none;
-}
-.android-ics .dww .dw-li.dw-hl {
- background: #31b6e7;
- background: rgba(49,182,231,.5);
-}
-.android-ics .dwwo {
- background: linear-gradient(#282828 0%,rgba(40,40,40,0) 52%, rgba(40,40,40,0) 48%, #282828 100%);
- background: -webkit-gradient(linear,left bottom,left top,from(#282828),color-stop(0.52, rgba(40,40,40,0)),color-stop(0.48, rgba(40,40,40,0)),to(#282828));
- background: -moz-linear-gradient(#282828 0%,rgba(40,40,40,0) 52%, rgba(40,40,40,0) 48%, #282828 100%);
- background: -o-linear-gradient(#282828 0%,rgba(40,40,40,0) 52%, rgba(40,40,40,0) 48%, #282828 100%);
-}
-.android-ics .dw .dwwb {
- background: #292829;
- box-shadow: none;
- -webkit-box-shadow: none;
-}
-.android-ics .dwwb span {
- display: none;
-}
-.android-ics .dwwb:after {
- position: absolute;
- top: 50%;
- left: 50%;
- margin-top: -8px;
- margin-left: -8px;
- color: #7e7e7e;
- width: 0;
- height: 0;
- border-width: 8px;
- border-style: solid;
- content: '';
-}
-.android-ics .dwwbm {
- top: 0;
- bottom: auto;
-}
-.android-ics .dwwbp {
- bottom: 0;
- top: auto;
-}
-.android-ics .dwwbm:after {
- border-color: transparent transparent #7e7e7e transparent;
-}
-.android-ics .dwwbp:after {
- border-color: #7e7e7e transparent transparent transparent;
-}
-.android-ics .dw .dwwl .dwb-a {
- background: #292829;
-}
-.android-ics .dwwbm.dwb-a:after {
- border-color: transparent transparent #319abd transparent;
-}
-.android-ics .dwwbp.dwb-a:after {
- border-color: #319abd transparent transparent transparent;
-}
-.android-ics .dw .dwwol {
- width: 60%;
- left: 20%;
- height: 36px;
- border-top: 2px solid #31b6e7;
- border-bottom: 2px solid #31b6e7;
- margin-top: -20px;
- display: block;
-}
-.android-ics .dwbc {
- border-top: 1px solid #424542;
- padding: 0;
-}
-.android-ics .dw .dwb {
- height: 36px;
- line-height: 36px;
- padding: 0;
- margin: 0;
- font-weight: normal;
- text-shadow: none;
- box-shadow: none;
- border-radius: 0;
- -webkit-border-radius: 0;
- -webkit-box-shadow: none;
-}
-.android-ics .dw .dwb-a {
- background: #29799c;
-}
-.android-ics .dwb-s .dwb, .android-ics .dwb-n .dwb {
- border-right: 1px solid #424542;
-}
-/* Docked */
-.android-ics.dw-bottom .dw, .android-ics.dw-top .dw {
- border-radius: 0;
- -webkit-border-radius: 0;
-}
-/* Multiple select */
-.android-ics .dwwms .dwwol {
- display: none;
-}
-.android-ics .dwwms .dw-li {
- padding-left: 5px;
- padding-right: 36px;
-}
-.android-ics .dwwms .dw-li:after {
- content: '';
- position: absolute;
- top: 50%;
- left: auto;
- right: 10px;
- width: 14px;
- height: 14px;
- margin-top: -9px;
- color: #31b6e7;
- line-height: 14px;
- border: 1px solid #424542;
- text-shadow: 0 0 5px #29799c;
-}
-.android-ics .dwwms .dw-msel:after {
- content: '✔';
-}
-/* Light version */
-.android-ics.light .dw {
- background: #f5f5f5;
-}
-.android-ics.light .dww .dw-li {
- color: #000;
-}
-.android-ics.light .dwwo {
- background: linear-gradient(#f5f5f5 0%,rgba(245,245,245,0) 52%, rgba(245,245,245,0) 48%, #f5f5f5 100%);
- background: -webkit-gradient(linear,left bottom,left top,from(#f5f5f5),color-stop(0.52, rgba(245,245,245,0)),color-stop(0.48, rgba(245,245,245,0)),to(#f5f5f5));
- background: -moz-linear-gradient(#f5f5f5 0%,rgba(245,245,245,0) 52%, rgba(245,245,245,0) 48%, #f5f5f5 100%);
- background: -o-linear-gradient(#f5f5f5 0%,rgba(245,245,245,0) 52%, rgba(245,245,245,0) 48%, #f5f5f5 100%);
-}
-.android-ics.light .dw .dwwb {
- background: #f5f5f5;
- color: #f5f5f5;
-}
-.android-ics.light .dwbc {
- border-top: 1px solid #dbdbdb;
-}
-.android-ics.light .dwb {
- color: #000;
-}
-.android-ics.light .dwb-a {
- color: #fff;
-}
-.android-ics.light .dwb-s .dwb, .android-ics.light .dwb-n .dwb {
- border-right: 1px solid #dbdbdb;
-}
-/* Bubble positioning */
-.android-ics .dw-bubble-bottom .dw-arr {
- border-color: transparent transparent #292829 transparent;
-}
-.android-ics .dw-bubble-top .dw-arr {
- border-color: #292829 transparent transparent transparent;
-}
-/* Bubble positioning */
-.android-ics.light .dw-bubble-bottom .dw-arr {
- border-color: transparent transparent #f5f5f5 transparent;
-}
-.android-ics.light .dw-bubble-top .dw-arr {
- border-color: #f5f5f5 transparent transparent transparent;
-}
-/* Multiple select */
-.android-ics.light .dwwms .dw-li:after {
- text-shadow: 0 0 5px #31b6e7;
-}
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.android-ics.js b/lib/mobiscroll-2.6.0/mobiscroll.android-ics.js
deleted file mode 100644
index 199ed6ad5..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.android-ics.js
+++ /dev/null
@@ -1,18 +0,0 @@
-(function ($) {
- var theme = {
- defaults: {
- dateOrder: 'Mddyy',
- mode: 'mixed',
- rows: 5,
- width: 70,
- height: 36,
- showLabel: false,
- useShortLabels: true
- }
- };
-
- $.mobiscroll.themes['android-ics'] = theme;
- $.mobiscroll.themes['android-ics light'] = theme;
-
-})(jQuery);
-
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.android.css b/lib/mobiscroll-2.6.0/mobiscroll.android.css
deleted file mode 100644
index 599d39f2e..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.android.css
+++ /dev/null
@@ -1,76 +0,0 @@
-/* Android Skin */
-.android .dw {
- padding: 0;
- background: #000;
- border: 2px solid #555;
- color: #fff;
-}
-.android .dwv {
- padding: 10px;
- border-bottom: 1px solid #333;
-}
-.android .dwwr {
- padding: 0;
-}
-.android .dww {
- top: 0;
-}
-.android .dwwc {
- background: #000;
-}
-.android .dw .dwpm .dww,
-.android .dw .dwpm .dwwl {
- border: 0;
- background: #fff;
-}
-.android .dw .dwpm .dww {
- margin: 0;
-}
-.android .dwpm .dww .dw-li {
- color: #000;
- text-shadow: none;
-}
-.android .dwbc {
- padding: 5px 1px;
- background: #9c9c9c;
-}
-.android .dw .dwb {
- margin: 0 5px;
- background: #ccc;
- background: linear-gradient(#eee,#ccc);
- background: -webkit-gradient(linear,left bottom,left top,from(#ccc),to(#eee));
- background: -moz-linear-gradient(#eee,#ccc);
- background: -o-linear-gradient(#eee,#ccc);
- color: #000;
- font-weight: normal;
- text-shadow: none;
- border-radius: 0;
- -moz-border-radius: 0;
- -webkit-border-radius: 0;
-}
-.android .dw .dwb-a, .android .dw .dwwl .dwb-a {
- background: #ffb25a;
- background: linear-gradient(#ffb25a,#ef6100);
- background: -webkit-gradient(linear,left bottom,left top,from(#ef6100),to(#ffb25a));
- background: -moz-linear-gradient(#ffb25a,#ef6100);
- background: -o-linear-gradient(#ffb25a,#ef6100);
-}
-/* Bubble positioning */
-.android .dw-bubble-bottom .dw-arr {
- border-color: transparent transparent #000 transparent;
-}
-.android .dw-bubble-top .dw-arr {
- border-color: #9c9c9c transparent transparent transparent;
-}
-/* Docked */
-.android.dw-top .dw,
-.android.dw-bottom .dw {
- border-right: 0;
- border-left: 0;
-}
-.android.dw-top .dw {
- border-top: 0;
-}
-.android.dw-bottom .dw {
- border-bottom: 0;
-}
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.android.js b/lib/mobiscroll-2.6.0/mobiscroll.android.js
deleted file mode 100644
index 29b214beb..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.android.js
+++ /dev/null
@@ -1,13 +0,0 @@
-(function ($) {
-
- $.mobiscroll.themes.android = {
- defaults: {
- dateOrder: 'Mddyy',
- mode: 'clickpick',
- height: 50,
- showLabel: false
- }
- }
-
-})(jQuery);
-
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.animation.css b/lib/mobiscroll-2.6.0/mobiscroll.animation.css
deleted file mode 100644
index cb89a42c7..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.animation.css
+++ /dev/null
@@ -1,637 +0,0 @@
-.dw-trans .dw-persp {
- overflow: hidden;
- perspective: 1000px;
- -webkit-perspective: 1000px;
- -moz-perspective: 1000px;
-}
-.dw-trans .dwwb,
-.dw-trans .dwwo {
- -webkit-backface-visibility: hidden;
-}
-.dw-in,
-.dw-out {
- animation-duration: 350ms;
- -webkit-animation-duration: 350ms;
- -moz-animation-duration: 350ms;
-}
-.dw-in {
- animation-timing-function: ease-out;
- -webkit-animation-timing-function: ease-out;
- -moz-animation-timing-function: ease-out;
-}
-.dw-out {
- animation-timing-function: ease-in;
- -webkit-animation-timing-function: ease-in;
- -moz-animation-timing-function: ease-in;
-}
-.dw-flip,
-.dw-swing,
-.dw-slidehorizontal,
-.dw-slidevertical,
-.dw-slidedown,
-.dw-slideup,
-.dw-fade {
- backface-visibility: hidden;
- transform: translateX(0);
- -webkit-backface-visibility: hidden;
- -webkit-transform: translateX(0);
- -moz-backface-visibility: hidden;
- -moz-transform: translateX(0);
-}
-.dw-swing,
-.dw-slidehorizontal,
-.dw-slidevertical,
-.dw-slidedown,
-.dw-slideup,
-.dw-fade {
- transform-origin: 0 0;
- -webkit-transform-origin: 0 0;
- -moz-transform-origin: 0 0;
-}
-.dw-flip,
-.dw-pop {
- transform-origin: 50% 50%;
- -webkit-transform-origin: 50% 50%;
- -moz-transform-origin: 50% 50%;
-}
-.dw-pop.dw-in {
- opacity: 1;
- transform: scale(1);
- animation-name: dw-p-in;
- -webkit-animation-name: dw-p-in;
- -webkit-transform: scale(1);
- -moz-animation-name: dw-p-in;
- -moz-transform: scale(1);
-}
-.dw-pop.dw-out {
- opacity: 0;
- animation-name: dw-p-out;
- -webkit-animation-name: dw-p-out;
- -moz-animation-name: dw-p-out;
-}
-.dw-flip.dw-in {
- opacity: 1;
- transform: scale(1);
- animation-name: dw-fl-in;
- -webkit-animation-name: dw-fl-in;
- -webkit-transform: scale(1);
- -moz-animation-name: dw-fl-in;
- -moz-transform: scale(1);
-}
-.dw-flip.dw-out {
- opacity: 0;
- animation-name: dw-fl-out;
- -webkit-animation-name: dw-fl-out;
- -moz-animation-name: dw-fl-out;
-}
-.dw-swing.dw-in {
- opacity: 1;
- transform: scale(1);
- animation-name: dw-sw-in;
- -webkit-animation-name: dw-sw-in;
- -webkit-transform: scale(1);
- -moz-animation-name: dw-sw-in;
- -moz-transform: scale(1);
-}
-.dw-swing.dw-out {
- opacity: 0;
- animation-name: dw-sw-out;
- -webkit-animation-name: dw-sw-out;
- -moz-animation-name: dw-sw-out;
-}
-.dw-slidehorizontal.dw-in {
- opacity: 1;
- transform: scale(1);
- animation-name: dw-sh-in;
- -webkit-animation-name: dw-sh-in;
- -webkit-transform: scale(1);
- -moz-animation-name: dw-sh-in;
- -moz-transform: scale(1);
-}
-.dw-slidehorizontal.dw-out {
- opacity: 0;
- animation-name: dw-sh-out;
- -webkit-animation-name: dw-sh-out;
- -moz-animation-name: dw-sh-out;
-}
-.dw-slidevertical.dw-in {
- opacity: 1;
- animation-name: dw-dw-sv-in;
- transform: scale(1);
- -webkit-animation-name: dw-dw-sv-in;
- -webkit-transform: scale(1);
- -moz-animation-name: dw-dw-sv-in;
- -moz-transform: scale(1);
-}
-.dw-slidevertical.dw-out {
- opacity: 0;
- animation-name: dw-sv-out;
- -webkit-animation-name: dw-sv-out;
- -moz-animation-name: dw-sv-out;
-}
-.dw-slidedown.dw-in {
- animation-name: dw-sd-in;
- transform: scale(1);
- -webkit-animation-name: dw-sd-in;
- -webkit-transform: scale(1);
- -moz-animation-name: dw-sd-in;
- -moz-transform: scale(1);
-}
-.dw-slidedown.dw-out {
- animation-name: dw-sd-out;
- -webkit-animation-name: dw-sd-out;
- -moz-animation-name: dw-sd-out;
-}
-.dw-slideup.dw-in {
- transform: scale(1);
- animation-name: dw-su-in;
- -webkit-animation-name: dw-su-in;
- -webkit-transform: scale(1);
- -moz-animation-name: dw-su-in;
- -moz-transform: scale(1);
-}
-.dw-slideup.dw-out {
- animation-name: dw-su-out;
- -webkit-animation-name: dw-su-out;
- -moz-animation-name: dw-su-out;
-}
-.dw-fade.dw-in {
- opacity: 1;
- animation-name: dw-f-in;
- -webkit-animation-name: dw-f-in;
- -moz-animation-name: dw-f-in;
-}
-.dw-fade.dw-out {
- opacity: 0;
- animation-name: dw-f-out;
- -webkit-animation-name: dw-f-out;
- -moz-animation-name: dw-f-out;
-}
-/* Fade in */
-@keyframes dw-f-in {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-}
-@-webkit-keyframes dw-f-in {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-}
-@-moz-keyframes dw-f-in {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-}
-/* Fade out */
-@keyframes dw-f-out {
- from {
- opacity: 1;
- }
- to {
- opacity: 0;
- }
-}
-@-webkit-keyframes dw-f-out {
- from {
- opacity: 1;
- }
- to {
- opacity: 0;
- }
-}
-@-moz-keyframes dw-f-out {
- from {
- opacity: 1;
- }
- to {
- opacity: 0;
- }
-}
-/* Pop in */
-@keyframes dw-p-in {
- from {
- opacity: 0;
- transform: scale(0.8);
- }
- to {
- opacity: 1;
- transform: scale(1);
- }
-}
-@-webkit-keyframes dw-p-in {
- from {
- opacity: 0;
- -webkit-transform: scale(0.8);
- }
- to {
- opacity: 1;
- -webkit-transform: scale(1);
- }
-}
-@-moz-keyframes dw-p-in {
- from {
- opacity: 0;
- -moz-transform: scale(0.8);
- }
- to {
- opacity: 1;
- -moz-transform: scale(1);
- }
-}
-/* Pop out */
-@keyframes dw-p-out {
- from {
- opacity: 1;
- transform: scale(1);
- }
- to {
- opacity: 0;
- transform: scale(0.8);
- }
-}
-@-webkit-keyframes dw-p-out {
- from {
- opacity: 1;
- -webkit-transform: scale(1);
- }
- to {
- opacity: 0;
- -webkit-transform: scale(0.8);
- }
-}
-@-moz-keyframes dw-p-out {
- from {
- opacity: 1;
- -moz-transform: scale(1);
- }
- to {
- opacity: 0;
- -moz-transform: scale(0.8);
- }
-}
-/* Flip in */
-@keyframes dw-fl-in {
- from {
- opacity: 0;
- transform: rotateY(90deg);
- }
- to {
- opacity: 1;
- transform: rotateY(0);
- }
-}
-@-webkit-keyframes dw-fl-in {
- from {
- opacity: 0;
- -webkit-transform: rotateY(90deg);
- }
- to {
- opacity: 1;
- -webkit-transform: rotateY(0);
- }
-}
-@-moz-keyframes dw-fl-in {
- from {
- opacity: 0;
- -moz-transform: rotateY(90deg);
- }
- to {
- opacity: 1;
- -moz-transform: rotateY(0);
- }
-}
-/* Flip out */
-@keyframes dw-fl-out {
- from {
- opacity: 1;
- transform: rotateY(0deg);
- }
- to {
- opacity: 0;
- transform: rotateY(-90deg);
- }
-}
-@-webkit-keyframes dw-fl-out {
- from {
- opacity: 1;
- -webkit-transform: rotateY(0deg);
- }
- to {
- opacity: 0;
- -webkit-transform: rotateY(-90deg);
- }
-}
-@-moz-keyframes dw-fl-out {
- from {
- opacity: 1;
- -moz-transform: rotateY(0deg);
- }
- to {
- opacity: 0;
- -moz-transform: rotateY(-90deg);
- }
-}
-/* Swing in */
-@keyframes dw-sw-in {
- from {
- opacity: 0;
- transform: rotateY(-90deg);
- }
- to {
- opacity: 1;
- transform: rotateY(0deg);
- }
-}
-@-webkit-keyframes dw-sw-in {
- from {
- opacity: 0;
- -webkit-transform: rotateY(-90deg);
- }
- to {
- opacity: 1;
- -webkit-transform: rotateY(0deg);
- }
-}
-@-moz-keyframes dw-sw-in {
- from {
- opacity: 0;
- -moz-transform: rotateY(-90deg);
- }
- to {
- opacity: 1;
- -moz-transform: rotateY(0deg);
- }
-}
-/* Swing out */
-@keyframes dw-sw-out {
- from {
- opacity: 1;
- transform: rotateY(0deg);
- }
- to {
- opacity: 0;
- transform: rotateY(-90deg);
- }
-}
-@-webkit-keyframes dw-sw-out {
- from {
- opacity: 1;
- -webkit-transform: rotateY(0deg);
- }
- to {
- opacity: 0;
- -webkit-transform: rotateY(-90deg);
- }
-}
-@-moz-keyframes dw-sw-out {
- from {
- opacity: 1;
- -moz-transform: rotateY(0deg);
- }
- to {
- opacity: 0;
- -moz-transform: rotateY(-90deg);
- }
-}
-/* Slide horizontal in */
-@keyframes dw-sh-in {
- from {
- opacity: 0;
- transform: translateX(-100%);
- }
- to {
- opacity: 1;
- transform: translateX(0);
- }
-}
-@-webkit-keyframes dw-sh-in {
- from {
- opacity: 0;
- -webkit-transform: translateX(-100%);
- }
- to {
- opacity: 1;
- -webkit-transform: translateX(0);
- }
-}
-@-moz-keyframes dw-sh-in {
- from {
- opacity: 0;
- -moz-transform: translateX(-100%);
- }
- to {
- opacity: 1;
- -moz-transform: translateX(0);
- }
-}
-/* Slide horizontal out */
-@keyframes dw-sh-out {
- from {
- opacity: 1;
- transform: translateX(0);
- }
- to {
- opacity: 0;
- transform: translateX(100%);
- }
-}
-@-webkit-keyframes dw-sh-out {
- from {
- opacity: 1;
- -webkit-transform: translateX(0);
- }
- to {
- opacity: 0;
- -webkit-transform: translateX(100%);
- }
-}
-@-moz-keyframes dw-sh-out {
- from {
- opacity: 1;
- -moz-transform: translateX(0);
- }
- to {
- opacity: 0;
- -moz-transform: translateX(100%);
- }
-}
-/* Slide vertical in */
-@keyframes dw-dw-sv-in {
- from {
- opacity: 0;
- transform: translateY(-100%);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
-}
-@-webkit-keyframes dw-dw-sv-in {
- from {
- opacity: 0;
- -webkit-transform: translateY(-100%);
- }
- to {
- opacity: 1;
- -webkit-transform: translateY(0);
- }
-}
-@-moz-keyframes dw-dw-sv-in {
- from {
- opacity: 0;
- -moz-transform: translateY(-100%);
- }
- to {
- opacity: 1;
- -moz-transform: translateY(0);
- }
-}
-/* Slide vertical out */
-@keyframes dw-sv-out {
- from {
- opacity: 1;
- transform: translateY(0);
- }
- to {
- opacity: 0;
- transform: translateY(100%);
- }
-}
-@-webkit-keyframes dw-sv-out {
- from {
- opacity: 1;
- -webkit-transform: translateY(0);
- }
- to {
- opacity: 0;
- -webkit-transform: translateY(100%);
- }
-}
-@-moz-keyframes dw-sv-out {
- from {
- opacity: 1;
- -moz-transform: translateY(0);
- }
- to {
- opacity: 0;
- -moz-transform: translateY(100%);
- }
-}
-/* Slide Down In */
-@keyframes dw-sd-in {
- from {
- transform: translateY(-100%);
- }
- to {
- transform: translateY(0);
- }
-}
-@-webkit-keyframes dw-sd-in {
- from {
- opacity: 1;
- -webkit-transform: translateY(-100%);
- }
- to {
- opacity: 1;
- -webkit-transform: translateY(0);
- }
-}
-@-moz-keyframes dw-sd-in {
- from {
- -moz-transform: translateY(-100%);
- }
- to {
- -moz-transform: translateY(0);
- }
-}
-/* Slide down out */
-@keyframes dw-sd-out {
- from {
- transform: translateY(0);
- }
- to {
- transform: translateY(-100%);
- }
-}
-@-webkit-keyframes dw-sd-out {
- from {
- opacity: 1;
- -webkit-transform: translateY(0);
- }
- to {
- opacity: 1;
- -webkit-transform: translateY(-100%);
- }
-}
-@-moz-keyframes dw-sd-out {
- from {
- -moz-transform: translateY(0);
- }
- to {
- -moz-transform: translateY(-100%);
- }
-}
-/* Slide Up In */
-@keyframes dw-su-in {
- from {
- transform: translateY(100%);
- }
- to {
- transform: translateY(0);
- }
-}
-@-webkit-keyframes dw-su-in {
- from {
- opacity: 1;
- -webkit-transform: translateY(100%);
- }
- to {
- opacity: 1;
- -webkit-transform: translateY(0);
- }
-}
-@-moz-keyframes dw-su-in {
- from {
- -moz-transform: translateY(100%);
- }
- to {
- -moz-transform: translateY(0);
- }
-}
-/* Slide up out */
-@keyframes dw-su-out {
- from {
- transform: translateY(0);
- }
- to {
- transform: translateY(100%);
- }
-}
-@-webkit-keyframes dw-su-out {
- from {
- opacity: 1;
- -webkit-transform: translateY(0);
- }
- to {
- opacity: 1;
- -webkit-transform: translateY(100%);
- }
-}
-@-moz-keyframes dw-su-out {
- from {
- -moz-transform: translateY(0);
- }
- to {
- -moz-transform: translateY(100%);
- }
-}
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.core.css b/lib/mobiscroll-2.6.0/mobiscroll.core.css
deleted file mode 100644
index 53a02bf6b..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.core.css
+++ /dev/null
@@ -1,365 +0,0 @@
-/* Datewheel overlay */
-.dw {
- position: absolute;
- top: 5%;
- left: 0;
- z-index: 1001;
- color: #fff;
- font-family: arial, verdana, sans-serif;
- font-size: 12px;
- text-shadow: none;
- box-sizing: border-box;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- -ms-touch-action: none;
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
- -webkit-backface-visibility: hidden;
-}
-.dwi {
- position: static;
- display: inline-block;
-}
-.dwwr {
- min-width: 170px;
- zoom: 1;
- padding: 0 10px;
- text-align: center;
-}
-/* Datewheel overlay background */
-.dw-persp, .dwo {
- width: 100%;
- height: auto;
- position: absolute;
- top: 0;
- left: 0;
- z-index: 1001;
-}
-.dwo {
- background: #000;
- opacity: .7;
- filter: Alpha(Opacity=70);
- display:none;
-}
-/* Bubble positionings */
-.dw-bubble .dw {
- margin: 20px 0;
-}
-.dw-bubble .dw-arrw {
- position: absolute;
- left: 0;
- width: 100%;
-}
-.dw-bubble-top .dw-arrw {
- bottom: -36px;
-}
-.dw-bubble-bottom .dw-arrw {
- top: -36px;
-}
-.dw-bubble .dw-arrw-i {
- margin: 0 30px;
- position: relative;
- height: 36px;
-}
-.dw-bubble .dw-arr {
- display: block;
-}
-.dw-arr {
- display: none;
- position: absolute;
- left: 0;
- width: 0;
- height: 0;
- border-width: 18px 18px;
- border-style: solid;
- margin-left: -18px;
-}
-.dw-bubble-bottom .dw-arr {
- top: 0;
- border-color: transparent transparent #fff transparent;
-}
-.dw-bubble-top .dw-arr {
- bottom: 0;
- border-color: #fff transparent transparent transparent;
-}
-/* Datewheel wheel container wrapper */
-.dwc {
- padding: 30px 2px 5px 2px;
- display: inline-block;
-}
-/* Datewheel label */
-.dwl {
- text-align: center;
- line-height: 30px;
- height: 30px;
- white-space: nowrap;
- position: absolute;
- top: -30px;
- width: 100%;
-}
-/* Datewheel value */
-.dwv {
- padding: 10px 0;
- border-bottom: 1px solid #000;
-}
-/* Datewheel wheel container */
-.dwrc {
- -webkit-border-radius: 3px;
- border-radius: 3px;
-}
-.dwwc {
- margin: 0;
- padding: 0 2px;
- position: relative;
- background: #000;
- zoom: 1;
-}
-/* Datewheel wheels */
-.dwwl {
- margin: 4px 2px;
- padding: 0 2px;
- position: relative;
- z-index: 5;
-}
-.dwww {
- position: relative;
- padding: 1px;
-}
-.dww {
- overflow: hidden;
- position: relative;
- z-index: 2;
-}
-.dw-moz .dww {
- opacity: .99; /* Fixes Firefox translate overflow bug */
-}
-.dwsc .dwwl {
- background: #888;
- background: linear-gradient(#000 0%,#333 35%, #888 50%,#333 65%,#000 100%);
- background: -webkit-gradient(linear,left bottom,left top,from(#000),color-stop(0.35, #333),color-stop(0.50, #888),color-stop(0.65, #333),to(#000));
- background: -webkit-linear-gradient(#000 0%,#333 35%, #888 50%,#333 65%,#000 100%);
- background: -moz-linear-gradient(#000 0%,#333 35%, #888 50%,#333 65%,#000 100%);
-}
-.dwsc .dww {
- color: #fff;
- background: #444;
- background: linear-gradient(#000 0%,#444 45%, #444 55%, #000 100%);
- background: -webkit-gradient(linear,left bottom,left top,from(#000),color-stop(0.45, #444),color-stop(0.55, #444),to(#000));
- background: -webkit-linear-gradient(#000 0%,#444 45%, #444 55%, #000 100%);
- background: -moz-linear-gradient(#000 0%,#444 45%, #444 55%, #000 100%);
-}
-.dw-bf {
- -webkit-perspective: 1000;
- -webkit-backface-visibility: hidden;
-}
-.dw-ul {
- position: relative;
- z-index: 2;
-}
-.dw-li {
- padding: 0 5px;
- display: block;
- text-align: center;
- line-height: 40px;
- font-size: 26px;
- white-space: nowrap;
- text-shadow: 0 1px 1px #000;
- vertical-align: bottom;
- opacity: .3;
- filter: Alpha(Opacity=30);
-}
-/* Higlighted */
-.dw-li.dw-hl {
- background: #fff;
- background: rgba(255,255,255,.3);
-}
-/* Valid entry */
-.dw-li.dw-v {
- opacity: 1;
- filter: Alpha(Opacity=100);
-}
-/* Hidden entry */
-.dw-li.dw-h {
- visibility: hidden;
-}
-.dw-i {
- position: relative;
- height: 100%;
-}
-/* Wheel +/- buttons */
-.dwwb {
- position: absolute;
- z-index: 4;
- left: 0;
- cursor: pointer;
- width: 100%;
- height: 40px;
- text-align: center;
- opacity: 1;
- transition: opacity .2s linear;
- -webkit-transition: opacity .2s linear;
-}
-.dwa .dwwb {
- opacity: 0;
-}
-.dwwbp {
- top: 0;
- -webkit-border-radius: 3px 3px 0 0;
- border-radius: 3px 3px 0 0;
- font-size: 40px;
-}
-.dwwbm {
- bottom: 0;
- -webkit-border-radius: 0 0 3px 3px;
- border-radius: 0 0 3px 3px;
- font-size: 32px;
- font-weight: bold;
-}
-.dwpm .dwwc {
- background: transparent;
-}
-.dwpm .dwwl {
- padding: 0;
-}
-.dwpm .dw-li {
- text-shadow: none;
-}
-.dwpm .dwwol {
- display: none;
-}
-/* Datewheel wheel overlay */
-.dwwo {
- position: absolute;
- z-index: 3;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: linear-gradient(#000 0%,rgba(44,44,44,0) 52%, rgba(44,44,44,0) 48%, #000 100%);
- background: -webkit-gradient(linear,left bottom,left top,from(#000),color-stop(0.52, rgba(44,44,44,0)),color-stop(0.48, rgba(44,44,44,0)),to(#000));
- background: -webkit-linear-gradient(#000 0%,rgba(44,44,44,0) 52%, rgba(44,44,44,0) 48%, #000 100%);
- background: -moz-linear-gradient(#000 0%,rgba(44,44,44,0) 52%, rgba(44,44,44,0) 48%, #000 100%);
-}
-/* Background line */
-.dwwol {
- position: absolute;
- z-index: 1;
- top: 50%;
- left: 0;
- width: 100%;
- height: 0;
- margin-top: -1px;
- border-top: 1px solid #333;
- border-bottom: 1px solid #555;
-}
-/* Datewheel button */
-.dwbg .dwb {
- cursor: pointer;
- overflow: hidden;
- display: block;
- height: 40px;
- line-height: 40px;
- padding: 0 15px;
- margin: 0 2px;
- font-size: 14px;
- font-weight: bold;
- text-decoration: none;
- text-shadow: 0 -1px 1px #000;
- border-radius: 5px;
- box-shadow: 0 1px 3px rgba(0,0,0,0.5);
- color: #fff;
- background: #000;
- background: linear-gradient(#6e6e6e 50%,#000 50%);
- background: -webkit-gradient(linear,left bottom,left top,color-stop(0.5, #000),color-stop(0.5, #6e6e6e));
- background: -webkit-linear-gradient(#6e6e6e 50%,#000 50%);
- background: -moz-linear-gradient(#6e6e6e 50%,#000 50%);
- white-space: nowrap;
- text-overflow: ellipsis;
- -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
- -webkit-border-radius: 5px;
- -webkit-backface-visibility: hidden;
-}
-/* Datewheel button container */
-.dwbc {
- padding: 5px 0;
- text-align: center;
-}
-/* Datewheel button wrapper */
-.dwbw {
- display: inline-block;
- width: 50%;
- position: relative;
- z-index: 5;
-}
-.dwbc-p .dwbw {
- width: 33.33%;
-}
-/* Hidden label */
-.dwhl {
- padding-top: 10px;
-}
-.dwhl .dwl {
- display: none;
-}
-/* Multiple selection */
-.dwms .dwwms .dw-li {
- padding: 0 40px;
- position: relative;
-}
-.dwms .dw-msel:after {
- width: 40px;
- text-align: center;
- position: absolute;
- top: 0;
- left: 0;
- content: '✔';
-}
-/* Backgrounds */
-.dwbg {
- background: rgba(38,43,49,0.85);
- border-radius: 3px;
- -webkit-border-radius: 3px;
-}
-.dwbg .dwpm .dwwl {
- border: 1px solid #aaa;
-}
-.dwbg .dwpm .dww {
- color: #000;
- background: #fff;
- -webkit-border-radius: 3px;
-}
-.dwbg .dwwb {
- background: #ccc;
- color: #888;
- text-shadow: 0 -1px 1px #333;
- box-shadow: 0 0 5px #333;
- -webkit-box-shadow: 0 0 5px #333;
-}
-.dwbg .dwwbp {
- background: linear-gradient(#f7f7f7,#bdbdbd);
- background: -webkit-gradient(linear,left bottom,left top,from(#bdbdbd),to(#f7f7f7));
- background: -webkit-linear-gradient(#f7f7f7,#bdbdbd);
- background: -moz-linear-gradient(#f7f7f7,#bdbdbd);
-}
-.dwbg .dwwbm {
- background: linear-gradient(#bdbdbd,#f7f7f7);
- background: -webkit-gradient(linear,left bottom,left top,from(#f7f7f7),to(#bdbdbd));
- background: -webkit-linear-gradient(#bdbdbd,#f7f7f7);
- background: -moz-linear-gradient(#bdbdbd,#f7f7f7);
-}
-.dwbg .dwb-a {
- background: #3c7500;
- background: linear-gradient(#94c840 50%,#3c7500 50%);
- background: -webkit-gradient(linear,left bottom,left top,color-stop(0.5, #3c7500),color-stop(0.5, #94c840));
- background: -webkit-linear-gradient(#94c840 50%,#3c7500 50%);
- background: -moz-linear-gradient(#94c840 50%,#3c7500 50%);
-}
-.dwbg .dwwl .dwb-a {
- background: #3c7500;
- background: linear-gradient(#94c840,#3c7500);
- background: -webkit-gradient(linear,left bottom,left top,from(#3c7500),to(#94c840));
- background: -webkit-linear-gradient(#94c840,#3c7500);
- background: -moz-linear-gradient(#94c840,#3c7500);
-}
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.core.js b/lib/mobiscroll-2.6.0/mobiscroll.core.js
deleted file mode 100644
index eaaf16739..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.core.js
+++ /dev/null
@@ -1,1078 +0,0 @@
-/*jslint eqeq: true, plusplus: true, undef: true, sloppy: true, vars: true, forin: true, nomen: true */
-/*!
- * jQuery MobiScroll v2.6.0
- * http://mobiscroll.com
- *
- * Copyright 2010-2013, Acid Media
- * Licensed under the MIT license.
- *
- */
-(function ($) {
-
- function Scroller(elem, settings) {
- var m,
- hi,
- v,
- dw,
- ww, // Window width
- wh, // Window height
- rwh,
- mw, // Modal width
- mh, // Modal height
- anim,
- debounce,
- theme,
- lang,
- click,
- scrollable,
- moved,
- start,
- startTime,
- stop,
- p,
- min,
- max,
- target,
- index,
- timer,
- readOnly,
- that = this,
- ms = $.mobiscroll,
- e = elem,
- elm = $(e),
- s = extend({}, defaults),
- pres = {},
- iv = {},
- pos = {},
- pixels = {},
- wheels = [],
- input = elm.is('input'),
- visible = false,
- onStart = function (e) {
- // Scroll start
- if (testTouch(e) && !move && !isReadOnly(this) && !click) {
- // Prevent scroll
- e.preventDefault();
-
- move = true;
- scrollable = s.mode != 'clickpick';
- target = $('.dw-ul', this);
- setGlobals(target);
- moved = iv[index] !== undefined; // Don't allow tap, if still moving
- p = moved ? getCurrentPosition(target) : pos[index];
- start = getCoord(e, 'Y');
- startTime = new Date();
- stop = start;
- scroll(target, index, p, 0.001);
-
- if (scrollable) {
- target.closest('.dwwl').addClass('dwa');
- }
-
- $(document).bind(MOVE_EVENT, onMove).bind(END_EVENT, onEnd);
- }
- },
- onMove = function (e) {
- if (scrollable) {
- e.preventDefault();
- e.stopPropagation();
- stop = getCoord(e, 'Y');
- scroll(target, index, constrain(p + (start - stop) / hi, min - 1, max + 1));
- }
- moved = true;
- },
- onEnd = function (e) {
- var time = new Date() - startTime,
- val = constrain(p + (start - stop) / hi, min - 1, max + 1),
- speed,
- dist,
- tindex,
- ttop = target.offset().top;
-
- if (time < 300) {
- speed = (stop - start) / time;
- dist = (speed * speed) / s.speedUnit;
- if (stop - start < 0) {
- dist = -dist;
- }
- } else {
- dist = stop - start;
- }
-
- tindex = Math.round(p - dist / hi);
-
- if (!dist && !moved) { // this is a "tap"
- var idx = Math.floor((stop - ttop) / hi),
- li = $('.dw-li', target).eq(idx),
- hl = scrollable;
-
- if (event('onValueTap', [li]) !== false) {
- tindex = idx;
- } else {
- hl = true;
- }
-
- if (hl) {
- li.addClass('dw-hl'); // Highlight
- setTimeout(function () {
- li.removeClass('dw-hl');
- }, 200);
- }
- }
-
- if (scrollable) {
- calc(target, tindex, 0, true, Math.round(val));
- }
-
- move = false;
- target = null;
-
- $(document).unbind(MOVE_EVENT, onMove).unbind(END_EVENT, onEnd);
- },
- onBtnStart = function (e) {
- $(document).bind(END_EVENT, onBtnEnd);
- // Active button
- if (!$(this).hasClass('dwb-d')) {
- $(this).addClass('dwb-a');
- }
- // +/- buttons
- if ($(this).hasClass('dwwb')) {
- var w = $(this).closest('.dwwl');
- if (testTouch(e) && !isReadOnly(w) && !w.hasClass('dwa')) {
- e.stopPropagation();
- e.preventDefault();
- click = true;
- // + Button
- var t = w.find('.dw-ul'),
- func = $(this).hasClass('dwwbp') ? plus : minus;
-
- setGlobals(t);
- clearInterval(timer);
- timer = setInterval(function () { func(t); }, s.delay);
- func(t);
- }
- }
- },
- onBtnEnd = function (e) {
- if (click) {
- clearInterval(timer);
- click = false;
- }
- $(document).unbind(END_EVENT, onBtnEnd);
- $('.dwb-a', dw).removeClass('dwb-a');
- },
- onScroll = function (e) {
- if (!isReadOnly(this)) {
- e.preventDefault();
- e = e.originalEvent;
- var delta = e.wheelDelta ? (e.wheelDelta / 120) : (e.detail ? (-e.detail / 3) : 0),
- t = $('.dw-ul', this);
-
- setGlobals(t);
- calc(t, Math.round(pos[index] - delta), delta < 0 ? 1 : 2);
- }
- };
-
- // Private functions
-
- function isReadOnly(wh) {
- if ($.isArray(s.readonly)) {
- var i = $('.dwwl', dw).index(wh);
- return s.readonly[i];
- }
- return s.readonly;
- }
-
- function generateWheelItems(i) {
- var html = '<div class="dw-bf">',
- ww = wheels[i],
- w = ww.values ? ww : convert(ww),
- l = 1,
- values = w.values,
- keys = w.keys || values;
-
- $.each(values, function (j, v) {
- if (l % 20 == 0) {
- html += '</div><div class="dw-bf">';
- }
- html += '<div class="dw-li dw-v" data-val="' + keys[j] + '" style="height:' + hi + 'px;line-height:' + hi + 'px;"><div class="dw-i">' + v + '</div></div>';
- l++;
- });
-
- html += '</div>';
- return html;
- }
-
- function setGlobals(t) {
- min = $('.dw-li', t).index($('.dw-v', t).eq(0));
- max = $('.dw-li', t).index($('.dw-v', t).eq(-1));
- index = $('.dw-ul', dw).index(t);
- }
-
- function formatHeader(v) {
- var t = s.headerText;
- return t ? (typeof t === 'function' ? t.call(e, v) : t.replace(/\{value\}/i, v)) : '';
- }
-
- function read() {
- that.temp = ((input && that.val !== null && that.val != elm.val()) || that.values === null) ? s.parseValue(elm.val() || '', that) : that.values.slice(0);
- setVal();
- }
-
- function getCurrentPosition(t) {
- var style = window.getComputedStyle ? getComputedStyle(t[0]) : t[0].style,
- matrix,
- px;
-
- if (has3d) {
- $.each(['t', 'webkitT', 'MozT', 'OT', 'msT'], function (i, v) {
- if (style[v + 'ransform'] !== undefined) {
- matrix = style[v + 'ransform'];
- return false;
- }
- });
- matrix = matrix.split(')')[0].split(', ');
- px = matrix[13] || matrix[5];
- } else {
- px = style.top.replace('px', '');
- }
-
- return Math.round(m - (px / hi));
- }
-
- function ready(t, i) {
- clearTimeout(iv[i]);
- delete iv[i];
- t.closest('.dwwl').removeClass('dwa');
- }
-
- function scroll(t, index, val, time, active) {
-
- var px = (m - val) * hi,
- style = t[0].style,
- i;
-
- if (px == pixels[index] && iv[index]) {
- return;
- }
-
- if (time && px != pixels[index]) {
- // Trigger animation start event
- event('onAnimStart', [dw, index, time]);
- }
-
- pixels[index] = px;
-
- style[pr + 'Transition'] = 'all ' + (time ? time.toFixed(3) : 0) + 's ease-out';
-
- if (has3d) {
- style[pr + 'Transform'] = 'translate3d(0,' + px + 'px,0)';
- } else {
- style.top = px + 'px';
- }
-
- if (iv[index]) {
- ready(t, index);
- }
-
- if (time && active !== undefined) {
- t.closest('.dwwl').addClass('dwa');
- iv[index] = setTimeout(function () {
- ready(t, index);
- }, time * 1000);
- }
-
- pos[index] = val;
- }
-
- function scrollToPos(time, index, manual, dir, active) {
-
- // Call validation event
- if (event('validate', [dw, index, time]) !== false) {
-
- // Set scrollers to position
- $('.dw-ul', dw).each(function (i) {
- var t = $(this),
- cell = $('.dw-li[data-val="' + that.temp[i] + '"]', t),
- cells = $('.dw-li', t),
- v = cells.index(cell),
- l = cells.length,
- sc = i == index || index === undefined;
-
- // Scroll to a valid cell
- if (!cell.hasClass('dw-v')) {
- var cell1 = cell,
- cell2 = cell,
- dist1 = 0,
- dist2 = 0;
-
- while (v - dist1 >= 0 && !cell1.hasClass('dw-v')) {
- dist1++;
- cell1 = cells.eq(v - dist1);
- }
-
- while (v + dist2 < l && !cell2.hasClass('dw-v')) {
- dist2++;
- cell2 = cells.eq(v + dist2);
- }
-
- // If we have direction (+/- or mouse wheel), the distance does not count
- if (((dist2 < dist1 && dist2 && dir !== 2) || !dist1 || (v - dist1 < 0) || dir == 1) && cell2.hasClass('dw-v')) {
- cell = cell2;
- v = v + dist2;
- } else {
- cell = cell1;
- v = v - dist1;
- }
- }
-
- if (!(cell.hasClass('dw-sel')) || sc) {
- // Set valid value
- that.temp[i] = cell.attr('data-val');
-
- // Add selected class to cell
- $('.dw-sel', t).removeClass('dw-sel');
- cell.addClass('dw-sel');
-
- // Scroll to position
- scroll(t, i, v, sc ? time : 0.1, sc ? active : false);
- }
- });
-
- // Reformat value if validation changed something
- v = s.formatResult(that.temp);
- if (s.display == 'inline') {
- setVal(manual, 0, true);
- } else {
- $('.dwv', dw).html(formatHeader(v));
- }
-
- if (manual) {
- event('onChange', [v]);
- }
- }
-
- }
-
- function event(name, args) {
- var ret;
- args.push(that);
- $.each([theme.defaults, pres, settings], function (i, v) {
- if (v[name]) { // Call preset event
- ret = v[name].apply(e, args);
- }
- });
- return ret;
- }
-
- function calc(t, val, dir, anim, orig) {
- val = constrain(val, min, max);
-
- var cell = $('.dw-li', t).eq(val),
- o = orig === undefined ? val : orig,
- idx = index,
- time = anim ? (val == o ? 0.1 : Math.abs((val - o) * s.timeUnit)) : 0;
-
- // Set selected scroller value
- that.temp[idx] = cell.attr('data-val');
-
- scroll(t, idx, val, time, orig);
-
- setTimeout(function () {
- // Validate
- scrollToPos(time, idx, true, dir, orig);
- }, 10);
- }
-
- function plus(t) {
- var val = pos[index] + 1;
- calc(t, val > max ? min : val, 1, true);
- }
-
- function minus(t) {
- var val = pos[index] - 1;
- calc(t, val < min ? max : val, 2, true);
- }
-
- function setVal(fill, time, noscroll, temp) {
-
- if (visible && !noscroll) {
- scrollToPos(time);
- }
-
- v = s.formatResult(that.temp);
-
- if (!temp) {
- that.values = that.temp.slice(0);
- that.val = v;
- }
-
- if (fill) {
- if (input) {
- elm.val(v).trigger('change');
- }
- }
- }
-
- // Public functions
-
- that.position = function (check) {
-
- if (s.display == 'inline' || (ww === $(window).width() && rwh === $(window).height() && check) || (event('onPosition', [dw]) === false)) {
- return;
- }
-
- var w,
- l,
- t,
- aw, // anchor width
- ah, // anchor height
- ap, // anchor position
- at, // anchor top
- al, // anchor left
- arr, // arrow
- arrw, // arrow width
- arrl, // arrow left
- scroll,
- totalw = 0,
- minw = 0,
- st = $(window).scrollTop(),
- wr = $('.dwwr', dw),
- d = $('.dw', dw),
- css = {},
- anchor = s.anchor === undefined ? elm : s.anchor;
-
- ww = $(window).width();
- rwh = $(window).height();
- wh = window.innerHeight; // on iOS we need innerHeight
- wh = wh || rwh;
-
- if (/modal|bubble/.test(s.display)) {
- $('.dwc', dw).each(function () {
- w = $(this).outerWidth(true);
- totalw += w;
- minw = (w > minw) ? w : minw;
- });
- w = totalw > ww ? minw : totalw;
- wr.width(w).css('white-space', totalw > ww ? '' : 'nowrap');
- }
-
- mw = d.outerWidth();
- mh = d.outerHeight(true);
-
- if (s.display == 'modal') {
- l = (ww - mw) / 2;
- t = st + (wh - mh) / 2;
- } else if (s.display == 'bubble') {
- scroll = true;
- arr = $('.dw-arrw-i', dw);
- ap = anchor.offset();
- at = ap.top;
- al = ap.left;
-
- // horizontal positioning
- aw = anchor.outerWidth();
- ah = anchor.outerHeight();
- l = al - (d.outerWidth(true) - aw) / 2;
- l = l > (ww - mw) ? (ww - (mw + 20)) : l;
- l = l >= 0 ? l : 20;
-
- // vertical positioning
- t = at - mh; // above the input
- if ((t < st) || (at > st + wh)) { // if doesn't fit above or the input is out of the screen
- d.removeClass('dw-bubble-top').addClass('dw-bubble-bottom');
- t = at + ah; // below the input
- } else {
- d.removeClass('dw-bubble-bottom').addClass('dw-bubble-top');
- }
-
- // Calculate Arrow position
- arrw = arr.outerWidth();
- arrl = al + aw / 2 - (l + (mw - arrw) / 2);
-
- // Limit Arrow position
- $('.dw-arr', dw).css({ left: constrain(arrl, 0, arrw) });
- } else {
- css.width = '100%';
- if (s.display == 'top') {
- t = st;
- } else if (s.display == 'bottom') {
- t = st + wh - mh;
- }
- }
-
- css.top = t < 0 ? 0 : t;
- css.left = l;
- d.css(css);
-
- // If top + modal height > doc height, increase doc height
- $('.dw-persp', dw).height(0).height(t + mh > $(document).height() ? t + mh : $(document).height());
-
- // Scroll needed
- if (scroll && ((t + mh > st + wh) || (at > st + wh))) {
- $(window).scrollTop(t + mh - wh);
- }
- };
-
- /**
- * Enables the scroller and the associated input.
- */
- that.enable = function () {
- s.disabled = false;
- if (input) {
- elm.prop('disabled', false);
- }
- };
-
- /**
- * Disables the scroller and the associated input.
- */
- that.disable = function () {
- s.disabled = true;
- if (input) {
- elm.prop('disabled', true);
- }
- };
-
- /**
- * Gets the selected wheel values, formats it, and set the value of the scroller instance.
- * If input parameter is true, populates the associated input element.
- * @param {Array} values - Wheel values.
- * @param {Boolean} [fill=false] - Also set the value of the associated input element.
- * @param {Number} [time=0] - Animation time
- * @param {Boolean} [temp=false] - If true, then only set the temporary value.(only scroll there but not set the value)
- */
- that.setValue = function (values, fill, time, temp) {
- that.temp = $.isArray(values) ? values.slice(0) : s.parseValue.call(e, values + '', that);
- setVal(fill, time, false, temp);
- };
-
- that.getValue = function () {
- return that.values;
- };
-
- that.getValues = function () {
- var ret = [],
- i;
-
- for (i in that._selectedValues) {
- ret.push(that._selectedValues[i]);
- }
- return ret;
- };
-
- /**
- * Changes the values of a wheel, and scrolls to the correct position
- */
- that.changeWheel = function (idx, time) {
- if (dw) {
- var i = 0,
- nr = idx.length;
-
- $.each(s.wheels, function (j, wg) {
- $.each(wg, function (k, w) {
- if ($.inArray(i, idx) > -1) {
- wheels[i] = w;
- $('.dw-ul', dw).eq(i).html(generateWheelItems(i));
- nr--;
- if (!nr) {
- that.position();
- scrollToPos(time, undefined, true);
- return false;
- }
- }
- i++;
- });
- if (!nr) {
- return false;
- }
- });
- }
- };
-
- /**
- * Return true if the scroller is currently visible.
- */
- that.isVisible = function () {
- return visible;
- };
-
- that.tap = function (el, handler) {
- var startX,
- startY;
-
- if (s.tap) {
- el.bind('touchstart', function (e) {
- e.preventDefault();
- startX = getCoord(e, 'X');
- startY = getCoord(e, 'Y');
- }).bind('touchend', function (e) {
- // If movement is less than 20px, fire the click event handler
- if (Math.abs(getCoord(e, 'X') - startX) < 20 && Math.abs(getCoord(e, 'Y') - startY) < 20) {
- handler.call(this, e);
- }
- tap = true;
- setTimeout(function () {
- tap = false;
- }, 300);
- });
- }
-
- el.bind('click', function (e) {
- if (!tap) {
- // If handler was not called on touchend, call it on click;
- handler.call(this, e);
- }
- });
-
- };
-
- /**
- * Shows the scroller instance.
- * @param {Boolean} prevAnim - Prevent animation if true
- */
- that.show = function (prevAnim) {
- if (s.disabled || visible) {
- return false;
- }
-
- if (s.display == 'top') {
- anim = 'slidedown';
- }
-
- if (s.display == 'bottom') {
- anim = 'slideup';
- }
-
- // Parse value from input
- read();
-
- event('onBeforeShow', []);
-
- // Create wheels
- var l = 0,
- mAnim = '';
-
- if (anim && !prevAnim) {
- mAnim = 'dw-' + anim + ' dw-in';
- }
- // Create wheels containers
- var html = '<div class="' + s.theme + ' dw-' + s.display + (prefix ? ' dw' + prefix : '') + '">' + (s.display == 'inline' ? '<div class="dw dwbg dwi"><div class="dwwr">' : '<div class="dw-persp">' + '<div class="dwo"></div><div class="dw dwbg ' + mAnim + '"><div class="dw-arrw"><div class="dw-arrw-i"><div class="dw-arr"></div></div></div><div class="dwwr">' + (s.headerText ? '<div class="dwv"></div>' : '')) + '<div class="dwcc">';
-
- $.each(s.wheels, function (i, wg) { // Wheel groups
- html += '<div class="dwc' + (s.mode != 'scroller' ? ' dwpm' : ' dwsc') + (s.showLabel ? '' : ' dwhl') + '"><div class="dwwc dwrc"><table cellpadding="0" cellspacing="0"><tr>';
- $.each(wg, function (j, w) { // Wheels
- wheels[l] = w;
- html += '<td><div class="dwwl dwrc dwwl' + l + '">' + (s.mode != 'scroller' ? '<div class="dwb-e dwwb dwwbp" style="height:' + hi + 'px;line-height:' + hi + 'px;"><span>+</span></div><div class="dwb-e dwwb dwwbm" style="height:' + hi + 'px;line-height:' + hi + 'px;"><span>&ndash;</span></div>' : '') + '<div class="dwl">' + (w.label || j) + '</div><div class="dwww"><div class="dww" style="height:' + (s.rows * hi) + 'px;min-width:' + s.width + 'px;"><div class="dw-ul">';
- // Create wheel values
- html += generateWheelItems(l);
- html += '</div><div class="dwwol"></div></div><div class="dwwo"></div></div><div class="dwwol"></div></div></td>';
- l++;
- });
-
- html += '</tr></table></div></div>';
- });
-
- html += '</div>' + (s.display != 'inline' ? '<div class="dwbc' + (s.button3 ? ' dwbc-p' : '') + '"><span class="dwbw dwb-s"><span class="dwb dwb-e">' + s.setText + '</span></span>' + (s.button3 ? '<span class="dwbw dwb-n"><span class="dwb dwb-e">' + s.button3Text + '</span></span>' : '') + '<span class="dwbw dwb-c"><span class="dwb dwb-e">' + s.cancelText + '</span></span></div></div>' : '') + '</div></div></div>';
- dw = $(html);
-
- scrollToPos();
-
- event('onMarkupReady', [dw]);
-
- // Show
- if (s.display != 'inline') {
- dw.appendTo('body');
- if (anim && !prevAnim) {
- dw.addClass('dw-trans');
- // Remove animation class
- setTimeout(function () {
- dw.removeClass('dw-trans').find('.dw').removeClass(mAnim);
- }, 350);
- }
- } else if (elm.is('div')) {
- elm.html(dw);
- } else {
- dw.insertAfter(elm);
- }
-
- event('onMarkupInserted', [dw]);
-
- visible = true;
-
- // Theme init
- theme.init(dw, that);
-
- if (s.display != 'inline') {
- // Init buttons
- that.tap($('.dwb-s span', dw), function () {
- if (that.hide(false, 'set') !== false) {
- setVal(true, 0, true);
- event('onSelect', [that.val]);
- }
- });
-
- that.tap($('.dwb-c span', dw), function () {
- that.cancel();
- });
-
- if (s.button3) {
- that.tap($('.dwb-n span', dw), s.button3);
- }
-
- // prevent scrolling if not specified otherwise
- if (s.scrollLock) {
- dw.bind('touchmove', function (e) {
- if (mh <= wh && mw <= ww) {
- e.preventDefault();
- }
- });
- }
-
- // Disable inputs to prevent bleed through (Android bug) and set autocomplete to off (for Firefox)
- /*$('input,select,button').each(function () {
- if (!this.disabled) {
- $(this).addClass('dwtd').prop('disabled', true).data('autocomplete', $(this).attr('autocomplete')).attr('autocomplete', 'off');
- }
- });*/
-
- // Set position
- that.position();
- $(window).bind('orientationchange.dw resize.dw', function () {
- // Sometimes scrollTop is not correctly set, so we wait a little
- clearTimeout(debounce);
- debounce = setTimeout(function () {
- that.position(true);
- }, 100);
- });
- }
-
- // Events
- dw.delegate('.dwwl', 'DOMMouseScroll mousewheel', onScroll).delegate('.dwb-e', START_EVENT, onBtnStart).delegate('.dwwl', START_EVENT, onStart);
-
- event('onShow', [dw, v]);
- };
-
- /**
- * Hides the scroller instance.
- */
- that.hide = function (prevAnim, btn) {
- // If onClose handler returns false, prevent hide
- if (!visible || event('onClose', [v, btn]) === false) {
- return false;
- }
-
- // Re-enable temporary disabled fields
- $('.dwtd').each(function () {
- $(this).prop('disabled', false).removeClass('dwtd');
- if ($(this).data('autocomplete')) {
- $(this).attr('autocomplete', $(this).data('autocomplete'));
- } else {
- $(this).removeAttr('autocomplete');
- }
- });
- elm.blur();
-
- // Hide wheels and overlay
- if (dw) {
- if (s.display != 'inline' && anim && !prevAnim) {
- dw.addClass('dw-trans').find('.dw').addClass('dw-' + anim + ' dw-out');
- setTimeout(function () {
- dw.remove();
- dw = null;
- }, 350);
- } else {
- dw.remove();
- dw = null;
- }
- visible = false;
- pixels = {};
- // Stop positioning on window resize
- $(window).unbind('.dw');
- }
- };
-
- /**
- * Cancel and hide the scroller instance.
- */
- that.cancel = function () {
- if (that.hide(false, 'cancel') !== false) {
- event('onCancel', [that.val]);
- }
- };
-
- /**
- * Scroller initialization.
- */
- that.init = function (ss) {
- // Get theme defaults
- theme = extend({ defaults: {}, init: empty }, ms.themes[ss.theme || s.theme]);
-
- // Get language defaults
- lang = ms.i18n[ss.lang || s.lang];
-
- extend(settings, ss); // Update original user settings
- extend(s, theme.defaults, lang, settings);
-
- that.settings = s;
-
- // Unbind all events (if re-init)
- elm.unbind('.dw');
-
- var preset = ms.presets[s.preset];
-
- if (preset) {
- pres = preset.call(e, that);
- extend(s, pres, settings); // Load preset settings
- }
-
- // Set private members
- m = Math.floor(s.rows / 2);
- hi = s.height;
- anim = s.animate;
-
- if (visible) {
- that.hide();
- }
-
- if (s.display == 'inline') {
- that.show();
- } else {
- read();
- if (input && s.showOnFocus) {
- // Set element readonly, save original state
- if (readOnly === undefined) {
- readOnly = e.readOnly;
- }
- e.readOnly = true;
- // Init show datewheel
- elm.bind('focus.dw', function () { that.show(); });
- }
- }
- };
-
- that.trigger = function (name, params) {
- return event(name, params);
- };
-
- that.option = function (opt, value) {
- var obj = {};
- if (typeof opt === 'object') {
- obj = opt;
- } else {
- obj[opt] = value;
- }
- that.init(obj);
- };
-
- that.destroy = function () {
- that.hide();
- elm.unbind('.dw');
- delete scrollers[e.id];
- if (input) {
- e.readOnly = readOnly;
- }
- };
-
- that.getInst = function () {
- return that;
- };
-
- that.values = null;
- that.val = null;
- that.temp = null;
- that._selectedValues = {};
-
- that.init(settings);
- }
-
- function testProps(props) {
- var i;
- for (i in props) {
- if (mod[props[i]] !== undefined) {
- return true;
- }
- }
- return false;
- }
-
- function testPrefix() {
- var prefixes = ['Webkit', 'Moz', 'O', 'ms'],
- p;
-
- for (p in prefixes) {
- if (testProps([prefixes[p] + 'Transform'])) {
- return '-' + prefixes[p].toLowerCase();
- }
- }
- return '';
- }
-
- function testTouch(e) {
- if (e.type === 'touchstart') {
- touch = true;
- /*setTimeout(function () {
- touch = false; // Reset if mouse event was not fired
- }, 500);*/
- } else if (touch) {
- touch = false;
- return false;
- }
- return true;
- }
-
- function getCoord(e, c) {
- var org = e.originalEvent,
- ct = e.changedTouches;
- return ct || (org && org.changedTouches) ? (org ? org.changedTouches[0]['page' + c] : ct[0]['page' + c]) : e['page' + c];
-
- }
-
- function constrain(val, min, max) {
- return Math.max(min, Math.min(val, max));
- }
-
- function convert(w) {
- var ret = {
- values: [],
- keys: []
- };
- $.each(w, function (k, v) {
- ret.keys.push(k);
- ret.values.push(v);
- });
- return ret;
- }
-
- function init(that, options, args) {
- var ret = that;
-
- // Init
- if (typeof options === 'object') {
- return that.each(function () {
- if (!this.id) {
- uuid += 1;
- this.id = 'mobiscroll' + uuid;
- }
- scrollers[this.id] = new Scroller(this, options);
- });
- }
-
- // Method call
- if (typeof options === 'string') {
- that.each(function () {
- var r,
- inst = scrollers[this.id];
-
- if (inst && inst[options]) {
- r = inst[options].apply(this, Array.prototype.slice.call(args, 1));
- if (r !== undefined) {
- ret = r;
- return false;
- }
- }
- });
- }
-
- return ret;
- }
-
- var move,
- tap,
- touch,
- date = new Date(),
- uuid = date.getTime(),
- scrollers = {},
- empty = function () {},
- mod = document.createElement('modernizr').style,
- has3d = testProps(['perspectiveProperty', 'WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective']),
- prefix = testPrefix(),
- pr = prefix.replace(/^\-/, '').replace('moz', 'Moz'),
- extend = $.extend,
- START_EVENT = 'touchstart mousedown',
- MOVE_EVENT = 'touchmove mousemove',
- END_EVENT = 'touchend mouseup',
- defaults = {
- // Options
- width: 70,
- height: 40,
- rows: 3,
- delay: 300,
- disabled: false,
- readonly: false,
- showOnFocus: true,
- showLabel: true,
- wheels: [],
- theme: '',
- headerText: '{value}',
- display: 'modal',
- mode: 'scroller',
- preset: '',
- lang: 'en-US',
- setText: 'Set',
- cancelText: 'Cancel',
- scrollLock: true,
- tap: true,
- speedUnit: 0.0012,
- timeUnit: 0.1,
- formatResult: function (d) {
- return d.join(' ');
- },
- parseValue: function (value, inst) {
- var val = value.split(' '),
- ret = [],
- i = 0,
- keys;
-
- $.each(inst.settings.wheels, function (j, wg) {
- $.each(wg, function (k, w) {
- w = w.values ? w : convert(w);
- keys = w.keys || w.values;
- if ($.inArray(val[i], keys) !== -1) {
- ret.push(val[i]);
- } else {
- ret.push(keys[0]);
- }
- i++;
- });
- });
- return ret;
- }
- };
-
- $(document).bind('mouseover mouseup mousedown click', function (e) { // Prevent standard behaviour on body click
- if (tap) {
- e.stopPropagation();
- e.preventDefault();
- return false;
- }
- });
-
- $.fn.mobiscroll = function (method) {
- extend(this, $.mobiscroll.shorts);
- return init(this, method, arguments);
- };
-
- $.mobiscroll = $.mobiscroll || {
- /**
- * Set settings for all instances.
- * @param {Object} o - New default settings.
- */
- setDefaults: function (o) {
- extend(defaults, o);
- },
- presetShort: function (name) {
- this.shorts[name] = function (method) {
- return init(this, extend(method, { preset: name }), arguments);
- };
- },
- shorts: {},
- presets: {},
- themes: {},
- i18n: {}
- };
-
- $.scroller = $.scroller || $.mobiscroll;
- $.fn.scroller = $.fn.scroller || $.fn.mobiscroll;
-
-})(jQuery);
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.datetime.js b/lib/mobiscroll-2.6.0/mobiscroll.datetime.js
deleted file mode 100644
index 191374f42..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.datetime.js
+++ /dev/null
@@ -1,676 +0,0 @@
-/*jslint eqeq: true, plusplus: true, undef: true, sloppy: true, vars: true, forin: true */
-(function ($) {
-
- var ms = $.mobiscroll,
- date = new Date(),
- defaults = {
- dateFormat: 'mm/dd/yy',
- dateOrder: 'mmddy',
- timeWheels: 'hhiiA',
- timeFormat: 'hh:ii A',
- startYear: date.getFullYear() - 100,
- endYear: date.getFullYear() + 1,
- monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
- monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
- dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
- dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
- shortYearCutoff: '+10',
- monthText: 'Month',
- dayText: 'Day',
- yearText: 'Year',
- hourText: 'Hours',
- minuteText: 'Minutes',
- secText: 'Seconds',
- ampmText: '&nbsp;',
- nowText: 'Now',
- showNow: false,
- stepHour: 1,
- stepMinute: 1,
- stepSecond: 1,
- separator: ' '
- },
- preset = function (inst) {
- var that = $(this),
- html5def = {},
- format;
- // Force format for html5 date inputs (experimental)
- if (that.is('input')) {
- switch (that.attr('type')) {
- case 'date':
- format = 'yy-mm-dd';
- break;
- case 'datetime':
- format = 'yy-mm-ddTHH:ii:ssZ';
- break;
- case 'datetime-local':
- format = 'yy-mm-ddTHH:ii:ss';
- break;
- case 'month':
- format = 'yy-mm';
- html5def.dateOrder = 'mmyy';
- break;
- case 'time':
- format = 'HH:ii:ss';
- break;
- }
- // Check for min/max attributes
- var min = that.attr('min'),
- max = that.attr('max');
- if (min) {
- html5def.minDate = ms.parseDate(format, min);
- }
- if (max) {
- html5def.maxDate = ms.parseDate(format, max);
- }
- }
-
- // Set year-month-day order
- var i,
- k,
- keys,
- values,
- wg,
- start,
- end,
- orig = $.extend({}, inst.settings),
- s = $.extend(inst.settings, defaults, html5def, orig),
- offset = 0,
- wheels = [],
- ord = [],
- o = {},
- f = { y: 'getFullYear', m: 'getMonth', d: 'getDate', h: getHour, i: getMinute, s: getSecond, a: getAmPm },
- p = s.preset,
- dord = s.dateOrder,
- tord = s.timeWheels,
- regen = dord.match(/D/),
- ampm = tord.match(/a/i),
- hampm = tord.match(/h/),
- hformat = p == 'datetime' ? s.dateFormat + s.separator + s.timeFormat : p == 'time' ? s.timeFormat : s.dateFormat,
- defd = new Date(),
- stepH = s.stepHour,
- stepM = s.stepMinute,
- stepS = s.stepSecond,
- mind = s.minDate || new Date(s.startYear, 0, 1),
- maxd = s.maxDate || new Date(s.endYear, 11, 31, 23, 59, 59);
-
- format = format || hformat;
-
- if (p.match(/date/i)) {
-
- // Determine the order of year, month, day wheels
- $.each(['y', 'm', 'd'], function (j, v) {
- i = dord.search(new RegExp(v, 'i'));
- if (i > -1) {
- ord.push({ o: i, v: v });
- }
- });
- ord.sort(function (a, b) { return a.o > b.o ? 1 : -1; });
- $.each(ord, function (i, v) {
- o[v.v] = i;
- });
-
- wg = [];
- for (k = 0; k < 3; k++) {
- if (k == o.y) {
- offset++;
- values = [];
- keys = [];
- start = mind.getFullYear();
- end = maxd.getFullYear();
- for (i = start; i <= end; i++) {
- keys.push(i);
- values.push(dord.match(/yy/i) ? i : (i + '').substr(2, 2));
- }
- addWheel(wg, keys, values, s.yearText);
- } else if (k == o.m) {
- offset++;
- values = [];
- keys = [];
- for (i = 0; i < 12; i++) {
- var str = dord.replace(/[dy]/gi, '').replace(/mm/, i < 9 ? '0' + (i + 1) : i + 1).replace(/m/, (i + 1));
- keys.push(i);
- values.push(str.match(/MM/) ? str.replace(/MM/, '<span class="dw-mon">' + s.monthNames[i] + '</span>') : str.replace(/M/, '<span class="dw-mon">' + s.monthNamesShort[i] + '</span>'));
- }
- addWheel(wg, keys, values, s.monthText);
- } else if (k == o.d) {
- offset++;
- values = [];
- keys = [];
- for (i = 1; i < 32; i++) {
- keys.push(i);
- values.push(dord.match(/dd/i) && i < 10 ? '0' + i : i);
- }
- addWheel(wg, keys, values, s.dayText);
- }
- }
- wheels.push(wg);
- }
-
- if (p.match(/time/i)) {
-
- // Determine the order of hours, minutes, seconds wheels
- ord = [];
- $.each(['h', 'i', 's', 'a'], function (i, v) {
- i = tord.search(new RegExp(v, 'i'));
- if (i > -1) {
- ord.push({ o: i, v: v });
- }
- });
- ord.sort(function (a, b) {
- return a.o > b.o ? 1 : -1;
- });
- $.each(ord, function (i, v) {
- o[v.v] = offset + i;
- });
-
- wg = [];
- for (k = offset; k < offset + 4; k++) {
- if (k == o.h) {
- offset++;
- values = [];
- keys = [];
- for (i = 0; i < (hampm ? 12 : 24); i += stepH) {
- keys.push(i);
- values.push(hampm && i == 0 ? 12 : tord.match(/hh/i) && i < 10 ? '0' + i : i);
- }
- addWheel(wg, keys, values, s.hourText);
- } else if (k == o.i) {
- offset++;
- values = [];
- keys = [];
- for (i = 0; i < 60; i += stepM) {
- keys.push(i);
- values.push(tord.match(/ii/) && i < 10 ? '0' + i : i);
- }
- addWheel(wg, keys, values, s.minuteText);
- } else if (k == o.s) {
- offset++;
- values = [];
- keys = [];
- for (i = 0; i < 60; i += stepS) {
- keys.push(i);
- values.push(tord.match(/ss/) && i < 10 ? '0' + i : i);
- }
- addWheel(wg, keys, values, s.secText);
- } else if (k == o.a) {
- offset++;
- var upper = tord.match(/A/);
- addWheel(wg, [0, 1], upper ? ['AM', 'PM'] : ['am', 'pm'], s.ampmText);
- }
- }
-
- wheels.push(wg);
- }
-
- function get(d, i, def) {
- if (o[i] !== undefined) {
- return +d[o[i]];
- }
- if (def !== undefined) {
- return def;
- }
- return defd[f[i]] ? defd[f[i]]() : f[i](defd);
- }
-
- function addWheel(wg, k, v, lbl) {
- wg.push({
- values: v,
- keys: k,
- label: lbl
- });
- }
-
- function step(v, st) {
- return Math.floor(v / st) * st;
- }
-
- function getHour(d) {
- var hour = d.getHours();
- hour = hampm && hour >= 12 ? hour - 12 : hour;
- return step(hour, stepH);
- }
-
- function getMinute(d) {
- return step(d.getMinutes(), stepM);
- }
-
- function getSecond(d) {
- return step(d.getSeconds(), stepS);
- }
-
- function getAmPm(d) {
- return ampm && d.getHours() > 11 ? 1 : 0;
- }
-
- function getDate(d) {
- var hour = get(d, 'h', 0);
- return new Date(get(d, 'y'), get(d, 'm'), get(d, 'd', 1), get(d, 'a') ? hour + 12 : hour, get(d, 'i', 0), get(d, 's', 0));
- }
-
- // Extended methods
- // ---
-
- /**
- * Sets the selected date
- *
- * @param {Date} d Date to select.
- * @param {Boolean} [fill=false] Also set the value of the associated input element. Default is true.
- * @return {Object} jQuery object to maintain chainability
- */
- inst.setDate = function (d, fill, time, temp) {
- var i;
-
- // Set wheels
- for (i in o) {
- inst.temp[o[i]] = d[f[i]] ? d[f[i]]() : f[i](d);
- }
- inst.setValue(inst.temp, fill, time, temp);
- };
-
- /**
- * Returns the currently selected date.
- *
- * @param {Boolean} [temp=false] If true, return the currently shown date on the picker, otherwise the last selected one
- * @return {Date}
- */
- inst.getDate = function (temp) {
- return getDate(temp ? inst.temp : inst.values);
- };
-
- // ---
-
- return {
- button3Text: s.showNow ? s.nowText : undefined,
- button3: s.showNow ? function () { inst.setDate(new Date(), false, 0.3, true); } : undefined,
- wheels: wheels,
- headerText: function (v) {
- return ms.formatDate(hformat, getDate(inst.temp), s);
- },
- /**
- * Builds a date object from the wheel selections and formats it to the given date/time format
- * @param {Array} d - An array containing the selected wheel values
- * @return {String} - The formatted date string
- */
- formatResult: function (d) {
- return ms.formatDate(format, getDate(d), s);
- },
- /**
- * Builds a date object from the input value and returns an array to set wheel values
- * @return {Array} - An array containing the wheel values to set
- */
- parseValue: function (val) {
- var d = new Date(),
- i,
- result = [];
- try {
- d = ms.parseDate(format, val, s);
- } catch (e) {
- }
- // Set wheels
- for (i in o) {
- result[o[i]] = d[f[i]] ? d[f[i]]() : f[i](d);
- }
- return result;
- },
- /**
- * Validates the selected date to be in the minDate / maxDate range and sets unselectable values to disabled
- * @param {Object} dw - jQuery object containing the generated html
- * @param {Integer} [i] - Index of the changed wheel, not set for initial validation
- */
- validate: function (dw, i) {
- var temp = inst.temp, //.slice(0),
- mins = { y: mind.getFullYear(), m: 0, d: 1, h: 0, i: 0, s: 0, a: 0 },
- maxs = { y: maxd.getFullYear(), m: 11, d: 31, h: step(hampm ? 11 : 23, stepH), i: step(59, stepM), s: step(59, stepS), a: 1 },
- minprop = true,
- maxprop = true;
- $.each(['y', 'm', 'd', 'a', 'h', 'i', 's'], function (x, i) {
- if (o[i] !== undefined) {
- var min = mins[i],
- max = maxs[i],
- maxdays = 31,
- val = get(temp, i),
- t = $('.dw-ul', dw).eq(o[i]),
- y,
- m;
- if (i == 'd') {
- y = get(temp, 'y');
- m = get(temp, 'm');
- maxdays = 32 - new Date(y, m, 32).getDate();
- max = maxdays;
- if (regen) {
- $('.dw-li', t).each(function () {
- var that = $(this),
- d = that.data('val'),
- w = new Date(y, m, d).getDay(),
- str = dord.replace(/[my]/gi, '').replace(/dd/, d < 10 ? '0' + d : d).replace(/d/, d);
- $('.dw-i', that).html(str.match(/DD/) ? str.replace(/DD/, '<span class="dw-day">' + s.dayNames[w] + '</span>') : str.replace(/D/, '<span class="dw-day">' + s.dayNamesShort[w] + '</span>'));
- });
- }
- }
- if (minprop && mind) {
- min = mind[f[i]] ? mind[f[i]]() : f[i](mind);
- }
- if (maxprop && maxd) {
- max = maxd[f[i]] ? maxd[f[i]]() : f[i](maxd);
- }
- if (i != 'y') {
- var i1 = $('.dw-li', t).index($('.dw-li[data-val="' + min + '"]', t)),
- i2 = $('.dw-li', t).index($('.dw-li[data-val="' + max + '"]', t));
- $('.dw-li', t).removeClass('dw-v').slice(i1, i2 + 1).addClass('dw-v');
- if (i == 'd') { // Hide days not in month
- $('.dw-li', t).removeClass('dw-h').slice(maxdays).addClass('dw-h');
- }
- }
- if (val < min) {
- val = min;
- }
- if (val > max) {
- val = max;
- }
- if (minprop) {
- minprop = val == min;
- }
- if (maxprop) {
- maxprop = val == max;
- }
- // Disable some days
- if (s.invalid && i == 'd') {
- var idx = [];
- // Disable exact dates
- if (s.invalid.dates) {
- $.each(s.invalid.dates, function (i, v) {
- if (v.getFullYear() == y && v.getMonth() == m) {
- idx.push(v.getDate() - 1);
- }
- });
- }
- // Disable days of week
- if (s.invalid.daysOfWeek) {
- var first = new Date(y, m, 1).getDay(),
- j;
- $.each(s.invalid.daysOfWeek, function (i, v) {
- for (j = v - first; j < maxdays; j += 7) {
- if (j >= 0) {
- idx.push(j);
- }
- }
- });
- }
- // Disable days of month
- if (s.invalid.daysOfMonth) {
- $.each(s.invalid.daysOfMonth, function (i, v) {
- v = (v + '').split('/');
- if (v[1]) {
- if (v[0] - 1 == m) {
- idx.push(v[1] - 1);
- }
- } else {
- idx.push(v[0] - 1);
- }
- });
- }
- $.each(idx, function (i, v) {
- $('.dw-li', t).eq(v).removeClass('dw-v');
- });
- }
-
- // Set modified value
- temp[o[i]] = val;
- }
- });
- }
- };
- };
-
- $.each(['date', 'time', 'datetime'], function (i, v) {
- ms.presets[v] = preset;
- ms.presetShort(v);
- });
-
- /**
- * Format a date into a string value with a specified format.
- * @param {String} format - Output format.
- * @param {Date} date - Date to format.
- * @param {Object} settings - Settings.
- * @return {String} - Returns the formatted date string.
- */
- ms.formatDate = function (format, date, settings) {
- if (!date) {
- return null;
- }
- var s = $.extend({}, defaults, settings),
- look = function (m) { // Check whether a format character is doubled
- var n = 0;
- while (i + 1 < format.length && format.charAt(i + 1) == m) {
- n++;
- i++;
- }
- return n;
- },
- f1 = function (m, val, len) { // Format a number, with leading zero if necessary
- var n = '' + val;
- if (look(m)) {
- while (n.length < len) {
- n = '0' + n;
- }
- }
- return n;
- },
- f2 = function (m, val, s, l) { // Format a name, short or long as requested
- return (look(m) ? l[val] : s[val]);
- },
- i,
- output = '',
- literal = false;
-
- for (i = 0; i < format.length; i++) {
- if (literal) {
- if (format.charAt(i) == "'" && !look("'")) {
- literal = false;
- } else {
- output += format.charAt(i);
- }
- } else {
- switch (format.charAt(i)) {
- case 'd':
- output += f1('d', date.getDate(), 2);
- break;
- case 'D':
- output += f2('D', date.getDay(), s.dayNamesShort, s.dayNames);
- break;
- case 'o':
- output += f1('o', (date.getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 86400000, 3);
- break;
- case 'm':
- output += f1('m', date.getMonth() + 1, 2);
- break;
- case 'M':
- output += f2('M', date.getMonth(), s.monthNamesShort, s.monthNames);
- break;
- case 'y':
- output += (look('y') ? date.getFullYear() : (date.getYear() % 100 < 10 ? '0' : '') + date.getYear() % 100);
- break;
- case 'h':
- var h = date.getHours();
- output += f1('h', (h > 12 ? (h - 12) : (h == 0 ? 12 : h)), 2);
- break;
- case 'H':
- output += f1('H', date.getHours(), 2);
- break;
- case 'i':
- output += f1('i', date.getMinutes(), 2);
- break;
- case 's':
- output += f1('s', date.getSeconds(), 2);
- break;
- case 'a':
- output += date.getHours() > 11 ? 'pm' : 'am';
- break;
- case 'A':
- output += date.getHours() > 11 ? 'PM' : 'AM';
- break;
- case "'":
- if (look("'")) {
- output += "'";
- } else {
- literal = true;
- }
- break;
- default:
- output += format.charAt(i);
- }
- }
- }
- return output;
- };
-
- /**
- * Extract a date from a string value with a specified format.
- * @param {String} format - Input format.
- * @param {String} value - String to parse.
- * @param {Object} settings - Settings.
- * @return {Date} - Returns the extracted date.
- */
- ms.parseDate = function (format, value, settings) {
- var def = new Date();
-
- if (!format || !value) {
- return def;
- }
-
- value = (typeof value == 'object' ? value.toString() : value + '');
-
- var s = $.extend({}, defaults, settings),
- shortYearCutoff = s.shortYearCutoff,
- year = def.getFullYear(),
- month = def.getMonth() + 1,
- day = def.getDate(),
- doy = -1,
- hours = def.getHours(),
- minutes = def.getMinutes(),
- seconds = 0, //def.getSeconds(),
- ampm = -1,
- literal = false, // Check whether a format character is doubled
- lookAhead = function (match) {
- var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);
- if (matches) {
- iFormat++;
- }
- return matches;
- },
- getNumber = function (match) { // Extract a number from the string value
- lookAhead(match);
- var size = (match == '@' ? 14 : (match == '!' ? 20 : (match == 'y' ? 4 : (match == 'o' ? 3 : 2)))),
- digits = new RegExp('^\\d{1,' + size + '}'),
- num = value.substr(iValue).match(digits);
-
- if (!num) {
- return 0;
- }
- //throw 'Missing number at position ' + iValue;
- iValue += num[0].length;
- return parseInt(num[0], 10);
- },
- getName = function (match, s, l) { // Extract a name from the string value and convert to an index
- var names = (lookAhead(match) ? l : s),
- i;
-
- for (i = 0; i < names.length; i++) {
- if (value.substr(iValue, names[i].length).toLowerCase() == names[i].toLowerCase()) {
- iValue += names[i].length;
- return i + 1;
- }
- }
- return 0;
- //throw 'Unknown name at position ' + iValue;
- },
- checkLiteral = function () {
- //if (value.charAt(iValue) != format.charAt(iFormat))
- //throw 'Unexpected literal at position ' + iValue;
- iValue++;
- },
- iValue = 0,
- iFormat;
-
- for (iFormat = 0; iFormat < format.length; iFormat++) {
- if (literal) {
- if (format.charAt(iFormat) == "'" && !lookAhead("'")) {
- literal = false;
- } else {
- checkLiteral();
- }
- } else {
- switch (format.charAt(iFormat)) {
- case 'd':
- day = getNumber('d');
- break;
- case 'D':
- getName('D', s.dayNamesShort, s.dayNames);
- break;
- case 'o':
- doy = getNumber('o');
- break;
- case 'm':
- month = getNumber('m');
- break;
- case 'M':
- month = getName('M', s.monthNamesShort, s.monthNames);
- break;
- case 'y':
- year = getNumber('y');
- break;
- case 'H':
- hours = getNumber('H');
- break;
- case 'h':
- hours = getNumber('h');
- break;
- case 'i':
- minutes = getNumber('i');
- break;
- case 's':
- seconds = getNumber('s');
- break;
- case 'a':
- ampm = getName('a', ['am', 'pm'], ['am', 'pm']) - 1;
- break;
- case 'A':
- ampm = getName('A', ['am', 'pm'], ['am', 'pm']) - 1;
- break;
- case "'":
- if (lookAhead("'")) {
- checkLiteral();
- } else {
- literal = true;
- }
- break;
- default:
- checkLiteral();
- }
- }
- }
- if (year < 100) {
- year += new Date().getFullYear() - new Date().getFullYear() % 100 +
- (year <= (typeof shortYearCutoff != 'string' ? shortYearCutoff : new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10)) ? 0 : -100);
- }
- if (doy > -1) {
- month = 1;
- day = doy;
- do {
- var dim = 32 - new Date(year, month - 1, 32).getDate();
- if (day <= dim) {
- break;
- }
- month++;
- day -= dim;
- } while (true);
- }
- hours = (ampm == -1) ? hours : ((ampm && hours < 12) ? (hours + 12) : (!ampm && hours == 12 ? 0 : hours));
- var date = new Date(year, month - 1, day, hours, minutes, seconds);
- if (date.getFullYear() != year || date.getMonth() + 1 != month || date.getDate() != day) {
- throw 'Invalid date';
- }
- return date;
- };
-
-})(jQuery);
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.ios.css b/lib/mobiscroll-2.6.0/mobiscroll.ios.css
deleted file mode 100644
index dbc3a42d3..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.ios.css
+++ /dev/null
@@ -1,240 +0,0 @@
-/* iOS Skin */
-.ios .dw {
- min-width: 134px;
- padding: 0;
- border: 1px solid #2d3034;
- background: none;
- color: #fff;
- border-radius: 0;
- -webkit-border-radius: 0;
-}
-.ios .dwo {
- background: none;
-}
-.ios .dwwr {
- position: relative;
- margin-top: 40px;
- background: #50515d;
- background: linear-gradient(#9f9fa6,#484a55 50%,#272836 50%,#282a39);
- background: -webkit-gradient(linear,left top,left bottom,from(#9f9fa6),color-stop(0.5, #484a55),color-stop(0.5, #272836),to(#282a39));
- background: -webkit-linear-gradient(#9f9fa6,#484a55 50%,#272836 50%,#282a39);
- background: -moz-linear-gradient(#9f9fa6,#484a55 50%,#272836 50%,#282a39);
-}
-.ios .dwi .dwwr {
- margin-top: 0;
-}
-.ios .dwv {
- display: none;
-}
-.ios .dwc {
- padding: 30px 2px;
- margin: 0;
-}
-.ios .dwhl {
- padding: 10px 2px;
-}
-.ios .dwwc {
- background: transparent;
-}
-.ios .dwwl {
- margin: 4px 0;
- border-left: 1px solid #000;
- border-right: 1px solid #000;
- background: #cbcce0;
- background: linear-gradient(#2c2c38 0%,#cbcce0 35%, #cbcce0 65%,#2c2c38 100%);
- background: -webkit-gradient(linear,left bottom,left top,from(#2c2c38),color-stop(0.35, #cbcce0),color-stop(0.65, #cbcce0),to(#2c2c38));
- background: -webkit-linear-gradient(#2c2c38 0%,#cbcce0 35%, #cbcce0 65%,#2c2c38 100%);
- background: -moz-linear-gradient(#2c2c38 0%,#cbcce0 35%, #cbcce0 65%,#2c2c38 100%);
- box-shadow: 0 1px 1px rgba(255,255,255,0.3);
- -webkit-box-shadow: 0 1px 1px rgba(255,255,255,0.3);
-}
-.ios td:first-child .dwwl {
- border-top-left-radius: 3px;
- border-bottom-left-radius: 3px;
- -webkit-border-top-left-radius: 3px;
- -webkit-border-bottom-left-radius: 3px;
-}
-.ios td:last-child .dwwl {
- border-top-right-radius: 3px;
- border-bottom-right-radius: 3px;
- -webkit-border-top-right-radius: 3px;
- -webkit-border-bottom-right-radius: 3px;
-}
-.ios .dwsc .dwwl {
- border-radius: 0;
- -webkit-border-radius: 0;
-}
-.ios .dwsc .dww {
- background: #fff;
- background: linear-gradient(#333 0%,#999 10%,#fff 30%,#fff 70%,#999 90%,#333 100%);
- background: -webkit-gradient(linear,left bottom,left top,from(#333),color-stop(0.10, #999),color-stop(0.30, #fff),color-stop(0.70, #fff),color-stop(0.90, #999),to(#333));
- background: -webkit-linear-gradient(#333 0%,#999 10%,#fff 30%,#fff 70%,#999 90%,#333 100%);
- background: -moz-linear-gradient(#333 0%,#999 10%,#fff 30%,#fff 70%,#999 90%,#333 100%);
- border-radius: 0;
- -webkit-border-radius: 0;
-}
-.ios .dw .dwpm .dww {
- background: linear-gradient(#333,#fff 48%,#fff 52%,#333);
- background: -webkit-gradient(linear,left bottom,left top,from(#333),color-stop(0.48, #fff),color-stop(0.52, #fff),to(#333));
- background: -webkit-linear-gradient(#333 0%,#fff 48%,#fff 52%,#333 100%);
- background: -moz-linear-gradient(#333 0%,#fff 48%,#fff 52%,#333 100%);
-}
-.ios .dw .dwpm .dwwl {
- margin: 4px 2px;
- border: 1px solid #000;
-}
-.ios .dw .dwpm .dww {
- margin: 0;
- border: 0;
-}
-.ios .dww .dw-li {
- color: #000;
- font-size: 20px;
- font-weight: bold;
- text-align: right;
- text-shadow: none;
-}
-.ios .dww .dw-li.dw-hl {
- background: linear-gradient(#0288f3,#005de6);
- background: -webkit-gradient(linear,left bottom,left top,from(#0288f3),to(#005de6));
- background: -webkit-linear-gradient(#0288f3,#005de6);
- background: -moz-linear-gradient(#0288f3,#005de6);
- color: #fff;
-}
-.ios .dwwo {
- background: linear-gradient(#333 0%,rgba(153,153,153,0) 10%, rgba(153,153,153,0) 90%, #333 100%);
- background: -webkit-gradient(linear,left bottom,left top,from(#333),color-stop(0.1, rgba(153,153,153,0)),color-stop(0.9, rgba(153,153,153,0)),to(#333));
- background: -webkit-linear-gradient(#333 0%,rgba(153,153,153,0) 10%, rgba(153,153,153,0) 90%, #333 100%);
- background: -moz-linear-gradient(#333 0%,rgba(153,153,153,0) 10%, rgba(153,153,153,0) 90%, #333 100%);
-}
-.ios .dwwol {
- height: 28px;
- padding: 1px;
- margin-top: -16px;
- border-color: #7b8699;
- background: #6f75b0;
- background: linear-gradient(rgba(151, 157, 197, 0.5) 50%,rgba(111, 117, 176, 0.5) 50%);
- background: -webkit-gradient(linear,left bottom,left top,color-stop(0.5, rgba(111, 117, 176, 0.5)),color-stop(0.5, rgba(151, 157, 197, 0.5)));
- background: -webkit-linear-gradient(rgba(151, 157, 197, 0.5) 50%,rgba(111, 117, 176, 0.5) 50%);
- background: -moz-linear-gradient(rgba(151, 157, 197, 0.5) 50%,rgba(111, 117, 176, 0.5) 50%);
- z-index: 10;
- left: -1px;
- box-shadow: 0 1px 3px rgba(0,0,0,0.5);
- -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
- filter: alpha(opacity=50);
-}
-.ios .dww .dwwol {
- display: none;
-}
-.ios .dw .dwbc {
- position: absolute;
- top: -40px;
- left: 0;
- width: 100%;
- height: 28px;
- padding: 5px 0;
- background: #454545;
- background: linear-gradient(rgba(69,69,69,0.7),rgba(37,37,37,0.7) 50%,rgba(16,16,16,0.7) 50%,rgba(0,0,0,0.7));
- background: -webkit-gradient(linear,left top,left bottom,from(rgba(69,69,69,0.7)),color-stop(0.5, rgba(37,37,37,0.7)),color-stop(0.5, rgba(16,16,16,0.7)),to(rgba(0,0,0,0.7)));
- background: -webkit-linear-gradient(rgba(69,69,69,0.7),rgba(37,37,37,0.7) 50%,rgba(16,16,16,0.7) 50%,rgba(0,0,0,0.7));
- background: -moz-linear-gradient(rgba(69,69,69,0.7),rgba(37,37,37,0.7) 50%,rgba(16,16,16,0.7) 50%,rgba(0,0,0,0.7));
- border-bottom: 1px solid #888;
- border-bottom: 1px solid rgba(255,255,255,0.5);
- border-top: 1px solid #888;
- border-top: 1px solid rgba(255,255,255,0.5);
-}
-.ios .dw .dwb {
- margin: 0 5px;
- padding: 0 10px;
- display: inline-block;
- font-size: 12px;
- height: 26px;
- line-height: 26px;
- border: 1px solid #1f1f1f;
- background: #1a1a1a;
- background: linear-gradient(#7b7b7b,#1a1a1a 50%,#000 50%);
- background: -webkit-gradient(linear,left top,left bottom,from(#7b7b7b),color-stop(0.5, #1a1a1a),color-stop(0.5, #000));
- background: -webkit-linear-gradient(#7b7b7b,#1a1a1a 50%,#000 50%);
- background: -moz-linear-gradient(#7b7b7b,#1a1a1a 50%,#000 50%);
- box-shadow: 0 1px 0 rgba(255,255,255,0.3);
- -webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.3);
-}
-.ios .dwb-s .dwb {
- border: 1px solid #194aab;
- background: #194aab;
- background: linear-gradient(#82aaff,#3162c4 50%,#194aab 50%);
- background: -webkit-gradient(linear,left top,left bottom,from(#82aaff),color-stop(0.5,#3162c4),color-stop(0.5,#194aab));
- background: -webkit-linear-gradient(#82aaff,#3162c4 50%,#194aab 50%);
- background: -moz-linear-gradient(#82aaff,#3162c4 50%,#194aab 50%);
-}
-.ios .dwb-a {
- opacity: .8;
- filter: alpha(opacity=80);
-}
-.ios .dw .dwwb {
- color: #fff;
- border: 0;
- background: #3f4e68;
- background: linear-gradient(#c7d1e2 0%,#808ea6 50%,#75859f 50%,#3f4e68 100%);
- background: -webkit-gradient(linear,left bottom,left top,from(#3f4e68),color-stop(0.5, #75859f),color-stop(0.5, #808ea6),to(#c7d1e2));
- background: -webkit-linear-gradient(#c7d1e2 0%,#808ea6 50%,#75859f 50%,#3f4e68 100%);
- background: -moz-linear-gradient(#c7d1e2 0%,#808ea6 50%,#75859f 50%,#3f4e68 100%);
-}
-.ios .dw .dwwl .dwb-a {
- background: #252c36;
- background: linear-gradient(#6b6e75 0%,#272e38 50%,#171e28 50%,#252c36 100%);
- background: -webkit-gradient(linear,left bottom,left top,from(#252c36),color-stop(0.5, #171e28),color-stop(0.5, #272e38),to(#6b6e75));
- background: -webkit-linear-gradient(#6b6e75 0%,#272e38 50%,#171e28 50%,#252c36 100%);
- background: -moz-linear-gradient(#6b6e75 0%,#272e38 50%,#171e28 50%,#252c36 100%);
-}
-.ios .dwb-s, .ios .dwb-n {
- width: auto;
- float: right;
- text-align: right;
-}
-.ios .dwb-c {
- width: auto;
- float: left;
- text-align: left;
-}
-/* Bubble positioning */
-.ios.dw-bubble .dw {
- padding: 6px;
- background: #afafaf;
- background: linear-gradient(#afafaf, #1b2530 30%);
- background: -webkit-gradient(linear,left top,left bottom,from(#afafaf),color-stop(0.3, #1b2530));
- background: -webkit-linear-gradient(#afafaf, #1b2530 30%);
- background: -moz-linear-gradient(#afafaf, #1b2530 30%);
- box-shadow: 0 0 25px rgba(0,0,0,0.7);
- border-radius: 5px;
- -webkit-border-radius: 5px;
- -webkit-box-shadow: 0 0 25px rgba(0,0,0,0.7);
-}
-.ios .dw-bubble-bottom .dw-arr {
- border-color: transparent transparent #2d3034 transparent;
-}
-.ios .dw-bubble-bottom .dw-arr:after {
- content: '';
- position: absolute;
- top: -16px;
- left: -17px;
- border: 17px solid #afafaf;
- border-color: transparent transparent #afafaf transparent;
-}
-.ios .dw-bubble-top .dw-arr {
- border-color: #1b2530 transparent transparent transparent;
-}
-/* Multiple select */
-.ios .dwwms .dwwol {
- display: none;
-}
-.ios .dwwms .dw-li {
- padding: 0 5px 0 30px;
- text-align: left;
-}
-.ios .dw-msel:after {
- width: 30px;
-}
-.ios .dww .dw-msel {
- color: #215085;
-}
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.ios.js b/lib/mobiscroll-2.6.0/mobiscroll.ios.js
deleted file mode 100644
index 984e24264..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.ios.js
+++ /dev/null
@@ -1,15 +0,0 @@
-(function ($) {
-
- $.mobiscroll.themes.ios = {
- defaults: {
- dateOrder: 'MMdyy',
- rows: 5,
- height: 30,
- width: 55,
- headerText: false,
- showLabel: false,
- useShortLabels: true
- }
- }
-
-})(jQuery);
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.jqm.css b/lib/mobiscroll-2.6.0/mobiscroll.jqm.css
deleted file mode 100644
index c70e96ee7..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.jqm.css
+++ /dev/null
@@ -1,88 +0,0 @@
-/* jQuery Mobile Theme */
-.jqm .dwo {
- background: none;
-}
-.jqm .dw {
- padding: 6px;
- z-index: 1003;
-}
-.jqm .dwv {
- position: static;
- width: auto;
- padding: .7em 15px .7em 15px;
- border: 0;
-}
-.jqm .dwwr {
- border: 0;
- padding: 0;
-}
-.jqm .dwpm .dwwo {
- background: none;
-}
-.jqm .dwc {
- padding: 30px 5px 5px 5px;
- }
-.jqm .dwhl {
- padding: 5px;
-}
-.jqm .dwwb {
- margin: 0;
- border: 0;
-}
-.jqm .dwwb span {
- padding: 0;
-}
-.jqm .dwwbp .ui-btn-inner {
- font-size: 40px;
- border-radius: 3px 3px 0 0;
- -webkit-border-radius: 3px 3px 0 0;
- -moz-border-radius: 3px 3px 0 0;
-}
-.jqm .dwwbm .ui-btn-inner {
- font-size: 32px;
- border-radius: 0 0 3px 3px;
- -webkit-border-radius: 0 0 3px 3px;
- -moz-border-radius: 0 0 3px 3px;
-}
-.jqm .dwwbp span {
- font-weight: normal;
-}
-.jqm .dwbc {
- padding: 0;
-}
-.jqm .dwbc .ui-btn {
- margin: .5em 5px;
-}
-.jqm .dwbc .ui-btn-inner {
- font-size: 12px;
-}
-.jqm .dwpm .dwl {
- border: 0;
- background: none;
-}
-/* Bubble positioning */
-.jqm .dw-bubble-bottom .dw-arr
-{
- border-color: transparent transparent #444 transparent;
-}
-.jqm .dw-bubble-top .dw-arr
-{
- border-color: #222 transparent transparent transparent;
-}
-/* Docked */
-.jqm.dw-bottom .dw, .jqm.dw-top .dw {
- padding: 0;
- border-radius: 0;
- -webkit-border-radius: 0;
- -moz-border-radius: 0;
-}
-.jqm.dw-top .dw {
- border-right: 0;
- border-top: 0;
- border-left: 0;
-}
-.jqm.dw-bottom .dw {
- border-bottom: 0;
- border-right: 0;
- border-left: 0;
-}
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.jqm.js b/lib/mobiscroll-2.6.0/mobiscroll.jqm.js
deleted file mode 100644
index eb6585482..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.jqm.js
+++ /dev/null
@@ -1,30 +0,0 @@
-(function ($) {
-
- $.mobiscroll.themes.jqm = {
- defaults: {
- jqmBorder: 'a',
- jqmBody: 'c',
- jqmHeader: 'b',
- jqmWheel: 'd',
- jqmClickPick: 'c',
- jqmSet: 'b',
- jqmCancel: 'c'
- },
- init: function (elm, inst) {
- var s = inst.settings;
- $('.dw', elm).removeClass('dwbg').addClass('ui-overlay-shadow ui-corner-all ui-body-' + s.jqmBorder);
- $('.dwb-s span', elm).attr('data-role', 'button').attr('data-theme', s.jqmSet);
- $('.dwb-n span', elm).attr('data-role', 'button').attr('data-theme', s.jqmCancel);
- $('.dwb-c span', elm).attr('data-role', 'button').attr('data-theme', s.jqmCancel);
- $('.dwwb', elm).attr('data-role', 'button').attr('data-theme', s.jqmClickPick);
- $('.dwv', elm).addClass('ui-header ui-bar-' + s.jqmHeader);
- $('.dwwr', elm).addClass('ui-body-' + s.jqmBody);
- $('.dwpm .dwwl', elm).addClass('ui-body-' + s.jqmWheel);
- $('.dwpm .dwl', elm).addClass('ui-body-' + s.jqmBody);
- elm.trigger('create');
- // Hide on overlay click
- $('.dwo', elm).click(function () { inst.cancel(); });
- }
- };
-
-})(jQuery);
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.jqmobi.js b/lib/mobiscroll-2.6.0/mobiscroll.jqmobi.js
deleted file mode 100644
index 6fb398125..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.jqmobi.js
+++ /dev/null
@@ -1,230 +0,0 @@
-/*jslint eqeq: true, plusplus: true, undef: true, sloppy: true, vars: true, forin: true */
-if (!window['jQuery']) {
-
- var jQuery = jq;
-
- (function ($) {
- var document = window.document,
- classSelectorRE = /^\.([\w-]+)$/,
- idSelectorRE = /^#([\w-]+)$/,
- tagSelectorRE = /^[\w-]+$/,
- tempParent = document.createElement('div'),
- emptyArray = [],
- slice = emptyArray.slice;
-
- function isNumeric(n) {
- return !isNaN(parseFloat(n)) && isFinite(n);
- }
-
- function matches(element, selector) {
- if (!element || element.nodeType !== 1) {
- return false;
- }
-
- var matchesSelector = element.webkitMatchesSelector || element.mozMatchesSelector ||
- element.oMatchesSelector || element.matchesSelector;
-
- if (matchesSelector) {
- return matchesSelector.call(element, selector)
- }
- // fall back to performing a selector:
- var match, parent = element.parentNode, temp = !parent
- if (temp) (parent = tempParent).appendChild(element)
- match = ~qsa(parent, selector).indexOf(element)
- temp && tempParent.removeChild(element)
- return match
- }
-
- function qsa(element, selector){
- var found
- return (element === document && idSelectorRE.test(selector)) ?
- ( (found = element.getElementById(RegExp.$1)) ? [found] : emptyArray ) :
- (element.nodeType !== 1 && element.nodeType !== 9) ? emptyArray :
- slice.call(
- classSelectorRE.test(selector) ? element.getElementsByClassName(RegExp.$1) :
- tagSelectorRE.test(selector) ? element.getElementsByTagName(selector) :
- element.querySelectorAll(selector)
- )
- }
-
- function camelize(str) {
- return str.replace(/-+(.)?/g, function(match, chr){ return chr ? chr.toUpperCase() : '' });
- }
-
- ['width', 'height'].forEach(function(dimension){
- $.fn[dimension] = function(value){
-
- var body = document.body,
- html = document.documentElement,
- offset, Dimension = dimension.replace(/./, function(m){return m[0].toUpperCase()})
- if (value === undefined) return this[0] == window ? document.documentElement['client' + Dimension] :
- this[0] == document ? Math.max(body['scroll' + Dimension], body['offset' + Dimension], html['client' + Dimension], html['scroll' + Dimension], html['offset' + Dimension]) : //document.documentElement['offset' + Dimension] :
- (offset = this.offset()) && offset[dimension]
- else return this.each(function(idx){
- var el = $(this)
- el.css(dimension, value)
- })
- }
- });
-
- ['width', 'height'].forEach(function(dimension) {
- var offset, Dimension = dimension.replace(/./, function(m) {return m[0].toUpperCase()});
- $.fn['outer' + Dimension] = function(margin) {
- var elem = this;
- if (elem) {
- var size = elem[0]['offset' + Dimension];
- var sides = {'width': ['left', 'right'], 'height': ['top', 'bottom']};
- sides[dimension].forEach(function(side) {
- if (margin) size += parseInt(elem.css(camelize('margin-' + side)), 10);
- });
- return size;
- }
- else {
- return null;
- }
- };
- });
-
- ["Left", "Top"].forEach(function(name, i) {
- var method = "scroll" + name;
- function isWindow( obj ) {
- return obj && typeof obj === "object" && "setInterval" in obj;
- }
- function getWindow( elem ) {
- return isWindow( elem ) ? elem : elem.nodeType === 9 ? elem.defaultView || elem.parentWindow : false;
- }
-
- $.fn[method] = function( val ) {
- var elem, win;
- if (val === undefined) {
- elem = this[0];
- if (!elem) {
- return null;
- }
- win = getWindow(elem);
- // Return the scroll offset
- return win ? ("pageXOffset" in win) ? win[i ? "pageYOffset" : "pageXOffset"] :
- win.document.documentElement[method] ||
- win.document.body[method] :
- elem[method];
- }
-
- // Set the scroll offset
- this.each(function() {
- win = getWindow(this);
- if (win) {
- var xCoord = !i ? val : $(win).scrollLeft();
- var yCoord = i ? val : $(win).scrollTop();
- win.scrollTo(xCoord, yCoord);
- }
- else {
- this[method] = val;
- }
- });
- }
- });
-
- $.fn.is = function (selector) {
- return this.length > 0 && matches(this[0], selector);
- };
-
- $.fn.prop = function (name, value) {
- return (value === undefined) ? (this[0] ? this[0][name] : undefined) : this.each(function (idx) { this[name] = value; });
- };
-
- $.fn.focus = function (handler) {
- if (handler === undefined) {
- $(this).trigger('focus');
- } else {
- $(this).bind('focus', handler);
- }
- };
-
- $.fn.blur = function (handler) {
- if (handler === undefined) {
- $(this).trigger('blur');
- } else {
- $(this).bind('blur', handler);
- }
- };
-
- $.fn.click = function (handler) {
- if (handler === undefined) {
- $(this).trigger('click');
- } else {
- $(this).bind('click', handler);
- }
- };
-
- $.fn.eq = function (i) {
- return $($(this).get(i));
- };
-
- $.fn.index = function (element) {
- return element ? this.indexOf($(element)[0]) : this.length ? this.parent().children().indexOf(this[0]) : -1;
- };
-
- $.fn.slice = function () {
- return $(slice.apply(this, arguments));
- };
-
- $.fn.before = function (elm) {
- $(elm).insertBefore(this);
- return this;
- };
-
- $.fn.appendTo = function (elm) {
- $(elm).append(this);
- return this;
- };
-
- $.fn.pluck = function (property) {
- return this.map(function () { return this[property]; });
- };
-
- $.fn.prev = function () {
- var p = this.pluck('previousElementSibling');
- return p[0][0] ? $(p[0]) : $([]);
- };
-
- $.fn.next = function () {
- var n = this.pluck('nextElementSibling');
- return n[0][0] ? $(n[0]) : $([]);
- };
-
- $.inArray = function (value, array, fromIndex) {
- var i = fromIndex || 0;
- while (i < array.length) {
- if (array[i++] == value) {
- return --i;
- }
- }
- return -1;
- };
-
- $.isPlainObject = function (v) {
- return $.isObject(v);
- };
-
- $.fn._css = $.fn.css;
- $.fn.css = function (attr, val, obj) {
- if ($.isObject(attr)) {
- var i;
- for (i in attr) {
- $(this)._css(i, isNumeric(attr[i]) ? attr[i] + 'px' : attr[i], obj);
- }
- return this;
- } else {
- return $(this)._css(attr, isNumeric(val) ? val + 'px' : val, obj);
- }
- };
-
- $._extend = $.extend;
- $.extend = function () {
- arguments[0] = arguments[0] || {};
- return $._extend.apply(this, arguments);
- };
-
- })(jQuery);
-
-}
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.jqmwidget.js b/lib/mobiscroll-2.6.0/mobiscroll.jqmwidget.js
deleted file mode 100644
index 95ce9be86..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.jqmwidget.js
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
-Copyright (c) 2012 Sergio Gabriel Teves
-All rights reserved.
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-(function($, undefined ) {
-
- $.widget( "mobile.jqmMobiscroll", $.mobile.widget, {
- options: {
- theme: 'jqm',
- preset: 'date',
- animate: 'pop'
- },
- _create: function() {
- var input = this.element,
- o = $.extend(this.options, input.jqmData('options'));
- input.mobiscroll(o);
- }
- });
-
- $(document).bind("pagebeforecreate", function(c) {
- // Convert date inputs to normal inputs
- $('input[type="date"]:jqmData(role="mobiscroll")', c.target).prop('type', 'text');
- });
-
- $(document).bind("pagecreate create", function(c) {
- $(document).trigger("mobiscrollbeforecreate");
-
- $(':jqmData(role="mobiscroll")', c.target).each(function() {
- if (typeof ($(this).data("mobiscroll")) === "undefined") {
- $(this).jqmMobiscroll();
- }
- })
- });
-
-})( jQuery );
-
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.list.js b/lib/mobiscroll-2.6.0/mobiscroll.list.js
deleted file mode 100644
index 265f9c324..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.list.js
+++ /dev/null
@@ -1,404 +0,0 @@
-/*jslint eqeq: true, plusplus: true, undef: true, sloppy: true, vars: true, forin: true */
-(function ($) {
- var ms = $.mobiscroll,
- defaults = {
- invalid: [],
- showInput: true,
- inputClass: ''
- },
- preset = function (inst) {
- var orig = $.extend({}, inst.settings),
- s = $.extend(inst.settings, defaults, orig),
- elm = $(this),
- input,
- prevent,
- id = this.id + '_dummy',
- lvl = 0,
- ilvl = 0,
- timer = {},
- wa = s.wheelArray || createWheelArray(elm),
- labels = generateLabels(lvl),
- currWheelVector = [],
- fwv = firstWheelVector(wa),
- w = generateWheelsFromVector(fwv, lvl);
-
- /**
- * Disables the invalid items on the wheels
- * @param {Object} dw - the jQuery mobiscroll object
- * @param {Number} nrWheels - the number of the current wheels
- * @param {Array} whArray - The wheel array objects containing the wheel tree
- * @param {Array} whVector - the wheel vector containing the current keys
- */
- function setDisabled(dw, nrWheels, whArray, whVector) {
- var i = 0;
- while (i < nrWheels) {
- var currWh = $('.dwwl' + i, dw),
- inv = getInvalidKeys(whVector, i, whArray);
- $.each(inv, function (i, v) {
- $('.dw-li[data-val="' + v + '"]', currWh).removeClass('dw-v');
- });
- i++;
- }
- }
-
- /**
- * Returns the invalid keys of one wheel as an array
- * @param {Array} whVector - the wheel vector used to search for the wheel in the wheel array
- * @param {Number} index - index of the wheel in the wheel vector, that we are interested in
- * @param {Array} whArray - the wheel array we are searching in
- * @return {Array} - list of invalid keys
- */
- function getInvalidKeys(whVector, index, whArray) {
- var i = 0,
- n,
- whObjA = whArray,
- invalids = [];
-
- while (i < index) {
- var ii = whVector[i];
- //whObjA = whObjA[ii].children;
- for (n in whObjA) {
- if (whObjA[n].key == ii) {
- whObjA = whObjA[n].children;
- break;
- }
- }
- i++;
- }
- i = 0;
- while (i < whObjA.length) {
- if (whObjA[i].invalid) {
- invalids.push(whObjA[i].key);
- }
- i++;
- }
- return invalids;
- }
-
- /**
- * Creates a Boolean vector with true values (except one) that can be used as the readonly vector
- * n - the length of the vector
- * i - the index of the value that's going to be false
- */
- function createROVector(n, i) {
- var a = [];
- while (n) {
- a[--n] = true;
- }
- a[i] = false;
- return a;
- }
-
- /**
- * Creates a labels vector, from values if they are defined, otherwise from numbers
- * l - the length of the vector
- */
- function generateLabels(l) {
- var a = [],
- i;
- for (i = 0; i < l; i++) {
- a[i] = s.labels && s.labels[i] ? s.labels[i] : i;
- }
- return a;
- }
-
- /**
- * Creates the wheel array from the vector provided
- * wv - wheel vector containing the values that should be selected on the wheels
- * l - the length of the wheel array
- */
- function generateWheelsFromVector(wv, l, index) {
- var i = 0, j, obj, chInd,
- w = [],
- wtObjA = wa;
-
- if (l) { // if length is defined we need to generate that many wheels (even if they are empty)
- for (j = 0; j < l; j++) {
- w[j] = [{}];
- //w[j] = {};
- //w[j][labels[j]] = {}; // each wheel will have a label generated by the generateLabels method
- }
- }
- while (i < wv.length) { // we generate the wheels until the length of the wheel vector
- //w[i] = {};
- //w[i][labels[i]] = getWheelFromObjA(wtObjA);
- w[i] = [getWheelFromObjA(wtObjA, labels[i])];
-
- j = 0;
- chInd = undefined;
-
- while (j < wtObjA.length && chInd === undefined) {
- if (wtObjA[j].key == wv[i] && ((index !== undefined && i <= index) || index === undefined)) {
- chInd = j;
- }
- j++;
- }
-
- if (chInd !== undefined && wtObjA[chInd].children) {
- i++;
- wtObjA = wtObjA[chInd].children;
- } else if ((obj = getFirstValidItemObjOrInd(wtObjA)) && obj.children) {
- i++;
- wtObjA = obj.children;
- } else {
- return w;
- }
- }
- return w;
- }
-
- /**
- * Returns the first valid Wheel Node Object or its index from a Wheel Node Object Array
- * getInd - if it is true then the return value is going to be the index, otherwise the object itself
- */
- function getFirstValidItemObjOrInd(wtObjA, getInd) {
- if (!wtObjA) {
- return false;
- }
-
- var i = 0,
- obj;
-
- while (i < wtObjA.length) {
- if (!(obj = wtObjA[i++]).invalid) {
- return getInd ? i - 1 : obj;
- }
- }
- return false;
- }
-
- function getWheelFromObjA(objA, lbl) {
- var wheel = {
- keys: [],
- values: [],
- label: lbl
- },
- j = 0;
-
- while (j < objA.length) {
- wheel.values.push(objA[j].value);
- wheel.keys.push(objA[j].key);
- j++;
- //wheel[objA[j].key] = objA[j++].value;
- }
- return wheel;
- }
-
- /**
- * Hides the last i number of wheels
- * i - the last number of wheels that has to be hidden
- */
- function hideWheels(dw, i) {
- $('.dwc', dw).css('display', '').slice(i).hide();
- }
-
- /**
- * Generates the first wheel vector from the wheeltree
- * wt - the wheel tree object
- * uses the lvl global variable to determine the length of the vector
- */
- function firstWheelVector(wa) {
- var t = [],
- ndObjA = wa,
- obj,
- ok = true,
- i = 0;
-
- while (ok) {
- obj = getFirstValidItemObjOrInd(ndObjA);
- t[i++] = obj.key;
- if (ok = obj.children) {
- ndObjA = obj.children;
- }
- }
- return t;
- }
-
- /**
- * Calculates the level of a wheel vector and the new wheel vector, depending on current wheel vector and the index of the changed wheel
- * wv - current wheel vector
- * index - index of the changed wheel
- */
- function calcLevelOfVector2(wv, index) {
- var t = [],
- ndObjA = wa,
- lvl = 0,
- next = false,
- i,
- childName,
- chInd;
-
- if (wv[lvl] !== undefined && lvl <= index) {
- i = 0;
-
- childName = wv[lvl];
- chInd = undefined;
-
- while (i < ndObjA.length && chInd === undefined) {
- if (ndObjA[i].key == wv[lvl] && !ndObjA[i].invalid) {
- chInd = i;
- }
- i++;
- }
- } else {
- chInd = getFirstValidItemObjOrInd(ndObjA, true);
- childName = ndObjA[chInd].key;
- }
-
- next = chInd !== undefined ? ndObjA[chInd].children : false;
-
- t[lvl] = childName;
-
- while (next) {
- ndObjA = ndObjA[chInd].children;
- lvl++;
- next = false;
- chInd = undefined;
-
- if (wv[lvl] !== undefined && lvl <= index) {
- i = 0;
-
- childName = wv[lvl];
- chInd = undefined;
-
- while (i < ndObjA.length && chInd === undefined) {
- if (ndObjA[i].key == wv[lvl] && !ndObjA[i].invalid) {
- chInd = i;
- }
- i++;
- }
- } else {
- chInd = getFirstValidItemObjOrInd(ndObjA, true);
- chInd = chInd === false ? undefined : chInd;
- childName = ndObjA[chInd].key;
- }
- next = chInd !== undefined && getFirstValidItemObjOrInd(ndObjA[chInd].children) ? ndObjA[chInd].children : false;
- t[lvl] = childName;
- }
- return {
- lvl: lvl + 1,
- nVector: t
- }; // return the calculated level and the wheel vector as an object
- }
-
- function createWheelArray(ul) {
- var wheelArray = [];
-
- lvl = lvl > ilvl++ ? lvl : ilvl;
-
- ul.children('li').each(function (index) {
- var that = $(this),
- c = that.clone();
-
- c.children('ul,ol').remove();
-
- var v = c.html().replace(/^\s\s*/, '').replace(/\s\s*$/, ''),
- inv = that.data('invalid') ? true : false,
- wheelObj = {
- key: that.data('val') || index,
- value: v,
- invalid: inv,
- children: null
- },
- nest = that.children('ul,ol');
-
- if (nest.length) {
- wheelObj.children = createWheelArray(nest);
- }
-
- wheelArray.push(wheelObj);
- });
-
- ilvl--;
- return wheelArray;
- }
-
- $('#' + id).remove(); // Remove input if exists
-
- if (s.showInput) {
- input = $('<input type="text" id="' + id + '" value="" class="' + s.inputClass + '" readonly />').insertBefore(elm);
- inst.settings.anchor = input; // give the core the input element for the bubble positioning
-
- if (s.showOnFocus) {
- input.focus(function () {
- inst.show();
- });
- }
- }
-
- if (!s.wheelArray) {
- elm.hide().closest('.ui-field-contain').trigger('create');
- }
-
- return {
- width: 50,
- wheels: w,
- headerText: false,
- onBeforeShow: function (dw) {
- var t = inst.temp;
- currWheelVector = t.slice(0);
- inst.settings.wheels = generateWheelsFromVector(t, lvl, lvl);
- prevent = true;
- },
- onSelect: function (v, inst) {
- if (input) {
- input.val(v);
- }
- },
- onChange: function (v, inst) {
- if (input && s.display == 'inline') {
- input.val(v);
- }
- },
- onClose: function () {
- if (input) {
- input.blur();
- }
- },
- onShow: function (dw) {
- $('.dwwl', dw).bind('mousedown touchstart', function () {
- clearTimeout(timer[$('.dwwl', dw).index(this)]);
- });
- },
- validate: function (dw, index, time) {
- var t = inst.temp;
- if ((index !== undefined && currWheelVector[index] != t[index]) || (index === undefined && !prevent)) {
- inst.settings.wheels = generateWheelsFromVector(t, null, index);
- var args = [],
- i = (index || 0) + 1,
- o = calcLevelOfVector2(t, index);
- if (index !== undefined) {
- inst.temp = o.nVector.slice(0);
- }
- while (i < o.lvl) {
- args.push(i++);
- }
- hideWheels(dw, o.lvl);
- currWheelVector = inst.temp.slice(0);
- if (args.length) {
- prevent = true;
- inst.settings.readonly = createROVector(lvl, index);
- clearTimeout(timer[index]);
- timer[index] = setTimeout(function () {
- inst.changeWheel(args);
- inst.settings.readonly = false;
- }, time * 1000);
- return false;
- }
- setDisabled(dw, o.lvl, wa, inst.temp);
- } else {
- var o = calcLevelOfVector2(t, t.length);
- setDisabled(dw, o.lvl, wa, t);
- hideWheels(dw, o.lvl);
- }
- prevent = false;
- }
- };
- };
-
- $.each(['list', 'image', 'treelist'], function (i, v) {
- ms.presets[v] = preset;
- ms.presetShort(v);
- });
-
-})(jQuery);
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.select.js b/lib/mobiscroll-2.6.0/mobiscroll.select.js
deleted file mode 100644
index 14ba28836..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.select.js
+++ /dev/null
@@ -1,351 +0,0 @@
-/*jslint eqeq: true, plusplus: true, undef: true, sloppy: true, vars: true, forin: true */
-(function ($) {
-
- var defaults = {
- inputClass: '',
- invalid: [],
- rtl: false,
- group: false,
- groupLabel: 'Groups'
- };
-
- $.mobiscroll.presetShort('select');
-
- $.mobiscroll.presets.select = function (inst) {
- var orig = $.extend({}, inst.settings),
- s = $.extend(inst.settings, defaults, orig),
- elm = $(this),
- multiple = elm.prop('multiple'),
- id = this.id + '_dummy',
- option = multiple ? (elm.val() ? elm.val()[0] : $('option', elm).attr('value')) : elm.val(),
- group = elm.find('option[value="' + option + '"]').parent(),
- prev = group.index() + '',
- gr = prev,
- prevent,
- l1 = $('label[for="' + this.id + '"]').attr('for', id),
- l2 = $('label[for="' + id + '"]'),
- label = s.label !== undefined ? s.label : (l2.length ? l2.text() : elm.attr('name')),
- invalid = [],
- origValues = [],
- main = {},
- grIdx,
- optIdx,
- timer,
- input,
- roPre = s.readonly,
- w;
-
- function genWheels() {
- var cont,
- wg = 0,
- values = [],
- keys = [],
- w = [[]];
-
- if (s.group) {
- if (s.rtl) {
- wg = 1;
- }
-
- $('optgroup', elm).each(function (i) {
- values.push($(this).attr('label'));
- keys.push(i);
- });
-
- w[wg] = [{
- values: values,
- keys: keys,
- label: label
- }];
-
- cont = group;
- wg += (s.rtl ? -1 : 1);
-
- } else {
- cont = elm;
- }
-
- values = [];
- keys = [];
-
- $('option', cont).each(function () {
- var v = $(this).attr('value');
- values.push($(this).text());
- keys.push(v);
- if ($(this).prop('disabled')) {
- invalid.push(v);
- }
- });
-
- w[wg] = [{
- values: values,
- keys: keys,
- label: label
- }];
-
- return w;
- }
-
- function setVal(v, fill) {
- var value = [];
-
- if (multiple) {
- var sel = [],
- i = 0;
-
- for (i in inst._selectedValues) {
- sel.push(main[i]);
- value.push(i);
- }
- input.val(sel.join(', '));
- } else {
- input.val(v);
- value = fill ? inst.values[optIdx] : null;
- }
-
- if (fill) {
- prevent = true;
- elm.val(value).trigger('change');
- }
- }
-
- // if groups is true and there are no groups fall back to no grouping
- if (s.group && !$('optgroup', elm).length) {
- s.group = false;
- }
-
- if (!s.invalid.length) {
- s.invalid = invalid;
- }
-
- if (s.group) {
- if (s.rtl) {
- grIdx = 1;
- optIdx = 0;
- } else {
- grIdx = 0;
- optIdx = 1;
- }
- } else {
- grIdx = -1;
- optIdx = 0;
- }
-
- $('#' + id).remove();
-
- input = $('<input type="text" id="' + id + '" class="' + s.inputClass + '" readonly />').insertBefore(elm),
-
- $('option', elm).each(function () {
- main[$(this).attr('value')] = $(this).text();
- });
-
- if (s.showOnFocus) {
- input.focus(function () {
- inst.show();
- });
- }
-
- var v = elm.val() || [],
- i = 0;
-
- for (i; i < v.length; i++) {
- inst._selectedValues[v[i]] = v[i];
- }
-
- setVal(main[option]);
-
- elm.unbind('.dwsel').bind('change.dwsel', function () {
- if (!prevent) {
- inst.setValue(multiple ? elm.val() || [] : [elm.val()], true);
- }
- prevent = false;
- }).hide().closest('.ui-field-contain').trigger('create');
-
- // Extended methods
- // ---
-
- if (!inst._setValue) {
- inst._setValue = inst.setValue;
- }
-
- inst.setValue = function (d, fill, time, noscroll, temp) {
- var value,
- v = $.isArray(d) ? d[0] : d;
-
- option = v !== undefined ? v : $('option', elm).attr('value');
-
- if (multiple) {
- inst._selectedValues = {};
- var i = 0;
- for (i; i < d.length; i++) {
- inst._selectedValues[d[i]] = d[i];
- }
- }
-
- if (s.group) {
- group = elm.find('option[value="' + option + '"]').parent();
- gr = group.index();
- value = s.rtl ? [option, group.index()] : [group.index(), option];
- if (gr !== prev) { // Need to regenerate wheels, if group changed
- s.wheels = genWheels();
- inst.changeWheel([optIdx]);
- prev = gr + '';
- }
- } else {
- value = [option];
- }
-
- inst._setValue(value, fill, time, noscroll, temp);
-
- // Set input/select values
- if (fill) {
- var changed = multiple ? true : option !== elm.val();
- setVal(main[option], changed);
- }
- };
-
- inst.getValue = function (temp) {
- var val = temp ? inst.temp : inst.values;
- return val[optIdx];
- };
-
- // ---
-
- return {
- width: 50,
- wheels: w,
- headerText: false,
- multiple: multiple,
- anchor: input,
- formatResult: function (d) {
- return main[d[optIdx]];
- },
- parseValue: function () {
- var v = elm.val() || [],
- i = 0;
-
- if (multiple) {
- inst._selectedValues = {};
- for (i; i < v.length; i++) {
- inst._selectedValues[v[i]] = v[i];
- }
- }
-
- option = multiple ? (elm.val() ? elm.val()[0] : $('option', elm).attr('value')) : elm.val();
-
- group = elm.find('option[value="' + option + '"]').parent();
- gr = group.index();
- prev = gr + '';
- return s.group && s.rtl ? [option, gr] : s.group ? [gr, option] : [option];
- },
- validate: function (dw, i, time) {
- if (i === undefined && multiple) {
- var v = inst._selectedValues,
- j = 0;
-
- $('.dwwl' + optIdx + ' .dw-li', dw).removeClass('dw-msel');
-
- for (j in v) {
- $('.dwwl' + optIdx + ' .dw-li[data-val="' + v[j] + '"]', dw).addClass('dw-msel');
- }
- }
-
- if (i === grIdx) {
- gr = inst.temp[grIdx];
- if (gr !== prev) {
- group = elm.find('optgroup').eq(gr);
- gr = group.index();
- option = group.find('option').eq(0).val();
- option = option || elm.val();
- s.wheels = genWheels();
- if (s.group) {
- inst.temp = s.rtl ? [option, gr] : [gr, option];
- s.readonly = [s.rtl, !s.rtl];
- clearTimeout(timer);
- timer = setTimeout(function () {
- inst.changeWheel([optIdx]);
- s.readonly = roPre;
- prev = gr + '';
- }, time * 1000);
- return false;
- }
- } else {
- s.readonly = roPre;
- }
- } else {
- option = inst.temp[optIdx];
- }
-
- var t = $('.dw-ul', dw).eq(optIdx);
- $.each(s.invalid, function (i, v) {
- $('.dw-li[data-val="' + v + '"]', t).removeClass('dw-v');
- });
- },
- onBeforeShow: function (dw) {
- s.wheels = genWheels();
- if (s.group) {
- inst.temp = s.rtl ? [option, group.index()] : [group.index(), option];
- }
- },
- onMarkupReady: function (dw) {
- $('.dwwl' + grIdx, dw).bind('mousedown touchstart', function () {
- clearTimeout(timer);
- });
- if (multiple) {
- dw.addClass('dwms');
- $('.dwwl', dw).eq(optIdx).addClass('dwwms');
- origValues = {};
- var i;
- for (i in inst._selectedValues) {
- origValues[i] = inst._selectedValues[i];
- }
- }
- },
- onValueTap: function (li) {
- if (multiple && li.hasClass('dw-v') && li.closest('.dw').find('.dw-ul').index(li.closest('.dw-ul')) == optIdx) {
- var val = li.attr('data-val');
- if (li.hasClass('dw-msel')) {
- delete inst._selectedValues[val];
- } else {
- inst._selectedValues[val] = val;
- }
- li.toggleClass('dw-msel');
-
- if (s.display == 'inline') {
- setVal(val, true);
- }
- return false;
- }
- },
- onSelect: function (v) {
- setVal(v, true);
- if (s.group) {
- inst.values = null;
- }
- },
- onCancel: function () {
- if (s.group) {
- inst.values = null;
- }
- if (multiple) {
- inst._selectedValues = {};
- var i;
- for (i in origValues) {
- inst._selectedValues[i] = origValues[i];
- }
- }
- },
- onChange: function (v) {
- if (s.display == 'inline' && !multiple) {
- input.val(v);
- prevent = true;
- elm.val(inst.temp[optIdx]).trigger('change');
- }
- },
- onClose: function () {
- input.blur();
- }
- };
- };
-
-})(jQuery);
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.sense-ui.css b/lib/mobiscroll-2.6.0/mobiscroll.sense-ui.css
deleted file mode 100644
index e856fce6d..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.sense-ui.css
+++ /dev/null
@@ -1,61 +0,0 @@
-/* Sense UI Skin */
-.sense-ui .dw {
- padding: 0;
- background: #333;
- border: 2px solid #fff;
- color: #fff;
-}
-.sense-ui .dwwr {
- padding: 0;
-}
-.sense-ui .dwv {
- padding: 5px 10px;
- border-bottom: 1px solid #666;
- text-align: left;
-}
-.sense-ui .dwwc {
- background: #333;
-}
-.sense-ui .dw .dwpm .dwwl,
-.sense-ui .dw .dwpm .dww {
- background: #fff;
- border: 0;
- padding: 0;
-}
-.sense-ui .dwbc {
- padding: 5px 1px;
- background: #000;
- background: linear-gradient(#666 50%,#000 50%);
- background: -webkit-gradient(linear,left bottom,left top,color-stop(0.5, #000),color-stop(0.5, #666));
- background: -moz-linear-gradient(#666 50%,#000 50%);
- background: -o-linear-gradient(#666 50%,#000 50%);
-}
-.sense-ui .dw .dwb {
- margin: 0 5px;
- border: 1px solid #333;
- background: #222;
- background: linear-gradient(#444,#000);
- background: -webkit-gradient(linear,left bottom,left top,from(#000),to(#444));
- background: -moz-linear-gradient(#444,#000);
- background: -o-linear-gradient(#444,#000);
- box-shadow: inset 0 0 5px #000;
-}
-.sense-ui .dw .dwb-a {
- background: #3c7500;
- background: linear-gradient(#94c840,#3c7500);
- background: -webkit-gradient(linear,left bottom,left top,from(#3c7500),to(#94c840));
- background: -moz-linear-gradient(#94c840,#3c7500);
- background: -o-linear-gradient(#94c840,#3c7500);
-}
-/* Docked */
-.sense-ui.dw-top .dw {
- border: 0;
- border-radius: 0;
- -webkit-border-radius: 0;
-}
-.sense-ui.dw-bottom .dw {
- border: 0;
- border-top: 1px solid #666;
- border-radius: 0;
- -webkit-border-radius: 0;
-}
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.wp.css b/lib/mobiscroll-2.6.0/mobiscroll.wp.css
deleted file mode 100644
index fd237dcf6..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.wp.css
+++ /dev/null
@@ -1,404 +0,0 @@
-.wp .dw {
- background: #1f1f1f;
- border-radius: 0;
- -webkit-border-radius: 0;
-}
-.wp .dwwr {
- padding: 10px;
-}
-.wp .dwv {
- display: none;
-}
-.wp .dwc {
- padding: 30px 0 0 0;
- vertical-align: middle;
-}
-.wp .dwhl {
- padding: 0;
-}
-.wp .dwwc {
- padding: 3px;
- background: none;
-}
-.wp .dwwl {
- margin: 0;
- padding: 0 2px;
- background: none;
-}
-.wp .dwl {
- color: #fff;
-}
-.wp .dw .dwwl .dww {
- background: none;
- border: 0;
- color: #fff;
-}
-.wp .dw-li {
- position: relative;
- padding: 0;
- font-size: 26px;
- letter-spacing: -1px;
- text-align: left;
- text-shadow: none;
- opacity: 0;
- box-sizing: border-box;
- filter: Alpha(Opacity=0);
- /*transition: opacity .3s linear;*/
- -webkit-box-sizing: border-box;
- /*-webkit-transition: opacity .3s linear;*/
- -moz-box-sizing: border-box;
- /*-moz-transition: opacity .3s linear;*/
-}
-.wp .dw-i {
- position: relative;
- top: 4%;
- height: 92%;
- padding: 0 5px;
- border: 1px solid #4c4c4c;
- box-sizing: border-box;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- filter: inherit;
-}
-.wp .wpa .dw-li, .wp .dwa .dw-li {
- opacity: .3;
- filter: Alpha(Opacity=30);
-}
-.wp .wpa .dw-v, .wp .dwa .dw-v, .wp .wpam .dw-v {
- opacity: 1;
- filter: Alpha(Opacity=100);
-}
-.wp .dw-day, .wp .dw-mon {
- display: block;
- color: #a9a9a9;
- line-height: 18px;
- font-size: 11px;
- letter-spacing: normal;
- position: absolute;
- bottom: 0;
- filter: inherit;
-}
-.wp .dw-sel {
- opacity: 1;
- filter: Alpha(Opacity=100);
-}
-.wp .dw .dw-sel .dw-i {
- color: #fff;
- background: #4c4c4c;
- /*transition: all .1s linear;
- -webkit-transition: all .1s linear;
- -moz-transition: all .1s linear;*/
-}
-.wp .dw-sel .dw-day, .wp .dw-sel .dw-mon {
- color: #fff;
-}
-.wp .dw-hl {
- background: none;
-}
-.wp .dw-hl .dw-i {
- background: #4c4c4c;
-}
-.wp .dwa .dww .dw-sel .dw-i {
- border: 1px solid #4c4c4c;
- background-color: transparent;
-}
-.wp .dwa .dw-day, .wp .dwa .dw-month {
- color: #a9a9a9;
-}
-.wp .dwwo {
- display: none;
-}
-.wp .dwwol {
- display: none;
-}
-.wp .dwbc {
- padding: 0;
-}
-.wp .dwbw {
- float: none;
- width: auto;
-}
-.wp .dw .dwb {
- position: relative;
- top: 0;
- min-width: 32px;
- display: inline-block;
- height: 20px;
- padding: 29px 5px 0 5px;
- background: none;
- box-shadow: none;
- line-height: 20px;
- font-size: 11px;
- font-weight: normal;
- text-transform: lowercase;
- text-shadow: none;
- transition: top .1s linear;
- -webkit-box-shadow: none;
- -webkit-transition: top .1s linear;
- -moz-transition: top .1s linear;
-}
-.wp .dwb:after {
- content: '';
- position: absolute;
- top: 3px;
- left: 50%;
- width: 26px;
- height: 26px;
- margin: 0 -13px;
- background: url(wp_icons.png) center center no-repeat;
-}
-.wp .dwb-s .dwb:after {
- background-position: 0 0;
-}
-.wp .dwb-c .dwb:after {
- background-position: -26px 0;
-}
-.wp .dwb-n .dwb:after {
- background-position: -52px 0;
-}
-.wp .dwb-s .dwb-a:after {
- background-position: 0 -26px;
-}
-.wp .dwb-c .dwb-a:after {
- background-position: -26px -26px;
-}
-.wp .dwb-n .dwb-a:after {
- background-position: -52px -26px;
-}
-.wp .dwb.dwb-a {
- top: -3px;
-}
-/* +/- buttons */
-.wp .dw .dwwl .dwb-a {
- background: #1f1f1f;
-}
-.wp .dw .dwpm .dwwl {
- border: 0;
-}
-.wp .dw .dwwb {
- background: #1f1f1f;
- border-radius: 0;
- box-shadow: none;
- box-sizing: border-box;
- color: #a9a9a9;
- -webkit-box-shadow: none;
- -webkit-border-radius: 0;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
-}
-.wp .dwwb span {
- position: absolute;
- top: 50%;
- left: 50%;
- width: 26px;
- height: 0;
- padding-top: 26px;
- overflow: hidden;
- margin: -13px;
- display: block;
- background: url(wp_icons.png) center center no-repeat;
-}
-.wp .dwwbp span {
- background-position: -78px 0;
-}
-.wp .dwwbp.dwb-a span {
- background-position: -78px -26px;
-}
-.wp .dwwbm span {
- background-position: -104px 0;
-}
-.wp .dwwbm.dwb-a span {
- background-position: -104px -26px;
-}
-/* Bubble positioning */
-.wp .dw-bubble-bottom .dw-arr {
- border-color: transparent transparent #1f1f1f transparent;
-}
-.wp .dw-bubble-top .dw-arr {
- border-color: #1f1f1f transparent transparent transparent;
-}
-/* Multiple select */
-.wp .dwwms .dw-li {
- opacity: .3;
- filter: Alpha(Opacity=30);
- padding: 0 0 0 30px;
-}
-.wp .dwwms .dw-v {
- opacity: 1;
- filter: Alpha(Opacity=100);
-}
-.wp .dwc .dwwms .dw-i,
-.wp .dwc .dwwms .dw-sel .dw-i,
-.wp .dwc .dwwms .dw-hl .dw-i,
-.wp .dwc .dwwms.dwa .dw-sel .dw-i {
- border: 0;
- background: none;
-}
-.wp .dwwms .dw-li:after {
- content: '';
- position: absolute;
- top: 50%;
- left: 5px;
- width: 20px;
- height: 20px;
- margin-top: -10px;
- font-size: 18px;
- line-height: 20px;
- background: #4c4c4c;
- color: #fff;
-}
-.wp .dwwms .dw-msel:after {
- content: '✔';
-}
-/* Light version */
-.wp.light .dw {
- background: #dedede;
-}
-.wp.light .dwv,
-.wp.light .dwl,
-.wp.light .dwb {
- color: #000;
-}
-.wp.light .dw-li {
- color: #6b6b6b;
-}
-.wp.light .dw-i {
- border-color: #b5b5b5;
-}
-.wp.light .dw-sel .dw-i {
- background: #b5b5b5;
-}
-.wp.light .dw-hl .dw-i {
- color: #fff;
- background: #b5b5b5;
-}
-.wp.light .dw-day, .wp.light .dw-mon {
- color: #6b6b6b;
-}
-.wp.light .dw-sel .dw-day, .wp.light .dw-sel .dw-mon {
- color: #fff;
-}
-.wp.light .dw .dwa .dw-sel .dw-i {
- color: #6b6b6b;
- border: 1px solid #b5b5b5;
- background-color: transparent;
-}
-.wp.light .dw .dwc .dwa .dw-day, .wp.light .dw .dwc .dwa .dw-mon {
- color: #6b6b6b;
-}
-.wp.light .dwb:after {
- background-image: url(wp_icons_light.png);
-}
-.wp.light .dw .dwwb {
- background: #dedede;
-}
-.wp.light .dwwb span {
- background-image: url(wp_icons_light.png);
-}
-/* Bubble positioning */
-.wp.light .dw-bubble-bottom .dw-arr {
- border-color: transparent transparent #dedede transparent;
-}
-.wp.light .dw-bubble-top .dw-arr {
- border-color: #dedede transparent transparent transparent;
-}
-/* Multiple select */
-.wp.light .dwc .dwwms .dw-i,
-.wp.light .dwwms.dwa .dw-sel .dw-i {
- border: 0;
- background: none;
- color: #000;
-}
-.wp.light .dwwms .dw-li:after {
- background: #b5b5b5;
-}
-.wp.light .wp-none .dwwms .dw-li:after {
- color: #000;
-}
-/* Accents */
-.wp.light .wp-none .dw-sel .dw-i, .wp.light .wp-none .dw-hl .dw-i {
- color: #000;
-}
-.wp.light .wp-none .dw-day, .wp.light .wp-none .dw-mon {
- color: #6b6b6b;
-}
-.wp .wp-lime .dw-sel .dw-i, .wp .wp-lime .dw-hl .dw-i, .wp .wp-lime .dwwms .dw-li:after {
- background: #a4c400;
- border-color: #a4c400;
-}
-.wp .wp-green .dw-sel .dw-i, .wp .wp-green .dw-hl .dw-i, .wp .wp-green .dwwms .dw-li:after {
- background: #60a917;
- border-color: #60a917;
-}
-.wp .wp-emerald .dw-sel .dw-i, .wp .wp-emerald .dw-hl .dw-i, .wp .wp-emerald .dwwms .dw-li:after {
- background: #008a00;
- border-color: #008a00;
-}
-.wp .wp-teal .dw-sel .dw-i, .wp .wp-teal .dw-hl .dw-i, .wp .wp-teal .dwwms .dw-li:after {
- background: #00aba9;
- border-color: #00aba9;
-}
-.wp .wp-cyan .dw-sel .dw-i, .wp .wp-cyan .dw-hl .dw-i, .wp .wp-cyan .dwwms .dw-li:after {
- background: #1ba1e2;
- border-color: #1ba1e2;
-}
-.wp .wp-cobalt .dw-sel .dw-i, .wp .wp-cobalt .dw-hl .dw-i, .wp .wp-cobalt .dwwms .dw-li:after {
- background: #0050ef;
- border-color: #0050ef;
-}
-.wp .wp-indigo .dw-sel .dw-i, .wp .wp-indigo .dw-hl .dw-i, .wp .wp-indigo .dwwms .dw-li:after {
- background: #6a00ff;
- border-color: #6a00ff;
-}
-.wp .wp-violet .dw-sel .dw-i, .wp .wp-violet .dw-hl .dw-i, .wp .wp-violet .dwwms .dw-li:after {
- background: #aa00ff;
- border-color: #aa00ff;
-}
-.wp .wp-pink .dw-sel .dw-i, .wp .wp-pink .dw-hl .dw-i, .wp .wp-pink .dwwms .dw-li:after {
- background: #f472d0;
- border-color: #f472d0;
-}
-.wp .wp-magenta .dw-sel .dw-i, .wp .wp-magenta .dw-hl .dw-i, .wp .wp-magenta .dwwms .dw-li:after {
- background: #d80073;
- border-color: #d80073;
-}
-.wp .wp-crimson .dw-sel .dw-i, .wp .wp-crimson .dw-hl .dw-i, .wp .wp-crimson .dwwms .dw-li:after {
- background: #a20025;
- border-color: #a20025;
-}
-.wp .wp-red .dw-sel .dw-i, .wp .wp-red .dw-hl .dw-i, .wp .wp-red .dwwms .dw-li:after {
- background: #e51400;
- border-color: #e51400;
-}
-.wp .wp-orange .dw-sel .dw-i, .wp .wp-orange .dw-hl .dw-i, .wp .wp-orange .dwwms .dw-li:after {
- background: #fa6800;
- border-color: #fa6800;
-}
-.wp .wp-amber .dw-sel .dw-i, .wp .wp-amber .dw-hl .dw-i, .wp .wp-amber .dwwms .dw-li:after {
- background: #f0a30a;
- border-color: #f0a30a;
-}
-.wp .wp-yellow .dw-sel .dw-i, .wp .wp-yellow .dw-hl .dw-i, .wp .wp-yellow .dwwms .dw-li:after {
- background: #d8c100;
- border-color: #d8c100;
-}
-.wp .wp-brown .dw-sel .dw-i, .wp .wp-brown .dw-hl .dw-i, .wp .wp-brown .dwwms .dw-li:after {
- background: #825a2c;
- border-color: #825a2c;
-}
-.wp .wp-olive .dw-sel .dw-i, .wp .wp-olive .dw-hl .dw-i, .wp .wp-olive .dwwms .dw-li:after {
- background: #6d8764;
- border-color: #6d8764;
-}
-.wp .wp-steel .dw-sel .dw-i, .wp .wp-steel .dw-hl .dw-i, .wp .wp-steel .dwwms .dw-li:after {
- background: #647687;
- border-color: #647687;
-}
-.wp .wp-mauve .dw-sel .dw-i, .wp .wp-mauve .dw-hl .dw-i, .wp .wp-mauve .dwwms .dw-li:after {
- background: #76608a;
- border-color: #76608a;
-}
-.wp .wp-sienna .dw-sel .dw-i, .wp .wp-sienna .dw-hl .dw-i, .wp .wp-sienna .dwwms .dw-li:after {
- background: #7a3b3f;
- border-color: #7a3b3f;
-}
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.wp.js b/lib/mobiscroll-2.6.0/mobiscroll.wp.js
deleted file mode 100644
index a6bd5d965..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.wp.js
+++ /dev/null
@@ -1,48 +0,0 @@
-(function ($) {
-
- var anim;
-
- $.mobiscroll.themes.wp = {
- defaults: {
- width: 70,
- height: 76,
- accent: 'none',
- dateOrder: 'mmMMddDDyy',
- showLabel: false,
- onAnimStart: function (dw, i, time) {
- $('.dwwl' + i, dw).addClass('wpam');
- clearTimeout(anim[i]);
- anim[i] = setTimeout(function () {
- $('.dwwl' + i, dw).removeClass('wpam');
- }, time * 1000 + 100);
- }
- },
- init: function (elm, inst) {
- var click,
- active;
-
- anim = {};
-
- $('.dw', elm).addClass('wp-' + inst.settings.accent);
-
- //$('.dwwl', elm).bind('touchstart mousedown DOMMouseScroll mousewheel', function () {
- $('.dwwl', elm).delegate('.dw-sel', 'touchstart mousedown DOMMouseScroll mousewheel', function () {
- click = true;
- active = $(this).closest('.dwwl').hasClass('wpa');
- $('.dwwl', elm).removeClass('wpa');
- $(this).closest('.dwwl').addClass('wpa');
- }).bind('touchmove mousemove', function () {
- click = false;
- }).bind('touchend mouseup', function () {
- if (click && active) {
- $(this).closest('.dwwl').removeClass('wpa');
- }
- });
- }
- };
-
- $.mobiscroll.themes['wp light'] = $.mobiscroll.themes.wp;
-
-})(jQuery);
-
-
diff --git a/lib/mobiscroll-2.6.0/mobiscroll.zepto.js b/lib/mobiscroll-2.6.0/mobiscroll.zepto.js
deleted file mode 100644
index b693f6228..000000000
--- a/lib/mobiscroll-2.6.0/mobiscroll.zepto.js
+++ /dev/null
@@ -1,91 +0,0 @@
-/*jslint eqeq: true, plusplus: true, undef: true, sloppy: true, vars: true, forin: true */
-if (!window['jQuery']) {
-
- var jQuery = Zepto;
-
- (function ($) {
-
- ['width', 'height'].forEach(function(dimension){
- $.fn[dimension] = function(value){
- var body = document.body,
- html = document.documentElement,
- offset, Dimension = dimension.replace(/./, function(m){return m[0].toUpperCase()})
- if (value === undefined) return this[0] == window ? html['client' + Dimension] :
- this[0] == document ? Math.max(body['scroll' + Dimension], body['offset' + Dimension], html['client' + Dimension], html['scroll' + Dimension], html['offset' + Dimension]) :
- (offset = this.offset()) && offset[dimension]
- else return this.each(function(idx){
- var el = $(this)
- el.css(dimension, value)
- })
- }
- });
-
- ['width', 'height'].forEach(function (dimension) {
- var offset, Dimension = dimension.replace(/./, function (m) { return m[0].toUpperCase(); });
- $.fn['outer' + Dimension] = function (margin) {
- var elem = this;
- if (elem) {
- var size = elem[0]['offset' + Dimension],
- sides = {'width': ['left', 'right'], 'height': ['top', 'bottom']};
- sides[dimension].forEach(function (side) {
- if (margin) {
- size += parseInt(elem.css('margin-' + side), 10);
- }
- });
- return size;
- } else {
- return null;
- }
- };
- });
-
- ["Left", "Top"].forEach(function (name, i) {
- var method = "scroll" + name;
-
- function isWindow(obj) {
- return obj && typeof obj === "object" && "setInterval" in obj;
- }
-
- function getWindow(elem) {
- return isWindow(elem) ? elem : elem.nodeType === 9 ? elem.defaultView || elem.parentWindow : false;
- }
-
- $.fn[method] = function (val) {
- var elem, win;
- if (val === undefined) {
- elem = this[0];
- if (!elem) {
- return null;
- }
- win = getWindow(elem);
- // Return the scroll offset
- return win ? ("pageXOffset" in win) ? win[i ? "pageYOffset" : "pageXOffset"] :
- win.document.documentElement[method] ||
- win.document.body[method] :
- elem[method];
- }
-
- // Set the scroll offset
- this.each(function () {
- win = getWindow(this);
- if (win) {
- var xCoord = !i ? val : $(win).scrollLeft(),
- yCoord = i ? val : $(win).scrollTop();
- win.scrollTo(xCoord, yCoord);
- } else {
- this[method] = val;
- }
- });
- };
- });
-
- // Fix zepto.js extend to work with undefined parameter
- $._extend = $.extend;
- $.extend = function () {
- arguments[0] = arguments[0] || {};
- return $._extend.apply(this, arguments);
- };
-
- })(jQuery);
-
-}
\ No newline at end of file
diff --git a/lib/mobiscroll-2.6.0/wp_icons.png b/lib/mobiscroll-2.6.0/wp_icons.png
deleted file mode 100644
index 22b1d7c43..000000000
Binary files a/lib/mobiscroll-2.6.0/wp_icons.png and /dev/null differ
diff --git a/lib/mobiscroll-2.6.0/wp_icons_light.png b/lib/mobiscroll-2.6.0/wp_icons_light.png
deleted file mode 100644
index 442fd7467..000000000
Binary files a/lib/mobiscroll-2.6.0/wp_icons_light.png and /dev/null differ
diff --git a/package.json b/package.json
index 1d5c919a9..4342e2ab1 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,9 @@
"preinstall": "node version-check.js",
"start": "node ./bin/www",
"test": "grunt test lint",
+ "lint": "run-s lint:*",
+ "lint:css": "grunt stylelint",
+ "lint:js": "grunt eslint",
"e2e": "run-s --print-name --continue-on-error --silent e2e:*",
"e2e:chrome": "nightwatch -e chrome",
"e2e:firefox": "nightwatch -e firefox --skiptags wip",
diff --git a/web/pages/worldview-opensourcelibs.html b/web/pages/worldview-opensourcelibs.html
deleted file mode 100644
index 7f000ebb8..000000000
--- a/web/pages/worldview-opensourcelibs.html
+++ /dev/null
@@ -1,607 +0,0 @@
-<!doctype html>
-<html>
-<head>
- <title>@LONG_NAME@ - Acknowledgement of Open Source Libraries</title>
- <link type="text/css" href="css/wv.document.css?v=@BUILD_NONCE@" rel="Stylesheet" />
- <link type="text/css" href="css/wv.standalone.css?v=@BUILD_NONCE@" rel="Stylesheet" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
-</head>
-
-<body>
- <div id="page" class="wv-document">
- <h1>@LONG_NAME@</h1>
- <h2>Acknowledgement of Open Source Libraries</h2>
-
- <hr/>
- <h4>Lo-Dash</h4>
- <p>
- <a href="http://lodash.com/">
- http://lodash.com
- </a>
- <br/>
- <a href="https://github.com/lodash/lodash">
- https://github.com/lodash/lodash
- </a>
- </p>
- <p>
- Licensed under the MIT license
- <br/>
- Copyright &copy; 2012-2015 The Dojo Foundation
- <a href="http://dojofoundation.org">
- &lt;http://dojofoundation.org&gt;
- </a>
- </p>
-
- <hr/>
- <h4>jQuery: A fast, small, and feature-rich JavaScript library</h4>
- <p>
- <a href="http://jquery.com/">
- http://jquery.com/
- </a>
- <br/>
- <a href="http://jqueryui.com/">
- http://jqueryui.com/
- </a>
- </p>
- <p>
- <a href="https://github.com/jquery/jquery">
- https://github.com/jquery/jquery
- </a>
- <br/>
- <a href="https://github.com/jquery/jquery-ui">
- https://github.com/jquery/jquery-ui
- </a>
- </p>
- <p>
- You may use any jQuery project under the terms of the MIT License.
- <br/>
- Copyright &copy; 2015 jQuery Foundation and other contributors
- </p>
-
- <hr/>
- <h4>OpenLayers: Free Maps for the Web</h4>
- <p>
- <a href="http://openlayers.org/">
- http://openlayers.org/
- </a>
- <br/>
- <a href="https://github.com/openlayers/ol3">
- https://github.com/openlayers/ol3
- </a>
- </p>
- <p>
- OpenLayers is a JavaScript library for building map applications on
- the web.
- <br/>
- OpenLayers is made available under a BSD-license.
- <br/>
- Copyright &copy; 2005-2015 OpenLayers Contributors.
- </p>
-
- <hr/>
- <h4>Proj4js</h4>
- <p>
- <a href="http://trac.osgeo.org/proj4js/">
- http://trac.osgeo.org/proj4js
- </a>
- <br/>
- <a href="https://github.com/proj4js/proj4js">
- https://github.com/proj4js/proj4js
- </a>
- </p>
- <p>
- Licensed under an MIT style
- <a href="https://github.com/proj4js/proj4js/blob/master/LICENSE.md">
- license
- </a>
- <br/>
- Copyright &copy; 2012, Mike Adair, Richard Greenwood,
- Didier Richard, Stephen Irons and Olivier Terral
- </p>
-
- <hr/>
- <h4>Font Awesome: The iconic font and CSS toolkit</h4>
- <p>
- <a href="http://fortawesome.github.io/Font-Awesome/">
- http://fortawesome.github.io/Font-Awesome
- </a>
- <br/>
- <a href="https://github.com/FortAwesome/Font-Awesome">
- https://github.com/FortAwesome/Font-Awesome
- </a>
- </p>
- <p>
- Fonts licensed under the SIL Open Font
- <a href="http://scripts.sil.org/OFL">
- license
- </a>
- <br/>
- Code licensed under the MIT license
- <br/>
- Font Awesome by Dave Gandy -
- <a href='http://fontawesome.io'>
- http://fontawesome.io
- </a>
- </p>
-
- <hr/>
- <h4>d3: A JavaScript visualization library for HTML and SVG</h4>
- <p>
- <a href="http://d3js.org">
- http://d3js.org/
- </a>
- <br/>
- <a href="https://github.com/mbostock/d3">
- https://github.com/mbostock/d3
- </a>
- </p>
- <p>
- Licensed under the BSD
- <a href="https://github.com/mbostock/d3/blob/master/LICENSE">
- license
- </a>
- <br/>
- Copyright &copy; 2010 - 2015 Michael Bostock
- </p>
-
- <hr/>
- <h4>Isotope: Layout and Filtering library</h4>
- <p>
- <a href="http://isotope.metafizzy.co">http://isotope.metafizzy.co</a>
- <br />
- <a href="https://github.com/metafizzy/isotope">https://github.com/metafizzy/isotope</a>
- </p>
- <p>
- Licensed under the GPLv3
- <a href="https://www.gnu.org/licenses/gpl-3.0.html">license</a>. Received permission from author for special use case for releasing with a product that has a non-GPL free software licence.
- <br />
- Copyright &copy; Dave DeSandro
- </p>
-
- <hr />
-
- <h4>MobiScroll: the date scroller on mobile</h4>
- <p>
- <a href="http://mobiscroll.com">http://mobiscroll.com</a>
- </p>
- <p>
- Licensed under MIT license
- <br/>
- Copyright &copy; 2013 Acid Media
- </p>
- <p>
- "The Date & Time Scroller, Select, Image & Text and Treelist
- Scrollers are under the MIT License and are free to use."
- </p>
-
- <hr/>
- <h4>Jcrop: The jQuery Image Cropping Plugin</h4>
- <p>
- <a href="http://deepliquid.com/content/Jcrop.html">
- http://deepliquid.com/content/Jcrop.html
- </a>
- <br/>
- <a href="http://github.com/tapmodo/Jcrop">
- http://github.com/tapmodo/Jcrop
- </a>
- </p>
- <p>
- Jcrop is free software under MIT License.
- <br/>
- Copyright &copy; 2008-2012 Tapmodo Interactive LLC
- </p>
-
- <hr/>
- <h4>jScrollPane: Cross browser styleable scrollbars with jQuery and
- CSS</h4>
- <p>
- <a href="http://jscrollpane.kelvinluck.com/">
- http://jscrollpane.kelvinluck.com/
- </a>
- <br/>
- <a href="https://github.com/vitch/jScrollPane">
- https://github.com/vitch/jScrollPane
- </a>
- </p>
- <p>
- "jScrollPane is a personal project that is open source for anybody
- to use as they want to."
- </p>
-
- <hr/>
- <h4>iCheck: Highly customizable checkboxes and radio buttons</h4>
- <p>
- <a href="http://fronteed.com/iCheck/">
- http://fronteed.com/iCheck
- </a>
- <br/>
- <a href="https://github.com/fronteed/iCheck/">
- https://github.com/fronteed/iCheck
- </a>
- </p>
- <p>
- Licensed under the MIT license
- <br/>
- Copyright &copy; 2013 Damir Sultanov
- </p>
-
- <hr/>
- <h4>noUiSlider: Lightweight jQuery range slider plugin</h4>
- <p>
- <a href="http://refreshless.com/nouislider/">
- http://refreshless.com/nouislider
- </a>
- <br/>
- <a href="https://github.com/leongersen/noUiSlider/">
- https://github.com/leongersen/noUiSlider/
- </a>
- </p>
- <p>
- Visit the links above for license information.
- </p>
-
- <hr/>
- <h4>JoyRide: Create jQuery Feature Tours in a Breeze</h4>
- <p>
- <a href="http://www.zurb.com/playground/jquery-joyride-feature-tour-plugin">
- http://www.zurb.com/playground/jquery-joyride-feature-tour-plugin
- </a>
- <br/>
- <a href="https://github.com/zurb/joyride">
- https://github.com/zurb/joyride
- </a>
- </p>
- <p>
- "Joyride is MIT-licensed and absolutely free to use."
- </p>
-
- <hr/>
- <h4>Perceptually Balanced Rainbow Palette (cube YF) from MyCarta /
- Matteo Niccoli</h4>
- <p>
- <a href="http://mycarta.wordpress.com/2013/02/21/perceptual-rainbow-palette-the-method/">
- http://mycarta.wordpress.com/2013/02/21/perceptual-rainbow-palette-the-method/
- </a>
- </p>
- <p>
- "Go ahead if you want to use my code, modify it, improve it, for
- non-commercial AND for commercial use."
- </p>
-
- <hr/>
- <h4>JavaScript LRU Cache</h4>
- <p>
- <a href="https://github.com/monsur/jscache">
- https://github.com/monsur/jscache
- </a>
- </p>
- <p>
- Licensed under the MIT license
- <br/>
- Copyright &copy; 2007 Monsur Hossain
- </p>
-
- <hr />
- <h4>nightwatchjs: UI automated testing framework</h4>
- <p>
- <a href="https://github.com/nightwatchjs/nightwatch">https://github.com/nightwatchjs/nightwatch</a>
- </p>
- <p>
- Licensed under MIT license
- <br/>
- Copyright &copy; 2015 Andrei Rusu
- </p>
- <hr/>
- <h4>React: A declarative, efficient, and flexible JavaScript library for building user interfaces.</h4>
- <p>
- <a href="https://facebook.github.io/react/">https://facebook.github.io/react/</a>
- </p>
- <p>
- Licensed under BSD License
- <br/>
- Copyright &copy; 2013-present, Facebook, Inc.
- </p>
- <hr/>
- <h4>react-input-range</h4>
- <p>
- <a href="https://github.com/davidchin/react-input-range">
- https://github.com/davidchin/react-input-range
- </a>
- </p>
- <p>
- Licensed under the MIT license
- <br/>
- Copyright &copy; 2015 David Chin
- </p>
-
- <hr />
- <h4>React-Draggable: React draggable component</h4>
- <p>
- <a href="https://github.com/mzabriskie/react-draggable">
- https://github.com/mzabriskie/react-draggable
- </a>
- </p>
- <p>
- Licensed under the MIT license
- <br/>
- Copyright &copy; 2014-2016 Matt Zabriskie.
- </p>
-
- <hr />
- <h4>Bluebirdjs: Promise library</h4>
- <p>
- <a href="http://bluebirdjs.com/">bluebirdjs.com/</a>
- </p>
- <p>
- Licensed under MIT license
- <br/>
- Copyright &copy; 2013-2017 Petka Antonov
- </p>
- <hr/>
- <h4>promise-queue: Promise-based queue</h4>
- <p>
- <a href="https://github.com/azproduction/promise-queue">https://github.com/azproduction/promise-queue</a>
- </p>
- <p>
- Licensed under MIT license
- <br/>
- Copyright &copy; 2013 Mikhail Davydov and other contributors
- </p>
- <hr/>
- <h4>gifShot: JavaScript library that can create animated GIFs from media streams, videos, or images</h4>
- <p><a href="https://github.com/yahoo/gifshot">https://github.com/yahoo/gifshot</a></p>
- <p>
- Licensed under the MIT License <br />
- Copyright &copy; 2015 Yahoo Inc.
- </p>
-
- <br/>
- <h3>Licenses</h3>
-
- <hr/>
- <h4>MIT License</h4>
- <p>
- Permission is hereby granted, free of charge, to any person
- obtaining a copy of this software and associated documentation
- files (the "Software"), to deal in the Software without
- restriction, including without limitation the rights to use, copy,
- modify, merge, publish, distribute, sublicense, and/or sell copies
- of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
- </p>
- <p>
- The above copyright notice and this permission notice shall be
- included in all copies or substantial portions of the Software.
- </p>
- <p>
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- SOFTWARE.
- </p>
-
- <hr/>
- <h4>OpenLayers BSD License</h4>
- <p>
- Copyright &copy; 2005-2013 OpenLayers Contributors. All rights
- reserved. See authors.txt for full list.
- </p>
- <p>
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
- </p>
- <p>
- 1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- </p>
- <p>
- 2. Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- </p>
- <p>
- THIS SOFTWARE IS PROVIDED BY OPENLAYERS CONTRIBUTORS ``AS IS'' AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
- PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT
- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
- STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
- ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- </p>
- <p>
- The views and conclusions contained in the software and
- documentation are those of the authors and should not be
- interpreted as representing official policies, either expressed or
- implied, of OpenLayers Contributors.
- </p>
-
- <hr/>
- <h4>SIL Open Font License</h4>
- <p>
- Version 1.1 - 26 February 2007
- </p>
-
- <h5>PREAMBLE</h5>
- <p>
- The goals of the Open Font License (OFL) are to stimulate worldwide
- development of collaborative font projects, to support the font creation
- efforts of academic and linguistic communities, and to provide a free and
- open framework in which fonts may be shared and improved in partnership
- with others.
- </p>
- <p>
- The OFL allows the licensed fonts to be used, studied, modified and
- redistributed freely as long as they are not sold by themselves. The
- fonts, including any derivative works, can be bundled, embedded,
- redistributed and/or sold with any software provided that any reserved
- names are not used by derivative works. The fonts and derivatives,
- however, cannot be released under any other type of license. The
- requirement for fonts to remain under this license does not apply
- to any document created using the fonts or their derivatives.
- </p>
- <h5>DEFINITIONS</h5>
- <p>
- "Font Software" refers to the set of files released by the Copyright
- Holder(s) under this license and clearly marked as such. This may
- include source files, build scripts and documentation.
- </p>
- <p>
- "Reserved Font Name" refers to any names specified as such after the
- copyright statement(s).
- </p>
- <p>
- "Original Version" refers to the collection of Font Software components as
- distributed by the Copyright Holder(s).
- </p>
- <p>
- "Modified Version" refers to any derivative made by adding to, deleting,
- or substituting — in part or in whole — any of the components of the
- Original Version, by changing formats or by porting the Font Software to a
- new environment.
- </p>
- <p>
- "Author" refers to any designer, engineer, programmer, technical
- writer or other person who contributed to the Font Software.
- </p>
- <h5>PERMISSION &amp; CONDITIONS</h5>
- <p>
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of the Font Software, to use, study, copy, merge, embed, modify,
- redistribute, and sell modified and unmodified copies of the Font
- Software, subject to the following conditions:
- </p>
- <p>
- 1) Neither the Font Software nor any of its individual components,
- in Original or Modified Versions, may be sold by itself.
- </p>
- <p>
- 2) Original or Modified Versions of the Font Software may be bundled,
- redistributed and/or sold with any software, provided that each copy
- contains the above copyright notice and this license. These can be
- included either as stand-alone text files, human-readable headers or
- in the appropriate machine-readable metadata fields within text or
- binary files as long as those fields can be easily viewed by the user.
- </p>
- <p>
- 3) No Modified Version of the Font Software may use the Reserved Font
- Name(s) unless explicit written permission is granted by the corresponding
- Copyright Holder. This restriction only applies to the primary font name as
- presented to the users.
- </p>
- <p>
- 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
- Software shall not be used to promote, endorse or advertise any
- Modified Version, except to acknowledge the contribution(s) of the
- Copyright Holder(s) and the Author(s) or with their explicit written
- permission.
- </p>
- <p>
- 5) The Font Software, modified or unmodified, in part or in whole,
- must be distributed entirely under this license, and must not be
- distributed under any other license. The requirement for fonts to
- remain under this license does not apply to any document created
- using the Font Software.
- </p>
- <h5>TERMINATION</h5>
- <p>
- This license becomes null and void if any of the above conditions are
- not met.
- </p>
- <h5>DISCLAIMER</h5>
- <p>
- THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
- OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
- COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
- DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
- OTHER DEALINGS IN THE FONT SOFTWARE.
- </p>
- <hr/>
-
- <h4>d3 BSD License</h4>
- <p>
- Copyright &copy; 2010-2014, Michael Bostock
- All rights reserved.
- </p>
- <p>
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
- <p>
- <p>
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- </p>
- <p>
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
- </p>
- <p>
- * The name Michael Bostock may not be used to endorse or promote
- products derived from this software without specific prior written
- permission.
- </p>
- <p>
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MICHAEL
- BOSTOCK BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
- USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
- DAMAGE.
- </p>
- <h4>React BSD License</h4>
- <p>Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
- </p>
- <ul>
- <li>
- Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- </li>
-
- <li>
- Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- </li>
- <li>
- Neither the name Facebook nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
- </li>
- </ul>
- <p>
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- </p>
- </div>
-</body>