commit 827c689e9d3f6d2b3f69140f2007256612a9d2a7 Author: José Carlos Cuevas Date: Sun Feb 22 05:17:26 2015 +0100 First commit to the repo diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..53d5a38 --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2014 Mozilla Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + diff --git a/README.md b/README.md new file mode 100644 index 0000000..87b7243 --- /dev/null +++ b/README.md @@ -0,0 +1,68 @@ +# Privileged empty app + +This is a privileged empty app template that provides you with a barebones structure for you to build your app. + +This is part of the [mortar](https://github.com/mozilla/mortar/) template collection for building [Open Web Apps](https://developer.mozilla.org/Apps). + +## Obtaining + +There are a few ways to get this template: + +If you use [Git](http://www.git-scm.com/): + +````bash +git clone https://github.com/mozilla/mortar-privileged-empty-app.git +```` + +Or download the latest version in this [ZIP file](https://github.com/mozilla/mortar-privileged-empty-app/archive/master.zip). + + +## Usage + +Import the app into the [App Manager](https://developer.mozilla.org/Firefox_OS/Using_the_App_Manager). Then you can run it in the simulator, or in a Firefox OS device. + +## Code walkthrough + +The `manifest.webapp` file contains metadata about the app, such as its name, description, icon and required permissions for running under Firefox OS. + +Moving over to `index.html`, this is the starting point for the app when it's launched, and also where the layout is defined and the JavaScript files with the functionality and logic are loaded. + +The appearance is defined in `css/app.css`. There are just some very basic rules. + +We define the app's behaviour in `js/app.js`. Right now we're just basically displaying a "Hello world" message. + +Finally we are also including `js/libs/l10n.js`, which contains [L10n](https://developer.mozilla.org/en-US/docs/Web/API/L10n_API), a library for translating the strings in the app. Using this library, users can run the app in their own language, as long as you provide the translations for those languages. We're currently including a translation to Spanish as an example, but feel free to contribute with more translations in `data/locales.ini`, looking at `data/es.properties` and `data/en-US.properties` to see the syntax in action. The way it works, it will automatically translate the HTML elements that contain a `data-l10n-id` attribute with the translation identifier. + +For any dynamically shown content, you need to use the `navigator.webL10n.get` function, but since that is slightly tedious to write each time, we're aliasing it to just `translate`: + +```javascript +var translate = navigator.mozL10n.get; +``` + +## Getting help + +If you find something that doesn't quite work as you'd expect, we'd appreciate if you [filed a bug](https://github.com/mozilla/mortar-privileged-empty-app/issues)! + +We need your help in order to help you. Therefore: + +1. Tell us which version of the template are you using. Where did you get the code from? +* Specify the environment where the bug occurs i.e. which version of the Simulator or Firefox OS device. An example would be `1.2 simulator` or `Boot2Gecko 1.4.0.0`. +* Describe the problem in detail. What were you doing? What happened? What did you expect to happen? +* Probably also provide a test case so we can see what is happening and try to reproduce the error. + +Ultimately it all boils down to the fact that if we can't reproduce it, we can't help you or fix it either. + +## Contributing + +Contributions are always welcome! If you want to collaborate, whether that is with a new feature or fixing a bug, we recommend you... + +1. Have a look at the [issue tracker](https://github.com/mozilla/mortar-privileged-empty-app/issues) first--to make sure there isn't anyone working on that already. +* If it's a new issue/feature, or no one is working on it already, fork the project in GitHub (you'll need an account if you don't have it yet). +* Create the bug to let us know you want to work on this. That way we are aware of and can keep an eye on it, or maybe tell you that it is not a bug but an intended feature, and save you the hassle of working on something that is not needed. +* Clone your fork to your computer (i.e. get the code onto your computer) +* Make a new branch, and switch to that new branch +* Do the changes you deem necessary +* Push the branch to GitHub +* Send a pull request + +To make your changes as easy to merge back onto the project as possible, you should only work on one feature per branch. That makes code review simpler and faster! diff --git a/css/af.ui.base.css b/css/af.ui.base.css new file mode 100644 index 0000000..8510436 --- /dev/null +++ b/css/af.ui.base.css @@ -0,0 +1,2536 @@ +*, +*:before, +*:after { + -webkit-user-select: none; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + -moz-tap-highlight-color: rgba(0, 0, 0, 0); + -moz-user-select: -moz-none; + -webkit-touch-callout: none; + margin: 0; + padding: 0; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + -ms-touch-action: pan-y; +} +body, +html { + -ms-overflow-style: none !important; + width: 100%; + height: 100%; + overflow: hidden; +} +body { + overflow-x: hidden; + -webkit-text-size-adjust: none; + font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + color: #000000; + font-size: 14px; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-box-align: stretch; + background: #ffffff; +} +input, +textarea { + -webkit-user-select: text; + -moz-user-select: -moz-text; + -moz-user-select: text; +} +img { + border: none; +} +p { + display: block; + margin: 6px 0; + font-size: 14px; + line-height: 20px; + color: inherit; +} +.view { + display: none; + overflow: hidden; + position: absolute; + top: 0px; + left: 0px; + height: 100%; + width: 100%; +} +.view header { + position: relative; + overflow: hidden; + display: block; + z-index: 250; + -webkit-box-sizing: border-box; + box-sizing: border-box; + height: 44px; + left: 0; + right: 0; +} +.view header h1 { + position: absolute; + width: 45%; + z-index: 1; + height: 44px; + font-size: 18px; + font-weight: bold; + left: 27.5%; + color: #ffffff; + padding: 10px 0; + text-shadow: rgba(0, 0, 0, 0.8) 0 -1px 0; + text-align: center; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} +.view footer { + z-index: 180; + height: 49px; + display: block; + left: 0; + right: 0; + position: relative; + padding: 0 3px; + display: -webkit-box; + display: -moz-box; + display: box; + display: -ms-flexbox; + display: -webkit-flex; + display: -moz-flex; + display: -ms-flex; + display: flex; +} +.view footer a { + height: 100%; + font-size: 12px; + font-weight: normal; + text-decoration: none; + color: #ffffff; + text-align: center; + -webkit-box-flex: 1; + -moz-box-flex: 1; + -ms-box-flex: 1; + box-flex: 1; + -webkit-flex: 1; + -moz-flex: 1; + -ms-flex: 1; + flex: 1; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + display: block; + padding-top: 3px; +} +.view footer a.button { + color: black; +} +.view footer .icon:not(.button):before { + display: block; + position: relative; + top: 2px; + left: 0; + font-size: 25px; + margin: auto; + width: 100%; + margin-bottom: 5px; +} +.view.active { + display: -webkit-box; + display: -moz-box; + display: box; + display: -ms-flexbox; + -webkit-box-orient: vertical; + -moz-box-orient: vertical; + -ms-box-orient: vertical; + box-orient: vertical; + display: -webkit-flex; + display: -moz-flex; + display: -ms-flex; + display: flex; + -webkit-flex-direction: column; + -moz-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + height: 100%; + width: 100%; +} +.pages { + z-index: 180; + position: relative; + -webkit-box-flex: 1; + -moz-box-flex: 1; + -ms-box-flex: 1; + box-flex: 1; + -webkit-flex: 1; + -moz-flex: 1; + -ms-flex: 1; + flex: 1; + background: #ffffff; + color: #000000; + overflow: hidden; +} +.panel { + width: 100%; + height: 100%; + position: absolute; + top: 0px; + left: 0px; + display: none; + padding: 10px; + padding-top: 0px; + overflow-x: hidden; + overflow-y: auto; + touch-action: pan-y; + -webkit-overflow-scrolling: touch; +} +.panel.active { + display: block; +} +.panel.x-scroll { + overflow-x: auto; + overflow-y: hidden; + touch-action: pan-x; +} +.panel.no-scroll { + overflow: hidden; + touch-action: none; +} +nav { + height: 100%; + width: 200px; + position: absolute; + top: 0px; + left: 0px; + background: #ccc; + display: none; + box-shadow: 0 0 8px 0 black; + z-index: 30; +} +nav.right { + height: 100%; + width: 200px; + position: absolute; + top: 0px; + left: auto; + right: 0px; +} +nav.active { + display: block; +} +.splashscreen { + background: #1d1d1c !important; + padding-left: 40px; + padding-top: 30px !important; + min-height: 100%; +} +h2 { + display: block; + height: 34px; + font-weight: bold; + font-size: 18px; + color: #000; + padding: 6px 0; + margin-bottom: 8px; +} +.afui_mask { + position: absolute; + top: 45%; + z-index: 999999; +} +.afui_panel_mask { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: 2000; + background-color: rgba(0, 0, 0, 0.1); + display: none; +} +/* Chevrons */ +@font-face { + font-family: 'chevron'; + src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAQAAA0AAAAABZgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABMAAAABoAAAAcZ/T02kdERUYAAAFMAAAAHwAAACAAMgAGT1MvMgAAAWwAAABHAAAAVj7i2r5jbWFwAAABtAAAAEMAAAFS8BX0J2dhc3AAAAH4AAAACAAAAAj//wADZ2x5ZgAAAgAAAABsAAAAbMHrMoZoZWFkAAACbAAAADAAAAA2/JaSB2hoZWEAAAKcAAAAHgAAACQDav/GaG10eAAAArwAAAATAAAAFAN1AB1sb2NhAAAC0AAAAAwAAAAMAA4ANm1heHAAAALcAAAAHQAAACAASAAbbmFtZQAAAvwAAADdAAABhigr581wb3N0AAAD3AAAACIAAAA8nFVDO3icY2BgYGQAgjO2i86D6LO3V7LCaABOtwcoAAB4nGNgZGBg4ANiCQYQYGJgZGBmYAGSLGAeAwAEkAA5AHicY2BkVGCcwMDKwMGozGjJwMBgB6WvM4gxFDMwMDGwMjPAgQCCyRCQ5prC4PCB4UMIY8P/AwwajA0MDg0MDIwgOQBg6QqyAHicY2BgYGaAYBkGRgYQ8AHyGMF8FgYDIM0BhEwgiQ8MH0L+/0dmCTDzb4DqAgNGNgY4lxGkh4kBFTAyDHsAAFhbChsAAAAAAf//AAIAAQAA/8ABwAGAAAIAABEBIQHA/kABgP5AAAAAAAEAHf/tARMBcwAXAAAlFA8BBiIvASY1ND8BJyY1ND8BNjIfARYBEwmkCRoJFAkJenoJCRQIHAikCbANCqMJCRMKDQ0JenkKDQ0JEwoKowl4nGNgZGBgAOLcX7xy8fw2Xxm4GQ8ARRjO3l7JiqD/H2A8wNgA5HIwMIFEAUPwC7d4nGNgZGBgbPh/gEGD8QADwz8HIAkUQQGsAIQZBTAAAHicYzzAAAFTIRSjAoMsABVQAZUAAAAAAAAAAAAADgA2eJxjYGRgYGBlkGAA0QwMTEDMCGY7gPkMAAUvAGQAAAB4nHWOTWoCQRBG3+hoCIbgKmTZkE02M3RPwIUHmAO4cC/SjII40P7gSbLKEbL0GB4gR8gx/JzUJgsbin68rqqvgSc+ybidjAfGxj3xu3GfN07Gufy38YARF+Oh/K86s/xR5rmbunFP/Grcp8Yb5/JfxgNeOBsP5X9YsiJyJNGyheUqHlMrmMk2HNiw0Buz2Bw2C0Hd9e27O6kj4qgoleaYqv7v+3NBrwUTVSUKfGhNu93XbWqiq0rvps5yRcEXk6LyQU33/jaXTexYW0bo8pnHtFtrRyj93dkrAWI51wAAAHicY2BiwA9YgZiRgYmRiZGZvTQv083AwABCm5oAACfXBG0AAA==) format('woff'), url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAANAIAAAwBQRkZUTWf09NoAAAV8AAAAHEdERUYAMgAGAAAFXAAAACBPUy8yPuLavgAAAVgAAABWY21hcPAV9CcAAAHEAAABUmdhc3D//wADAAAFVAAAAAhnbHlmwesyhgAAAyQAAABsaGVhZPyWkgcAAADcAAAANmhoZWEDav/GAAABFAAAACRobXR4A3UAHQAAAbAAAAAUbG9jYQAOADYAAAMYAAAADG1heHAASAAbAAABOAAAACBuYW1lKCvnzQAAA5AAAAGGcG9zdJxVQzsAAAUYAAAAPAABAAAAAQAAbfoNHl8PPPUACwHAAAAAAM3bqQUAAAAAzdupBQAA/8ABwAGAAAAACAACAAAAAAAAAAEAAAGA/8AAKAHAAAD+QAHAAAEAAAAAAAAAAAAAAAAAAAAFAAEAAAAFABgAAQAAAAAAAgAAAAEAAQAAAEAAAAAAAAAAAQEgAZAABQAIASMBOQAAAD4BIwE5AAAA1wAWAHMAAAIABQMAAAAAAAAAAAAAEAAAAAAAAAAAAAAAUGZFZABA8ADwVAGA/8AAKAGAAECAAAABAAAAAAAAAcAAAAAAAAAAlQAAAAAAAAEgAB0AAAADAAAAAwAAABwAAQAAAAAATAADAAEAAAAcAAQAMAAAAAgACAACAAAAAPAA8FT//wAAAADwAPBU//8AABADD7AAAQ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AAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAQACAQIBAwd1bmlGMDAwB3VuaUYwNTQAAAAB//8AAgABAAAADgAAABgAAAAAAAIAAQADAAQAAQAEAAAAAgAAAAAAAQAAAADMPaLPAAAAAM3bqQUAAAAAzdupBQ==) format('truetype'); + font-weight: normal; + font-style: normal; +} +.chevron { + font-family: 'chevron'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; +} +.chevron:after { + content: "\f054"; +} +.chevron.left { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); +} +.card { + padding: 1.5rem; + box-shadow: 0 1px 4px #aaa; + background: inherit; + color: inherit; + margin: 0 1rem 1rem; + border-radius: 3px; + -webkit-user-select: none; + position: relative; +} +.card h1 { + font-size: 2rem; + font-weight: 200; +} +.card h1.info:after { + position: absolute; + right: 1.5rem; + top: 1.5rem; + content: 'i'; + color: #ccc; + border: thin solid #ccc; + font-size: 10px; + border-radius: 14px; + width: 14px; + height: 14px; + text-align: center; +} +.card h2 { + font-size: .9rem; + line-height: 2.5; + color: #ccc; + font-weight: 400; +} +.card p { + margin: 0px; + padding: 10px; +} +#afui_mask { + position: absolute; + top: 45%; + z-index: 999999; + border-radius: 30px; +} +@media print { + body { + overflow: visible; + } + .panel { + overflow-x: visible !important; + overflow-y: visible !important; + overflow: visible !important; + } +} + +.panel.active, +.panel.animation-active { + display: block !important; + z-index: 100; + -webkit-animation-timing-function: linear !important; + animation-timing-function: linear !important; +} +.animation-active { + -webkit-animation-timing-function: linear !important; + animation-timing-function: linear !important; +} +.panel.animation-active { + -webkit-transition-duration: 300ms; + transition-duration: 300ms; +} +.fast { + -webkit-transition-duration: 100ms !important; + transition-duration: 100ms !important; +} +.none-in, +.none-out { + -webkit-animation: noTransition 1ms forwards; + animation: noTransition 1ms forwards; +} +.blank-in, +.blank-out, +.blank { + -webkit-animation: noTransition 300ms forwards; + animation: noTransition 300ms forwards; +} +@-webkit-keyframes noTransition { + from { + opacity: 1.0; + } + to { + opacity: 0.99; + } +} +@keyframes noTransition { + from { + opacity: 1.0; + } + to { + opacity: 0.99; + } +} + +.slide-in { + -webkit-animation: slide-inAnimation 300ms forwards; + animation: slide-inAnimation 300ms forwards; +} +@-webkit-keyframes slide-inAnimation { + 0% { + -webkit-transform: translate3d(100%, 0, 0); + } + 100% { + -webkit-transform: translate3d(0, 0, 0); + } +} +@keyframes slide-inAnimation { + 0% { + transform: translate3d(100%, 0, 0); + } + 100% { + transform: translate3d(0, 0, 0); + } +} +.slide-in.animation-reverse { + -webkit-animation: slide-inAnimationReverse 450ms forwards; + animation: slide-inAnimationReverse 450ms forwards; +} +@-webkit-keyframes slide-inAnimationReverse { + 100% { + -webkit-transform: translate3d(100%, 0, 0); + } + 0% { + -webkit-transform: translate3d(0, 0, 0); + } +} +@keyframes slide-inAnimationReverse { + 100% { + transform: translate3d(100%, 0, 0); + } + 0% { + transform: translate3d(0, 0, 0); + } +} +.slide-out { + -webkit-animation: slide-outAnimation 300ms forwards; + animation: slide-outAnimation 300ms forwards; +} +@-webkit-keyframes slide-outAnimation { + 0% { + -webkit-transform: translate3d(0%, 0, 0); + } + 100% { + -webkit-transform: translate3d(-200px, 0, 0); + } +} +@keyframes slide-outAnimation { + 0% { + transform: translate3d(0%, 0, 0); + } + 100% { + transform: translate3d(-200px, 0, 0); + } +} +.slide-out.animation-reverse { + -webkit-animation: slide-outAnimationReverse 450ms forwards; + animation: slide-outAnimationReverse 450ms forwards; +} +@-webkit-keyframes slide-outAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, 0, 0); + } + 0% { + -webkit-transform: translate3d(-200px, 0, 0); + } +} +@keyframes slide-outAnimationReverse { + 100% { + transform: translate3d(0%, 0, 0); + } + 0% { + transform: translate3d(-200px, 0, 0); + } +} +.slide-full-in { + -webkit-animation: slide-full-inAnimation 300ms forwards; + animation: slide-full-inAnimation 300ms forwards; +} +@-webkit-keyframes slide-full-inAnimation { + 0% { + -webkit-transform: translate3d(100%, 0, 0); + } + 100% { + -webkit-transform: translate3d(0, 0, 0); + } +} +@keyframes slide-full-inAnimation { + 0% { + transform: translate3d(100%, 0, 0); + } + 100% { + transform: translate3d(0, 0, 0); + } +} +.slide-full-in.animation-reverse { + -webkit-animation: slide-full-inAnimationReverse 450ms forwards; + animation: slide-full-inAnimationReverse 450ms forwards; +} +@-webkit-keyframes slide-full-inAnimationReverse { + 100% { + -webkit-transform: translate3d(100%, 0, 0); + } + 0% { + -webkit-transform: translate3d(0, 0, 0); + } +} +@keyframes slide-full-inAnimationReverse { + 100% { + transform: translate3d(100%, 0, 0); + } + 0% { + transform: translate3d(0, 0, 0); + } +} +.slide-full-out { + -webkit-animation: slide-full-outAnimation 300ms forwards; + animation: slide-full-outAnimation 300ms forwards; +} +@-webkit-keyframes slide-full-outAnimation { + 0% { + -webkit-transform: translate3d(0%, 0, 0); + } + 100% { + -webkit-transform: translate3d(-100%, 0, 0); + } +} +@keyframes slide-full-outAnimation { + 0% { + transform: translate3d(0%, 0, 0); + } + 100% { + transform: translate3d(-100%, 0, 0); + } +} +.slide-full-out.animation-reverse { + -webkit-animation: slide-full-outAnimationReverse 450ms forwards; + animation: slide-full-outAnimationReverse 450ms forwards; +} +@-webkit-keyframes slide-full-outAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, 0, 0); + } + 0% { + -webkit-transform: translate3d(-100%, 0, 0); + } +} +@keyframes slide-full-outAnimationReverse { + 100% { + transform: translate3d(0%, 0, 0); + } + 0% { + transform: translate3d(-100%, 0, 0); + } +} +.pop-in { + -webkit-animation: pop-inAnimation 300ms forwards; + animation: pop-inAnimation 300ms forwards; +} +@-webkit-keyframes pop-inAnimation { + 0% { + opacity: 0; + -webkit-transform: scale(0.5); + } + 100% { + opacity: 1; + -webkit-transform: scale(1); + } +} +@keyframes pop-inAnimation { + 0% { + opacity: 0; + transform: scale(0.5); + } + 100% { + opacity: 1; + transform: scale(1); + } +} +.pop-in.animation-reverse { + -webkit-animation: pop-inAnimationReverse 450ms forwards; + animation: pop-inAnimationReverse 450ms forwards; +} +@-webkit-keyframes pop-inAnimationReverse { + 100% { + opacity: 0; + -webkit-transform: scale(0.5); + } + 0% { + opacity: 1; + -webkit-transform: scale(1); + } +} +@keyframes pop-inAnimationReverse { + 100% { + opacity: 0; + transform: scale(0.5); + } + 0% { + opacity: 1; + transform: scale(1); + } +} +.pop-out { + -webkit-animation: noTransition 300ms forwards; + animation: noTransition 300ms forwards; +} +.fade-in { + -webkit-animation: fade-inAnimation 300ms forwards; + animation: fade-inAnimation 300ms forwards; +} +@-webkit-keyframes fade-inAnimation { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } +} +@keyframes fade-inAnimation { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } +} +.fade-in.animation-reverse { + -webkit-animation: fade-inAnimationReverse 450ms forwards; + animation: fade-inAnimationReverse 450ms forwards; +} +@-webkit-keyframes fade-inAnimationReverse { + 100% { + opacity: 0; + } + 0% { + opacity: 1; + } +} +@keyframes fade-inAnimationReverse { + 100% { + opacity: 0; + } + 0% { + opacity: 1; + } +} +.fade-out { + -webkit-animation: noTransition 300ms forwards; + animation: noTransition 300ms forwards; +} +.up-in { + -webkit-animation: up-inAnimation 300ms forwards; + animation: up-inAnimation 300ms forwards; +} +@-webkit-keyframes up-inAnimation { + 0% { + -webkit-transform: translate3d(0%, 100%, 0); + } + 100% { + -webkit-transform: translate3d(0%, 0%, 0); + } +} +@keyframes up-inAnimation { + 0% { + transform: translate3d(0%, 100%, 0); + } + 100% { + transform: translate3d(0%, 0%, 0); + } +} +.up-in.animation-reverse { + -webkit-animation: up-inAnimationReverse 450ms forwards; + animation: up-inAnimationReverse 450ms forwards; +} +@-webkit-keyframes up-inAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, 100%, 0); + } + 0% { + -webkit-transform: translate3d(0%, 0%, 0); + } +} +@keyframes up-inAnimationReverse { + 100% { + transform: translate3d(0%, 100%, 0); + } + 0% { + transform: translate3d(0%, 0%, 0); + } +} +.up-out { + -webkit-animation: up-outAnimation 300ms forwards; + animation: up-outAnimation 300ms forwards; +} +@-webkit-keyframes up-outAnimation { + 0% { + -webkit-transform: translate3d(0%, 0, 0); + } + 100% { + -webkit-transform: translate3d(0%, -200px, 0); + } +} +@keyframes up-outAnimation { + 0% { + transform: translate3d(0%, 0, 0); + } + 100% { + transform: translate3d(0%, -200px, 0); + } +} +.up-out.animation-reverse { + -webkit-animation: up-outAnimationReverse 450ms forwards; + animation: up-outAnimationReverse 450ms forwards; +} +@-webkit-keyframes up-outAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, 0, 0); + } + 0% { + -webkit-transform: translate3d(0%, -200px, 0); + } +} +@keyframes up-outAnimationReverse { + 100% { + transform: translate3d(0%, 0, 0); + } + 0% { + transform: translate3d(0%, -200px, 0); + } +} +.down-in { + -webkit-animation: down-inAnimation 300ms forwards; + animation: down-inAnimation 300ms forwards; +} +@-webkit-keyframes down-inAnimation { + 0% { + -webkit-transform: translate3d(0%, -100%, 0); + } + 100% { + -webkit-transform: translate3d(0%, 0%, 0); + } +} +@keyframes down-inAnimation { + 0% { + transform: translate3d(0%, -100%, 0); + } + 100% { + transform: translate3d(0%, 0%, 0); + } +} +.down-in.animation-reverse { + -webkit-animation: down-inAnimationReverse 450ms forwards; + animation: down-inAnimationReverse 450ms forwards; +} +@-webkit-keyframes down-inAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, -100%, 0); + } + 0% { + -webkit-transform: translate3d(0%, 0%, 0); + } +} +@keyframes down-inAnimationReverse { + 100% { + transform: translate3d(0%, -100%, 0); + } + 0% { + transform: translate3d(0%, 0%, 0); + } +} +.down-out { + -webkit-animation: down-outAnimation 300ms forwards; + animation: down-outAnimation 300ms forwards; +} +@-webkit-keyframes down-outAnimation { + 0% { + -webkit-transform: translate3d(0%, 0%, 0); + } + 100% { + -webkit-transform: translate3d(0%, 200px, 0); + } +} +@keyframes down-outAnimation { + 0% { + transform: translate3d(0%, 0%, 0); + } + 100% { + transform: translate3d(0%, 200px, 0); + } +} +.down-out.animation-reverse { + -webkit-animation: down-outAnimationReverse 450ms forwards; + animation: down-outAnimationReverse 450ms forwards; +} +@-webkit-keyframes down-outAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, 0%, 0); + } + 0% { + -webkit-transform: translate3d(0%, 200px, 0); + } +} +@keyframes down-outAnimationReverse { + 100% { + transform: translate3d(0%, 0%, 0); + } + 0% { + transform: translate3d(0%, 200px, 0); + } +} +.flip-in { + -webkit-animation: flip-inAnimation 300ms forwards; + animation: flip-inAnimation 300ms forwards; + z-index: 5; + backface-visibility: hidden; + -webkit-backface-visibility: hidden; +} +@-webkit-keyframes flip-inAnimation { + 0% { + -webkit-transform: rotateY(180deg); + } + 100% { + -webkit-transform: rotateY(0deg); + } +} +@keyframes flip-inAnimation { + 0% { + transform: rotateY(180deg); + } + 100% { + transform: rotateY(0deg); + } +} +.flip-in.animation-reverse { + -webkit-animation: flip-inAnimationReverse 450ms forwards; + animation: flip-inAnimationReverse 450ms forwards; +} +@-webkit-keyframes flip-inAnimationReverse { + 100% { + -webkit-transform: rotateY(180deg); + } + 0% { + -webkit-transform: rotateY(0deg); + } +} +@keyframes flip-inAnimationReverse { + 100% { + transform: rotateY(180deg); + } + 0% { + transform: rotateY(0deg); + } +} +.flip-out { + -webkit-animation: flip-outAnimation 300ms forwards; + animation: flip-outAnimation 300ms forwards; + z-index: 4; + backface-visibility: hidden; + -webkit-backface-visibility: hidden; +} +@-webkit-keyframes flip-outAnimation { + 0% { + -webkit-transform: rotateY(0deg); + } + 100% { + -webkit-transform: rotateY(180deg); + } +} +@keyframes flip-outAnimation { + 0% { + transform: rotateY(0deg); + } + 100% { + transform: rotateY(180deg); + } +} +.flip-out.animation-reverse { + -webkit-animation: flip-outAnimationReverse 450ms forwards; + animation: flip-outAnimationReverse 450ms forwards; +} +@-webkit-keyframes flip-outAnimationReverse { + 100% { + -webkit-transform: rotateY(0deg); + } + 0% { + -webkit-transform: rotateY(180deg); + } +} +@keyframes flip-outAnimationReverse { + 100% { + transform: rotateY(0deg); + } + 0% { + transform: rotateY(180deg); + } +} +.slide-left-in { + -webkit-animation: slide-left-inAnimation 300ms forwards; + animation: slide-left-inAnimation 300ms forwards; +} +@-webkit-keyframes slide-left-inAnimation { + 0% { + -webkit-transform: translate3d(-100%, 0, 0); + } + 100% { + -webkit-transform: translate3d(0, 0, 0); + } +} +@keyframes slide-left-inAnimation { + 0% { + transform: translate3d(-100%, 0, 0); + } + 100% { + transform: translate3d(0, 0, 0); + } +} +.slide-left-in.animation-reverse { + -webkit-animation: slide-left-inAnimationReverse 450ms forwards; + animation: slide-left-inAnimationReverse 450ms forwards; +} +@-webkit-keyframes slide-left-inAnimationReverse { + 100% { + -webkit-transform: translate3d(-100%, 0, 0); + } + 0% { + -webkit-transform: translate3d(0, 0, 0); + } +} +@keyframes slide-left-inAnimationReverse { + 100% { + transform: translate3d(-100%, 0, 0); + } + 0% { + transform: translate3d(0, 0, 0); + } +} +.slide-left-out { + -webkit-animation: slide-left-outAnimation 300ms forwards; + animation: slide-left-outAnimation 300ms forwards; +} +@-webkit-keyframes slide-left-outAnimation { + 0% { + -webkit-transform: translate3d(0%, 0, 0); + } + 100% { + -webkit-transform: translate3d(200px, 0, 0); + } +} +@keyframes slide-left-outAnimation { + 0% { + transform: translate3d(0%, 0, 0); + } + 100% { + transform: translate3d(200px, 0, 0); + } +} +.slide-left-out.animation-reverse { + -webkit-animation: slide-left-outAnimationReverse 450ms forwards; + animation: slide-left-outAnimationReverse 450ms forwards; +} +@-webkit-keyframes slide-left-outAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, 0, 0); + } + 0% { + -webkit-transform: translate3d(200px, 0, 0); + } +} +@keyframes slide-left-outAnimationReverse { + 100% { + transform: translate3d(0%, 0, 0); + } + 0% { + transform: translate3d(200px, 0, 0); + } +} +.slide-right-in { + -webkit-animation: slide-right-inAnimation 300ms forwards; + animation: slide-right-inAnimation 300ms forwards; +} +@-webkit-keyframes slide-right-inAnimation { + 0% { + -webkit-transform: translate3d(100%, 0, 0); + } + 100% { + -webkit-transform: translate3d(0, 0, 0); + } +} +@keyframes slide-right-inAnimation { + 0% { + transform: translate3d(100%, 0, 0); + } + 100% { + transform: translate3d(0, 0, 0); + } +} +.slide-right-in.animation-reverse { + -webkit-animation: slide-right-inAnimationReverse 450ms forwards; + animation: slide-right-inAnimationReverse 450ms forwards; +} +@-webkit-keyframes slide-right-inAnimationReverse { + 100% { + -webkit-transform: translate3d(100%, 0, 0); + } + 0% { + -webkit-transform: translate3d(0, 0, 0); + } +} +@keyframes slide-right-inAnimationReverse { + 100% { + transform: translate3d(100%, 0, 0); + } + 0% { + transform: translate3d(0, 0, 0); + } +} +.slide-right-out { + -webkit-animation: slide-right-outAnimation 300ms forwards; + animation: slide-right-outAnimation 300ms forwards; +} +@-webkit-keyframes slide-right-outAnimation { + 0% { + -webkit-transform: translate3d(0%, 0, 0); + } + 100% { + -webkit-transform: translate3d(-200px, 0, 0); + } +} +@keyframes slide-right-outAnimation { + 0% { + transform: translate3d(0%, 0, 0); + } + 100% { + transform: translate3d(-200px, 0, 0); + } +} +.slide-right-out.animation-reverse { + -webkit-animation: slide-right-outAnimationReverse 450ms forwards; + animation: slide-right-outAnimationReverse 450ms forwards; +} +@-webkit-keyframes slide-right-outAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, 0, 0); + } + 0% { + -webkit-transform: translate3d(-200px, 0, 0); + } +} +@keyframes slide-right-outAnimationReverse { + 100% { + transform: translate3d(0%, 0, 0); + } + 0% { + transform: translate3d(-200px, 0, 0); + } +} +.invoke-out { + -webkit-animation: invoke-outAnimation 500ms forwards; + animation: invoke-outAnimation 500ms forwards; + z-index: 11; +} +@-webkit-keyframes invoke-outAnimation { + 0% { + -webkit-transform: scale(1) translate3d(0%, 0, 0); + } + 50% { + -webkit-transform: scale(0.8) translate3d(10%, 0, 0); + } + 100% { + -webkit-transform: scale(0.8) translate3d(100%, 0, 0); + } +} +@keyframes invoke-outAnimation { + 0% { + transform: scale(1) translate3d(0%, 0, 0); + } + 50% { + transform: scale(0.8) translate3d(10%, 0, 0); + } + 100% { + transform: scale(0.8) translate3d(100%, 0, 0); + } +} +.invoke-out.animation-reverse { + -webkit-animation: invoke-outAnimationReverse 750ms forwards; + animation: invoke-outAnimationReverse 750ms forwards; +} +@-webkit-keyframes invoke-outAnimationReverse { + 100% { + -webkit-transform: scale(1) translate3d(0%, 0, 0); + } + 50% { + -webkit-transform: scale(0.8) translate3d(10%, 0, 0); + } + 0% { + -webkit-transform: scale(0.8) translate3d(100%, 0, 0); + } +} +@keyframes invoke-outAnimationReverse { + 100% { + transform: scale(1) translate3d(0%, 0, 0); + } + 50% { + transform: scale(0.8) translate3d(10%, 0, 0); + } + 0% { + transform: scale(0.8) translate3d(100%, 0, 0); + } +} +.invoke-in { + -webkit-animation: invoke-inAnimation 500ms forwards; + animation: invoke-inAnimation 500ms forwards; + z-index: 10; +} +@-webkit-keyframes invoke-inAnimation { + 0% { + -webkit-transform: scale(0.6) translate3d(-130%, 0, 0); + } + 50% { + -webkit-transform: scale(0.8) translate3d(-110%, 0, 0); + } + 100% { + -webkit-transform: scale(1) translate3d(0, 0, 0); + } +} +@keyframes invoke-inAnimation { + 0% { + transform: scale(0.6) translate3d(-130%, 0, 0); + } + 50% { + transform: scale(0.8) translate3d(-110%, 0, 0); + } + 100% { + transform: scale(1) translate3d(0, 0, 0); + } +} +.invoke-in.animation-reverse { + -webkit-animation: invoke-inAnimationReverse 750ms forwards; + animation: invoke-inAnimationReverse 750ms forwards; +} +@-webkit-keyframes invoke-inAnimationReverse { + 100% { + -webkit-transform: scale(0.6) translate3d(-130%, 0, 0); + } + 50% { + -webkit-transform: scale(0.8) translate3d(-110%, 0, 0); + } + 0% { + -webkit-transform: scale(1) translate3d(0, 0, 0); + } +} +@keyframes invoke-inAnimationReverse { + 100% { + transform: scale(0.6) translate3d(-130%, 0, 0); + } + 50% { + transform: scale(0.8) translate3d(-110%, 0, 0); + } + 0% { + transform: scale(1) translate3d(0, 0, 0); + } +} +.header-load { + -webkit-animation: header-loadAnimation 300ms forwards; + animation: header-loadAnimation 300ms forwards; +} +@-webkit-keyframes header-loadAnimation { + 0% { + -webkit-transform: translate3d(0%, 0, 0); + } + 100% { + -webkit-transform: translate3d(-90px, 0, 0); + opacity: 0.1; + } +} +@keyframes header-loadAnimation { + 0% { + transform: translate3d(0%, 0, 0); + } + 100% { + transform: translate3d(-90px, 0, 0); + opacity: 0.1; + } +} +.header-load.animation-reverse { + -webkit-animation: header-loadAnimationReverse 450ms forwards; + animation: header-loadAnimationReverse 450ms forwards; +} +@-webkit-keyframes header-loadAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, 0, 0); + } + 0% { + -webkit-transform: translate3d(-90px, 0, 0); + opacity: 0.1; + } +} +@keyframes header-loadAnimationReverse { + 100% { + transform: translate3d(0%, 0, 0); + } + 0% { + transform: translate3d(-90px, 0, 0); + opacity: 0.1; + } +} +.header-unload { + -webkit-animation: header-unloadAnimation 300ms forwards; + animation: header-unloadAnimation 300ms forwards; +} +@-webkit-keyframes header-unloadAnimation { + 0% { + -webkit-transform: translate3d(0%, 0, 0); + } + 100% { + -webkit-transform: translate3d(90px, 0, 0); + opacity: 0.1; + } +} +@keyframes header-unloadAnimation { + 0% { + transform: translate3d(0%, 0, 0); + } + 100% { + transform: translate3d(90px, 0, 0); + opacity: 0.1; + } +} +.header-unload.animation-reverse { + -webkit-animation: header-unloadAnimationReverse 450ms forwards; + animation: header-unloadAnimationReverse 450ms forwards; +} +@-webkit-keyframes header-unloadAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, 0, 0); + } + 0% { + -webkit-transform: translate3d(90px, 0, 0); + opacity: 0.1; + } +} +@keyframes header-unloadAnimationReverse { + 100% { + transform: translate3d(0%, 0, 0); + } + 0% { + transform: translate3d(90px, 0, 0); + opacity: 0.1; + } +} +.header-load-to { + -webkit-animation: header-load-toAnimation 500ms forwards; + animation: header-load-toAnimation 500ms forwards; +} +@-webkit-keyframes header-load-toAnimation { + 0% { + -webkit-transform: translate3d(90px, 0, 0); + opacity: 0.1; + } + 100% { + -webkit-transform: translate3d(0%, 0, 0); + opacity: 1; + } +} +@keyframes header-load-toAnimation { + 0% { + transform: translate3d(90px, 0, 0); + opacity: 0.1; + } + 100% { + transform: translate3d(0%, 0, 0); + opacity: 1; + } +} +.header-load-to.animation-reverse { + -webkit-animation: header-load-toAnimationReverse 750ms forwards; + animation: header-load-toAnimationReverse 750ms forwards; +} +@-webkit-keyframes header-load-toAnimationReverse { + 100% { + -webkit-transform: translate3d(90px, 0, 0); + opacity: 0.1; + } + 0% { + -webkit-transform: translate3d(0%, 0, 0); + opacity: 1; + } +} +@keyframes header-load-toAnimationReverse { + 100% { + transform: translate3d(90px, 0, 0); + opacity: 0.1; + } + 0% { + transform: translate3d(0%, 0, 0); + opacity: 1; + } +} +.header-unload-to { + -webkit-animation: header-unload-toAnimation 500ms forwards; + animation: header-unload-toAnimation 500ms forwards; +} +@-webkit-keyframes header-unload-toAnimation { + 0% { + -webkit-transform: translate3d(-90px, 0, 0); + opacity: 0.1; + } + 100% { + -webkit-transform: translate3d(0%, 0, 0); + opacity: 1; + } +} +@keyframes header-unload-toAnimation { + 0% { + transform: translate3d(-90px, 0, 0); + opacity: 0.1; + } + 100% { + transform: translate3d(0%, 0, 0); + opacity: 1; + } +} +.header-unload-to.animation-reverse { + -webkit-animation: header-unload-toAnimationReverse 750ms forwards; + animation: header-unload-toAnimationReverse 750ms forwards; +} +@-webkit-keyframes header-unload-toAnimationReverse { + 100% { + -webkit-transform: translate3d(-90px, 0, 0); + opacity: 0.1; + } + 0% { + -webkit-transform: translate3d(0%, 0, 0); + opacity: 1; + } +} +@keyframes header-unload-toAnimationReverse { + 100% { + transform: translate3d(-90px, 0, 0); + opacity: 0.1; + } + 0% { + transform: translate3d(0%, 0, 0); + opacity: 1; + } +} + +@-ms-viewport { + width: device-width; +} +body .afPopup { + border: solid 1px #33B5E5; + border-radius: 5px; + background: inherit; + color: inherit; +} +body .afPopup > FOOTER > A { + width: 120px; +} +body #af_actionsheet { + background: #0190d6; + color: inherit; +} +body #af_actionsheet a { + border-radius: 0; + color: black; + background: white; + border: none; + text-shadow: none; +} +.view header { + background: #0088d1; + border: none; + border-bottom: 1px solid #0088d1; + color: #ffffff; +} +.view header h1 { + text-shadow: none; + width: 45%; +} +.view header .backButton { + background: #f9f9f9; + color: #fff; + display: block; + line-height: 44px; + left: 25px; + text-overflow: ellipsis; + font-size: 14px; + padding: 0; + text-shadow: none; + background-color: transparent; + border: none; + border-color: transparent; + height: 44px; + top: 0; + border-radius: 0; + box-shadow: none; + margin: 0; + padding-left: 0; + text-align: center; + width: 50px; + padding: 0 !important; + margin: 0 !important; + position: absolute; +} +.view footer { + background: #0088d1; + border: none; + border-top: 1px solid #0088d1; + box-shadow: none; +} +.view footer > a { + color: #ffffff; +} +.view footer > a.pressed:not(.button) { + border-radius: 0; + background-color: #00AEEF; +} +.view footer > a.icon.pressed:not(.button):before { + color: inherit; +} +.backButton::before { + z-index: -1; + font-size: 22px; + position: absolute; + top: -2px; + left: -30px; + text-align: center; + border-radius: 0; + border: none; + border-color: transparent; + box-shadow: none; + -webkit-transform: none; + transform: none; + font-family: 'chevron'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; + content: "\f054"; + -webkit-transform: rotate(180deg); + transform: rotate(180deg); + background-color: transparent; + padding: 12px; +} +.af-badge { + border: none; + box-shadow: none; +} +.list { + background: inherit; + color: inherit; + border-color: #303030; + font-weight: normal; +} +.list .divider { + color: black; +} +.list > li > a:after { + color: #0088D1; +} +.panel { + color: inherit; + background: inherit; +} +.panel h2 { + color: #0088D1; +} +.collapsed:after { + border-top: 6px solid; +} +.collapsed:before { + border: 2px solid; +} +.expanded:after { + border-bottom: 6px solid; +} +.expanded:before { + border: 2px solid; +} +.collapsed:before, +.expanded:before { + border-color: inherit; +} +.collapsed:after, +.expanded:after { + border-top-color: inherit; +} +select, +textarea, +input[type="text"], +input[type=search], +input[type="password"], +input[type="datetime"], +input[type="datetime-local"], +input[type="date"], +input[type="month"], +input[type="time"], +input[type="week"], +input[type="number"], +input[type="email"], +input[type="url"], +input[type="tel"], +input[type="color"], +.input-group { + background: inherit; + color: inherit; +} +input.toggle + label:after { + color: inherit; +} +input.toggle + label { + border-radius: 0; +} +input.toggle + label > span { + border-radius: 0; + top: 0; + width: 27px; + height: 23px; +} +label { + color: inherit; +} +input[type="radio"]:checked + label:before, +input[type="checkbox"]:checked + label:before { + background: #33B5E5; +} +.button { + border-radius: 0; + text-shadow: none; +} +.button.previous { + border: none; +} +.button.next { + border: none; +} +.button.previous::after { + color: black; + z-index: -1; + font-size: 22px; + position: absolute; + top: 2px; + left: -25px; + text-align: center; + border-radius: 0; + border: none; + border-color: transparent; + box-shadow: none; + -webkit-transform: none; + transform: none; + font-family: 'chevron'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; + content: "\f054"; + -webkit-transform: rotate(180deg); + transform: rotate(180deg); + background-color: transparent; +} +.button.next::after { + color: black; + z-index: -1; + font-size: 22px; + position: absolute; + top: 6px; + right: -25px; + text-align: center; + border-radius: 0; + border: none; + border-color: transparent; + box-shadow: none; + -webkit-transform: none; + transform: none; + font-family: 'chevron'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; + content: "\f054"; + background-color: transparent; +} + +#af_actionsheet { + position: absolute; + left: 0px; + right: 0px; + padding-left: 10px; + padding-right: 10px; + padding-top: 10px; + margin: auto; + background: black; + float: left; + z-index: 9999; + border-top: #fff 1px solid; + background: rgba(71, 71, 71, 0.95); + background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.4)), to(rgba(255, 255, 255, 0)), color-stop(0.08, rgba(255, 255, 255, 0.1)), color-stop(0.08, rgba(255, 255, 255, 0))); + background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 8%, rgba(255, 255, 255, 0) 8%); + box-shadow: 0px -1px 2px rgba(0, 0, 0, 0.4); + bottom: 0px; +} +#af_actionsheet a { + text-decoration: none; + -webkit-transition: all 0.4s ease; + transition: all 0.4s ease; + text-shadow: 0px -1px rgba(0, 0, 0, 0.8); + padding: 0px .25em; + border: 1px solid rgba(0, 0, 0, 0.8); + text-overflow: ellipsis; + border-radius: .75em; + background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.4)), to(rgba(255, 255, 255, 0)), color-stop(0.5, rgba(255, 255, 255, 0.1)), color-stop(0.5, rgba(255, 255, 255, 0))); + background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 50%); + box-shadow: 0px 1px 1px rgba(255, 255, 255, 0.7); + display: block; + color: white; + text-align: center; + line-height: 36px; + font-size: 20px; + font-weight: bold; + margin-bottom: 10px; + background-color: #828282; +} +#af_actionsheet a.selected { + background-color: #969696; +} +#af_actionsheet a.cancel { + background-color: #2b2b2b; + color: white; +} +#af_actionsheet a.cancel.selected { + background-color: #494949; +} +#af_actionsheet a.red { + color: white; + background-color: #cc0000; +} +#af_actionsheet a.red.selected { + background-color: #ff0000; +} + +#mask { + display: block; + width: 100%; + height: 100%; + background: #000; + z-index: 999999; + position: fixed; + top: 0; + left: 0; +} +.afPopup { + display: block; + width: 280px; + float: left; + border: solid 1px #72767b; + border-radius: 10px; + padding: 10px; + opacity: 1; + -webkit-transform: scale(1); + transform: scale(1); + position: absolute; + z-index: 1000000; + top: 50%; + left: 50%; + margin: 0px auto; + background: #464646; + color: white; +} +.afPopup > * { + color: inherit; +} +.afPopup > HEADER { + font-weight: bold; + font-size: 20px; + margin: 0; + padding: 5px; +} +.afPopup > DIV { + font-size: 14px; + margin: 8px; +} +.afPopup > FOOTER { + width: 100%; + text-align: center; + display: block !important; +} +.afPopup > FOOTER > A#cancel { + float: left; +} +.afPopup > FOOTER > A#action { + float: right; +} +.afPopup > FOOTER > A.center { + float: none!important; + width: 80%; + margin: 8px; +} +.afPopup.hidden { + opacity: 0; + -webkit-transform: scale(0.1); +} +.afPopup.show { + -webkit-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; +} + +#splashscreen { + position: absolute; + top: 0; + bottom: 0; + width: 100%; + left: 0; + min-height: 120%; + background: #1d1d1c !important; + color: white !important; + font-size: 30px; + text-align: center; + z-index: 9999; + display: block; + margin-left: auto !important; + margin-right: auto !important; + padding-top: 80px !important; +} +.ui-icon { + background: #666; + background: rgba(0, 0, 0, 0.4); + background-repeat: no-repeat; +} +.ui-loader { + display: none; + margin: 10px; + position: absolute; + opacity: .85; + z-index: 100; + left: 50%; + width: 200px; + margin-left: -100px; + margin-top: -35px; + padding: 10px 30px; + background: #666; + background: rgba(0, 0, 0, 0.4); + color: white; +} +.ui-loader h1 { + font-size: 15px; + text-align: center; +} +.ui-loader .ui-icon { + position: static; + display: block; + opacity: .9; + margin: 10px auto; + width: 35px; + height: 35px; + background-color: #eee; +} +.ui-loader.heavy { + opacity: 1; +} +.spin { + -webkit-transform: rotate(360deg); + -webkit-animation-name: spin; + -webkit-animation-duration: 1s; + -webkit-animation-iteration-count: infinite; + transform: rotate(360deg); + animation-name: spin; + animation-duration: 1s; + animation-iteration-count: infinite; +} +@-webkit-keyframes spin { + from { + -webkit-transform: rotate(0deg); + } + to { + -webkit-transform: rotate(360deg); + } +} +@keyframes spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +} +.ui-icon-loading { + width: 40px; + height: 40px; + border-left: 2px solid #ccc; + border-right: 2px solid #ccc; + border-top: 2px solid #ccc; + border-bottom: 2px solid #ccc; + background: white; + border-radius: 10px; +} +.ui-corner-all { + border-radius: .6em; +} + +.swipe-reveal .swipe-hidden { + position: absolute; + right: 0px; + top: 0px; + z-index: 1; + bottom: 0px; +} +.swipe-reveal .swipe-content { + position: relative; + display: block; + color: inherit; + margin: -20px -20px -20px -10px; + text-decoration: none; + padding: 20px 20px 20px 10px; + background: inherit; + z-index: 2; +} +.swipe-hidden .button, +.swipe-hidden .button.pressed { + display: inline-block; + height: 100%; + background: #ccc !important; + color: white; + border-radius: 0 !important; + border: none; + padding: 20px 15px; + margin: 0; + float: left; + color: white !important; +} +.swipe-hidden .archive, +.swipe-hidden .archive.pressed { + background: red !important; +} + +.afToast { + width: auto; + border: solid 1px #72767b; + z-index: 1000000; + margin: 0px auto; + background: #464646; + color: white; + opacity: 0.95; + height: auto; + font-size: 20px; + -webkit-transition: all 0.3s; + transition: all 0.3s; + text-align: left; + line-height: 46px; + margin: 5px 10px; + border-radius: 5px; + overflow: hidden; +} +.afToast > * { + color: inherit; +} +.afToast > DIV { + font-size: 16px; + margin: 8px; +} +.afToast.hidden { + opacity: 0.1; + height: 5px; + overflow: hidden; +} +.afToastContainer { + position: absolute; + top: 0px; + left: 0px; + z-index: 99999; +} +.afToast.success { + background: #499349; +} +.afToast.error { + background: #AA312A; +} +.afToast.warning { + background: #DF8505; +} +.afToastContainer.br { + bottom: 0px; + right: 0px; + top: auto; + left: auto; +} +.afToastContainer.bl { + bottom: 0px; + left: 0px; + top: auto; + right: auto; +} +.afToastContainer.tl { + top: 0px; + left: 0px; + right: auto; + bottom: auto; +} +.afToastContainer.tr { + top: 0px; + right: 0px; + left: auto; + bottom: auto; +} +.afToastContainer.tc { + top: 0px; + right: 0px; + bottom: auto; + left: 0px; +} +.afToastContainer.bc { + top: auto; + right: 0px; + bottom: 0px; + left: 0px; +} + +.af-badge { + position: absolute; + top: 2px; + right: 2px; + display: inline-block; + min-width: 20px; + max-width: 90%; + height: 20px; + padding: 0 3px; + background-color: red; + border-radius: 20px; + font-size: 12px; + line-height: 19px; + font-weight: bold; + color: #fff; + text-overflow: ellipsis; + text-align: center; + text-shadow: 0 -1px 0 rgba(64, 0, 0, 0.6); +} +.af-badge.br { + bottom: 2px; + right: 2px; + top: auto; + left: auto; +} +.af-badge.bl { + bottom: 2px; + left: 2px; + top: auto; + right: auto; +} +.af-badge.tl { + top: 2px; + left: 2px; + right: auto; + bottom: auto; +} + +.button { + position: relative; + display: inline-block; + padding: 8px 12px; + margin: 8px 0; + font-weight: bold; + color: #000; + text-align: center; + vertical-align: top; + cursor: pointer; + background-color: #eee; + border: 1px solid #666; + text-decoration: none; + z-index: 2; +} +.button.pressed { + background: #fff; +} +.button.previous { + margin-left: 16px; + padding-left: 6px; + border-color: #666 #666 transparent transparent !important; +} +.button.next { + border-color: #666 transparent #666 #666 !important; + margin-right: 16px; + padding-right: 6px; +} +.button.previous::after { + z-index: -1; + content: ''; + position: absolute; + width: 25px; + height: 27px; + background-color: inherit; + top: 3px; + left: -11px; + border-radius: 5px; + border: 1px solid; + border-color: transparent transparent inherit transparent; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); +} +.button.next::after { + z-index: -1; + content: ''; + position: absolute; + width: 25px; + height: 27px; + background-color: inherit; + top: 3px; + right: -11px; + border-radius: 5px; + border: 1px solid; + border-color: transparent transparent transparent transparent; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); +} +.button.block { + display: block; +} +.button.flat { + border-radius: 0; + box-shadow: none; +} +.header .button-grouped > .button { + margin: 0; + border-color: #fff; +} +.header .button { + color: #fff; + background: none; + border-color: transparent; + font-size: 12px; + padding: 7px; + height: 32px; + margin: 5px; + text-overflow: ellipsis; + white-space: nowrap; +} +.header .button.icon:before { + padding-left: 6px; +} +.button-grouped { + display: inline-block; + margin: 5px; +} +.button-grouped * { + border-radius: 0px; + float: left; + border-left: 0px solid transparent; + border-right: 1px solid #666; + border-bottom: 1px solid #666; + border-top: 1px solid #666; + margin: 0; +} +.button-grouped > .button:first-child { + border-left: 1px solid #666; + border-top-left-radius: 3px; + border-bottom-left-radius: 3px; +} +.button-grouped > .button:last-child { + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; +} +.button-grouped.flex { + display: -webkit-box; + display: -moz-box; + display: -ms-flexbox; + display: -webkit-flex; + display: flex; +} +.button-grouped.flex > .button { + -webkit-box-flex: 1; + -moz-box-flex: 1 auto; + -webkit-flex: 1 auto; + -ms-flex: 1 auto; + flex: 1 auto; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} +.button-grouped.flex.vertical { + display: inline-block; +} +.button-grouped.vertical * { + border-radius: 0px; + display: block; + float: none; + width: 100%; + border-left: 1px solid #666; + border-right: 1px solid #666; + border-top: 1px solid #666; + border-bottom: 0px solid #666; +} +.button-grouped.vertical > .button:first-child { + border-top-left-radius: 3px; + border-top-right-radius: 3px; + border-bottom-left-radius: 0px; + border-bottom-right-radius: 0px; +} +.button-grouped.vertical > .button:last-child { + border-top-right-radius: 0px; + border-top-left-radius: 0px; + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; + border-bottom: 1px solid #666; +} +.button.gray { + background: #999; + border-color: #666; +} +.button.yellow { + background-color: #F1C222; + border-color: #999; +} +.button.red { + color: #fff; + text-shadow: 0 -1px 0 #666666; + background: #B20000; + border-color: #666; +} +.button.green { + color: #fff; + text-shadow: 0 -1px 0 #666666; + background: #009C0C; + border-color: #666; +} +.button.orange { + color: #fff; + text-shadow: 0 -1px 0 #666666; + background-color: #FF8000; + border-color: #666; +} +.button.black { + color: #fff; + text-shadow: none; + background: #000; + border-color: #666; +} +.button.slate { + color: #fff; + text-shadow: 0 -1px 0 #000000; + background: #171F28; + border-color: #666; +} +.backButton { + text-overflow: ellipsis; + white-space: nowrap; +} + +select, +textarea, +input[type="text"], +input[type=search], +input[type="password"], +input[type="datetime"], +input[type="datetime-local"], +input[type="date"], +input[type="month"], +input[type="time"], +input[type="week"], +input[type="number"], +input[type="email"], +input[type="url"], +input[type="tel"], +input[type="color"], +.input-group { + width: 100%; + height: 40px; + padding: 10px; + margin-bottom: 10px; + background: #fff; + border: 1px solid #ccc; + border-radius: 5px; + font-size: 14px; + font-weight: normal; + -webkit-appearance: none; + box-sizing: border-box; +} +form { + position: relative; +} +input[type="radio"], +input[type="checkbox"] { + display: none; +} +input[type="radio"] + label, +input[type="checkbox"] + label { + display: inline-block; + width: 60%; + float: right; + position: relative; + text-align: left; + padding: 13px 0 0 8px; + margin-top: 3px; +} +input[type="radio"]:not(.toggle) + label:before { + background-color: #fafafa; + border: 1px solid #cacece; + border-radius: 3px; + display: block; + position: absolute; + top: 8px; + left: -25px; + height: 28px; + width: 28px; + font-size: 13px; + text-align: center; + line-height: 28px; + content: " "; +} +input[type="radio"]:checked + label:before { + background-color: #1eb0e9; + -webkit-transition: background-color 150ms; + transition: background-color 150ms; +} +input[type="checkbox"] + label:before { + background-color: #fafafa; + border: 1px solid #cacece; + border-radius: 3px; + display: block; + position: absolute; + top: 8px; + left: -25px; + height: 28px; + width: 28px; + font-size: 13px; + text-align: center; + line-height: 28px; + content: " "; +} +input[type="checkbox"]:checked + label:before { + content: '\00a0\2714'; + padding: 0px; + display: inline-block; + background-color: #1eb0e9; + -webkit-transition: background-color 150ms; + transition: background-color 150ms; +} +input[type="radio"]:after, +input[type="checkbox"]:after { + visibility: hidden; + display: block; + font-size: 0; + content: " "; + clear: both; + height: 0; +} +input[type="search"] { + border-radius: 20px; +} +label { + float: left; + width: 33%; + font-weight: normal; + font-size: 14px; + color: inherit; + text-align: right; + padding: 15px 18px; +} +label + select, +label + input[type="radio"], +label + input[type="checkbox"] label + textarea, +label + input[type="text"], +label + input[type=search], +label + input[type="password"], +label + input[type="datetime"], +label + input[type="datetime-local"], +label + input[type="date"], +label + input[type="month"], +label + input[type="time"], +label + input[type="week"], +label + input[type="number"], +label + input[type="email"], +label + input[type="url"], +label + input[type="tel"], +label + input[type="color"], +label + textarea { + width: 66%; +} +textarea { + height: auto; +} +.input-group { + width: auto; + height: auto; + padding: 12px; + overflow: hidden; +} +.input-group input:not([type='button']):not([type='submit']), +.input-group textarea, +.input-group select { + margin-bottom: 0; + background-color: transparent; + border: 0; + border-bottom: 1px solid #ccc; + border-radius: 0; + box-shadow: none; +} +.input-group input:not([type="submit"]):not([type="button"]):last-child, +.input-group textarea:last-child, +.input-group select:last-child { + border-bottom: none; +} +.input-group input[type=button], +.input-group input[type=submit] { + margin: 5px; +} +input.toggle + label:before, +input.toggle:checked + label:before { + content: attr(data-on); + position: absolute; + color: #fff; + left: 5px; + width: 42px; + text-align: left; + z-index: 3; + top: 0px; + overflow: hidden; + background-color: transparent; + border: none; + border-radius: 0px; + text-transform: uppercase; + display: none; + height: 30px; + line-height: 29px !important; +} +input.toggle:checked + label:before { + display: block; +} +input.toggle:checked + label:after { + display: none; +} +input.toggle:checked + label { + background: #1eb0e9; + line-height: -1em; + -webkit-transition: background 150ms; + transition: background 150ms; +} +input.toggle:checked + label > span { + transform: translate3d(37px, 0, 0); + -webkit-transform: translate3d(37px, 0, 0); +} +input.toggle + label:after { + content: attr(data-off); + position: absolute; + color: #505050; + width: 42px; + text-align: left; + z-index: 1; + top: 0px; + left: 30px; + overflow: hidden; + background-color: transparent; + border: none; + border-radius: 0px; + text-transform: uppercase; + height: 30px; + line-height: 29px; +} +input.toggle + label { + position: relative; + margin: 5px; + border-radius: 50px; + display: block; + height: 30px; + width: 65px; + border: 1px solid #ccc; + left: 33%; + float: none; +} +input.toggle + label > span { + display: block; + width: 29px; + height: 31px; + background: #ccc; + border-radius: 50px; + z-index: 5; + top: -2px; + left: 0px; + position: absolute; + transition: transform 100ms linear; + transform: translate3d(0, 0, 0); + -webkit-transform: translate3d(0, 0, 0); + -webkit-transition: -webkit-transform 100ms linear; +} +.formGroupHead { + font-size: 18px; + font-weight: bold; + color: inherit; + margin: 16px 0 8px; +} +input[type=button], +input[type=submit], +button { + font-size: inherit; +} + +.grid { + width: 100%; + overflow: hidden; +} +.col2, +.col3, +.col1-3, +.col2-3 { + float: none; + width: 100%; +} +.grid:after { + content: ''; + clear: both; +} +@media handheld, only screen and (min-width: 768px) { + .col2 { + width: 50%; + float: left; + } + .col3 { + width: 33.3%; + float: left; + } + .col1-3 { + width: 33.3%; + float: left; + } + .col2-3 { + width: 66.6%; + float: left; + } +} + +.list { + margin: 0px; + padding: 0px; + list-style: none; + background-color: #fff; + margin: 0 -10px; + box-sizing: border-box; + -webkit-box-sizing: border-box; +} +.list li { + display: block; + list-style: none; + position: relative; + padding: 20px 20px 20px 10px; + border-bottom: 1px solid #ccc; + background: inherit; +} +.list li:first-child { + /* border-top: 1px solid #ccc;*/ +} +.list > li > a { + position: relative; + display: block; + color: inherit; + margin: -20px -20px -20px -10px; + text-decoration: none; + padding: 20px 20px 20px 10px; +} +.list > li > a:after, +.list > li .chevron:after { + position: absolute; + right: 8px; + font-family: 'chevron'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; + content: "\f054"; + top: 50%; + margin-top: -0.5em; + color: inherit; +} +.list a .af-badge { + position: absolute; + right: 30px; + top: 48%; + margin-top: -10px; +} +.list .divider { + position: relative; + top: -1px; + padding-top: 6px; + padding-bottom: 6px; + font-size: 12px; + font-weight: bold; + line-height: 18px; + background-color: #dfe0e2; + border-top: 1px solid #ccc; + border-bottom: 1px solid #ccc; + box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4); + padding-right: 60px; +} +.list.inset { + border: 1px solid #ccc; + border-radius: 6px; + margin: 10px; +} +.list.inset li:first-child { + border-top: none; + margin-top: 3px; +} +.list.inset li:last-child { + border-bottom: none; + margin-bottom: 3px; +} + +@media handheld, only screen and (min-width: 768px) { + .splitview > *:not(nav) { + margin-left: 256px; + z-index: 9; + -webkit-transform: none !important; + transform: none !important; + -webkit-animation: none !important; + animation: none !important; + } + .splitview > nav { + left: 0px !important; + width: 256px !important; + display: block !important; + z-index: 10; + -webkit-animation: none !important; + animation: none !important; + } + .splitview header .menuButton { + display: none !important; + } +} +header .menuButton { + position: relative; + top: 5px; + right: -8px; + height: 36px; + width: 36px; + z-index: 2; + float: right; +} +header .menuButton:after { + border-bottom: 9px double white; + border-top: 3px solid white; + top: 9px; + left: 3px; + content: ""; + height: 15px; + position: absolute; + width: 15px; +} diff --git a/css/af.ui.css b/css/af.ui.css new file mode 100644 index 0000000..80dbfc2 --- /dev/null +++ b/css/af.ui.css @@ -0,0 +1,4476 @@ +#af_actionsheet { + position: absolute; + left: 0px; + right: 0px; + padding-left: 10px; + padding-right: 10px; + padding-top: 10px; + margin: auto; + background: black; + float: left; + z-index: 9999; + border-top: #fff 1px solid; + background: rgba(71, 71, 71, 0.95); + background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.4)), to(rgba(255, 255, 255, 0)), color-stop(0.08, rgba(255, 255, 255, 0.1)), color-stop(0.08, rgba(255, 255, 255, 0))); + background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 8%, rgba(255, 255, 255, 0) 8%); + box-shadow: 0px -1px 2px rgba(0, 0, 0, 0.4); + bottom: 0px; +} +#af_actionsheet a { + text-decoration: none; + -webkit-transition: all 0.4s ease; + transition: all 0.4s ease; + text-shadow: 0px -1px rgba(0, 0, 0, 0.8); + padding: 0px .25em; + border: 1px solid rgba(0, 0, 0, 0.8); + text-overflow: ellipsis; + border-radius: .75em; + background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.4)), to(rgba(255, 255, 255, 0)), color-stop(0.5, rgba(255, 255, 255, 0.1)), color-stop(0.5, rgba(255, 255, 255, 0))); + background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 50%); + box-shadow: 0px 1px 1px rgba(255, 255, 255, 0.7); + display: block; + color: white; + text-align: center; + line-height: 36px; + font-size: 20px; + font-weight: bold; + margin-bottom: 10px; + background-color: #828282; +} +#af_actionsheet a.selected { + background-color: #969696; +} +#af_actionsheet a.cancel { + background-color: #2b2b2b; + color: white; +} +#af_actionsheet a.cancel.selected { + background-color: #494949; +} +#af_actionsheet a.red { + color: white; + background-color: #cc0000; +} +#af_actionsheet a.red.selected { + background-color: #ff0000; +} + +#mask { + display: block; + width: 100%; + height: 100%; + background: #000; + z-index: 999999; + position: fixed; + top: 0; + left: 0; +} +.afPopup { + display: block; + width: 280px; + float: left; + border: solid 1px #72767b; + border-radius: 10px; + padding: 10px; + opacity: 1; + -webkit-transform: scale(1); + transform: scale(1); + position: absolute; + z-index: 1000000; + top: 50%; + left: 50%; + margin: 0px auto; + background: #464646; + color: white; +} +.afPopup > * { + color: inherit; +} +.afPopup > HEADER { + font-weight: bold; + font-size: 20px; + margin: 0; + padding: 5px; +} +.afPopup > DIV { + font-size: 14px; + margin: 8px; +} +.afPopup > FOOTER { + width: 100%; + text-align: center; + display: block !important; +} +.afPopup > FOOTER > A#cancel { + float: left; +} +.afPopup > FOOTER > A#action { + float: right; +} +.afPopup > FOOTER > A.center { + float: none!important; + width: 80%; + margin: 8px; +} +.afPopup.hidden { + opacity: 0; + -webkit-transform: scale(0.1); +} +.afPopup.show { + -webkit-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; +} + +#splashscreen { + position: absolute; + top: 0; + bottom: 0; + width: 100%; + left: 0; + min-height: 120%; + background: #1d1d1c !important; + color: white !important; + font-size: 30px; + text-align: center; + z-index: 9999; + display: block; + margin-left: auto !important; + margin-right: auto !important; + padding-top: 80px !important; +} +.ui-icon { + background: #666; + background: rgba(0, 0, 0, 0.4); + background-repeat: no-repeat; +} +.ui-loader { + display: none; + margin: 10px; + position: absolute; + opacity: .85; + z-index: 100; + left: 50%; + width: 200px; + margin-left: -100px; + margin-top: -35px; + padding: 10px 30px; + background: #666; + background: rgba(0, 0, 0, 0.4); + color: white; +} +.ui-loader h1 { + font-size: 15px; + text-align: center; +} +.ui-loader .ui-icon { + position: static; + display: block; + opacity: .9; + margin: 10px auto; + width: 35px; + height: 35px; + background-color: #eee; +} +.ui-loader.heavy { + opacity: 1; +} +.spin { + -webkit-transform: rotate(360deg); + -webkit-animation-name: spin; + -webkit-animation-duration: 1s; + -webkit-animation-iteration-count: infinite; + transform: rotate(360deg); + animation-name: spin; + animation-duration: 1s; + animation-iteration-count: infinite; +} +@-webkit-keyframes spin { + from { + -webkit-transform: rotate(0deg); + } + to { + -webkit-transform: rotate(360deg); + } +} +@keyframes spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +} +.ui-icon-loading { + width: 40px; + height: 40px; + border-left: 2px solid #ccc; + border-right: 2px solid #ccc; + border-top: 2px solid #ccc; + border-bottom: 2px solid #ccc; + background: white; + border-radius: 10px; +} +.ui-corner-all { + border-radius: .6em; +} + +.swipe-reveal .swipe-hidden { + position: absolute; + right: 0px; + top: 0px; + z-index: 1; + bottom: 0px; +} +.swipe-reveal .swipe-content { + position: relative; + display: block; + color: inherit; + margin: -20px -20px -20px -10px; + text-decoration: none; + padding: 20px 20px 20px 10px; + background: inherit; + z-index: 2; +} +.swipe-hidden .button, +.swipe-hidden .button.pressed { + display: inline-block; + height: 100%; + background: #ccc !important; + color: white; + border-radius: 0 !important; + border: none; + padding: 20px 15px; + margin: 0; + float: left; + color: white !important; +} +.swipe-hidden .archive, +.swipe-hidden .archive.pressed { + background: red !important; +} + +.afToast { + width: auto; + border: solid 1px #72767b; + z-index: 1000000; + margin: 0px auto; + background: #464646; + color: white; + opacity: 0.95; + height: auto; + font-size: 20px; + -webkit-transition: all 0.3s; + transition: all 0.3s; + text-align: left; + line-height: 46px; + margin: 5px 10px; + border-radius: 5px; + overflow: hidden; +} +.afToast > * { + color: inherit; +} +.afToast > DIV { + font-size: 16px; + margin: 8px; +} +.afToast.hidden { + opacity: 0.1; + height: 5px; + overflow: hidden; +} +.afToastContainer { + position: absolute; + top: 0px; + left: 0px; + z-index: 99999; +} +.afToast.success { + background: #499349; +} +.afToast.error { + background: #AA312A; +} +.afToast.warning { + background: #DF8505; +} +.afToastContainer.br { + bottom: 0px; + right: 0px; + top: auto; + left: auto; +} +.afToastContainer.bl { + bottom: 0px; + left: 0px; + top: auto; + right: auto; +} +.afToastContainer.tl { + top: 0px; + left: 0px; + right: auto; + bottom: auto; +} +.afToastContainer.tr { + top: 0px; + right: 0px; + left: auto; + bottom: auto; +} +.afToastContainer.tc { + top: 0px; + right: 0px; + bottom: auto; + left: 0px; +} +.afToastContainer.bc { + top: auto; + right: 0px; + bottom: 0px; + left: 0px; +} + +.android, +.android .view, +.android .view .pages { + font: 14px 'Roboto', sans-serif; + background: #000; + color: #fff; + border-color: #fff; +} +.android.light .view, +.android.light .view .pages { + background: #FDFDFD; + color: #000; +} +.android .view header { + background: inherit; + color: inherit; + border-color: #33b5e5; +} +.android .view header .button { + color: inherit; + background: none; + font-size: 14px; + box-shadow: none; +} +.android .view header .backButton { + background: inherit; + color: inherit; +} +.android .view footer { + box-shadow: none; + background: inherit; + border-top: 2px solid #33b5e5; + border-bottom: none; + padding: 0; +} +.android .view footer > a:not(.button) { + color: inherit; + top: 0px; +} +.android .view footer > a.pressed:not(.button) { + border: 0px; + border-top: 1px solid #33b5e5; + border-radius: 0px; + background: none; +} +.android .view footer > a.icon.pressed:not(.button):before { + color: inherit; +} +.android .menuButton:after { + border-color: white; +} +.android .af-badge { + border: none; +} +.android .list { + background: inherit; + color: inherit; + border-color: #303030; +} +.android .list .divider { + color: black; +} +.android .panel h2 { + color: inherit; +} +.android .collapsed:after { + border-top: 6px solid; +} +.android .collapsed:before { + border: 2px solid; +} +.android .expanded:after { + border-bottom: 6px solid; +} +.android .expanded:before { + border: 2px solid; +} +.android .afScrollbar { + background: white !important; +} +.android input[type="range"] { + -webkit-appearance: none; + background-color: #ccc; + height: 2px !important; + position: relative; + top: -10px; + margin-top: 15px; +} +.android input[type="range"]::-webkit-slider-thumb { + -webkit-appearance: none; + position: relative; + z-index: 1; + width: 21px; + height: 21px; + border-radius: 40px; + background: #33b5e5; +} +.android input.toggle + label:after { + color: inherit; +} +.android input.toggle + label { + border-radius: 0; +} +.android input.toggle + label > span { + border-radius: 0; + top: 0; + width: 27px; + height: 29px; +} +.android input.toggle:checked + label { + background: #33b5e5; +} +.android label { + color: inherit; +} +.android input[type="checkbox"] + label:before { + border-radius: 0; +} +.android input[type="checkbox"]:not(.toggle):checked + label:before { + color: #33b5e5; + background: white; +} +.android .button { + border-radius: 0; + border: none; + background: #424343; + border-color: transparent; + color: inherit; + text-shadow: none; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); +} +.android .button.previous::after { + width: 20px; + height: 20px; + background-color: inherit; + top: 5px; + left: -12px; + border-radius: 0; + box-shadow: none; + border-color: transparent; +} +.android .button.next::after { + width: 20px; + height: 20px; + background-color: inherit; + top: 5px; + right: -12px; + border-radius: 0; + box-shadow: none; + border-color: transparent; +} +.android header .button-grouped > .button { + border-color: #777; +} +.android .button-grouped * { + border: 1px solid rgba(255, 255, 255, 0.25); + border-left-width: 0; + box-shadow: none; +} +.android .button-grouped.vertical * { + border-left: 1px solid rgba(255, 255, 255, 0.25); + border-bottom-width: 0; +} +.android .button-grouped.vertical .button:last-child { + border-bottom: 1px solid rgba(255, 255, 255, 0.25); +} +.android .afPopup { + border: solid 1px #aaa; + padding: 0; + border-radius: 0; + -webkit-transform: none; + transform: none; + -webkit-transition: none; + transition: none; + background: inherit; + background-color: rgba(0, 0, 0, 0.9); + color: inherit; +} +.android .afPopup > HEADER { + font-weight: normal; + font-size: 20px; + text-align: left; + padding: 10px; +} +.android .afPopup > DIV { + font-size: 14px; + text-align: left; + padding: 10px; + margin: 0; + border-top: solid 1px #aaa; + border-bottom: solid 1px #aaa; +} +.android .afPopup > FOOTER { + background: #bbb; +} +.android .afPopup > FOOTER > A#cancel { + margin-left: 10px; + width: 120px; +} +.android .afPopup > FOOTER > A#action { + margin-right: 10px; + width: 120px; +} +.android .afPopup > FOOTER > A.center { + margin: 8px; +} +.android #af_actionsheet { + border: #666 1px solid; + border-top: #33b5e5 3px solid; + background: #555; + color: inherit; + margin: -20px 20px 0 20px; + padding: 0px; +} +.android #af_actionsheet a { + border-radius: 0; + border: 0px solid #777; + background: #424343; + color: inherit; + line-height: 50px; + margin-bottom: 1px; +} +.android #af_actionsheet a.cancel { + margin-bottom: 0px; + background: #424343; + color: red; +} +.android.light .menuButton:after { + border-color: black; +} +.android.light .afScrollbar { + background: black !important; +} +.android.light .button { + background: #eee; + border-color: #D1D1D1; +} +.android.light .afPopup { + background-color: rgba(255, 255, 255, 0.9); +} +.android.light #af_actionsheet { + border: #bbb 1px solid; + border-top: #33b5e5 3px solid; + background: #bbb; +} +.android.light #af_actionsheet a { + background: #fff; +} +.android .view .panel { + background: inherit; + color: inherit; +} +.android .collapsed:before, +.android .expanded:before { + border-color: inherit; +} +.android .collapsed:after, +.android .expanded:after { + border-top-color: inherit; +} +.android select, +.android textarea, +.android input[type="text"], +.android input[type=search], +.android input[type="password"], +.android input[type="datetime"], +.android input[type="datetime-local"], +.android input[type="date"], +.android input[type="month"], +.android input[type="time"], +.android input[type="week"], +.android input[type="number"], +.android input[type="email"], +.android input[type="url"], +.android input[type="tel"], +.android input[type="color"], +.android .input-group { + background: inherit; + color: inherit; + border: none; + border-radius: 0; + border-bottom: 1px solid #ccc; +} +.android:not(.light) input[type="radio"]:not(.toggle):checked + label:before { + background: #33b5e5; + border: 2px solid white; +} +.android .button.pressed, +.android header .button-grouped > .button.pressed { + background: #33b5e5; + border-color: #33b5e5; +} +.android .afPopup > FOOTER > A, +.android.light .afPopup > FOOTER > A { + background: #fff; + color: #111; +} + +.panel.active, +.panel.animation-active { + display: block !important; + z-index: 100; + -webkit-animation-timing-function: linear !important; + animation-timing-function: linear !important; +} +.animation-active { + -webkit-animation-timing-function: linear !important; + animation-timing-function: linear !important; +} +.panel.animation-active { + -webkit-transition-duration: 300ms; + transition-duration: 300ms; +} +.fast { + -webkit-transition-duration: 100ms !important; + transition-duration: 100ms !important; +} +.none-in, +.none-out { + -webkit-animation: noTransition 1ms forwards; + animation: noTransition 1ms forwards; +} +.blank-in, +.blank-out, +.blank { + -webkit-animation: noTransition 300ms forwards; + animation: noTransition 300ms forwards; +} +@-webkit-keyframes noTransition { + from { + opacity: 1.0; + } + to { + opacity: 0.99; + } +} +@keyframes noTransition { + from { + opacity: 1.0; + } + to { + opacity: 0.99; + } +} + +.slide-in { + -webkit-animation: slide-inAnimation 300ms forwards; + animation: slide-inAnimation 300ms forwards; +} +@-webkit-keyframes slide-inAnimation { + 0% { + -webkit-transform: translate3d(100%, 0, 0); + } + 100% { + -webkit-transform: translate3d(0, 0, 0); + } +} +@keyframes slide-inAnimation { + 0% { + transform: translate3d(100%, 0, 0); + } + 100% { + transform: translate3d(0, 0, 0); + } +} +.slide-in.animation-reverse { + -webkit-animation: slide-inAnimationReverse 450ms forwards; + animation: slide-inAnimationReverse 450ms forwards; +} +@-webkit-keyframes slide-inAnimationReverse { + 100% { + -webkit-transform: translate3d(100%, 0, 0); + } + 0% { + -webkit-transform: translate3d(0, 0, 0); + } +} +@keyframes slide-inAnimationReverse { + 100% { + transform: translate3d(100%, 0, 0); + } + 0% { + transform: translate3d(0, 0, 0); + } +} +.slide-out { + -webkit-animation: slide-outAnimation 300ms forwards; + animation: slide-outAnimation 300ms forwards; +} +@-webkit-keyframes slide-outAnimation { + 0% { + -webkit-transform: translate3d(0%, 0, 0); + } + 100% { + -webkit-transform: translate3d(-200px, 0, 0); + } +} +@keyframes slide-outAnimation { + 0% { + transform: translate3d(0%, 0, 0); + } + 100% { + transform: translate3d(-200px, 0, 0); + } +} +.slide-out.animation-reverse { + -webkit-animation: slide-outAnimationReverse 450ms forwards; + animation: slide-outAnimationReverse 450ms forwards; +} +@-webkit-keyframes slide-outAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, 0, 0); + } + 0% { + -webkit-transform: translate3d(-200px, 0, 0); + } +} +@keyframes slide-outAnimationReverse { + 100% { + transform: translate3d(0%, 0, 0); + } + 0% { + transform: translate3d(-200px, 0, 0); + } +} +.slide-full-in { + -webkit-animation: slide-full-inAnimation 300ms forwards; + animation: slide-full-inAnimation 300ms forwards; +} +@-webkit-keyframes slide-full-inAnimation { + 0% { + -webkit-transform: translate3d(100%, 0, 0); + } + 100% { + -webkit-transform: translate3d(0, 0, 0); + } +} +@keyframes slide-full-inAnimation { + 0% { + transform: translate3d(100%, 0, 0); + } + 100% { + transform: translate3d(0, 0, 0); + } +} +.slide-full-in.animation-reverse { + -webkit-animation: slide-full-inAnimationReverse 450ms forwards; + animation: slide-full-inAnimationReverse 450ms forwards; +} +@-webkit-keyframes slide-full-inAnimationReverse { + 100% { + -webkit-transform: translate3d(100%, 0, 0); + } + 0% { + -webkit-transform: translate3d(0, 0, 0); + } +} +@keyframes slide-full-inAnimationReverse { + 100% { + transform: translate3d(100%, 0, 0); + } + 0% { + transform: translate3d(0, 0, 0); + } +} +.slide-full-out { + -webkit-animation: slide-full-outAnimation 300ms forwards; + animation: slide-full-outAnimation 300ms forwards; +} +@-webkit-keyframes slide-full-outAnimation { + 0% { + -webkit-transform: translate3d(0%, 0, 0); + } + 100% { + -webkit-transform: translate3d(-100%, 0, 0); + } +} +@keyframes slide-full-outAnimation { + 0% { + transform: translate3d(0%, 0, 0); + } + 100% { + transform: translate3d(-100%, 0, 0); + } +} +.slide-full-out.animation-reverse { + -webkit-animation: slide-full-outAnimationReverse 450ms forwards; + animation: slide-full-outAnimationReverse 450ms forwards; +} +@-webkit-keyframes slide-full-outAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, 0, 0); + } + 0% { + -webkit-transform: translate3d(-100%, 0, 0); + } +} +@keyframes slide-full-outAnimationReverse { + 100% { + transform: translate3d(0%, 0, 0); + } + 0% { + transform: translate3d(-100%, 0, 0); + } +} +.pop-in { + -webkit-animation: pop-inAnimation 300ms forwards; + animation: pop-inAnimation 300ms forwards; +} +@-webkit-keyframes pop-inAnimation { + 0% { + opacity: 0; + -webkit-transform: scale(0.5); + } + 100% { + opacity: 1; + -webkit-transform: scale(1); + } +} +@keyframes pop-inAnimation { + 0% { + opacity: 0; + transform: scale(0.5); + } + 100% { + opacity: 1; + transform: scale(1); + } +} +.pop-in.animation-reverse { + -webkit-animation: pop-inAnimationReverse 450ms forwards; + animation: pop-inAnimationReverse 450ms forwards; +} +@-webkit-keyframes pop-inAnimationReverse { + 100% { + opacity: 0; + -webkit-transform: scale(0.5); + } + 0% { + opacity: 1; + -webkit-transform: scale(1); + } +} +@keyframes pop-inAnimationReverse { + 100% { + opacity: 0; + transform: scale(0.5); + } + 0% { + opacity: 1; + transform: scale(1); + } +} +.pop-out { + -webkit-animation: noTransition 300ms forwards; + animation: noTransition 300ms forwards; +} +.fade-in { + -webkit-animation: fade-inAnimation 300ms forwards; + animation: fade-inAnimation 300ms forwards; +} +@-webkit-keyframes fade-inAnimation { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } +} +@keyframes fade-inAnimation { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } +} +.fade-in.animation-reverse { + -webkit-animation: fade-inAnimationReverse 450ms forwards; + animation: fade-inAnimationReverse 450ms forwards; +} +@-webkit-keyframes fade-inAnimationReverse { + 100% { + opacity: 0; + } + 0% { + opacity: 1; + } +} +@keyframes fade-inAnimationReverse { + 100% { + opacity: 0; + } + 0% { + opacity: 1; + } +} +.fade-out { + -webkit-animation: noTransition 300ms forwards; + animation: noTransition 300ms forwards; +} +.up-in { + -webkit-animation: up-inAnimation 300ms forwards; + animation: up-inAnimation 300ms forwards; +} +@-webkit-keyframes up-inAnimation { + 0% { + -webkit-transform: translate3d(0%, 100%, 0); + } + 100% { + -webkit-transform: translate3d(0%, 0%, 0); + } +} +@keyframes up-inAnimation { + 0% { + transform: translate3d(0%, 100%, 0); + } + 100% { + transform: translate3d(0%, 0%, 0); + } +} +.up-in.animation-reverse { + -webkit-animation: up-inAnimationReverse 450ms forwards; + animation: up-inAnimationReverse 450ms forwards; +} +@-webkit-keyframes up-inAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, 100%, 0); + } + 0% { + -webkit-transform: translate3d(0%, 0%, 0); + } +} +@keyframes up-inAnimationReverse { + 100% { + transform: translate3d(0%, 100%, 0); + } + 0% { + transform: translate3d(0%, 0%, 0); + } +} +.up-out { + -webkit-animation: up-outAnimation 300ms forwards; + animation: up-outAnimation 300ms forwards; +} +@-webkit-keyframes up-outAnimation { + 0% { + -webkit-transform: translate3d(0%, 0, 0); + } + 100% { + -webkit-transform: translate3d(0%, -200px, 0); + } +} +@keyframes up-outAnimation { + 0% { + transform: translate3d(0%, 0, 0); + } + 100% { + transform: translate3d(0%, -200px, 0); + } +} +.up-out.animation-reverse { + -webkit-animation: up-outAnimationReverse 450ms forwards; + animation: up-outAnimationReverse 450ms forwards; +} +@-webkit-keyframes up-outAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, 0, 0); + } + 0% { + -webkit-transform: translate3d(0%, -200px, 0); + } +} +@keyframes up-outAnimationReverse { + 100% { + transform: translate3d(0%, 0, 0); + } + 0% { + transform: translate3d(0%, -200px, 0); + } +} +.down-in { + -webkit-animation: down-inAnimation 300ms forwards; + animation: down-inAnimation 300ms forwards; +} +@-webkit-keyframes down-inAnimation { + 0% { + -webkit-transform: translate3d(0%, -100%, 0); + } + 100% { + -webkit-transform: translate3d(0%, 0%, 0); + } +} +@keyframes down-inAnimation { + 0% { + transform: translate3d(0%, -100%, 0); + } + 100% { + transform: translate3d(0%, 0%, 0); + } +} +.down-in.animation-reverse { + -webkit-animation: down-inAnimationReverse 450ms forwards; + animation: down-inAnimationReverse 450ms forwards; +} +@-webkit-keyframes down-inAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, -100%, 0); + } + 0% { + -webkit-transform: translate3d(0%, 0%, 0); + } +} +@keyframes down-inAnimationReverse { + 100% { + transform: translate3d(0%, -100%, 0); + } + 0% { + transform: translate3d(0%, 0%, 0); + } +} +.down-out { + -webkit-animation: down-outAnimation 300ms forwards; + animation: down-outAnimation 300ms forwards; +} +@-webkit-keyframes down-outAnimation { + 0% { + -webkit-transform: translate3d(0%, 0%, 0); + } + 100% { + -webkit-transform: translate3d(0%, 200px, 0); + } +} +@keyframes down-outAnimation { + 0% { + transform: translate3d(0%, 0%, 0); + } + 100% { + transform: translate3d(0%, 200px, 0); + } +} +.down-out.animation-reverse { + -webkit-animation: down-outAnimationReverse 450ms forwards; + animation: down-outAnimationReverse 450ms forwards; +} +@-webkit-keyframes down-outAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, 0%, 0); + } + 0% { + -webkit-transform: translate3d(0%, 200px, 0); + } +} +@keyframes down-outAnimationReverse { + 100% { + transform: translate3d(0%, 0%, 0); + } + 0% { + transform: translate3d(0%, 200px, 0); + } +} +.flip-in { + -webkit-animation: flip-inAnimation 300ms forwards; + animation: flip-inAnimation 300ms forwards; + z-index: 5; + backface-visibility: hidden; + -webkit-backface-visibility: hidden; +} +@-webkit-keyframes flip-inAnimation { + 0% { + -webkit-transform: rotateY(180deg); + } + 100% { + -webkit-transform: rotateY(0deg); + } +} +@keyframes flip-inAnimation { + 0% { + transform: rotateY(180deg); + } + 100% { + transform: rotateY(0deg); + } +} +.flip-in.animation-reverse { + -webkit-animation: flip-inAnimationReverse 450ms forwards; + animation: flip-inAnimationReverse 450ms forwards; +} +@-webkit-keyframes flip-inAnimationReverse { + 100% { + -webkit-transform: rotateY(180deg); + } + 0% { + -webkit-transform: rotateY(0deg); + } +} +@keyframes flip-inAnimationReverse { + 100% { + transform: rotateY(180deg); + } + 0% { + transform: rotateY(0deg); + } +} +.flip-out { + -webkit-animation: flip-outAnimation 300ms forwards; + animation: flip-outAnimation 300ms forwards; + z-index: 4; + backface-visibility: hidden; + -webkit-backface-visibility: hidden; +} +@-webkit-keyframes flip-outAnimation { + 0% { + -webkit-transform: rotateY(0deg); + } + 100% { + -webkit-transform: rotateY(180deg); + } +} +@keyframes flip-outAnimation { + 0% { + transform: rotateY(0deg); + } + 100% { + transform: rotateY(180deg); + } +} +.flip-out.animation-reverse { + -webkit-animation: flip-outAnimationReverse 450ms forwards; + animation: flip-outAnimationReverse 450ms forwards; +} +@-webkit-keyframes flip-outAnimationReverse { + 100% { + -webkit-transform: rotateY(0deg); + } + 0% { + -webkit-transform: rotateY(180deg); + } +} +@keyframes flip-outAnimationReverse { + 100% { + transform: rotateY(0deg); + } + 0% { + transform: rotateY(180deg); + } +} +.slide-left-in { + -webkit-animation: slide-left-inAnimation 300ms forwards; + animation: slide-left-inAnimation 300ms forwards; +} +@-webkit-keyframes slide-left-inAnimation { + 0% { + -webkit-transform: translate3d(-100%, 0, 0); + } + 100% { + -webkit-transform: translate3d(0, 0, 0); + } +} +@keyframes slide-left-inAnimation { + 0% { + transform: translate3d(-100%, 0, 0); + } + 100% { + transform: translate3d(0, 0, 0); + } +} +.slide-left-in.animation-reverse { + -webkit-animation: slide-left-inAnimationReverse 450ms forwards; + animation: slide-left-inAnimationReverse 450ms forwards; +} +@-webkit-keyframes slide-left-inAnimationReverse { + 100% { + -webkit-transform: translate3d(-100%, 0, 0); + } + 0% { + -webkit-transform: translate3d(0, 0, 0); + } +} +@keyframes slide-left-inAnimationReverse { + 100% { + transform: translate3d(-100%, 0, 0); + } + 0% { + transform: translate3d(0, 0, 0); + } +} +.slide-left-out { + -webkit-animation: slide-left-outAnimation 300ms forwards; + animation: slide-left-outAnimation 300ms forwards; +} +@-webkit-keyframes slide-left-outAnimation { + 0% { + -webkit-transform: translate3d(0%, 0, 0); + } + 100% { + -webkit-transform: translate3d(200px, 0, 0); + } +} +@keyframes slide-left-outAnimation { + 0% { + transform: translate3d(0%, 0, 0); + } + 100% { + transform: translate3d(200px, 0, 0); + } +} +.slide-left-out.animation-reverse { + -webkit-animation: slide-left-outAnimationReverse 450ms forwards; + animation: slide-left-outAnimationReverse 450ms forwards; +} +@-webkit-keyframes slide-left-outAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, 0, 0); + } + 0% { + -webkit-transform: translate3d(200px, 0, 0); + } +} +@keyframes slide-left-outAnimationReverse { + 100% { + transform: translate3d(0%, 0, 0); + } + 0% { + transform: translate3d(200px, 0, 0); + } +} +.slide-right-in { + -webkit-animation: slide-right-inAnimation 300ms forwards; + animation: slide-right-inAnimation 300ms forwards; +} +@-webkit-keyframes slide-right-inAnimation { + 0% { + -webkit-transform: translate3d(100%, 0, 0); + } + 100% { + -webkit-transform: translate3d(0, 0, 0); + } +} +@keyframes slide-right-inAnimation { + 0% { + transform: translate3d(100%, 0, 0); + } + 100% { + transform: translate3d(0, 0, 0); + } +} +.slide-right-in.animation-reverse { + -webkit-animation: slide-right-inAnimationReverse 450ms forwards; + animation: slide-right-inAnimationReverse 450ms forwards; +} +@-webkit-keyframes slide-right-inAnimationReverse { + 100% { + -webkit-transform: translate3d(100%, 0, 0); + } + 0% { + -webkit-transform: translate3d(0, 0, 0); + } +} +@keyframes slide-right-inAnimationReverse { + 100% { + transform: translate3d(100%, 0, 0); + } + 0% { + transform: translate3d(0, 0, 0); + } +} +.slide-right-out { + -webkit-animation: slide-right-outAnimation 300ms forwards; + animation: slide-right-outAnimation 300ms forwards; +} +@-webkit-keyframes slide-right-outAnimation { + 0% { + -webkit-transform: translate3d(0%, 0, 0); + } + 100% { + -webkit-transform: translate3d(-200px, 0, 0); + } +} +@keyframes slide-right-outAnimation { + 0% { + transform: translate3d(0%, 0, 0); + } + 100% { + transform: translate3d(-200px, 0, 0); + } +} +.slide-right-out.animation-reverse { + -webkit-animation: slide-right-outAnimationReverse 450ms forwards; + animation: slide-right-outAnimationReverse 450ms forwards; +} +@-webkit-keyframes slide-right-outAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, 0, 0); + } + 0% { + -webkit-transform: translate3d(-200px, 0, 0); + } +} +@keyframes slide-right-outAnimationReverse { + 100% { + transform: translate3d(0%, 0, 0); + } + 0% { + transform: translate3d(-200px, 0, 0); + } +} +.invoke-out { + -webkit-animation: invoke-outAnimation 500ms forwards; + animation: invoke-outAnimation 500ms forwards; + z-index: 11; +} +@-webkit-keyframes invoke-outAnimation { + 0% { + -webkit-transform: scale(1) translate3d(0%, 0, 0); + } + 50% { + -webkit-transform: scale(0.8) translate3d(10%, 0, 0); + } + 100% { + -webkit-transform: scale(0.8) translate3d(100%, 0, 0); + } +} +@keyframes invoke-outAnimation { + 0% { + transform: scale(1) translate3d(0%, 0, 0); + } + 50% { + transform: scale(0.8) translate3d(10%, 0, 0); + } + 100% { + transform: scale(0.8) translate3d(100%, 0, 0); + } +} +.invoke-out.animation-reverse { + -webkit-animation: invoke-outAnimationReverse 750ms forwards; + animation: invoke-outAnimationReverse 750ms forwards; +} +@-webkit-keyframes invoke-outAnimationReverse { + 100% { + -webkit-transform: scale(1) translate3d(0%, 0, 0); + } + 50% { + -webkit-transform: scale(0.8) translate3d(10%, 0, 0); + } + 0% { + -webkit-transform: scale(0.8) translate3d(100%, 0, 0); + } +} +@keyframes invoke-outAnimationReverse { + 100% { + transform: scale(1) translate3d(0%, 0, 0); + } + 50% { + transform: scale(0.8) translate3d(10%, 0, 0); + } + 0% { + transform: scale(0.8) translate3d(100%, 0, 0); + } +} +.invoke-in { + -webkit-animation: invoke-inAnimation 500ms forwards; + animation: invoke-inAnimation 500ms forwards; + z-index: 10; +} +@-webkit-keyframes invoke-inAnimation { + 0% { + -webkit-transform: scale(0.6) translate3d(-130%, 0, 0); + } + 50% { + -webkit-transform: scale(0.8) translate3d(-110%, 0, 0); + } + 100% { + -webkit-transform: scale(1) translate3d(0, 0, 0); + } +} +@keyframes invoke-inAnimation { + 0% { + transform: scale(0.6) translate3d(-130%, 0, 0); + } + 50% { + transform: scale(0.8) translate3d(-110%, 0, 0); + } + 100% { + transform: scale(1) translate3d(0, 0, 0); + } +} +.invoke-in.animation-reverse { + -webkit-animation: invoke-inAnimationReverse 750ms forwards; + animation: invoke-inAnimationReverse 750ms forwards; +} +@-webkit-keyframes invoke-inAnimationReverse { + 100% { + -webkit-transform: scale(0.6) translate3d(-130%, 0, 0); + } + 50% { + -webkit-transform: scale(0.8) translate3d(-110%, 0, 0); + } + 0% { + -webkit-transform: scale(1) translate3d(0, 0, 0); + } +} +@keyframes invoke-inAnimationReverse { + 100% { + transform: scale(0.6) translate3d(-130%, 0, 0); + } + 50% { + transform: scale(0.8) translate3d(-110%, 0, 0); + } + 0% { + transform: scale(1) translate3d(0, 0, 0); + } +} +.header-load { + -webkit-animation: header-loadAnimation 300ms forwards; + animation: header-loadAnimation 300ms forwards; +} +@-webkit-keyframes header-loadAnimation { + 0% { + -webkit-transform: translate3d(0%, 0, 0); + } + 100% { + -webkit-transform: translate3d(-90px, 0, 0); + opacity: 0.1; + } +} +@keyframes header-loadAnimation { + 0% { + transform: translate3d(0%, 0, 0); + } + 100% { + transform: translate3d(-90px, 0, 0); + opacity: 0.1; + } +} +.header-load.animation-reverse { + -webkit-animation: header-loadAnimationReverse 450ms forwards; + animation: header-loadAnimationReverse 450ms forwards; +} +@-webkit-keyframes header-loadAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, 0, 0); + } + 0% { + -webkit-transform: translate3d(-90px, 0, 0); + opacity: 0.1; + } +} +@keyframes header-loadAnimationReverse { + 100% { + transform: translate3d(0%, 0, 0); + } + 0% { + transform: translate3d(-90px, 0, 0); + opacity: 0.1; + } +} +.header-unload { + -webkit-animation: header-unloadAnimation 300ms forwards; + animation: header-unloadAnimation 300ms forwards; +} +@-webkit-keyframes header-unloadAnimation { + 0% { + -webkit-transform: translate3d(0%, 0, 0); + } + 100% { + -webkit-transform: translate3d(90px, 0, 0); + opacity: 0.1; + } +} +@keyframes header-unloadAnimation { + 0% { + transform: translate3d(0%, 0, 0); + } + 100% { + transform: translate3d(90px, 0, 0); + opacity: 0.1; + } +} +.header-unload.animation-reverse { + -webkit-animation: header-unloadAnimationReverse 450ms forwards; + animation: header-unloadAnimationReverse 450ms forwards; +} +@-webkit-keyframes header-unloadAnimationReverse { + 100% { + -webkit-transform: translate3d(0%, 0, 0); + } + 0% { + -webkit-transform: translate3d(90px, 0, 0); + opacity: 0.1; + } +} +@keyframes header-unloadAnimationReverse { + 100% { + transform: translate3d(0%, 0, 0); + } + 0% { + transform: translate3d(90px, 0, 0); + opacity: 0.1; + } +} +.header-load-to { + -webkit-animation: header-load-toAnimation 500ms forwards; + animation: header-load-toAnimation 500ms forwards; +} +@-webkit-keyframes header-load-toAnimation { + 0% { + -webkit-transform: translate3d(90px, 0, 0); + opacity: 0.1; + } + 100% { + -webkit-transform: translate3d(0%, 0, 0); + opacity: 1; + } +} +@keyframes header-load-toAnimation { + 0% { + transform: translate3d(90px, 0, 0); + opacity: 0.1; + } + 100% { + transform: translate3d(0%, 0, 0); + opacity: 1; + } +} +.header-load-to.animation-reverse { + -webkit-animation: header-load-toAnimationReverse 750ms forwards; + animation: header-load-toAnimationReverse 750ms forwards; +} +@-webkit-keyframes header-load-toAnimationReverse { + 100% { + -webkit-transform: translate3d(90px, 0, 0); + opacity: 0.1; + } + 0% { + -webkit-transform: translate3d(0%, 0, 0); + opacity: 1; + } +} +@keyframes header-load-toAnimationReverse { + 100% { + transform: translate3d(90px, 0, 0); + opacity: 0.1; + } + 0% { + transform: translate3d(0%, 0, 0); + opacity: 1; + } +} +.header-unload-to { + -webkit-animation: header-unload-toAnimation 500ms forwards; + animation: header-unload-toAnimation 500ms forwards; +} +@-webkit-keyframes header-unload-toAnimation { + 0% { + -webkit-transform: translate3d(-90px, 0, 0); + opacity: 0.1; + } + 100% { + -webkit-transform: translate3d(0%, 0, 0); + opacity: 1; + } +} +@keyframes header-unload-toAnimation { + 0% { + transform: translate3d(-90px, 0, 0); + opacity: 0.1; + } + 100% { + transform: translate3d(0%, 0, 0); + opacity: 1; + } +} +.header-unload-to.animation-reverse { + -webkit-animation: header-unload-toAnimationReverse 750ms forwards; + animation: header-unload-toAnimationReverse 750ms forwards; +} +@-webkit-keyframes header-unload-toAnimationReverse { + 100% { + -webkit-transform: translate3d(-90px, 0, 0); + opacity: 0.1; + } + 0% { + -webkit-transform: translate3d(0%, 0, 0); + opacity: 1; + } +} +@keyframes header-unload-toAnimationReverse { + 100% { + transform: translate3d(-90px, 0, 0); + opacity: 0.1; + } + 0% { + transform: translate3d(0%, 0, 0); + opacity: 1; + } +} + +@-ms-viewport { + width: device-width; +} +body .afPopup { + border: solid 1px #33B5E5; + border-radius: 5px; + background: inherit; + color: inherit; +} +body .afPopup > FOOTER > A { + width: 120px; +} +body #af_actionsheet { + background: #0190d6; + color: inherit; +} +body #af_actionsheet a { + border-radius: 0; + color: black; + background: white; + border: none; + text-shadow: none; +} +.view header { + background: #0088d1; + border: none; + border-bottom: 1px solid #0088d1; + color: #ffffff; +} +.view header h1 { + text-shadow: none; + width: 45%; +} +.view header .backButton { + background: #f9f9f9; + color: #fff; + display: block; + line-height: 44px; + left: 25px; + text-overflow: ellipsis; + font-size: 14px; + padding: 0; + text-shadow: none; + background-color: transparent; + border: none; + border-color: transparent; + height: 44px; + top: 0; + border-radius: 0; + box-shadow: none; + margin: 0; + padding-left: 0; + text-align: center; + width: 50px; + padding: 0 !important; + margin: 0 !important; + position: absolute; +} +.view footer { + background: #0088d1; + border: none; + border-top: 1px solid #0088d1; + box-shadow: none; +} +.view footer > a { + color: #ffffff; +} +.view footer > a.pressed:not(.button) { + border-radius: 0; + background-color: #00AEEF; +} +.view footer > a.icon.pressed:not(.button):before { + color: inherit; +} +.backButton::before { + z-index: -1; + font-size: 22px; + position: absolute; + top: -2px; + left: -30px; + text-align: center; + border-radius: 0; + border: none; + border-color: transparent; + box-shadow: none; + -webkit-transform: none; + transform: none; + font-family: 'chevron'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; + content: "\f054"; + -webkit-transform: rotate(180deg); + transform: rotate(180deg); + background-color: transparent; + padding: 12px; +} +.af-badge { + border: none; + box-shadow: none; +} +.list { + background: inherit; + color: inherit; + border-color: #303030; + font-weight: normal; +} +.list .divider { + color: black; +} +.list > li > a:after { + color: #0088D1; +} +.panel { + color: inherit; + background: inherit; +} +.panel h2 { + color: #0088D1; +} +.collapsed:after { + border-top: 6px solid; +} +.collapsed:before { + border: 2px solid; +} +.expanded:after { + border-bottom: 6px solid; +} +.expanded:before { + border: 2px solid; +} +.collapsed:before, +.expanded:before { + border-color: inherit; +} +.collapsed:after, +.expanded:after { + border-top-color: inherit; +} +select, +textarea, +input[type="text"], +input[type=search], +input[type="password"], +input[type="datetime"], +input[type="datetime-local"], +input[type="date"], +input[type="month"], +input[type="time"], +input[type="week"], +input[type="number"], +input[type="email"], +input[type="url"], +input[type="tel"], +input[type="color"], +.input-group { + background: inherit; + color: inherit; +} +input.toggle + label:after { + color: inherit; +} +input.toggle + label { + border-radius: 0; +} +input.toggle + label > span { + border-radius: 0; + top: 0; + width: 27px; + height: 23px; +} +label { + color: inherit; +} +input[type="radio"]:checked + label:before, +input[type="checkbox"]:checked + label:before { + background: #33B5E5; +} +.button { + border-radius: 0; + text-shadow: none; +} +.button.previous { + border: none; +} +.button.next { + border: none; +} +.button.previous::after { + color: black; + z-index: -1; + font-size: 22px; + position: absolute; + top: 2px; + left: -25px; + text-align: center; + border-radius: 0; + border: none; + border-color: transparent; + box-shadow: none; + -webkit-transform: none; + transform: none; + font-family: 'chevron'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; + content: "\f054"; + -webkit-transform: rotate(180deg); + transform: rotate(180deg); + background-color: transparent; +} +.button.next::after { + color: black; + z-index: -1; + font-size: 22px; + position: absolute; + top: 6px; + right: -25px; + text-align: center; + border-radius: 0; + border: none; + border-color: transparent; + box-shadow: none; + -webkit-transform: none; + transform: none; + font-family: 'chevron'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; + content: "\f054"; + background-color: transparent; +} + +.af-badge { + position: absolute; + top: 2px; + right: 2px; + display: inline-block; + min-width: 20px; + max-width: 90%; + height: 20px; + padding: 0 3px; + background-color: red; + border-radius: 20px; + font-size: 12px; + line-height: 19px; + font-weight: bold; + color: #fff; + text-overflow: ellipsis; + text-align: center; + text-shadow: 0 -1px 0 rgba(64, 0, 0, 0.6); +} +.af-badge.br { + bottom: 2px; + right: 2px; + top: auto; + left: auto; +} +.af-badge.bl { + bottom: 2px; + left: 2px; + top: auto; + right: auto; +} +.af-badge.tl { + top: 2px; + left: 2px; + right: auto; + bottom: auto; +} + +.bb { + font-family: "Slate Pro", Slate, "Myriad Pro", "BBAlpha Sans", Helvetica; + font-size: 12pt; + background: white; + color: black; +} +.bb .view header { + background: #00609E; + background: -ms-linear-gradient(65deg, #00609e 0%, #00afee 100%); + background: -webkit-gradient(linear, left bottom, right top, color-stop(0%, #00609e), color-stop(100%, #00afee)); + background: -webkit-linear-gradient(65deg, #00609e 0%, #00afee 100%); + background: linear-gradient(65deg, #00609e 0%, #00afee 100%); + border-style: solid; + border-width: 1px; + border-color: #009CE1 transparent #004E92 transparent; +} +.bb .view header .backButton { + display: block; + position: absolute; + line-height: 70px; + left: 5px; + text-overflow: ellipsis; + font-size: 10px; + padding: 0; + color: #fff; + text-shadow: none; + background-color: transparent; + border: none; + border-color: transparent; + height: 44px; + top: 0; + border-radius: 0; + box-shadow: none; + margin: 0; + padding-left: 0; + text-align: center; + width: 50px; + padding: 0 !important; + margin: 0 !important; +} +.bb .view header .backButton::before { + z-index: -1; + font-size: 22px; + position: absolute; + left: 5px; + text-align: center; + border-radius: 0; + border: none; + border-color: transparent; + box-shadow: none; + -webkit-transform: none; + transform: none; + font-family: 'chevron'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; + content: "\f054"; + top: -10px; + -webkit-transform: rotate(180deg); + transform: rotate(180deg); + background-color: transparent; +} +.bb .view header .backButton::after { + z-index: -1; + font-size: 24px; + content: ' '; + position: absolute; + font-weight: bold; + background-color: transparent; + left: 55px; + height: 48px; + top: -5px; + width: 2px; + background: #0aa9dc; + margin: auto; + text-align: center; + border-radius: 0; + border: none; + border-color: transparent; + box-shadow: none; + -webkit-transform: rotate(10deg); + transform: rotate(10deg); +} +.bb .view header .button-grouped > .button.pressed { + background: #07a; +} +.bb .view footer { + border: none; + border-radius: 0px; + background: black; + padding: 0; + -webkit-box-shadow: none; + box-shadow: none; +} +.bb .view footer > a:not(.button) { + height: 49px; + top: 0px; + border-top: 4px solid #000; + background: #1e1e1e; +} +.bb .view footer > a.pressed:not(.button) { + border: 0px; + border-top: 4px solid #0aa9dc; + border-radius: 0px; + background: #3a3a3a; + color: white; +} +.bb .view footer > a:not(:last-of-type):not(.pressed):not(.button) { + border-right: 1px solid black; +} +.bb .view footer > a.icon.pressed:not(.button):before { + color: white; +} +.bb .view .panel { + background: #fff; +} +.bb view header h1 { + text-shadow: rgba(0, 0, 0, 0.8) 0 1px 0; + font-weight: normal; +} +.bb view header .button { + color: #fff; + background: none; + text-shadow: 0 -1px 0 #333333; + border-color: transparent; +} +.bb .list { + font-weight: normal; +} +.bb .afPopup { + border: solid 1px #ccc; + border-radius: 3px; + background: inherit; + color: inherit; + padding: 0; +} +.bb .afPopup > header { + font-weight: normal; + font-size: 20px; + text-align: center; + margin: 0; + padding: 8px; + color: white; + border-radius: 2px; + background: #00609E; + background: -ms-linear-gradient(65deg, #00609e 0%, #00afee 100%); + background: -webkit-gradient(linear, left bottom, right top, color-stop(0%, #00609e), color-stop(100%, #00afee)); + background: -webkit-linear-gradient(65deg, #00609e 0%, #00afee 100%); + background: linear-gradient(65deg, #00609e 0%, #00afee 100%); +} +.bb .afPopup > div { + text-align: center; + padding: 10px; +} +.bb .afPopup > footer { + padding: 5px; +} +.bb .afPopup > footer > a#cancel { + width: 120px; +} +.bb .afPopup > footer > a#action { + width: 120px; +} +.bb #af_actionsheet { + background: white; + color: inherit; +} +.bb #af_actionsheet a { + border-radius: 5px; + border: 1px solid #ccc; + background: #eee; + color: #111; +} +.bb .button, +.bb .button-grouped *, +.bb .button-grouped > .button:first-child, +.bb .button-grouped.vertical *, +.bb .button-grouped.vertical > .button:last-child, +.bb > .header .button-grouped > .button { + border-color: #ccc; +} + +.button { + position: relative; + display: inline-block; + padding: 8px 12px; + margin: 8px 0; + font-weight: bold; + color: #000; + text-align: center; + vertical-align: top; + cursor: pointer; + background-color: #eee; + border: 1px solid #666; + text-decoration: none; + z-index: 2; +} +.button.pressed { + background: #fff; +} +.button.previous { + margin-left: 16px; + padding-left: 6px; + border-color: #666 #666 transparent transparent !important; +} +.button.next { + border-color: #666 transparent #666 #666 !important; + margin-right: 16px; + padding-right: 6px; +} +.button.previous::after { + z-index: -1; + content: ''; + position: absolute; + width: 25px; + height: 27px; + background-color: inherit; + top: 3px; + left: -11px; + border-radius: 5px; + border: 1px solid; + border-color: transparent transparent inherit transparent; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); +} +.button.next::after { + z-index: -1; + content: ''; + position: absolute; + width: 25px; + height: 27px; + background-color: inherit; + top: 3px; + right: -11px; + border-radius: 5px; + border: 1px solid; + border-color: transparent transparent transparent transparent; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); +} +.button.block { + display: block; +} +.button.flat { + border-radius: 0; + box-shadow: none; +} +.header .button-grouped > .button { + margin: 0; + border-color: #fff; +} +.header .button { + color: #fff; + background: none; + border-color: transparent; + font-size: 12px; + padding: 7px; + height: 32px; + margin: 5px; + text-overflow: ellipsis; + white-space: nowrap; +} +.header .button.icon:before { + padding-left: 6px; +} +.button-grouped { + display: inline-block; + margin: 5px; +} +.button-grouped * { + border-radius: 0px; + float: left; + border-left: 0px solid transparent; + border-right: 1px solid #666; + border-bottom: 1px solid #666; + border-top: 1px solid #666; + margin: 0; +} +.button-grouped > .button:first-child { + border-left: 1px solid #666; + border-top-left-radius: 3px; + border-bottom-left-radius: 3px; +} +.button-grouped > .button:last-child { + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; +} +.button-grouped.flex { + display: -webkit-box; + display: -moz-box; + display: -ms-flexbox; + display: -webkit-flex; + display: flex; +} +.button-grouped.flex > .button { + -webkit-box-flex: 1; + -moz-box-flex: 1 auto; + -webkit-flex: 1 auto; + -ms-flex: 1 auto; + flex: 1 auto; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} +.button-grouped.flex.vertical { + display: inline-block; +} +.button-grouped.vertical * { + border-radius: 0px; + display: block; + float: none; + width: 100%; + border-left: 1px solid #666; + border-right: 1px solid #666; + border-top: 1px solid #666; + border-bottom: 0px solid #666; +} +.button-grouped.vertical > .button:first-child { + border-top-left-radius: 3px; + border-top-right-radius: 3px; + border-bottom-left-radius: 0px; + border-bottom-right-radius: 0px; +} +.button-grouped.vertical > .button:last-child { + border-top-right-radius: 0px; + border-top-left-radius: 0px; + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; + border-bottom: 1px solid #666; +} +.button.gray { + background: #999; + border-color: #666; +} +.button.yellow { + background-color: #F1C222; + border-color: #999; +} +.button.red { + color: #fff; + text-shadow: 0 -1px 0 #666666; + background: #B20000; + border-color: #666; +} +.button.green { + color: #fff; + text-shadow: 0 -1px 0 #666666; + background: #009C0C; + border-color: #666; +} +.button.orange { + color: #fff; + text-shadow: 0 -1px 0 #666666; + background-color: #FF8000; + border-color: #666; +} +.button.black { + color: #fff; + text-shadow: none; + background: #000; + border-color: #666; +} +.button.slate { + color: #fff; + text-shadow: 0 -1px 0 #000000; + background: #171F28; + border-color: #666; +} +.backButton { + text-overflow: ellipsis; + white-space: nowrap; +} + +/* Bg #33B5E5/* Font header #C6C6C6* reg white-space:border 303030hover : #111*/ +.firefox, +.firefox .view { + font: 14px 'Roboto', sans-serif; + background: #fff; + color: #000; + border-color: #000; +} +.firefox .view .panel { + color: #5E5E5E; + background: white; +} +.firefox .view .panel.light { + background: #FDFDFD; + color: #000; +} +.firefox .view header { + background: #00a900; + color: #ffffff; + border-color: transparent; + height: 44px; +} +.firefox .view header h1 { + left: 23px; + text-align: left; + padding-left: 3px; +} +.firefox .view header .button { + color: white; + background: none; + font-size: 14px; + box-shadow: none; +} +.firefox .view header .backButton { + background: inherit; + color: inherit; + left: -60px; +} +.firefox .view header .backButton::before { + left: 54px; +} +.firefox .view header .menuButton { + right: 0px; +} +.firefox .view header .menuButton:after { + border-color: #AE5900; +} +.firefox .view footer { + box-shadow: none; + background: inherit; + color: inherit; + border-top: 1px solid #FFFFFF; + border-bottom: none; + padding: 0; +} +.firefox .view footer > a:not(.button) { + color: #5E5E5E; + padding-top: 3px; +} +.firefox .view footer > a.pressed:not(.button) { + border: 0px; + border-bottom: 4px solid #00a900; + border-radius: 0px; + color: #00a900; + background: none; +} +.firefox .view footer > a.icon.pressed:not(.button):before { + color: inherit; +} +.firefox .view footer > a.icon:not(.button):before { + font-size: 21px; +} +.firefox .af-badge { + border: none; +} +.firefox .list { + background: inherit; + color: inherit; + border-color: #303030; + margin: 10px; +} +.firefox .list .divider { + color: black; +} +.firefox .panel h2 { + color: inherit; +} +.firefox .collapsed:after { + border-top: 6px solid; +} +.firefox .collapsed:before { + border: 2px solid; +} +.firefox .expanded:after { + border-bottom: 6px solid; +} +.firefox .expanded:before { + border: 2px solid; +} +.firefox label { + color: inherit; +} +.firefox input.toggle:checked + label { + background: #00CAF2; +} +.firefox .button { + border-radius: 0; + background: #d4d4d4; + border-color: #A6A6A6; + color: inherit; + text-shadow: none; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); +} +.firefox .button[disabled="disabled"] { + opacity: 0.6; +} +.firefox .button.previous::after { + width: 20px; + height: 20px; + background-color: inherit; + top: 5px; + left: -12px; + border-radius: 0; + box-shadow: none; + border-color: transparent; +} +.firefox .button.next::after { + width: 20px; + height: 20px; + background-color: inherit; + top: 5px; + right: -12px; + border-radius: 0; + box-shadow: none; + border-color: transparent; +} +.firefox header .button-grouped > .button { + border-color: #777; +} +.firefox .button-grouped * { + border: 1px solid rgba(255, 255, 255, 0.25); + border-left-width: 0; + box-shadow: none; +} +.firefox .button-grouped.vertical * { + border-left: 1px solid rgba(255, 255, 255, 0.25); + border-bottom-width: 0; +} +.firefox .button-grouped.vertical .button:last-child { + border-bottom: 1px solid rgba(255, 255, 255, 0.25); +} +.firefox .afPopup { + border: solid 1px #aaa; + padding: 0; + border-radius: 0; + -webkit-transform: none; + transform: none; + -webkit-transition: none; + transition: none; + background: inherit; + background-color: #373737; + color: white; + position: absolute; + top: 0px !important; + right: 0px !important; + bottom: 0px !important; + left: 0px !important; + width: 100%; +} +.firefox .afPopup > HEADER { + font-weight: normal; + font-size: 20px; + text-align: left; + margin: 10px 20px; + margin-top: 140px; +} +.firefox .afPopup > DIV { + font-size: 20px; + text-align: left; + padding: 10px; + margin: 10px 15px; + border-top: solid 1px #aaa; +} +.firefox .afPopup > FOOTER { + height: 70px; + position: absolute; + bottom: 0px; + background: #2A2A2A; +} +.firefox .afPopup > FOOTER > A#cancel { + margin-left: 10px; + width: 140px; + background: #EB3020; + color: white; +} +.firefox .afPopup > FOOTER > A#action { + margin-right: 10px; + background: #D8D8D8; +} +.firefox #af_actionsheet { + border: #2c2c2c 1px solid; + border-top: #2c2c2c 3px solid; + background: #2c2c2c; + color: inherit; + padding: 0px; +} +.firefox #af_actionsheet a { + border-radius: 0; + background: #424343; + color: white; + line-height: 50px; + margin-bottom: 1px; + margin: 10px 20px; + box-shadow: none; + text-align: left; + padding-left: 20px; + font-style: italic; + font-weight: normal; +} +.firefox #af_actionsheet a.cancel { + margin-bottom: 10px; + background: #f7f7f7; + color: black; + text-align: center; + padding: 0; + border-radius: 30px; +} +.firefox.light .view header .menuButton:after { + border-color: black; +} +.firefox.light .button { + background: #eee; + border-color: #D1D1D1; +} +.firefox.light .afPopup { + background-color: #373737; +} +.firefox.light #af_actionsheet { + border: #bbb 1px solid; + border-top: #33B5E5 3px solid; + background: #bbb; +} +.firefox.light #af_actionsheet a { + background: #fff; +} +.firefox .collapsed:before, +.firefox .expanded:before { + border-color: inherit; +} +.firefox .collapsed:after, +.firefox .expanded:after { + border-top-color: inherit; +} +.firefox select, +.firefox textarea, +.firefox input[type="text"], +.firefox input[type=search], +.firefox input[type="password"], +.firefox input[type="datetime"], +.firefox input[type="datetime-local"], +.firefox input[type="date"], +.firefox input[type="month"], +.firefox input[type="time"], +.firefox input[type="week"], +.firefox input[type="number"], +.firefox input[type="email"], +.firefox input[type="url"], +.firefox input[type="tel"], +.firefox input[type="color"], +.firefox .input-group { + background: inherit; + color: inherit; + border-radius: 0; +} +.firefox input[type="radio"]:not(.toggle):checked + label:before, +.firefox input[type="checkbox"]:not(.toggle):checked + label:before { + background: #00CAF2; + color: white; + border-color: #00CAF2; +} +.firefox .afPopup > FOOTER > A, +.firefox.light .afPopup > FOOTER > A { + background: #D8D8D8; + color: black; + border-radius: 30px; + height: 40px; + line-height: 22px; + margin-top: 15px; + font-size: 18px; + font-style: italic; +} + +select, +textarea, +input[type="text"], +input[type=search], +input[type="password"], +input[type="datetime"], +input[type="datetime-local"], +input[type="date"], +input[type="month"], +input[type="time"], +input[type="week"], +input[type="number"], +input[type="email"], +input[type="url"], +input[type="tel"], +input[type="color"], +.input-group { + width: 100%; + height: 40px; + padding: 10px; + margin-bottom: 10px; + background: #fff; + border: 1px solid #ccc; + border-radius: 5px; + font-size: 14px; + font-weight: normal; + -webkit-appearance: none; + box-sizing: border-box; +} +form { + position: relative; +} +input[type="radio"], +input[type="checkbox"] { + display: none; +} +input[type="radio"] + label, +input[type="checkbox"] + label { + display: inline-block; + width: 60%; + float: right; + position: relative; + text-align: left; + padding: 13px 0 0 8px; + margin-top: 3px; +} +input[type="radio"]:not(.toggle) + label:before { + background-color: #fafafa; + border: 1px solid #cacece; + border-radius: 3px; + display: block; + position: absolute; + top: 8px; + left: -25px; + height: 28px; + width: 28px; + font-size: 13px; + text-align: center; + line-height: 28px; + content: " "; +} +input[type="radio"]:checked + label:before { + background-color: #1eb0e9; + -webkit-transition: background-color 150ms; + transition: background-color 150ms; +} +input[type="checkbox"] + label:before { + background-color: #fafafa; + border: 1px solid #cacece; + border-radius: 3px; + display: block; + position: absolute; + top: 8px; + left: -25px; + height: 28px; + width: 28px; + font-size: 13px; + text-align: center; + line-height: 28px; + content: " "; +} +input[type="checkbox"]:checked + label:before { + content: '\00a0\2714'; + padding: 0px; + display: inline-block; + background-color: #1eb0e9; + -webkit-transition: background-color 150ms; + transition: background-color 150ms; +} +input[type="radio"]:after, +input[type="checkbox"]:after { + visibility: hidden; + display: block; + font-size: 0; + content: " "; + clear: both; + height: 0; +} +input[type="search"] { + border-radius: 20px; +} +label { + float: left; + width: 33%; + font-weight: normal; + font-size: 14px; + color: inherit; + text-align: right; + padding: 15px 18px; +} +label + select, +label + input[type="radio"], +label + input[type="checkbox"] label + textarea, +label + input[type="text"], +label + input[type=search], +label + input[type="password"], +label + input[type="datetime"], +label + input[type="datetime-local"], +label + input[type="date"], +label + input[type="month"], +label + input[type="time"], +label + input[type="week"], +label + input[type="number"], +label + input[type="email"], +label + input[type="url"], +label + input[type="tel"], +label + input[type="color"], +label + textarea { + width: 66%; +} +textarea { + height: auto; +} +.input-group { + width: auto; + height: auto; + padding: 12px; + overflow: hidden; +} +.input-group input:not([type='button']):not([type='submit']), +.input-group textarea, +.input-group select { + margin-bottom: 0; + background-color: transparent; + border: 0; + border-bottom: 1px solid #ccc; + border-radius: 0; + box-shadow: none; +} +.input-group input:not([type="submit"]):not([type="button"]):last-child, +.input-group textarea:last-child, +.input-group select:last-child { + border-bottom: none; +} +.input-group input[type=button], +.input-group input[type=submit] { + margin: 5px; +} +input.toggle + label:before, +input.toggle:checked + label:before { + content: attr(data-on); + position: absolute; + color: #fff; + left: 5px; + width: 42px; + text-align: left; + z-index: 3; + top: 0px; + overflow: hidden; + background-color: transparent; + border: none; + border-radius: 0px; + text-transform: uppercase; + display: none; + height: 30px; + line-height: 29px !important; +} +input.toggle:checked + label:before { + display: block; +} +input.toggle:checked + label:after { + display: none; +} +input.toggle:checked + label { + background: #1eb0e9; + line-height: -1em; + -webkit-transition: background 150ms; + transition: background 150ms; +} +input.toggle:checked + label > span { + transform: translate3d(37px, 0, 0); + -webkit-transform: translate3d(37px, 0, 0); +} +input.toggle + label:after { + content: attr(data-off); + position: absolute; + color: #505050; + width: 42px; + text-align: left; + z-index: 1; + top: 0px; + left: 30px; + overflow: hidden; + background-color: transparent; + border: none; + border-radius: 0px; + text-transform: uppercase; + height: 30px; + line-height: 29px; +} +input.toggle + label { + position: relative; + margin: 5px; + border-radius: 50px; + display: block; + height: 30px; + width: 65px; + border: 1px solid #ccc; + left: 33%; + float: none; +} +input.toggle + label > span { + display: block; + width: 29px; + height: 31px; + background: #ccc; + border-radius: 50px; + z-index: 5; + top: -2px; + left: 0px; + position: absolute; + transition: transform 100ms linear; + transform: translate3d(0, 0, 0); + -webkit-transform: translate3d(0, 0, 0); + -webkit-transition: -webkit-transform 100ms linear; +} +.formGroupHead { + font-size: 18px; + font-weight: bold; + color: inherit; + margin: 16px 0 8px; +} +input[type=button], +input[type=submit], +button { + font-size: inherit; +} + +.grid { + width: 100%; + overflow: hidden; +} +.col2, +.col3, +.col1-3, +.col2-3 { + float: none; + width: 100%; +} +.grid:after { + content: ''; + clear: both; +} +@media handheld, only screen and (min-width: 768px) { + .col2 { + width: 50%; + float: left; + } + .col3 { + width: 33.3%; + float: left; + } + .col1-3 { + width: 33.3%; + float: left; + } + .col2-3 { + width: 66.6%; + float: left; + } +} + +@font-face { + font-family: 'IcoMoon'; + src: url(data:application/x-font-woff; + charset=utf-8; + base64,d09GRgABAAAAABRsAA0AAAAAIAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABMAAAABoAAAAcZ+S/vEdERUYAAAFMAAAAHwAAACAAawAGT1MvMgAAAWwAAABHAAAAVlAV3CVjbWFwAAABtAAAAH8AAAFe3hiKd2dhc3AAAAI0AAAACAAAAAj//wADZ2x5ZgAAAjwAAA9wAAAYYH4QTH1oZWFkAAARrAAAAC4AAAA2/UZdqWhoZWEAABHcAAAAHgAAACQEkQCfaG10eAAAEfwAAABDAAAA+HXqAtFsb2NhAAASQAAAAH4AAAB+tIiuwG1heHAAABLAAAAAHgAAACAAjQBwbmFtZQAAEuAAAADcAAABgxL0LFVwb3N0AAATvAAAAK4AAAFOuDWoj3icY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tsTe2rbtmO7tmdTm82N7o/uj+6PNf8ZfgETWTz3AAA=) format('woff'), url(data:application/x-font-ttf; + charset=utf-8; + base64,AAEAAAANAIAAAwBQRkZUTWfkv7wAAB/kAAAAHEdERUYAawAGAAAfxAAAACBPUy8yUBXcJQAAAVgAAABWY21hcN4YincAAAKoAAABXmdhc3D//wADAAAfvAAAAAhnbHlmfhBMfQAABIgAABhgaGVhZP1GXakAAADcAAAANmhoZWEEkQCfAAABFAAAACRobXR4deoC0QAAAbAAAAD4bG9jYbSIrsAAAAQIAAAAfm1heHAAjQBwAAABOAAAACBuYW1lEvQsVQAAHOgAAAGDcG9zdLg1qI8AAB5sAAABTgABAAAAAQAAl4wkqV8PPPUACwIAAAAAAM3TjnYAAAAAzdOOdgAA/+ACgAHgAAAACAACAAAAAAAAAAEAAAHg/+AALgKAAAD+AAKAAAEAAAAAAAAAAAAAAAAAAAA+AAEAAAA+AG0ADQAAAAAAAgAAAAEAAQAAAEAAAAAAAAAAAQIFAZAABQAIAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAIABQMAAAAAAAAAAAABEAAAAAAAAAAAAAAAUGZFZABAAFrwAQHg/+AALgHgACCAAAABAAAAAAAAAgAAAAAAAAAAqgAAAAAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAIAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAGACAAAAAgAAAAIAAAACQAAAAgAAAAIAABwCAAAAAgAAQgIAAAACAAAJAgAAIAIAAEACAAAAAgAAAAIAAAACAAAAAgAAAwIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAABAgAAIAIAAAACAAAgAgAAAAIAAB4CAAAgAgAAIAIAAGUCgAAAAgAAAAKAAAMCAABgAgAAAAIAAAACAAAgAgAAAAIAAAACAAAAAgAAAAAAAAAAAAADAAAAAwAAABwAAQAAAAAAWAADAAEAAAAcAAQAPAAAAAoACAACAAIAAAB+4BPwAf//AAAAAABa4ADwAP//AAD/qiApAAAAAQAAAAA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W5pRTAwOAd1bmlFMDA5B3VuaUUwMEEHdW5pRTAwQgd1bmlFMDBDB3VuaUUwMEQHdW5pRTAwRQd1bmlFMDBGB3VuaUUwMTAHdW5pRTAxMQd1bmlFMDEyB3VuaUUwMTMHdW5pRjAwMAAAAAAAAf//AAIAAQAAAA4AAAAYAAAAAAACAAEAAwA9AAEABAAAAAIAAAAAAAEAAAAAzD2izwAAAADN0452AAAAAM3TjnY=) format('truetype'); + font-weight: normal; + font-style: normal; +} +.icon:before { + font-family: 'IcoMoon'; + speak: none; + font-style: normal; + font-weight: normal !important; + font-variant: normal; + text-transform: none; + line-height: 1; + color: inherit; + position: relative; + font-size: 1em; + left: -3px; + top: 2px; +} +li .icon:before { + position: relative; + width: 24px; + height: 100%; + top: 2px; + line-height: 0 !important; + margin-right: 4px; +} +.icon.mini:before { + font-size: .7em; +} +.icon.big:before { + font-size: 1.5em; +} +.icon.home:before { + content: "\5a"; +} +.icon.pencil:before { + content: "\5b"; +} +.icon.picture:before { + content: "\5c"; +} +.icon.camera:before { + content: "\5d"; +} +.icon.headset:before { + content: "\5e"; +} +.icon.paper:before { + content: "\5f"; +} +.icon.stack:before { + content: "\61"; +} +.icon.folder:before { + content: "\60"; +} +.icon.tag:before { + content: "\62"; +} +.icon.basket:before { + content: "\63"; +} +.icon.phone:before { + content: "\64"; +} +.icon.mail:before { + content: "\65"; +} +.icon.location:before { + content: "\66"; +} +.icon.clock:before { + content: "\67"; +} +.icon.calendar:before { + content: "\68"; +} +.icon.message:before { + content: "\69"; +} +.icon.chat:before { + content: "\6a"; +} +.icon.user:before { + content: "\6b"; +} +.icon.loading:before { + content: "\6c"; +} +.icon.refresh:before { + content: "\6d"; +} +.icon.magnifier:before { + content: "\6e"; +} +.icon.key:before { + content: "\6f"; +} +.icon.settings:before { + content: "\70"; +} +.icon.graph:before { + content: "\71"; +} +.icon.trash:before { + content: "\72"; +} +.icon.download:before { + content: "\73"; +} +.icon.upload:before { + content: "\74"; +} +.icon.star:before { + content: "\75"; +} +.icon.heart:before { + content: "\76"; +} +.icon.warning:before { + content: "\77"; +} +.icon.add:before { + content: "\78"; +} +.icon.remove:before { + content: "\79"; +} +.icon.question:before { + content: "\7a"; +} +.icon.info:before { + content: "\7b"; +} +.icon.error:before { + content: "\7c"; +} +.icon.check:before { + content: "\7d"; +} +.icon.minimize:before { + content: "\7e"; +} +.icon.close:before { + content: "\e000"; +} +.icon.up:before { + content: "\e001"; +} +.icon.right:before { + content: "\e002"; +} +.icon.down:before { + content: "\e003"; +} +.icon.left:before { + content: "\e004"; +} +.icon.html5:before { + content: "\e005"; +} +.icon.css:before { + content: "\e006"; +} +.icon.js:before { + content: "\e007"; +} +.icon.lamp:before { + content: "\e008"; +} +.icon.tools:before { + content: "\e009"; +} +.icon.new:before { + content: "\e00a"; +} +.icon.wifi:before { + content: "\e00b"; +} +.icon.mic:before { + content: "\e00c"; +} +.icon.database:before { + content: "\e00d"; +} +.icon.bug:before { + content: "\e00e"; +} +.icon.busy:before { + content: "\e00f"; +} +.icon.target:before { + content: "\e010"; +} +.icon.tv:before { + content: "\e011"; +} +.icon.cloud:before { + content: "\e012"; +} +.icon.pin:before { + content: "\e013"; +} + +.overlayStatusbar > .view { + padding-top: 20px; +} +.overlayStatusbar { + background: #f8f8f8; +} +.ios7 { + font-family: 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif; +} +.ios7 .view header { + background: #f8f8f8; + color: inherit; + border: none; + border-bottom: 1px solid #c8c7cc; +} +.ios7 .view header .button { + color: #157dfb; + border-color: transparent; + font-size: 14px; + font-weight: normal; +} +.ios7 .view header h1 { + color: inherit; + text-shadow: none; +} +.ios7 .view header .backButton { + background: #f8f8f8; + color: #157dfb; + display: block; + position: absolute; + line-height: 44px; + left: 25px; + text-overflow: ellipsis; + font-size: 14px; + padding: 0; + text-shadow: none; + background-color: transparent; + border: none; + border-color: transparent; + height: 44px; + top: auto; + border-radius: 0; + box-shadow: none; + margin: 0; + padding-left: 0; + text-align: center; + width: 50px; + padding: 0 !important; + margin: 0 !important; +} +.ios7 .view footer { + background: #f8f8f8; + color: black; + border-top: 1px solid #c8c7cc; + box-shadow: none; +} +.ios7 .view footer > a:not(.button) { + color: #606060; +} +.ios7 .view footer > a.pressed:not(.button) { + border-radius: 0; + background: transparent; +} +.ios7 .panel { + background: #eeeeee; +} +.ios7 .panel h2 { + color: inherit; +} +.ios7 .menuButton:after { + border-color: #157dfb; +} +.ios7 .list { + font-weight: normal; +} +.ios7 .list li { + margin-left: 10px; +} +.ios7 .list > li > a:after { + color: #d9d9d9; +} +.ios7 .button { + background-color: transparent; + box-shadow: none; + border-radius: 5px; + border-color: #157dfb; + color: #157dfb; + text-shadow: none; +} +.ios7 .backButton::before { + z-index: -1; + font-size: 22px; + position: absolute; + left: -20px; + text-align: center; + border-radius: 0; + border: none; + border-color: transparent; + box-shadow: none; + -webkit-transform: none; + transform: none; + font-family: 'chevron'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; + content: "\f054"; + -webkit-transform: rotate(180deg); + transform: rotate(180deg); + background-color: transparent; +} +.ios7 .backButton::after { + content: ''; + width: 0; + height: 0; + border: none; +} +.ios7 .afPopup { + border: 1px solid #c8c7cc; + border-radius: 10px; + padding: 0px; + text-align: center; + color: inherit; + background: #f8f8f8; +} +.ios7 .afPopup > HEADER { + padding: 10px 0; +} +.ios7 .afPopup > DIV { + padding-bottom: 10px; +} +.ios7 .afPopup > FOOTER { + border-top: 1px solid #aaa; +} +.ios7 .afPopup > FOOTER > A.center { + width: 100%!important; +} +.ios7 .afPopup .button { + border: none; + width: 50%; + margin: 0; + background: transparent; + color: #157dfb; + padding: 12px 0; + border-radius: 0; +} +.ios7 .afPopup .button.pressed { + background: transparent; +} +.ios7 .afPopup a:not(:first-of-type) { + border-left: 1px solid #c8c7cc; +} +.ios7 .button.pressed { + font-weight: bold; + background: white; +} +.ios7 #af_actionsheet { + background-color: transparent; + color: black; + padding-left: 10px; + padding-right: 10px; + border-top: transparent 1px solid; + box-shadow: 0px -1px 2px rgba(0, 0, 0, 0); +} +.ios7 #af_actionsheet a:first-child { + border-top-left-radius: 5px; + border-top-right-radius: 5px; +} +.ios7 #af_actionsheet a:nth-last-child(2) { + border-bottom-left-radius: 5px; + border-bottom-right-radius: 5px; +} +.ios7 #af_actionsheet a.cancel { + font-weight: bold; + margin: 9px 0; + border-radius: 5px; + background-color: white; + color: #157dfb; +} +.ios7 #af_actionsheet a.red { + background-color: white; + color: red; +} +.ios7 .button.previous { + border: none; +} +.ios7 .button.next { + border: none; +} +.ios7 .button.previous::after { + color: #157dfb; + z-index: -1; + font-size: 22px; + position: absolute; + top: 2px; + left: -25px; + text-align: center; + border-radius: 0; + border: none; + border-color: transparent; + box-shadow: none; + -webkit-transform: none; + transform: none; + font-family: 'chevron'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; + content: "\f054"; + -webkit-transform: rotate(180deg); + transform: rotate(180deg); + background-color: transparent; +} +.ios7 .button.next::after { + color: #157dfb; + z-index: -1; + font-size: 22px; + position: absolute; + top: 6px; + right: -25px; + text-align: center; + border-radius: 0; + border: none; + border-color: transparent; + box-shadow: none; + -webkit-transform: none; + transform: none; + font-family: 'chevron'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; + content: "\f054"; + background-color: transparent; +} +.ios7 .button.gray { + color: #999; + background-color: transparent; +} +.ios7 .button.yellow { + color: #F1C222; + background-color: transparent; +} +.ios7 .button.red { + color: #b20000; + background-color: transparent; +} +.ios7 .button.green { + color: #009C0C; + background-color: transparent; +} +.ios7 .button.orange { + color: #FF8000; + background-color: transparent; +} +.ios7 .button.black { + color: black; + background-color: transparent; +} +.ios7 .button.slate { + color: #171F28; + background-color: transparent; +} +.ios7 .af-badge { + border: none; + box-shadow: none; + font-size: 12px; +} +.ios7 input[type="range"] { + -webkit-appearance: none; + background-color: #c7c7c7; + height: 2px; + position: relative; + top: -10px; + margin-top: 15px; + border-radius: 2px; +} +.ios7 input[type="range"]::-webkit-slider-thumb { + -webkit-appearance: none; + position: relative; + z-index: 1; + width: 25px; + height: 25px; + border-radius: 60px; + border: 1px solid #c7c7c7; + background: white; +} +.ios7 input.toggle:checked + label { + background: #4cd964; + line-height: -1em; + -webkit-transition: background 150ms; + transition: background 150ms; +} +.ios7 input.toggle:checked + label > span { + transform: translate3d(24px, 0, 0); + -webkit-transform: translate3d(24px, 0, 0); +} +.ios7 input.toggle + label:after { + content: ''; +} +.ios7 input.toggle + label { + position: relative; + margin: 5px; + border-radius: 50px; + display: block; + height: 28px; + width: 50px; + border: 1px solid #c7c7c7; + left: 33%; + float: none; +} +.ios7 input.toggle + label > span { + background: white; + border: 1px solid #c7c7c7; + top: -1px; + left: -1px; + height: 29px; +} +.ios7 .button-grouped:not(.vertical) > .button:first-child { + border-top-left-radius: 6px; + border-bottom-left-radius: 6px; +} +.ios7 .button-grouped:not(.vertical) > .button:last-child { + border-top-right-radius: 6px; + border-bottom-right-radius: 6px; +} +.ios7 .button-grouped *, +.ios7 .button-grouped > .button:first-child, +.ios7 .button-grouped.vertical *, +.ios7 .button-grouped.vertical > .button:last-child, +.ios7 header .button-grouped > .button { + border-color: #157dfb; +} +.ios7 .button-grouped > .button { + border-radius: 0; +} +.ios7 .button-grouped > .button.pressed, +.ios7 header .button-grouped > .button.pressed { + color: white; + background: #157dfb; +} +.ios7 #af_actionsheet a, +.ios7 #af_actionsheet a.cance { + background-image: none; + text-shadow: none; + box-shadow: none; + font-weight: normal; + border-radius: 0; + border: none; + -webkit-box-shadow: none; + color: #157dfb; + background-color: white; + cursor: pointer; + border-radius: 0px; + line-height: 40px; + font-size: 20px; + margin-bottom: 1px; +} +.ios7 footer > a.pressed:not(.button), +.ios7 footer > a.icon.pressed:not(.button):before { + color: #157dfb; +} +.ios7 input.toggle + label:before, +.ios7 input.toggle:checked + label:before { + content: ''; +} +.ios7 input[type="radio"]:checked:not(.toggle) + label:before, +.ios7 input[type="checkbox"]:checked:not(.toggle) + label:before { + background: #007aff; + color: white; +} +.ios7 input[type="radio"]:not(.toggle) + label:before, +.ios7 input[type="checkbox"]:not(.toggle) + label:before { + background: white; + border: 1px solid #c7c7c7; + border-radius: 30px; +} + +.list { + margin: 0px; + padding: 0px; + list-style: none; + background-color: #fff; + margin: 0 -10px; + box-sizing: border-box; + -webkit-box-sizing: border-box; +} +.list li { + display: block; + list-style: none; + position: relative; + padding: 20px 20px 20px 10px; + border-bottom: 1px solid #ccc; + background: inherit; +} +.list li:first-child { + /* border-top: 1px solid #ccc;*/ +} +.list > li > a { + position: relative; + display: block; + color: inherit; + margin: -20px -20px -20px -10px; + text-decoration: none; + padding: 20px 20px 20px 10px; +} +.list > li > a:after, +.list > li .chevron:after { + position: absolute; + right: 8px; + font-family: 'chevron'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; + content: "\f054"; + top: 50%; + margin-top: -0.5em; + color: inherit; +} +.list a .af-badge { + position: absolute; + right: 30px; + top: 48%; + margin-top: -10px; +} +.list .divider { + position: relative; + top: -1px; + padding-top: 6px; + padding-bottom: 6px; + font-size: 12px; + font-weight: bold; + line-height: 18px; + background-color: #dfe0e2; + border-top: 1px solid #ccc; + border-bottom: 1px solid #ccc; + box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4); + padding-right: 60px; +} +.list.inset { + border: 1px solid #ccc; + border-radius: 6px; + margin: 10px; +} +.list.inset li:first-child { + border-top: none; + margin-top: 3px; +} +.list.inset li:last-child { + border-bottom: none; + margin-bottom: 3px; +} + +*, +*:before, +*:after { + -webkit-user-select: none; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + -moz-tap-highlight-color: rgba(0, 0, 0, 0); + -moz-user-select: -moz-none; + -webkit-touch-callout: none; + margin: 0; + padding: 0; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + -ms-touch-action: pan-y; +} +body, +html { + -ms-overflow-style: none !important; + width: 100%; + height: 100%; + overflow: hidden; +} +body { + overflow-x: hidden; + -webkit-text-size-adjust: none; + font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + color: #000000; + font-size: 14px; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-box-align: stretch; + background: #ffffff; +} +input, +textarea { + -webkit-user-select: text; + -moz-user-select: -moz-text; + -moz-user-select: text; +} +img { + border: none; +} +p { + display: block; + margin: 6px 0; + font-size: 14px; + line-height: 20px; + color: inherit; +} +.view { + display: none; + overflow: hidden; + position: absolute; + top: 0px; + left: 0px; + height: 100%; + width: 100%; +} +.view header { + position: relative; + overflow: hidden; + display: block; + z-index: 250; + -webkit-box-sizing: border-box; + box-sizing: border-box; + height: 44px; + left: 0; + right: 0; +} +.view header h1 { + position: absolute; + width: 45%; + z-index: 1; + height: 44px; + font-size: 18px; + font-weight: bold; + left: 27.5%; + color: #ffffff; + padding: 10px 0; + text-shadow: rgba(0, 0, 0, 0.8) 0 -1px 0; + text-align: center; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} +.view footer { + z-index: 180; + height: 49px; + display: block; + left: 0; + right: 0; + position: relative; + padding: 0 3px; + display: -webkit-box; + display: -moz-box; + display: box; + display: -ms-flexbox; + display: -webkit-flex; + display: -moz-flex; + display: -ms-flex; + display: flex; +} +.view footer a { + height: 100%; + font-size: 12px; + font-weight: normal; + text-decoration: none; + color: #ffffff; + text-align: center; + -webkit-box-flex: 1; + -moz-box-flex: 1; + -ms-box-flex: 1; + box-flex: 1; + -webkit-flex: 1; + -moz-flex: 1; + -ms-flex: 1; + flex: 1; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + display: block; + padding-top: 3px; +} +.view footer a.button { + color: black; +} +.view footer .icon:not(.button):before { + display: block; + position: relative; + top: 2px; + left: 0; + font-size: 25px; + margin: auto; + width: 100%; + margin-bottom: 5px; +} +.view.active { + display: -webkit-box; + display: -moz-box; + display: box; + display: -ms-flexbox; + -webkit-box-orient: vertical; + -moz-box-orient: vertical; + -ms-box-orient: vertical; + box-orient: vertical; + display: -webkit-flex; + display: -moz-flex; + display: -ms-flex; + display: flex; + -webkit-flex-direction: column; + -moz-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + height: 100%; + width: 100%; +} +.pages { + z-index: 180; + position: relative; + -webkit-box-flex: 1; + -moz-box-flex: 1; + -ms-box-flex: 1; + box-flex: 1; + -webkit-flex: 1; + -moz-flex: 1; + -ms-flex: 1; + flex: 1; + background: #ffffff; + color: #000000; + overflow: hidden; +} +.panel { + width: 100%; + height: 100%; + position: absolute; + top: 0px; + left: 0px; + display: none; + padding: 10px; + padding-top: 0px; + overflow-x: hidden; + overflow-y: auto; + touch-action: pan-y; + -webkit-overflow-scrolling: touch; +} +.panel.active { + display: block; +} +.panel.x-scroll { + overflow-x: auto; + overflow-y: hidden; + touch-action: pan-x; +} +.panel.no-scroll { + overflow: hidden; + touch-action: none; +} +nav { + height: 100%; + width: 200px; + position: absolute; + top: 0px; + left: 0px; + background: #ccc; + display: none; + box-shadow: 0 0 8px 0 black; + z-index: 30; +} +nav.right { + height: 100%; + width: 200px; + position: absolute; + top: 0px; + left: auto; + right: 0px; +} +nav.active { + display: block; +} +.splashscreen { + background: #1d1d1c !important; + padding-left: 40px; + padding-top: 30px !important; + min-height: 100%; +} +h2 { + display: block; + height: 34px; + font-weight: bold; + font-size: 18px; + color: #000; + padding: 6px 0; + margin-bottom: 8px; +} +.afui_mask { + position: absolute; + top: 45%; + z-index: 999999; +} +.afui_panel_mask { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: 2000; + background-color: rgba(0, 0, 0, 0.1); + display: none; +} +/* Chevrons */ +@font-face { + font-family: 'chevron'; + src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAQAAA0AAAAABZgAAQAAAAAAA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ybidjAfGxj3xu3GfN07Gufy38YARF+Oh/K86s/xR5rmbunFP/Grcp8Yb5/JfxgNeOBsP5X9YsiJyJNGyheUqHlMrmMk2HNiw0Buz2Bw2C0Hd9e27O6kj4qgoleaYqv7v+3NBrwUTVSUKfGhNu93XbWqiq0rvps5yRcEXk6LyQU33/jaXTexYW0bo8pnHtFtrRyj93dkrAWI51wAAAHicY2BiwA9YgZiRgYmRiZGZvTQv083AwABCm5oAACfXBG0AAA==) format('woff'), url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAANAIAAAwBQRkZUTWf09NoAAAV8AAAAHEdERUYAMgAGAAAFXAAAACBPUy8yPuLavgAAAVgAAABWY21hcPAV9CcAAAHEAAABUmdhc3D//wADAAAFVAAAAAhnbHlmwesyhgAAAyQAAABsaGVhZPyWkgcAAADcAAAANmhoZWEDav/GAAABFAAAACRobXR4A3UAHQAAAbAAAAAUbG9jYQAOADYAAAMYAAAADG1heHAASAAbAAABOAAAACBuYW1lKCvnzQAAA5AAAAGGcG9zdJxVQzsAAAUYAAAAPAABAAAAAQAAbfoNHl8PPPUACwHAAAAAAM3bqQUAAAAAzdupBQAA/8ABwAGAAAAACAACAAAAAAAAAAEAAAGA/8AAKAHAAAD+QAHAAAEAAAAAAAAAAAAAAAAAAAAFAAEAAAAFABgAAQAAAAAAAgAAAAEAAQAAAEAAAAAAAAAAAQEgAZAABQAIASMBOQAAAD4BIwE5AAAA1wAWAHMAAAIABQMAAAAAAAAAAAAAEAAAAAAAAAAAAAAAUGZFZABA8ADwVAGA/8AAKAGAAECAAAABAAAAAAAAAcAAAAAAAAAAlQAAAAAAAAEgAB0AAAADAAAAAwAAABwAAQAAAAAATAADAAEAAAAcAAQAMAAAAAgACAACAAAAAPAA8FT//wAAAADwAPBU//8AABADD7AAAQAAAAAAAAAAAAABBgAAAQAAAAAAAAABAgAAAAIAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAgAAAAAAAQAAAADMPaLPAAAAAM3bqQUAAAAAzdupBQ==) format('truetype'); + font-weight: normal; + font-style: normal; +} +.chevron { + font-family: 'chevron'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; +} +.chevron:after { + content: "\f054"; +} +.chevron.left { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); +} +.card { + padding: 1.5rem; + box-shadow: 0 1px 4px #aaa; + background: inherit; + color: inherit; + margin: 0 1rem 1rem; + border-radius: 3px; + -webkit-user-select: none; + position: relative; +} +.card h1 { + font-size: 2rem; + font-weight: 200; +} +.card h1.info:after { + position: absolute; + right: 1.5rem; + top: 1.5rem; + content: 'i'; + color: #ccc; + border: thin solid #ccc; + font-size: 10px; + border-radius: 14px; + width: 14px; + height: 14px; + text-align: center; +} +.card h2 { + font-size: .9rem; + line-height: 2.5; + color: #ccc; + font-weight: 400; +} +.card p { + margin: 0px; + padding: 10px; +} +#afui_mask { + position: absolute; + top: 45%; + z-index: 999999; + border-radius: 30px; +} +@media print { + body { + overflow: visible; + } + .panel { + overflow-x: visible !important; + overflow-y: visible !important; + overflow: visible !important; + } +} + +@media handheld, only screen and (min-width: 768px) { + .splitview > *:not(nav) { + margin-left: 256px; + z-index: 9; + -webkit-transform: none !important; + transform: none !important; + -webkit-animation: none !important; + animation: none !important; + } + .splitview > nav { + left: 0px !important; + width: 256px !important; + display: block !important; + z-index: 10; + -webkit-animation: none !important; + animation: none !important; + } + .splitview header .menuButton { + display: none !important; + } +} +header .menuButton { + position: relative; + top: 5px; + right: -8px; + height: 36px; + width: 36px; + z-index: 2; + float: right; +} +header .menuButton:after { + border-bottom: 9px double white; + border-top: 3px solid white; + top: 9px; + left: 3px; + content: ""; + height: 15px; + position: absolute; + width: 15px; +} + +.tizen, +.tizen .view, +.tizen .view .pages { + font: 14px 'TizenSans', sans-serif; + background: #000; + color: #fff; + border-color: #fff; +} +.tizen.light, +.tizen.light .view, +.tizen.light .view .pages { + background: #FDFDFD; + color: #000; +} +.tizen .view header { + background: #313f66; + color: inherit; + border-color: #313f66; +} +.tizen .view header .button { + color: inherit; + border-color: transparent; + font-size: 14px; +} +.tizen .view header .button-grouped > .button { + border-color: #aaa; +} +.tizen .view header .backButton { + background: inherit; + color: inherit; +} +.tizen .view footer { + box-shadow: none; + background: none; + border-color: #000; + padding: 0; +} +.tizen .view footer > a:not(.button) { + color: inherit; + height: 49px; + top: 0px; + border-top: 4px solid #414f6e; + background: #414f6e; +} +.tizen .view footer > a.pressed:not(.button) { + border-top: 4px solid #316fc6; + background: #313f66; +} +.tizen .view footer > a.icon.pressed:not(.button):before { + color: inherit; +} +.tizen .menuButton:after { + border-color: white; +} +.tizen .af-badge { + border: none; +} +.tizen .list { + background: inherit; + color: inherit; + border-color: #303030; +} +.tizen .list .divider { + color: black; +} +.tizen .panel h2 { + color: inherit; +} +.tizen .collapsed:after { + border-top: 6px solid; +} +.tizen .collapsed:before { + border: 2px solid; +} +.tizen .expanded:after { + border-bottom: 6px solid; +} +.tizen .expanded:before { + border: 2px solid; +} +.tizen input.toggle + label:after { + color: inherit; +} +.tizen input.toggle + label { + border-radius: 0; +} +.tizen input.toggle + label > span { + border-radius: 0; + top: 0; + width: 27px; + height: 28px; +} +.tizen label { + color: inherit; +} +.tizen .afPopup { + border: solid 1px #888; + padding: 5px; + border-radius: 5px; + -webkit-transform: none; + transform: none; + -webkit-transition: none; + transition: none; + background: #313f66; + color: inherit; +} +.tizen .afPopup > HEADER { + text-align: center; + padding: 5px; +} +.tizen .afPopup > DIV { + font-size: 14px; + text-align: center; + padding: 5px; + margin: 0; +} +.tizen .afPopup > FOOTER > A { + width: 120px; +} +.tizen #af_actionsheet { + background: inherit; + color: inherit; +} +.tizen #af_actionsheet a { + border-radius: 0; + border: 1px solid #ccc; + background: #313f66; + color: inherit; +} +.tizen.light .view header { + background: #e9e6df; + color: inherit; + border-color: #e9e6df; +} +.tizen.light .view footer { + border-color: #fff; +} +.tizen.light .view footer > a:not(.button) { + border-top: 4px solid #dedcd5; + background: #dedcd5; +} +.tizen.light .view footer > a.pressed:not(.button) { + border-top: 4px solid #ceccc5; + background: #e9e6df; +} +.tizen.light .menuButton:after { + border-color: black; +} +.tizen.light .afPopup { + background: #e9e6df; +} +.tizen.light #af_actionsheet a { + background: #e9e6df; +} +.tizen .panel, +.tizen #modalContainer { + background: #000; + color: #fff; +} +.tizen .collapsed:before, +.tizen .expanded:before { + border-color: inherit; +} +.tizen .collapsed:after, +.tizen .expanded:after { + border-top-color: inherit; +} +.tizen select, +.tizen textarea, +.tizen input[type="text"], +.tizen input[type=search], +.tizen input[type="password"], +.tizen input[type="datetime"], +.tizen input[type="datetime-local"], +.tizen input[type="date"], +.tizen input[type="month"], +.tizen input[type="time"], +.tizen input[type="week"], +.tizen input[type="number"], +.tizen input[type="email"], +.tizen input[type="url"], +.tizen input[type="tel"], +.tizen input[type="color"], +.tizen .input-group { + background: inherit; + color: inherit; +} +.tizen input.toggle:checked + label { + background: #313f66; +} +.tizen input[type="radio"]:not(.toggle):checked + label:before, +.tizen input[type="checkbox"]:not(.toggle):checked + label:before { + background: #313f66; +} +.tizen .view footer .icon:not(.button):before { + margin-bottom: 2px; + top: 0px; +} + +/* Bg #00ABA9 + +/* + * reg white-space: + + border 303030 + hover : #111 + + */ +@-ms-viewport { + width: device-width; +} +@font-face { + font-family: 'win8back'; + src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRk9UVE8AAARUAAsAAAAABmgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABDRkYgAAABCAAAAS4AAAGZpdvO1kZGVE0AAAI4AAAAGgAAABxnmGDwR0RFRgAAAlQAAAAdAAAAIAAwAARPUy8yAAACdAAAAEsAAABgL9zcQGNtYXAAAALAAAAAOgAAAVLgE/LMaGVhZAAAAvwAAAAuAAAANvx5/t1oaGVhAAADLAAAAB4AAAAkBBD/5GhtdHgAAANMAAAADAAAAAwEAAACbWF4cAAAA1gAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALAA6AAMAAv/iAf4B3gAHAA8AGAAAACIGFBYyNjQCIiY0NjIWFCU3IwcXMyczNQFp0pWV0pWgvIaGvIb+8Gtkj49ka84B3pXSlZXS/rOGvIaGvIFrjo5rRgAAAAABAAD/4AIAAeAAAgAAEQEhAgD+AAHg/gAAAAAAAAAMAJYAAQAAAAAAAQAIABIAAQAAAAAAAgAHACsAAQAAAAAAAwAjAHsAAQAAAAAABAAIALEAAQAAAAAABQALANIAAQAAAAAABgAIAPAAAwABBAkAAQAQAAAAAwABBAkAAgAOABsAAwABBAkAAwBGADMAAwABBAkABAAQAJ8AAwABBAkABQAWALoAAwABBAkABgAQAN4AdwBpAG4AOABiAGEAYwBrAAB3aW44YmFjawAAUgBlAGcAdQBsAGEAcgAAUmVndWxhcgAARgBvAG4AdABGAG8AcgBnAGUAIAAyAC4AMAAgADoAIAB3AGkAbgA4AGIAYQBjAGsAIAA6ACAANgAtADUALQAyADAAMQAzAABGb250Rm9yZ2UgMi4wIDogd2luOGJhY2sgOiA2LTUtMjAxMwAAdwBpAG4AOABiAGEAYwBrAAB3aW44YmFjawAAVgBlAHIAcwBpAG8AbgAgADEALgAwAABWZXJzaW9uIDEuMAAAdwBpAG4AOABiAGEAYwBrAAB3aW44YmFjawAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAEAAgECAQMHdW5pRTAwMAd1bmlGMDAwAAAAAf//AAIAAQAAAA4AAAAYAAAAAAACAAEAAwAEAAEABAAAAAIAAAAAAAEAAAAAzD2izwAAAADNrV8QAAAAAM2tXxA=) format('truetype'); + font-weight: normal; + font-style: normal; +} +.win8, +.win8 .view, +.win8 .view .pages { + font: 14px "Segoe UI Semilight", "HelveticaNeue-light", Helvetica, Arial, sans-serif; + font-size: 14px; + background: #000; + color: #fff; +} +.win8.light, +.win8.light .view, +.win8.light .view .pages { + background: #fff; + color: #000; +} +.win8 .view header { + border: 0px; + background: inherit; + border-bottom: inherit; + color: inherit; +} +.win8 .view header .button { + color: inherit; + border-color: transparent; + font-size: 14px; +} +.win8 .view header .backButton.pressed { + background: inherit; +} +.win8 .view header .backButton { + color: inherit; + background: inherit; + margin: 0; + font-family: 'win8back'; + width: 0px; + height: 0px; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + padding: 0px; + margin: 0px; + border: none; + position: absolute; + left: -185px; + -webkit-font-smoothing: antialiased; +} +.win8 .view header .backButton::before { + content: "\e000"; + font-size: 30px; + position: absolute; + top: -6px; + right: -235px; + left: auto; + color: inherit; + font-family: inherit; + -webkit-transform: none; + transform: none; +} +.win8 .view header h1 { + text-align: left; + color: inherit; +} +.win8 .view footer { + padding: 0px; + background: inherit; + height: 65px; + background: rgba(33, 32, 33, 0.9); + border-top: none; + display: block; + text-align: center; +} +.win8 .view footer > a:not(.button) { + position: relative; + width: 56px !important; + height: 65px; + display: inline-block; + font: normal 10px/24px Segoe WP, Segoe UI, Verdana, Helvetica, Sans-Serif; + text-decoration: none; + color: inherit; + text-align: center; + text-shadow: 0 0 rgba(0, 0, 0, 0); + overflow: hidden; + background: inherit; + -webkit-backface-visibility: hidden; + -webkit-perspective: 1000; +} +.win8 .view footer > a.icon.pressed:not(.button):before { + background-color: #00aba9; +} +.win8 .view footer > a.icon:not(.button):before { + width: 35px; + top: 4px; + left: 2px; + font-size: 19px; + padding: 5px; + border: 3px solid #fff; + border-radius: 20px; +} +.win8 .view footer > a:not(:last-of-type):not(.button) { + border: none; +} +.win8 .view .panel { + background: inherit; + color: inherit; +} +.win8 .af-badge { + border: none; +} +.win8 .list { + background: inherit; + color: inherit; + border-color: #303030; +} +.win8 .list li { + border-top: none; + border-bottom: none; + font-size: 20px; +} +.win8 .panel h2 { + color: inherit; + font-weight: normal; + font-size: 34px; + line-height: 34px; + height: auto; +} +.win8 .collapsed:after { + border-top: 6px solid; +} +.win8 .collapsed:before { + border: 2px solid; +} +.win8 .expanded:after { + border-bottom: 6px solid; +} +.win8 .expanded:before { + border: 2px solid; +} +.win8 input.toggle + label:after { + color: inherit; +} +.win8 input.toggle + label { + border-radius: 0; +} +.win8 input.toggle + label > span { + border-radius: 0; + top: 0; + width: 27px; + height: 28px; +} +.win8 input.toggle:checked + label { + background: #00aba9; +} +.win8 .button { + border-radius: 0; + border: none; + background: inherit; + border: 3px solid #fff; + color: inherit; + text-shadow: none; + box-shadow: none; +} +.win8 .button.pressed { + background: #00aba9; +} +.win8 .button-grouped > .button { + border: 3px solid #fff; + border-right: 0; +} +.win8 .button-grouped > .button:last-child { + border-right: 3px solid #fff; +} +.win8 .button-grouped.vertical > .button { + border: 3px solid #fff; + border-bottom: 0; +} +.win8 .button-grouped.vertical > .button:last-child { + border-bottom: 3px solid #fff; +} +.win8 .header .button-grouped > .button { + border-color: #fff; +} +.win8 .header .button-grouped > .button.pressed { + background: #00aba9; +} +.win8 .afPopup { + width: 100%; + border: solid 0px #72767b; + left: 0px !important; + border-radius: 0; + -webkit-transform: none; + transform: none; + -webkit-transition: none; + transition: none; + top: 0 !important; + background: #222; + color: inherit; + padding: 15px; +} +.win8 .afPopup > HEADER { + font-size: 20px; +} +.win8 .afPopup > DIV { + font-size: 16px; + padding: 10px 0; + margin: 0; +} +.win8 .afPopup > FOOTER { + width: 100%; + text-align: left; + display: block !important; +} +.win8 .afPopup > FOOTER > A#cancel { + float: left; + min-width: 100px; +} +.win8 .afPopup > FOOTER > A#action { + float: left; + min-width: 100px; + margin-left: 10px; +} +.win8 .afPopup > FOOTER > A.center { + width: auto; +} +.win8 #af_actionsheet { + background: #aaa; + color: black; +} +.win8 #af_actionsheet a { + border-radius: 0; + border: 0px solid black; + background-color: transparent; + font-weight: normal; + color: black; + box-shadow: 0px 1px 1px rgba(255, 255, 255, 0); +} +.win8 input[type="range"] { + -webkit-appearance: none; + background-color: #ccc; + height: 4px; + position: relative; + top: -10px; + margin-top: 15px; +} +.win8 input[type="range"]::-webkit-slider-thumb { + -webkit-appearance: none; + position: relative; + z-index: 1; + width: 15px; + height: 15px; + background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #cccccc), color-stop(100%, #cccccc)); + background-image: gradient(linear, left top, left bottom, color-stop(0%, #cccccc), color-stop(100%, #cccccc)); +} +.win8.light .view footer { + background: #F2F2F2; + color: black; + display: block; +} +.win8.light .view footer > a:not(.button) { + text-shadow: 0 0 rgba(0, 0, 0, 0); +} +.win8.light .view footer > a.icon:not(.button):before { + border: 3px solid #000; +} +.win8.light .button { + border: 3px solid #000; +} +.win8.light .afPopup { + background: #eee; +} +.win8 .list .divider, +.win8 #menu.tabletMenu .list .divider { + background: #00aba9; + padding: 5px; + display: inline; + font-size: 16px; + font-weight: normal; + border-top: none; + border-bottom: none; + color: inherit; +} +.win8 .collapsed:before, +.win8 .expanded:before { + border-color: inherit; +} +.win8 .collapsed:after, +.win8 .expanded:after { + border-top-color: inherit; +} +.win8 select, +.win8 textarea, +.win8 input[type="text"], +.win8 input[type="search"], +.win8 input[type="password"], +.win8 input[type="datetime"], +.win8 input[type="datetime-local"], +.win8 input[type="date"], +.win8 input[type="month"], +.win8 input[type="time"], +.win8 input[type="week"], +.win8 input[type="number"], +.win8 input[type="email"], +.win8 input[type="url"], +.win8 input[type="tel"], +.win8 input[type="color"], +.win8 .input-group { + background: black; + color: inherit; +} +.win8.light select, +.win8.light textarea, +.win8.light input[type="text"], +.win8.light input[type="search"], +.win8.light input[type="password"], +.win8.light input[type="datetime"], +.win8.light input[type="datetime-local"], +.win8.light input[type="date"], +.win8.light input[type="month"], +.win8.light input[type="time"], +.win8.light input[type="week"], +.win8.light input[type="number"], +.win8.light input[type="email"], +.win8.light input[type="url"], +.win8.light input[type="tel"], +.win8.light input[type="color"], +.win8.light .input-group { + background: white; +} +.win8 .button.next, +.win8 .button.previous { + border-color: #fff !important; +} +.win8 .button.next::after, +.win8 .button.previous::after { + border: none; +} +.win8 .button-grouped > .button:first-child, +.win8 .button-grouped > .button:last-child { + border-radius: 0; +} +.win8.light .button-grouped > .button, +.win8.light .button-grouped.vertical > .button, +.win8.light .header .button-grouped > .button { + border-color: #111; +} +.win8 input[type="radio"]:not(.toggle):checked + label:before, +.win8 input[type="checkbox"]:not(.toggle):checked + label:before { + background: #00aba9; +} diff --git a/css/app.css b/css/app.css new file mode 100644 index 0000000..2d611ca --- /dev/null +++ b/css/app.css @@ -0,0 +1,18 @@ +html, body { + margin: 0; + padding: 0.5rem; +} + +body { + font-size: 1rem; + background: #fff; +} + +h1 { + margin: 0 0 1rem 0; +} + +p { + font-size: inherit; +} + diff --git a/css/app.css.bak b/css/app.css.bak new file mode 100644 index 0000000..10bd6c4 --- /dev/null +++ b/css/app.css.bak @@ -0,0 +1,1677 @@ +* { + -webkit-user-select: none; + -webkit-tap-highlight-color: rgba(0,0,0,0); + -moz-tap-highlight-color: rgba(0,0,0,0); + -ms-touch-action: none; + -moz-user-select: -moz-none; + -webkit-touch-callout: none; + margin: 0; + padding: 0; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +body { + overflow-x: hidden; + -webkit-text-size-adjust: none; + font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + color: #000; + font-size: 14px; + display: -webkit-box; + background: #fff; + -webkit-box-orient: vertical; + -webkit-box-align: stretch; +} +#afui input, +textarea { + -webkit-user-select: text; + -moz-user-select: -moz-text; + -moz-user-select: text; +} +#afui img { + border: none; +} +#afui p { + display: block; + margin: 6px 0; + font-size: 14px; + line-height: 20px; + color: inherit; +} +#afui #afui_modal { + background: inherit; + color: inherit; + -webkit-backface-visibility: hidden; + z-index: 9999 !important; + width: 100%; + height: 100%; + display: none; + position: absolute; + top: 0; + overflow: hidden; + display: -webkit-box; + display: -moz-box; + display: box; + display: -ms-flexbox; + -webkit-box-orient: vertical; + -moz-box-orient: vertical; + -ms-box-orient: vertical; + box-orient: vertical; + display: -webkit-flex; + display: -moz-flex; + display: -ms-flex; + display: flex; + -webkit-flex-direction: column; + -moz-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; +} +#afui #modalContainer > * { + -webkit-backface-visibility: hidden; + -webkit-perspective: 1000; + background: inherit; + color: inherit; +} +#afui .afScrollPanel { + width: 100%; + min-height: 100%; +} +#afui { + position: absolute; + width: 100%; + top: 0; + bottom: 0; + overflow: hidden; +} +#afui, +.flexContainer { + display: -webkit-box; + display: -moz-box; + display: box; + display: -ms-flexbox; + -webkit-box-orient: vertical; + -moz-box-orient: vertical; + -ms-box-orient: vertical; + box-orient: vertical; + display: -webkit-flex; + display: -moz-flex; + display: -ms-flex; + display: flex; + -webkit-flex-direction: column; + -moz-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; +} +#afui > #splashscreen { + position: absolute; + top: 0; + bottom: 0; + width: 100%; + left: 0; + min-height: 100%; + background: #1d1d1c !important; + color: white !important; + font-size: 30px; + text-align: center; + z-index: 9999; + display: block; + margin-left: auto !important; + margin-right: auto !important; + padding-top: 80px !important; +} +#afui .header { + position: relative; + overflow: hidden; + display: block; + z-index: 250; + -webkit-box-sizing: border-box; + box-sizing: border-box; + height: 44px; + left: 0; + right: 0; +} +#afui .header h1 { + position: absolute; + width: 45%; + z-index: 1; + text-align: center; + height: 44px; + font-size: 18px; + font-weight: bold; + left: 27.5%; + color: inherit; + padding: 10px 0; + text-shadow: rgba(0,0,0,0.8) 0 -1px 0; + text-align: center; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} +#afui #content, +#afui_modal #modalContainer { + z-index: 180; + position: relative; + -webkit-box-flex: 1; + -moz-box-flex: 1; + -ms-box-flex: 1; + box-flex: 1; + -webkit-flex: 1; + -moz-flex: 1; + -ms-flex: 1; + flex: 1; + overflow: hidden; + background: inherit; + color: inherit; +} +#afui .panel { + z-index: 180; + width: 100%; + height: 100%; + display: none; + position: absolute; + top: 0; + left: 0; + overflow-y: auto; + overflow-x: hidden; + -webkit-overflow-scrolling: touch; + -webkit-backface-visibility: hidden; + padding: 10px; + padding-top: 0px; +} +#afui .y-scroll, +#afui .panel.y-scroll { + overflow-x: hidden; + overflow-y: auto; +} +#afui .x-scroll, +#afui .panel.x-scroll { + overflow-x: auto; + overflow-y: hidden; +} +#afui .no-scroll, +#afui .panel.no-scroll { + overflow: hidden; +} +#afui .footer { + z-index: 180; + height: 49px; + display: block; + left: 0; + right: 0; + position: relative; + padding: 0 3px; +} +#afui footer>a:not(.button) { + -webkit-box-sizing: border-box; + box-sizing: border-box; + top: 3px; + height: 43px; + overflow: hidden; + font-size: 12px; + font-weight: normal; + text-decoration: none; + color: #fff; + text-align: center; + display: inline-block; + width: 25%; + -webkit-backface-visibility: hidden; + -webkit-perspective: 1000; + line-height: 67px; + position: relative; + margin: 0; +} +#afui footer>a:not(.button) .af-badge { + right: auto; + margin-left: -16px; +} +#afui footer>a.icon:not(.button):before { + position: absolute; + top: 2px; + left: 0; + font-size: 25px; + margin: auto; + width: 100%; +} +#afui footer, +#afui header, +#afui nav, +#afui aside { + display: none; +} +#afui .footer footer, +#afui #menu nav, +#afui .header header, +#afui #aside_menu aside { + display: block; +} +#afui > #menu.tabletMenu { + z-index: 1; + width: 200px; + bottom: 0; + display: none; + position: absolute; + top: 0; + left: 0; + border-right: 1px solid rgba(128,128,128,0.5); +} +#afui > #aside_menu { + z-index: 1; + width: 200px; + bottom: 0; + height: 100%; + display: none; + position: absolute; + top: 0; + right: 0; + border-left: 1px solid rgba(128,128,128,0.5); +} +#afui #menu_scroller, +#afui #aside_menu_scroller { + padding-bottom: 10px; + overflow-y: auto; + overflow-x: hidden; + -webkit-backface-visibility: hidden; + -webkit-overflow-scrolling: touch; +} +#afui #menu_scroller > *, +#afui #aside_menu_scroller > * { + -webkit-backface-visibility: hidden; + -webkit-perspective: 1000; +} +#afui #menu .list li, +#afui #menu .list .divider, +#afui #menu .list li:first-child, +#afui #menu .list li:last-child, +#afui #aside_menu .list li, +#afui #aside_menu .list .divider, +#afui #aside_menu .list li:first-child, +#afui #aside_menu .list li:last-child { + font-weight: bold; + font-size: 1em; + line-height: 1em; + border-color: #101012; + -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); + box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); +} +#afui #menu .list > li > a, +#afui #aside_menu .list > li > a { + color: #ccc; + margin-left: 6px; + font-weight: normal; +} +#afui #menu .list, +#afui #menu .list .divider, +#afui #aside_menu .list, +#afui #aside_menu .list .divider { + background: inherit; +} +#afui #menu .list .divider, +#afui #aside_menu .list .divider { + background: #333; + color: #fff; + font-weight: bold; + font-size: 1em; + line-height: 1em; + padding: 6px; + top: 0px; + border: none; + -webkit-box-shadow: none; + box-shadow: none; +} +#afui #menu .list > li > a:after, +#afui #aside_menu .list > li > a:after { + margin-top: -8px; +} +#afui .splashscreen { + background: #1d1d1c !important; + padding-left: 40px; + padding-top: 30px !important; + min-height: 100%; +} +#afui h2 { + display: block; + height: 34px; + font-weight: bold; + font-size: 18px; + color: #000; + padding: 6px 0; + margin-bottom: 8px; +} +#afui .collapsed:after { + float: right; + content: ''; + border-left: 5px solid transparent; + border-right: 5px solid transparent; + border-top: 6px solid #000; + display: block; + position: absolute; + top: 14px; + right: 14px; +} +#afui .collapsed:before { + float: right; + content: ''; + color: transparent; + background: transparent; + width: 14px; + height: 14px; + display: block; + border: 2px solid #000; + border-radius: 3px; + position: absolute; + top: 8px; + right: 10px; +} +#afui .expanded:after { + float: right; + content: ''; + border-left: 5px solid transparent; + border-right: 5px solid transparent; + border-bottom: 6px solid #000; + display: block; + position: absolute; + top: 13px; + right: 14px; +} +#afui .expanded:before { + float: right; + content: ''; + color: transparent; + background: transparent; + width: 14px; + height: 14px; + display: block; + border: 2px solid #000; + border-radius: 3px; + position: absolute; + top: 8px; + right: 10px; +} +.ui-icon { + background: #666; + background: rgba(0,0,0,0.4); + background-repeat: no-repeat; + border-radius: 9px; +} +.ui-loader { + display: none; + position: absolute; + opacity: .85; + z-index: 100; + left: 50%; + width: 200px; + margin-left: -100px; + margin-top: -35px; + padding: 10px 30px; + background: #666; + background: rgba(0,0,0,0.4); + border-radius: 9px; + color: white; +} +.ui-loader.heavy { + opacity: 1; +} +.ui-loader h1 { + font-size: 15px; + text-align: center; +} +.ui-loader .ui-icon { + position: static; + display: block; + opacity: .9; + margin: 0 auto; + width: 35px; + height: 35px; + background-color: transparent; +} +.spin { + -webkit-transform: rotate(360deg); + -webkit-animation-name: spin; + -webkit-animation-duration: 1s; + -webkit-animation-iteration-count: infinite; +} +@-webkit-keyframes spin { + from { + -webkit-transform: rotate(0deg); + } + to { + -webkit-transform: rotate(360deg); + } +} +.ui-icon-loading { + background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjBAMAAADs965qAAAAA3NCSVQICAjb4U/gAAAAMFBMVEX////x8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHvvEhiAAAAEHRSTlMAESIzRFVmd4iZqrvM3e7/dpUBFQAAAAlwSFlzAAAK6wAACusBgosNWgAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNXG14zYAAAEaSURBVCiRY2AgATCapaUqoIiIzN5z5syZJiQRltW7gUJ3705C6OraDRG6GwATkli1evdusNBTuKJVq3c4MjBX3733DqqMfdWqFWDbau+9ewIRspy5KgHMYL737g1EX+fMaVAjbN+9KwDLzZxZAHPMu3cXwEbNnAl397p3YDslOmD6GBjs/v8AURodzXAh3v+/QZRHRyNciPP/f4hQA1yIHVMICtzLC9CFzMuL0IXEy0vQhdjK0+BsRqgv0tIMYEKCggJgmbS0QJgiQUEIwy0tVQCmCCokmhYaCFMElWMKDQ01BIkoKcKEGFRDQ1yMlISUgEIwe5iAQi7GxkpKSjBFwMh2cXEGCSkiOVcFLIQswsAgZGxshCpCBgAA0FNYp5zwDegAAAAASUVORK5CYII=); + width: 40px; + height: 40px; + border-radius: 20px; + background-size: 35px 35px; +} +#afui .ui-corner-all { + border-radius: .6em; +} +#afui_mask { + position: absolute; + top: 45%; + z-index: 999999; +} +.afui_panel_mask { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: 2000; + background-color: rgba(0,0,0,0.1); + display: none; +} +#afui .hasMenu { + left: 0; +} +#afui .menuButton { + position: relative; + top: 5px; + right: -8px; + height: 36px; + width: 36px; + z-index: 2; + float: right; +} +#afui .menuButton:after { + border-bottom: 9px double white; + border-top: 3px solid white; + top: 9px; + left: 3px; + content: ""; + height: 3px; + position: absolute; + width: 15px; +} +#afui .hasMenu.on { + -webkit-transform: translate3d(200px,0,0); + transform: translate(200px,0); +} +#afui .modalbutton { + position: absolute; + top: 0; + right: 5px; + height: 32px; + width: 58px; + line-height: 32px; + z-index: 9999; +} +#afui .closebutton { + position: absolute; + top: 6px; + right: 6px; + display: block; + height: 24px; + width: 24px; + border-radius: 12px; + border: 1px solid #666; + background: #fff; + color: #333; + font-weight: bold; + font-size: 21px; + line-height: 18px; + text-align: center; + text-decoration: none; +} +#afui .closebutton:before { + content: 'x'; +} +#afui .closebutton.selected, +.closebutton.modalButton.selected { + color: #fff; + background: #333; +} +#afui .panel > .list, +#afui .panel > .afScrollPanel > .list { + margin: 0px -10px; +} +#afui .panel > .list.inset, +#afui .panel > .afScrollPanel > .list.inset { + margin: 0px; +} +@font-face { + font-family: 'chevron'; + src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAQAAA0AAAAABZgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABMAAAABoAAAAcZ/T02kdERUYAAAFMAAAAHwAAACAAMgAGT1MvMgAAAWwAAABHAAAAVj7i2r5jbWFwAAABtAAAAEMAAAFS8BX0J2dhc3AAAAH4AAAACAAAAAj//wADZ2x5ZgAAAgAAAABsAAAAbMHrMoZoZWFkAAACbAAAADAAAAA2/JaS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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgA2AAEAAP/AAcABgAACAAARASEBwP5AAYD+QAAAAAABAB3/7QETAXMAFwAAJRQPAQYiLwEmNTQ/AScmNTQ/ATYyHwEWARMJpAkaCRQJCXp6CQkUCBwIpAmwDQqjCQkTCg0NCXp5Cg0NCRMKCqMJAAAADACWAAEAAAAAAAEABwAQAAEAAAAAAAIABwAoAAEAAAAAAAMAIwB4AAEAAAAAAAQABwCsAAEAAAAAAAUACwDMAAEAAAAAAAYABwDoAAMAAQQJAAEADgAAAAMAAQQJAAIADgAYAAMAAQQJAAMARgAwAAMAAQQJAAQADgCcAAMAAQQJAAUAFgC0AAMAAQQJAAYADgDYAGMAaABlAHYAcgBvAG4AAGNoZXZyb24AAFIAZQBnAHUAbABhAHIAAFJlZ3VsYXIAAEYAbwBuAHQARgBvAHIAZwBlACAAMgAuADAAIAA6ACAAYwBoAGUAdgByAG8AbgAgADoAIAAxADAALQA2AC0AMgAwADEAMwAARm9udEZvcmdlIDIuMCA6IGNoZXZyb24gOiAxMC02LTIwMTMAAGMAaABlAHYAcgBvAG4AAGNoZXZyb24AAFYAZQByAHMAaQBvAG4AIAAxAC4AMAAAVmVyc2lvbiAxLjAAAGMAaABlAHYAcgBvAG4AAGNoZXZyb24AAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAQACAQIBAwd1bmlGMDAwB3VuaUYwNTQAAAAB//8AAgABAAAADgAAABgAAAAAAAIAAQADAAQAAQAEAAAAAgAAAAAAAQAAAADMPaLPAAAAAM3bqQUAAAAAzdupBQ==) format('truetype'); + font-weight: normal; + font-style: normal; +} +#afui .chevron { + font-family: 'chevron'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; +} +#afui .chevron:before { + content: " 054"; +} +#afui .chevron.left { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); +} +@media handheld,only screen and (min-width: 768px) { + #afui .footer.hasMenu.splitview, + #afui .header.hasMenu.splitview, + #afui #content.hasMenu.splitview { + position: relative; + right: 0px; + margin-left: 256px; + -webkit-transition: transform 0ms; + -webkit-transform: none; + transition: transform 0ms; + transform: none; + width: -webkit-calc(-156%); + width: calc(-156%); + } + #afui > #aside_menu.splitview { + width: 256px; + } + #afui > #menu.tabletMenu.splitview { + z-index: 1; + width: 256px; + bottom: 0; + height: 100%; + display: block; + position: absolute; + top: 0; + left: 0px; + -webkit-transform: none; + -webkit-transition: none; + transform: none; + transition: none; + } + #afui .splitview .menuButton { + display: none; + } +} +@media print { + body { + overflow: visible; + } + #afui #content { + overflow: visible; + left: 0; + } + #afui { + overflow: visible; + } + #afui .panel { + overflow-x: visible !important; + overflow-y: visible !important; + overflow: visible !important; + } +} +#afui { + background: #fff; + color: #53575E; +} +#afui .header { + background: #00a900; + border: none; + color: #FFFFFF; + border-bottom: 1px solid #00a900; +} +#afui .header h1 { + text-shadow: none; + width: 45%; +} +#afui #backButton { + background: #f9f9f9; + color: #fff; + display: block; + position: absolute; + line-height: 44px; + left: 25px; + text-overflow: ellipsis; + font-size: 14px; + padding: 0; + text-shadow: none; + background-color: transparent; + border: none; + border-color: transparent; + height: 44px; + top: 0; + border-radius: 0; + box-shadow: none; + margin: 0; + padding-left: 0; + text-align: center; + width: 50px; + padding: 0 !important; + margin: 0 !important; +} +#afui #backButton::before { + z-index: -1; + font-size: 22px; + position: absolute; + top: 10px; + left: -20px; + text-align: center; + border-radius: 0; + border: none; + border-color: transparent; + box-shadow: none; + -webkit-transform: none; + transform: none; + font-family: 'chevron'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; + content: " 054"; + -webkit-transform: rotate(180deg); + transform: rotate(180deg); + background-color: transparent; +} +#afui .footer { + background: #00a900; + border: none; + border-top: 1px solid #00a900; + box-shadow: none; +} +#afui footer>a:not(.button) { + color: #FFFFFF; +} +#afui footer>a.pressed:not(.button) { + border-radius: 0; + background: #00AEEF; +} +#afui footer>a.icon.pressed:not(.button):before { + color: inherit; +} +#afui .af-badge { + border: none; +} +#afui .list { + background: inherit; + color: inherit; + border-color: #303030; + font-weight: normal; +} +#afui .af-badge { + box-shadow: none; +} +#afui .list .divider { + color: black; +} +#afui .panel, +#afui #modalContainer, +#afui #modal { + color: #53575E; + background: #FFFFFF; +} +#afui .panel h2 { + color: #00a900; +} +#afui .collapsed:after { + border-top: 6px solid; +} +#afui .collapsed:before { + border: 2px solid; +} +#afui .expanded:after { + border-bottom: 6px solid; +} +#afui .expanded:before { + border: 2px solid; +} +#afui .collapsed:before, +#afui .expanded:before { + border-color: inherit; +} +#afui .collapsed:after, +#afui .expanded:after { + border-top-color: inherit; + border-top-color: inherit; +} +#afui select, +#afui textarea, +#afui input[type="text"], +#afui input[type=search], +#afui input[type="password"], +#afui input[type="datetime"], +#afui input[type="datetime-local"], +#afui input[type="date"], +#afui input[type="month"], +#afui input[type="time"], +#afui input[type="week"], +#afui input[type="number"], +#afui input[type="email"], +#afui input[type="url"], +#afui input[type="tel"], +#afui input[type="color"], +#afui .input-group { + background: inherit; + color: inherit; +} +#afui input.toggle+label:after { + color: inherit; +} +#afui input.toggle+label { + border-radius: 0; +} +#afui input.toggle+label > span { + border-radius: 0; + top: 0; + width: 27px; + height: 23px; +} +#afui label { + color: inherit; +} +#afui input[type="radio"]:checked+label:before, +#afui input[type="checkbox"]:checked+label:before { + background: #33B5E5; +} +#afui > #aside_menu, +#afui > #menu.tabletMenu { + color: #fff; + background: #00AEEF; + border-right: 1px solid #003f56; +} +#afui #aside_menu .list li, +#afui #aside_menu .list .divider, +#afui #aside_menu .list li:last-child, +#afui #menu .list li, +#afui #menu .list .divider, +#afui #menu .list li:last-child { + border-color: #4CC6F4; +} +#afui #aside_menu .list .divider, +#afui #menu .list .divider { + background: #0088D1; + color: inherit; + font-size: 1em; +} +#afui #aside_menu .list > li > a, +#afui #menu .list > li > a { + background: inherit; + color: inherit; + font-size: 1em; +} +#afui #aside_menu .list, +#afui #menu .list { + font-weight: normal; +} +#afui .list > li > a:after { + color: #0088D1; +} +#afui .afPopup { + border: solid 1px #00a900; + -webkit-border-radius: 5px; + border-radius: 5px; + background: inherit; + color: inherit; +} +#afui .afPopup>FOOTER>A { + width: 120px; +} +#afui #af_actionsheet { + background: #0190d6; + color: inherit; +} +#afui #af_actionsheet a { + border-radius: 0; + -webkit-border-radius: 0; + color: black; + background: white; + border: none; + text-shadow: none; +} +#afui .list { + margin: 0px; + padding: 0px; + margin-bottom: 10px; + list-style: none; + background-color: #fff; + box-sizing: border-box; + -webkit-box-sizing: border-box; +} +#afui .list li { + display: block; + list-style: none; + position: relative; + padding: 20px 20px 20px 10px; + border-bottom: 1px solid #ccc; +} +#afui .list li:first-child { + border-top: 1px solid #ccc; +} +#afui .list > li > a { + display: block; + position: relative; + display: block; + color: inherit; + margin: -20px -20px -20px -10px; + text-decoration: none; + padding: 20px 20px 20px 10px; +} +#afui .list a .af-badge { + position: absolute; + right: 30px; + top: 48%; + margin-top: -10px; +} +#afui .list > li > a:after { + position: absolute; + right: 8px; + font-family: 'chevron'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; + content: " 054"; + top: 50%; + margin-top: -0.5em; + color: inherit; +} +#afui .list .divider { + position: relative; + top: -1px; + padding-top: 6px; + padding-bottom: 6px; + font-size: 12px; + font-weight: bold; + line-height: 18px; + background-color: #dfe0e2; + border-top: 1px solid #ccc; + border-bottom: 1px solid #ccc; + box-shadow: inset 0 1px 1px rgba(255,255,255,0.4); + padding-right: 60px; +} +#afui .list.inset { + border: 1px solid #ccc; + border-radius: 6px; + margin: 10px; +} +#afui .list.inset li:first-child { + border-top: none; +} +#afui .list.inset li:last-child { + border-bottom: none; +} +#afui select, +#afui textarea, +#afui input[type="text"], +#afui input[type=search], +#afui input[type="password"], +#afui input[type="datetime"], +#afui input[type="datetime-local"], +#afui input[type="date"], +#afui input[type="month"], +#afui input[type="time"], +#afui input[type="week"], +#afui input[type="number"], +#afui input[type="email"], +#afui input[type="url"], +#afui input[type="tel"], +#afui input[type="color"], +#afui .input-group { + width: 100%; + height: 40px; + padding: 10px; + margin-bottom: 10px; + background: #fff; + border: 1px solid #ccc; + border-radius: 5px; + font-size: 14px; + font-weight: normal; + -webkit-appearance: none; + box-sizing: border-box; +} +#afui form { + position: relative; +} +#afui input[type="radio"], +#afui input[type="checkbox"] { + display: none; +} +#afui input[type="radio"] + label, +#afui input[type="checkbox"] + label { + display: inline-block; + width: 60%; + float: right; + position: relative; + text-align: left; + padding: 10px 0 0 0; +} +#afui input[type="radio"]:not(.toggle) + label:before { + background-color: #fafafa; + border: 1px solid #cacece; + border-radius: 50px; + display: block; + position: absolute; + width: 1.3em; + height: 1.3em; + content: ''; + margin-right: 5px; + top: 8px; + margin-left: -25px; +} +#afui input[type="radio"]:checked + label:before { + background-color: #000000; +} +#afui input[type="checkbox"] + label:before { + background-color: #fafafa; + border: 1px solid #cacece; + border-radius: 3px; + display: block; + position: absolute; + top: 8px; + left: -25px; + width: 1.3em; + height: 1.3em; + content: " "; +} +#afui input[type="checkbox"]:checked + label:before { + content: 'a0�4'; + padding: 0px; + display: inline-block; +} +#afui input[type="radio"]:after, +#afui input[type="checkbox"]:after { + visibility: hidden; + display: block; + font-size: 0; + content: " "; + clear: both; + height: 0; +} +#afui input[type="search"] { + border-radius: 20px; +} +#afui label { + float: left; + width: 33%; + font-weight: normal; + font-size: 14px; + color: inherit; + text-align: right; + padding: 11px 6px; +} +#afui label + select, +#afui label + input[type="radio"], +#afui label + input[type="checkbox"] label + textarea, +#afui label + input[type="text"], +#afui label + input[type=search], +#afui label + input[type="password"], +#afui label + input[type="datetime"], +#afui label + input[type="datetime-local"], +#afui label + input[type="date"], +#afui label + input[type="month"], +#afui label + input[type="time"], +#afui label + input[type="week"], +#afui label + input[type="number"], +#afui label + input[type="email"], +#afui label + input[type="url"], +#afui label + input[type="tel"], +#afui label + input[type="color"], +#afui label + textarea { + width: 66%; +} +#afui textarea { + height: auto; +} +#afui .input-group { + width: auto; + height: auto; + padding: 12px; + overflow: hidden; +} +#afui .input-group input:not([type='button']):not([type='submit']), +#afui .input-group textarea, +#afui .input-group select { + margin-bottom: 0; + background-color: transparent; + border: 0; + border-bottom: 1px solid #ccc; + border-radius: 0; + box-shadow: none; +} +#afui .input-group input:not([type="submit"]):not([type="button"]):last-child, +#afui .input-group textarea:last-child, +#afui .input-group select:last-child { + border-bottom: none; +} +#afui .input-group input[type=button], +#afui .input-group input[type=submit] { + margin: 5px; +} +#afui input.toggle + label:before, +#afui input.toggle:checked + label:before { + content: attr(data-on); + position: absolute; + color: #fff; + left: 5px; + width: 42px; + text-align: left; + z-index: 3; + top: 3px; + overflow: hidden; + background-color: transparent; + border: none; + border-radius: 0px; + text-transform: uppercase; + display: none; +} +#afui input.toggle:checked + label:before { + display: block; +} +#afui input.toggle + label:after { + content: attr(data-off); + position: absolute; + color: #505050; + width: 42px; + text-align: left; + z-index: 1; + top: 2px; + left: 30px; + overflow: hidden; + background-color: transparent; + border: none; + border-radius: 0px; + text-transform: uppercase; +} +#afui input.toggle:checked + label:after { + display: none; +} +#afui input[type="radio"].toggle:checked + label:before { + line-height: 1.2em; +} +#afui input.toggle + label { + position: relative; + margin: 5px; + border-radius: 50px; + display: block; + height: 24px; + width: 65px; + border: 1px solid #ccc; + left: 33%; + float: none; +} +#afui input.toggle:checked + label { + background: #1eb0e9; + line-height: -1em; +} +#afui input.toggle + label > span { + display: block; + width: 28px; + height: 28px; + background: #ccc; + border-radius: 50px; + z-index: 5; + top: -2px; + left: 0px; + position: absolute; + transition: transform 100ms linear; + transform: translate3d(0,0,0); + -webkit-transform: translate3d(0,0,0); + -webkit-transition: -webkit-transform 100ms linear; +} +#afui input.toggle:checked + label > span { + transform: translate3d(37px,0,0); + -webkit-transform: translate3d(37px,0,0); +} +#afui .formGroupHead { + font-size: 18px; + font-weight: bold; + color: inherit; + margin: 16px 0 8px; +} +#afui input[type=button], +#afui input[type=submit], +#afui button { + font-size: inherit; +} +#afui .button { + position: relative; + display: inline-block; + padding: 8px 12px; + margin: 8px 0; + font-weight: bold; + color: #000; + text-align: center; + vertical-align: top; + cursor: pointer; + background-color: #eee; + border: 1px solid #666; + border-radius: 6px; + text-decoration: none; + z-index: 2; + border-radius: 0; + text-shadow: none; +} +#afui .button.pressed { + background: #fff; +} +#afui .button.previous { + margin-left: 16px; + padding-left: 6px; + border-color: #666 #666 transparent transparent !important; +} +#afui .button.next { + border-color: #666 transparent #666 #666 !important; + margin-right: 16px; + padding-right: 6px; +} +#afui .button.previous::after { + z-index: -1; + content: ''; + position: absolute; + width: 25px; + height: 25px; + background-color: inherit; + top: 3px; + left: -11px; + border-radius: 5px; + border: 1px solid; + border-color: transparent transparent inherit transparent; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); +} +#afui .button.next::after { + z-index: -1; + content: ''; + position: absolute; + width: 25px; + height: 25px; + background-color: inherit; + top: 3px; + right: -11px; + border-radius: 5px; + border: 1px solid; + border-color: transparent transparent transparent transparent; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); +} +#afui .button.block { + display: block; +} +#afui .button.flat { + border-radius: 0; + box-shadow: none; +} +#afui .header .button-grouped>.button { + margin: 0; + border-color: #fff; +} +#afui .button-grouped { + display: inline-block; + margin: 5px; +} +#afui .button-grouped * { + border-radius: 0px; + float: left; + border-left: 0px solid transparent; + border-right: 1px solid #666; + border-bottom: 1px solid #666; + border-top: 1px solid #666; + margin: 0; +} +#afui .button-grouped > .button:first-child { + border-left: 1px solid #666; + border-top-left-radius: 6px; + border-bottom-left-radius: 6px; +} +#afui .button-grouped > .button:last-child { + border-top-right-radius: 6px; + border-bottom-right-radius: 6px; +} +#afui .button-grouped.flex { + display: -webkit-box; + display: -moz-box; + display: -ms-flexbox; + display: -webkit-flex; + display: flex; +} +#afui .button-grouped.flex > .button { + -webkit-box-flex: 1; + -moz-box-flex: 1 auto; + -webkit-flex: 1 auto; + -ms-flex: 1 auto; + flex: 1 auto; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} +#afui .button-grouped.flex.vertical { + display: inline-block; +} +#afui .button-grouped.vertical * { + border-radius: 0px; + display: block; + float: none; + width: 100%; + border-left: 1px solid #666; + border-right: 1px solid #666; + border-top: 1px solid #666; + border-bottom: 0px solid #666; +} +#afui .button-grouped.vertical > .button:first-child { + border-top-left-radius: 6px; + border-top-right-radius: 6px; + border-bottom-left-radius: 0px; + border-bottom-right-radius: 0px; +} +#afui .button-grouped.vertical > .button:last-child { + border-top-right-radius: 0px; + border-top-left-radius: 0px; + border-bottom-right-radius: 6px; + border-bottom-left-radius: 6px; + border-bottom: 1px solid #666; +} +#afui .button.gray { + background: #999; + border-color: #666; +} +#afui .button.yellow { + background-color: #F1C222; + border-color: #999; +} +#afui .button.red { + color: #fff; + text-shadow: 0 -1px 0 #666; + background: #B20000; + border-color: #666; +} +#afui .button.green { + color: #fff; + text-shadow: 0 -1px 0 #666; + background: #009C0C; + border-color: #666; +} +#afui .button.orange { + color: #fff; + text-shadow: 0 -1px 0 #666; + background-color: #FF8000; + border-color: #666; +} +#afui .button.black { + color: #fff; + text-shadow: none; + background: #000; + border-color: #666; +} +#afui .button.slate { + color: #fff; + text-shadow: 0 -1px 0 #000; + background: #171F28; + border-color: #666; +} +#afui .header .button { + color: #fff; + background: none; + border-color: transparent; + font-size: 12px; + padding: 7px; + height: 32px; + margin: 5px; + text-overflow: ellipsis; + white-space: nowrap; +} +.header .button.icon:before { + padding-left: 6px; +} +#afui #backButton { + text-overflow: ellipsis; + white-space: nowrap; +} +#afui .button.previous { + border: none; +} +#afui .button.next { + border: none; +} +#afui .button.previous::after { + color: black; + z-index: -1; + font-size: 22px; + position: absolute; + top: 2px; + left: -25px; + text-align: center; + border-radius: 0; + border: none; + border-color: transparent; + box-shadow: none; + -webkit-transform: none; + transform: none; + font-family: 'chevron'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; + content: " 054"; + -webkit-transform: rotate(180deg); + transform: rotate(180deg); + background-color: transparent; +} +#afui .button.next::after { + color: black; + z-index: -1; + font-size: 22px; + position: absolute; + top: 6px; + right: -25px; + text-align: center; + border-radius: 0; + border: none; + border-color: transparent; + box-shadow: none; + -webkit-transform: none; + transform: none; + font-family: 'chevron'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; + content: " 054"; + background-color: transparent; +} +#afui .af-badge { + position: absolute; + top: 2px; + right: 2px; + display: inline-block; + min-width: 20px; + max-width: 90%; + height: 20px; + padding: 0 3px; + background-color: red; + border-radius: 20px; + font-size: 12px; + line-height: 19px; + font-weight: bold; + color: #fff; + text-overflow: ellipsis; + text-align: center; + text-shadow: 0 -1px 0 rgba(64,0,0,0.6); +} +#afui .af-badge.br { + bottom: 2px; + right: 2px; + top: auto; + left: auto; +} +#afui .af-badge.bl { + bottom: 2px; + left: 2px; + top: auto; + right: auto; +} +#afui .af-badge.tl { + top: 2px; + left: 2px; + right: auto; + bottom: auto; +} +#afui .grid { + width: 100%; + overflow: hidden; +} +#afui .col2, +#afui .col3, +#afui .col1-3, +#afui .col2-3 { + float: none; + width: 100%; +} +#afui .grid:after { + content: ''; + clear: both; +} +@media handheld,only screen and (min-width: 768px) { + #afui .col2 { + width: 50%; + float: left; + } + #afui .col3 { + width: 33.3%; + float: left; + } + #afui .col1-3 { + width: 33.3%; + float: left; + } + #afui .col2-3 { + width: 66.6%; + float: left; + } +} +#af_actionsheet { + position: absolute; + left: 0px; + right: 0px; + padding-left: 10px; + padding-right: 10px; + padding-top: 10px; + margin: auto; + background: black; + float: left; + z-index: 9999; + border-top: #fff 1px solid; + background: rgba(71,71,71,0.95); + background-image: -webkit-gradient(linear,left top,left bottom,from(rgba(255,255,255,0.4)),to(rgba(255,255,255,0)),color-stop(.08,rgba(255,255,255,0.1)),color-stop(.08,rgba(255,255,255,0))); + background-image: -webkit-linear-gradient(top,rgba(255,255,255,0.4) 0%,rgba(255,255,255,0.1) 8%,rgba(255,255,255,0) 8%); + box-shadow: 0px -1px 2px rgba(0,0,0,0.4); +} +#af_actionsheet a { + text-decoration: none; + -webkit-transition: all 0.4s ease; + transition: all 0.4s ease; + text-shadow: 0px -1px rgba(0,0,0,0.8); + padding: 0px .25em; + border: 1px solid rgba(0,0,0,0.8); + text-overflow: ellipsis; + border-radius: .75em; + background-image: -webkit-gradient(linear,left top,left bottom,from(rgba(255,255,255,0.4)),to(rgba(255,255,255,0)),color-stop(.5,rgba(255,255,255,0.1)),color-stop(.5,rgba(255,255,255,0))); + background-image: -webkit-linear-gradient(top,rgba(255,255,255,0.5) 0%,rgba(255,255,255,0.2) 50%,rgba(255,255,255,0) 50%); + box-shadow: 0px 1px 1px rgba(255,255,255,0.7); + display: block; + color: white; + text-align: center; + line-height: 36px; + font-size: 20px; + font-weight: bold; + margin-bottom: 10px; + background-color: #828282; +} +#af_actionsheet a.selected { + background-color: #969696; +} +#af_actionsheet a.cancel { + background-color: #2b2b2b; +} +#af_actionsheet a.cancel.selected { + background-color: #494949; +} +#af_actionsheet a.red { + color: white; + background-color: #cc0000; +} +#af_actionsheet a.red.selected { + background-color: #ff0000; +} +#mask { + display: block; + width: 100%; + height: 100%; + background: #000; + z-index: 999999; + position: fixed; + top: 0; + left: 0; +} +.afPopup { + display: block; + width: 280px; + float: left; + border: solid 1px #72767b; + -webkit-border-radius: 10px; + border-radius: 10px; + padding: 10px; + opacity: 1; + -webkit-transform: scale(1); + -webkit-transition: all 0.20s ease-in-out; + transform: scale(1); + transition: all 0.20s ease-in-out; + position: absolute; + z-index: 1000000; + top: 50%; + left: 50%; + margin: 0px auto; + background: #464646; + color: white; +} +.afPopup >* { + color: inherit; +} +.afPopup.hidden { + opacity: 0; + -webkit-transform: scale(0); + top: 50%; + left: 50%; + margin: 0px auto; +} +.afPopup>HEADER { + font-weight: bold; + font-size: 20px; + margin: 0; + padding: 5px; +} +.afPopup>DIV { + font-size: 14px; + margin: 8px; +} +.afPopup>FOOTER { + width: 100%; + text-align: center; + display: block !important; +} +.afPopup>FOOTER>A#cancel { + float: left; + margin-left: 5px; +} +.afPopup>FOOTER>A#action { + float: right; + margin-right: 5px; +} +.afPopup>FOOTER>A.center { + float: none !important; + width: 80%; + margin: 8px; +} +.scrollBar { + position: absolute !important; + width: 5px !important; + height: 20px !important; + border-radius: 2px !important; + border: 1px solid black !important; + background: black !important; + opacity: 0 !important; +} +#afModalMask { + position: absolute; + top: 0px; + left: 0px; + width: 100%; + height: 100%; + background: transparent; + display: none; + z-index: 9999; +} +#afSelectBoxContainer { + position: absolute; + display: block; + width: 90%; + max-width: 280px; + margin-right: auto; + min-height: 100px; + background: #303030; + color: white; + overflow: hidden; + z-index: 9999; + max-height: 300px; + margin-top: -150px; + top: 50%; + left: 50%; + margin-left: -138px; +} +#afSelectBoxfix ul { + list-style-type: none; + padding: 0px; + margin: 0px; +} +#afSelectBoxfix li { + font-size: 1.1em; + color: #fff; + display: block; + line-height: 2.5em; + padding: 0 1em; + border-bottom: 1px solid #444; +} +#afSelectBoxfix .selected { + background: #00a900; +} +.afFakeSelect { + width: 200px; + height: 30px; + display: inline-block; + border: 1px solid #ccc; + border-radius: 5px; + line-height: 2em; + font-size: 1em; + padding-left: 10px; + position: relative; +} +.afFakeSelect:after { + position: absolute; + top: 5px; + right: 5px; + border: 14px solid transparent; + border-top-color: #ccc; + content: ''; +} +#afSelectBoxContainer #afSelectDone, +#afSelectBoxContainer #afSelectCancel { + margin-top: 10px; + display: inline-block; + height: 30px; + width: 100px; + background: #00a900; + border: 1px solid #00a900; + text-align: center; + line-height: 2em; + float: left; + margin-left: 10px; +} +#afSelectBoxContainer #afSelectCancel { + float: right; + margin-right: 10px; +} +#afSelectBoxContainer #afSelectClose { + overflow: hidden; + border-bottom: 1px solid #444; + padding-bottom: 5px; +} +select:disabled~.afFakeSelect { + background: #ccc; + color: black; +} diff --git a/css/icons.min.css b/css/icons.min.css new file mode 100644 index 0000000..1b2277e --- /dev/null +++ b/css/icons.min.css @@ -0,0 +1 @@ +@font-face{font-family:IcoMoon;src:url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAABRsAA0AAAAAIAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABMAAAABoAAAAcZ+S/vEdERUYAAAFMAAAAHwAAACAAawAGT1MvMgAAAWwAAABHAAAAVlAV3CVjbWFwAAABtAAAAH8AAAFe3hiKd2dhc3AAAAI0AAAACAAAAAj//wADZ2x5ZgAAAjwAAA9wAAAYYH4QTH1oZWFkAAARrAAAAC4AAAA2/UZdqWhoZWEAABHcAAAAHgAAACQEkQCfaG10eAAAEfwAAABDAAAA+HXqAtFsb2NhAAASQAAAAH4AAAB+tIiuwG1heHAAABLAAAAAHgAAACAAjQBwbmFtZQAAEuAAAADcAAABgxL0LFVwb3N0AAATvAAAAK4AAAFOuDWoj3icY2BgYGQAgjO2i86D6LOX+8pgNABRbQfEAAB4nGNgZGBg4ANiCQYQYGJgZGBmsAWSLGAeAwAHAwByAHicY2BkYmWcwMDKwMHow5jGwMDgDqW/MkgytDAwMDGwMjPAAKMAAwIEpLmmMDgwRH1gZHzw/wGDHuMDBoUGoBqQHACN2QtdAHicY2BgYGaAYBkGRgYQiADyGMF8FgYbIM3FwMHABIQMDHUPhD8w/v8PVhX1gOEDA4j9f5WCJpAP0csA1MPAYAsyj5ENIcgI0s3EgAoYGSgALKxs7BycXNw8vHz8AoJCwiKiYuISklLSMrJy8gqKSsoqqmrqGpRYQBUAAFLbDu0AAAAAAf//AAJ4nI1ZfWwb53l/H37c8UP8OB3vTqIo6o4n3UmyJVI8Hk+0LemsOrZsLo6UpJbiD+2auksjxwGXeEvgLQmBBHG6tZuCbR6QAAFr7I92yxYDS4o1GBoWDVyg2EezBs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9vbgAAUgBlAGcAdQBsAGEAcgAAUmVndWxhcgAARgBvAG4AdABGAG8AcgBnAGUAIAAyAC4AMAAgADoAIABJAGMAbwBNAG8AbwBuACAAOgAgADQALQA2AC0AMgAwADEAMwAARm9udEZvcmdlIDIuMCA6IEljb01vb24gOiA0LTYtMjAxMwAASQBjAG8ATQBvAG8AbgAASWNvTW9vbgAAVgBlAHIAcwBpAG8AbgAgADEALgAwAABWZXJzaW9uIDEuMAAASQBjAG8ATQBvAG8AbgAASWNvTW9vbgAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPgAAAAEAAgECAD0APgA/AEAAQQBCAEMARABFAEYARwBIAEkASgBLAEwATQBOAE8AUABRAFIAUwBUAFUAVgBXAFgAWQBaAFsAXABdAF4AXwBgAGEBAwEEAQUBBgEHAQgBCQEKAQsBDAENAQ4BDwEQAREBEgETARQBFQEWARcHdW5pRjAwMQd1bmlFMDAwB3VuaUUwMDEHdW5pRTAwMgd1bmlFMDAzB3VuaUUwMDQHdW5pRTAwNQd1bmlFMDA2B3VuaUUwMDcHdW5pRTAwOAd1bmlFMDA5B3VuaUUwMEEHdW5pRTAwQgd1bmlFMDBDB3VuaUUwMEQHdW5pRTAwRQd1bmlFMDBGB3VuaUUwMTAHdW5pRTAxMQd1bmlFMDEyB3VuaUUwMTMHdW5pRjAwMAAAAAAAAf//AAIAAQAAAA4AAAAYAAAAAAACAAEAAwA9AAEABAAAAAIAAAAAAAEAAAAAzD2izwAAAADN0452AAAAAM3TjnY=) format('truetype');font-weight:400;font-style:normal}.icon:before{font-family:IcoMoon;speak:none;font-style:normal;font-weight:400!important;font-variant:normal;text-transform:none;line-height:1;color:inherit;position:relative;font-size:1em;left:-3px;top:2px}li .icon:before{position:relative;width:24px;height:100%;top:2px;line-height:0!important;margin-right:4px}.icon.mini:before{font-size:.7em}.icon.big:before{font-size:1.5em}.icon.home:before{content:"\5a"}.icon.pencil:before{content:"\5b"}.icon.picture:before{content:"\5c"}.icon.camera:before{content:"\5d"}.icon.headset:before{content:"\5e"}.icon.paper:before{content:"\5f"}.icon.stack:before{content:"\61"}.icon.folder:before{content:"\60"}.icon.tag:before{content:"\62"}.icon.basket:before{content:"\63"}.icon.phone:before{content:"\64"}.icon.mail:before{content:"\65"}.icon.location:before{content:"\66"}.icon.clock:before{content:"\67"}.icon.calendar:before{content:"\68"}.icon.message:before{content:"\69"}.icon.chat:before{content:"\6a"}.icon.user:before{content:"\6b"}.icon.loading:before{content:"\6c"}.icon.refresh:before{content:"\6d"}.icon.magnifier:before{content:"\6e"}.icon.key:before{content:"\6f"}.icon.settings:before{content:"\70"}.icon.graph:before{content:"\71"}.icon.trash:before{content:"\72"}.icon.download:before{content:"\73"}.icon.upload:before{content:"\74"}.icon.star:before{content:"\75"}.icon.heart:before{content:"\76"}.icon.warning:before{content:"\77"}.icon.add:before{content:"\78"}.icon.remove:before{content:"\79"}.icon.question:before{content:"\7a"}.icon.info:before{content:"\7b"}.icon.error:before{content:"\7c"}.icon.check:before{content:"\7d"}.icon.minimize:before{content:"\7e"}.icon.close:before{content:"\e000"}.icon.up:before{content:"\e001"}.icon.right:before{content:"\e002"}.icon.down:before{content:"\e003"}.icon.left:before{content:"\e004"}.icon.html5:before{content:"\e005"}.icon.css:before{content:"\e006"}.icon.js:before{content:"\e007"}.icon.lamp:before{content:"\e008"}.icon.tools:before{content:"\e009"}.icon.new:before{content:"\e00a"}.icon.wifi:before{content:"\e00b"}.icon.mic:before{content:"\e00c"}.icon.database:before{content:"\e00d"}.icon.bug:before{content:"\e00e"}.icon.busy:before{content:"\e00f"}.icon.target:before{content:"\e010"}.icon.tv:before{content:"\e011"}.icon.cloud:before{content:"\e012"}.icon.pin:before{content:"\e013"} \ No newline at end of file diff --git a/data/en-US.properties b/data/en-US.properties new file mode 100644 index 0000000..c755493 --- /dev/null +++ b/data/en-US.properties @@ -0,0 +1,11 @@ +app_title = ToDo List +app_description.innerHTML = ToDo List. Never forget anything! +message = Let's start +main_list = ToDo Lists +back_button = Back +add_list = Add list +settings = Settings +about = About +create_list = Create list +new_list_name = Name: +add_new_list = Add new list \ No newline at end of file diff --git a/data/es.properties b/data/es.properties new file mode 100644 index 0000000..3b490c7 --- /dev/null +++ b/data/es.properties @@ -0,0 +1,11 @@ +app_title = Lista de tareas +app_description.innerHTML = Lista de tareas. ¡Que no se te olvide nada! +message = Comenzar +main_list = Listas de tareas +back_button = Atrás +add_list = Añadir lista +settings = Ajustes +about = Acerca de +create_list = Crear lista +new_list_name = Nombre: +add_new_list = Añadir nueva lista \ No newline at end of file diff --git a/data/locales.ini b/data/locales.ini new file mode 100644 index 0000000..c73ee6f --- /dev/null +++ b/data/locales.ini @@ -0,0 +1,5 @@ +@import url(en-US.properties) + +[es] +@import url(es.properties) + diff --git a/img/icons/icon.svg b/img/icons/icon.svg new file mode 100644 index 0000000..25724fc --- /dev/null +++ b/img/icons/icon.svg @@ -0,0 +1,290 @@ + + + + + + image/svg+xml + + empty + + + + + + empty + Created with Sketch. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/icons/icon128x128.png b/img/icons/icon128x128.png new file mode 100644 index 0000000..1c11ca9 Binary files /dev/null and b/img/icons/icon128x128.png differ diff --git a/img/icons/icon16x16.png b/img/icons/icon16x16.png new file mode 100644 index 0000000..da04c70 Binary files /dev/null and b/img/icons/icon16x16.png differ diff --git a/img/icons/icon48x48.png b/img/icons/icon48x48.png new file mode 100644 index 0000000..c421e50 Binary files /dev/null and b/img/icons/icon48x48.png differ diff --git a/img/icons/icon60x60.png b/img/icons/icon60x60.png new file mode 100644 index 0000000..dfc2b4c Binary files /dev/null and b/img/icons/icon60x60.png differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..0c2fce5 --- /dev/null +++ b/index.html @@ -0,0 +1,69 @@ + + + + + ToDo List + + + + + + + + + + + + + + + + + +
+
+
+

ToDo List

+
+
+
+ +
+
+
Create list
+
+ + + Add new list +
+
+
+ +
+ +
+ +
+
+ + diff --git a/js/app.js b/js/app.js new file mode 100644 index 0000000..138715c --- /dev/null +++ b/js/app.js @@ -0,0 +1,162 @@ +// DOMContentLoaded is fired once the document has been loaded and parsed, +// but without waiting for other external resources to load (css/images/etc) +// That makes the app more responsive and perceived as faster. +// https://developer.mozilla.org/Web/Reference/Events/DOMContentLoaded + +function openList(elementClicked) { + var listID = elementClicked.data('listID'); + var listTitle = localStorage.getItem('ToDoList_list' + listID); + $('ul#list_display').find('li').remove(); + + var numElements = localStorage.getItem('ToDoList_' + listID + '_element_count'); + if((numElements) && (numElements > 0)) { + var text; + for(var count = 0; count < numElements; count++) { + text = localStorage.getItem('ToDoList_' + listID + '_element_' + count); + if(text) { + var checked = localStorage.getItem('ToDoList_' + listID + '_element_' + count + '_checked'); + var list_display = $('#new_elem_text'); + if (checked == 'true') { + list_display.before('
  • ' + text + '
  • '); + } else { + list_display.before('
  • ' + text + '
  • '); + } + } + } + } + + $('#add_new_item').data('currentlist', listID); + $.afui.loadContent('#list_panel', false, false, "slide"); + $.afui.setTitle(listTitle); +} + +function addItemToList(listID, text) { + var numElements = localStorage.getItem('ToDoList_' + listID + '_element_count'); + var elementPosition = 0; + if((numElements) && (numElements > 0)) { + var count = 0; + while ((localStorage.getItem('ToDoList_' + listID + '_element_' + count)) && (count < numElements)) { + count++; + } + + if(count < numElements) { + elementPosition = count; + } else { + elementPosition = numElements; + numElements++; + } + } else { + elementPosition = 0; + numElements = 1; + } + + localStorage.setItem('ToDoList_' + listID + '_element_' + elementPosition, text); + localStorage.setItem('ToDoList_' + listID + '_element_' + count + '_checked', 'false'); + + localStorage.setItem('ToDoList_' + listID + '_element_count', numElements); + + var list_display = $('#new_elem_text'); + list_display.before('
  • ' + text + '
  • '); +} + +function addNewList(newListName) { + var lastID = 0; + if(localStorage.getItem('ToDoList_LastID')) { + lastID = localStorage.getItem('ToDoList_LastID'); + } + + var emptyID = 0; + if(lastID !== 0) { + var count = 0; + while((localStorage.getItem('ToDoList_list' + count)) && (count < lastID)) { + count++; + } + + if(count < lastID) { + emptyID = lastID; + } + } + + if(emptyID !== 0) { + localStorage.setItem('ToDoList_list' + lastID, newListName); + $('li#add_list_last_elem').before('
  • ' + newListName + '
  • '); + $('a#list_' + lastID).click(function () { openList(lastID); }); + lastID++; + localStorage.setItem('ToDoList_LastID', lastID); + } else { + localStorage.setItem('ToDoList_list' + emptyID, newListName); + $('li#add_list_last_elem').before('
  • ' + newListName + '
  • '); + $('a#list_' + emptyID).click(function () { openList(emptyID); }); + } +} + +// Loads the lists in the Store element +function loadLists() { + console.log('Recovering data'); + var maxLists = localStorage.getItem('ToDoList_LastID'); + if(maxLists) { + console.log('Lists found: ' + maxLists); + var listData; + for(var count = 0; count < maxLists; count++) { + listData = localStorage.getItem('ToDoList_list' + count); + if(listData) { + console.log('Adding list item ' + count); + $('li#add_list_last_elem').before('
  • ' + listData + '
  • '); + $('a#list_' + count).click(function () { openList($(this)); }); + $('a#list_' + count).data('listID', count); + } + } + } +} + +window.addEventListener('DOMContentLoaded', function() { + + // We'll ask the browser to use strict code to help us catch errors earlier. + // https://developer.mozilla.org/Web/JavaScript/Reference/Functions_and_function_scope/Strict_mode + 'use strict'; + + var translate = navigator.mozL10n.get; + + // We want to wait until the localisations library has loaded all the strings. + // So we'll tell it to let us know once it's ready. + navigator.mozL10n.once(start); + + // --- + + function start() { + + // var message = document.getElementById('message'); + + // We're using textContent because inserting content from external sources into your page using innerHTML can be dangerous. + // https://developer.mozilla.org/Web/API/Element.innerHTML#Security_considerations + // message.textContent = translate('message'); + + loadLists(); + + $('#add_list').click(function(){ + $.afui.loadContent('#new_list', false, false, "slide"); + }); + + $('#add_new_list_button').click(function(){ + var newListName = $('#new_list_name_input').val(); + + if((newListName.length > 0) && (newListName != '')) { + addNewList(newListName); + + $('#new_list_name_input').val(''); + + $.afui.goBack(); + } + }); + + $('#add_new_item').click(function() { + var text = $('#new_elem_text').val(); + + if((text) && (text.length > 0)) { + var listID = $('#add_new_item').data('currentlist'); + addItemToList(listID, text); + } + + }); + } +}); diff --git a/js/init.js b/js/init.js new file mode 100644 index 0000000..d26176f --- /dev/null +++ b/js/init.js @@ -0,0 +1,11 @@ + $.afui.autoLaunch = false; //By default, it is set to true and you're app will run right away. We set it to false to show a splashscreen + /* This function runs when the content is loaded.*/ + $(document).ready(function(){ + setTimeout(function(){ + $.afui.launch(); + },1500); + }); + +/* window.addEventListener('load', function() { + new FastClick(document.body); +}, false); */ diff --git a/js/libs/appframework.ui.min.js b/js/libs/appframework.ui.min.js new file mode 100644 index 0000000..04c18b6 --- /dev/null +++ b/js/libs/appframework.ui.min.js @@ -0,0 +1,102 @@ +/*! intel-appframework - v3.0.0 - 2014-10-16 */ + +/* + Intel 2014 + @author Ian Maffett + @description jQuery helper functions for App Framework + 2011-2014 Intel + @author Intel + @version 3.0 + 2014 Intel + Intel 2014 + + Intel 2014 + + Intel 2014 + + Intel 2014 + + Intel 2014 + +*/ +(function(a,f){function h(a,c){if(a)if(a.nodeType)c[c.length++]=a;else for(var d=0,b=a.length;dd.clientHeight,e="touch"===a(d).computedStyle("-webkit-overflow-scrolling"),g="hidden"!==a(d).computedStyle("overflowY"), +k=parseInt(a(d).computedStyle("height"),10);b&&(e&&g)&&(b=c.touches[0].screenY,k=this._startTouchY>=b&&d.scrollHeight-d.scrollTop===k,(this._startTouchY<=b&&0===d.scrollTop||k)&&c.preventDefault())}},registerDataDirective:function(a,d){b.push({sel:a,cb:d})},enableTabBar:function(){a(document).on("click",".button-grouped.tabbed",function(c){var d=a(c.target);d.closest(".tabbed").find(".button").data("ignore-pressed","true").removeClass("pressed");d.closest(".button").addClass("pressed");setTimeout(function(){d.closest(".button").addClass("pressed")})})}, +disableTabBar:function(){a(document).off("click",".button-grouped.tabbed");a(".button-grouped.tabbed .button").removeAttr("data-ignore-pressed")},manageHistory:!0,loadDefaultHash:!0,actionsheet:function(c){return a.query(document.body).actionsheet(c)},popup:function(c){return a.query(document.body).popup(c)},blockUI:function(c){a.blockUI(c)},unblockUI:function(){a.unblockUI()},autoLaunch:!0,ready:function(c){if(this.launchCompleted)c();else a(document).one("afui:ready",function(){c()})},goBack:function(c){var d= +a(this.activeDiv).closest(".view");c&&c.target&&(d=a(c.target).closest(".view"));if(0!==d.length&&this.views[d.prop("id")]){var b=this.views[d.prop("id")];if(0!==b.length&&(c=b.pop(),0!==c.length))if(0h1").html(c);a.query("#afui_mask").show()},hideMask:function(){a.query("#afui_mask").hide()},dismissView:function(c,d){d=d.replace(":dismiss","");var b=a(c).closest(".view");this.runTransition(d,b,null,!0,a(c.hash).addClass("active").closest(".view"));this.activeDiv=a(".view").not(b).find(".panel.active").get(0);this.updateHash(this.activeDiv.id)},loadContent:function(a,d,b,e,g){this.doingTransition||0!==a.length&&(-1!==a.indexOf("#")?this.loadDiv(a,d,b,e,g):this.loadAjax(a, +d,b,e,g))},loadDiv:function(c,d,b,e,g){var k=c.replace("#",""),f=k.indexOf("/");-1!==f&&(k.substr(f),k=k.substr(0,f));if(k=a.query("#"+k).get(0))if(k===this.activeDiv&&!b)this.doingTransition=!1;else{this.transitionType=e;var f=this.findViewTarget(k),h=this.findPreviousPanel(k,f),n=(g=g?this.findViewTarget(g):this.findViewTarget(this.activeDiv))&&g.get(0)!==f.get(0)&&g.closest(".splitview").get(0)===f.closest(".splitview").get(0)&&0!==g.closest(".splitview").length;n&&(d=!1);a(k).trigger("panelbeforeload"); +a(h).trigger("panelbeforeunload");var s=!1;n||(n=1===g.parent().closest(".view").length);n&&(g&&g.get(0)!==f.get(0))&&a(g).trigger("nestedviewunload");!n&&(d||g&&g.get(0)!==f.get(0))?(this.runViewTransition(e,f,g||d,k,b),this.updateViewHistory(f,k,e,c),s=!0):(this.runTransition(e,h,k,b),this.updateViewHistory(f,k,e,c));this.loadContentData(k,f,!1,s)}else a(document).trigger("missingpanel",null,{missingTarget:c}),this.doingTransition=!1},findViewTarget:function(c){c=a(c).closest(".view");if(!c)return!1; +this.views[c.prop("id")]||(this.views[c.prop("id")]=[]);return c},findPreviousPanel:function(c,d){var b=a(d).find(">.pages .panel.active").not(c);0===b.length&&(b=a(d).find(">.pages .panel:first-of-type"));return b.get(0)},loadContentData:function(a,d,b,e){this.activeDiv=a;this.setTitle(a,d,b,e);this.showBackButton(d,e);this.setActiveTab(a,d)},setActiveTab:function(c,d){var b;"string"!==typeof c&&(b=a(c).prop("id"));b="#"+b;d.find("footer").find("a").removeClass("pressed").attr("data-ignore-pressed", +"true").filter("[href='"+b+"']").addClass("pressed")},showBackButton:function(a,d){var b=this.views[a.prop("id")].length,e=a.children("header");0!==e.length&&(2<=b&&!0!==d?1!==e.find(".backButton").length&&e.prepend("Back"):e.find(".backButton").remove())},loadAjax:function(c,d,b,g,f){var k=this,h=e(c),q=a(".panel[data-crc='"+h+"']"),n=f.getAttribute("data-refresh");if(0

    Loading Content

    "}).css({"z-index":2E4,display:"none"});document.body.appendChild(d.get(0));d=a(".view[data-default='true']");if(0===d.length)d=a(".view").eq(0);else throw"You need to create a view";d.addClass("active");this.views[d.prop("id")]=[];var e=window.location.hash,f=0===d.find(".panel[data-selected='true']").length?d.find(".panel").eq(0): +d.find(".panel[data-selected='true']");f.addClass("active");this.activeDiv=f.get(0);this.views[d.prop("id")].push({target:f.get(0),transition:this.transitionType});this.defaultPanel=f.get(0);this.loadContentData(f.get(0),d,!1,!0);this.updateHash(f.get(0).id);this.loadDefaultHash&&setTimeout(function(){this.loadContent(e,!1,0,"none")}.bind(this));this.enableTabBar();a(document).on("click","a",function(a){c.useInternalRouting&&g(a,a.currentTarget)});a(document).on("click",function(d){for(var e=b.length, +g=a(d.target),f=0;f>>8^e;return(b^-1)>>>0};a.afui=new h;a.afui.init=!0;a(window).trigger("afui:preinit");a(window).trigger("afui:init")})(jQuery); +(function(a){a.fn.actionsheet=function(a){for(var b,g=0;g
    "+b+"Cancel
    ");else if("object"=== +typeof b){e=a("
    ");var c=a(e.children().get(0));b.push({text:"Cancel",cssClasses:"cancel"});for(var d=0;d"+(b[d].text||"TEXT NOT ENTERED")+"");m[0].onclick=b[d].handler||g;b[d].cssClasses&&0");setTimeout(function(){e.vendorCss("Transition","all 300ms");e.cssTranslate("0,0")},10);a("#af_action_mask").bind("touchstart touchmove touchend click",function(a){a.preventDefault();a.stopPropagation()})}else window.alert("Could not find element for actionsheet "+ +h)};f.prototype={activeSheet:null,sheetClickHandler:function(){this.hideSheet();return!1},hideSheet:function(){this.activeSheet.off("click","a",this.sheetClickHandler);a(this.el).find("#af_action_mask").unbind("click").remove();this.activeSheet.vendorCss("Transition","all 0ms");var f=this.activeSheet,b=this.el;setTimeout(function(){f.vendorCss("Transition","all 300ms");f.cssTranslate("0,"+(f.height()+60)+"px");setTimeout(function(){f.remove();f=null;b.style.overflow="none"},350)},10)}};a.afui.actionsheet= +function(f){return a(document.body).actionsheet(f)}})(jQuery); +(function(a){a.afui.registerDataDirective("[data-grower]",function(f,h){var b=a(f).closest("[data-grower]"),g=b.offset(),e=b.closest(".view"),c=h.target.hash||b.attr("data-grower");e.css("zIndex","1");var d=a(c).closest(".view"),m=b.width()/window.innerWidth,l=b.height()/window.innerHeight,p={left:g.left,top:g.top,x:m,y:l};a(c).trigger("panelgrowstart",[b.get(0)]);d.addClass("active").css("zIndex","10");d.vendorCss("TransformOrigin","0 0");d.data("growTransProps",p);d.vendorCss("TransitionDuration", +"0");d.vendorCss("Transform","translate3d("+g.left+"px,"+g.top+"px,0) scale("+m+","+l+")");d.data("growTarget",b.closest(".panel"));d.data("growFrom",a(c).attr("id"));a.afui.loadContent(c,e,!1,"stretch");a(c).one("panelload",function(){d.vendorCss("Transform","");a(c).trigger("panelgrowcomplete",[b.get(0)])})});a.afui.registerDataDirective("[data-grower-back]",function(f){var h=a(f).closest(".view"),b=a("#"+h.data("growFrom"));b.trigger("panelgrowendstart");f=h.data("growTransProps");var g="#"+h.data("growTarget").prop("id"); +a(g).closest(".view").addClass("active");h.addClass("animation-active");h.transition().end(function(){h.removeClass("active");b.trigger("panelgrowendstart");a.afui.loadContent(g,!1,!1,"none")}).run("translate3d("+f.left+"px,"+f.top+"px,0) scale("+f.x+","+f.y+")","300ms")})})(jQuery); +(function(a){function f(a,c,b,d){var e=Math.abs(a-c),g=Math.abs(b-d);return e>=g?0=e&&(b.el.trigger("longTap"),b={})}var b={},g,e=750,c,d=!1,m=!1;a(document).ready(function(){var l;a(document.body).bind("touchstart",function(f){f.originalEvent&&(f=f.originalEvent);if(f.touches&&0!==f.touches.length){var k=Date.now(),r=k-(b.last||k);f.touches&&0!==f.touches.length&&(b.el=a("tagName"in f.touches[0].target?f.touches[0].target: +f.touches[0].target.parentNode),g&&clearTimeout(g),b.x1=f.touches[0].pageX,b.y1=f.touches[0].pageY,b.x2=b.y2=0,0=r&&(b.isDoubleTap=!0),b.last=k,c=setTimeout(h,e),a.afui.useAutoPressed&&!b.el.attr("data-ignore-pressed")&&b.el.addClass("pressed"),l&&(a.afui.useAutoPressed&&!l.attr("data-ignore-pressed")&&l[0]!==b.el[0])&&l.removeClass("pressed"),l=b.el,m=d=!1)}}).bind("touchmove",function(e){e.originalEvent&&(e=e.originalEvent);b.x2=e.touches[0].pageX;b.y2=e.touches[0].pageY;if(!m&&(5"+g+""), +b.append(c),c.animation().end(function(){a(this).remove()}).run(e)))}:f}})(jQuery); +(function(a){a.fn.popup=function(a){return new h(this[0],a)};var f=[],h=function(b,e){if(this.container="string"===typeof b||b instanceof String?document.getElementById(b):b)try{if("string"===typeof e||"number"===typeof e)e={message:e,cancelOnly:"true",cancelText:"OK"};this.id=e.id=e.id||a.uuid();this.addCssClass=e.addCssClass?e.addCssClass:"";this.suppressTitle=e.suppressTitle||this.suppressTitle;this.title=e.suppressTitle?"":e.title||"Alert";this.message=e.message||"";this.cancelText=e.cancelText|| +"Cancel";this.cancelCallback=e.cancelCallback||function(){};this.cancelClass=e.cancelClass||"button";this.doneText=e.doneText||"Done";this.doneCallback=e.doneCallback||function(){};this.doneClass=e.doneClass||"button";this.cancelOnly=e.cancelOnly||!1;this.onShow=e.onShow||function(){};this.autoCloseDone=void 0!==e.autoCloseDone?e.autoCloseDone:!0;f.push(this);1===f.length&&this.show()}catch(c){console.log("error adding popup "+c)}else window.alert("Error finding container for popup "+b)};h.prototype= +{id:null,addCssClass:null,title:null,message:null,cancelText:null,cancelCallback:null,cancelClass:null,doneText:null,doneCallback:null,doneClass:null,cancelOnly:!1,onShow:null,autoCloseDone:!0,suppressTitle:!1,show:function(){var b=this,e=a("");a(this.container).append(e);e.bind("close",function(){b.hide()});this.cancelOnly&&(e.find("A#action").hide(),e.find("A#cancel").addClass("center"));e.find("A").each(function(){var c=a(this);c.bind("click",function(a){"cancel"===c.attr("id")?(b.cancelCallback.call(b.cancelCallback,b),b.hide()):(b.doneCallback.call(b.doneCallback,b),b.autoCloseDone&&b.hide());a.preventDefault()})});b.positionPopup();a.blockUI(0.5);e.bind("orientationchange", +function(){b.positionPopup()});e.find("header").show();e.find("footer").show();setTimeout(function(){e.removeClass("hidden").addClass("show");b.onShow(b)},50)},hide:function(){var b=this;a.query("#"+b.id).addClass("hidden");a.unblockUI();!a.os.ie&&!a.os.android?setTimeout(function(){b.remove()},250):b.remove()},remove:function(){var b=a.query("#"+this.id);b.unbind("close");b.find("BUTTON#action").unbind("click");b.find("BUTTON#cancel").unbind("click");b.unbind("orientationchange").remove();f.splice(0, +1);0")),a.query("BODY DIV#mask").bind("touchstart",function(a){a.preventDefault()}),a.query("BODY DIV#mask").bind("touchmove",function(a){a.preventDefault()}),b=!0)}; +a.unblockUI=function(){b=!1;a.query("BODY DIV#mask").unbind("touchstart");a.query("BODY DIV#mask").unbind("touchmove");a("BODY DIV#mask").remove()};a.afui.registerDataDirective("[data-alert]",function(b){b=a(b).attr("data-message");0!==b.length&&a(document.body).popup(b)});a.afui.popup=function(b){return a(document.body).popup(b)}})(jQuery); +(function(a){function f(a){this.element=a;this.element.classList.remove("animation-reverse");this.keepClass=!1}function h(a){this.element=a;this.element}a.fn.animation=function(){var a=this;this.each(function(){a=new f(this)});return a};var b=function(a){this.element.removeEventListener("webkitAnimationEnd",this.endCBCache,!1);this.element.removeEventListener("animationend",this.endCBCache,!1);this.element.removeEventListener("MSAnimationEnd",this.endCBCache,!1);this.endcb&&this.endcb.call(this.element, +a);this.element.classList.remove("animation-reverse");this.element.classList.remove("animation-active");this.keepClass||this.element.classList.remove(this.animClass)};f.prototype={element:null,animClass:null,runEnd:!1,keepClass:!1,keep:function(){this.keepClass=!0;return this},remove:function(a){this.element.classList.remove(a);this.element.offsetWidth=this.element.offsetWidth;return this},endCBCache:null,run:function(a,c){this.runEnd=!1;this.element.classList.add("animation-active");this.element.offsetWidth= +this.element.offsetWidth;this.element.classList.add(a);this.animClass=a;var d=window.getComputedStyle(this.element,null),g=d.animation-c;g||(g=d.animationDuration);g||(g=d.MozAnimationDuration);g||(g=d.webkitAnimationDuration);g=parseFloat(g);if(0.01>=g||isNaN(g))this.runEnd=!0;this.endCBCache=b.bind(this);if(this.runEnd)return this.endCBCache(),this;this.element.addEventListener("webkitAnimationEnd",this.endCBCache,!1);this.element.addEventListener("animationend",this.endCBCache,!1);this.element.addEventListener("MSAnimationEnd", +this.endCBCache,!1);return this},reverse:function(){this.element.classList.add("animation-reverse");return this},reRun:function(a){this.remove(a);return this.run(a)},endcb:function(){},end:function(a){this.endcb=a;return this}};a.fn.transition=function(){var a=this;this.each(function(){a=new h(this)});return a};var g=function(b){clearTimeout(this.timer);this.element.removeEventListener("webkitTransitionEnd",this.endCBCache,!1);this.element.removeEventListener("transitionend",this.endCBCache,!1);this.element.removeEventListener("MSTransitionEnd", +this.endCBCache,!1);this.endcb&&this.endcb.call(this.element,b);this.keepEnd||(a(this.element).vendorCss("TransitionDuration",""),a(this.element).vendorCss("Transform",""))};h.prototype={element:null,runEnd:!1,keepEnd:!1,keep:function(){this.keepEnd=!0;return this},endCBCache:null,timer:null,run:function(b,c){this.endCBCache=g.bind(this);this.element.addEventListener("webkitTransitionEnd",this.endCBCache,!1);this.element.addEventListener("transitionend",this.endCBCache,!1);this.element.addEventListener("MSTransitionEnd", +this.endCBCache,!1);a(this.element).vendorCss("TransitionDuration",c);a(this.element).vendorCss("Transform",b);this.timer=setTimeout(function(){this.endCBCache()}.bind(this),parseInt(c,10)+50);return this},endcb:function(){},end:function(a){this.endcb=a;return this}}})(jQuery);(function(a){a.afui.ready(function(){setTimeout(function(){a("#splashscreen").remove()},250)})})(jQuery); +(function(a){function f(){return this}var h=null,b,g={push:function(b,c,d){b=a(b).closest(".view").children().filter(":not(nav):not(aside)");d=d||h;for(var g=0;ga.afui.swipeThreshold&&(g=0);f.transition().keep().end(function(){f=g=null}).run("translate3d("+-g+"px,0px,0)","100ms")}))});var e=function(a){a=-(h-a.touches[0].pageX);a<-g?a="-"+g:0");this.container=this.container.find(".afToastContainer");this.container.removeClass("tr br tl bl tc bc").addClass(this.addCssClass);!1===g.autoClose&&(this.autoClose=!1);this.show()}else window.alert("Error finding container for toast "+b)};f.prototype={addCssClass:null,message:null,delay:5E3,el:null,container:null,timer:null,autoClose:!0,show:function(){var b=this;this.el=a("
    "+this.message+"
    ").get(0); +this.container.append(this.el);var g=a(this.el),e=this.el.clientHeight;g.addClass("hidden");setTimeout(function(){g.css("height",e);g.removeClass("hidden")},20);this.autoClose&&(this.timer=setTimeout(function(){b.hide()},this.delay));g.bind("click",function(){b.hide()})},hide:function(){var b=this;clearTimeout(this.timer);a(this.el).unbind("click").addClass("hidden");a(this.el).css("height","0px");!a.os.ie&&!a.os.android?setTimeout(function(){b.remove()},300):b.remove()},remove:function(){a(this.el).remove()}}; +return f}();a.afui.toast=function(f){a(document.body).toast(f)};a.afui.registerDataDirective("[data-toast]",function(f){var b=a(f);f=b.attr("data-message")||"";if(0!==f.length){var g=b.attr("data-position")||"tr",e=b.attr("data-type"),c="false"===b.attr("data-auto-close")?!1:!0,b=b.attr("data-delay")||0;f={message:f,position:g,delay:b,autoClose:c,type:e};a(document.body).toast(f)}})})(jQuery); diff --git a/js/libs/fastclick.js b/js/libs/fastclick.js new file mode 100644 index 0000000..3af4f9d --- /dev/null +++ b/js/libs/fastclick.js @@ -0,0 +1,841 @@ +;(function () { + 'use strict'; + + /** + * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs. + * + * @codingstandard ftlabs-jsv2 + * @copyright The Financial Times Limited [All Rights Reserved] + * @license MIT License (see LICENSE.txt) + */ + + /*jslint browser:true, node:true*/ + /*global define, Event, Node*/ + + + /** + * Instantiate fast-clicking listeners on the specified layer. + * + * @constructor + * @param {Element} layer The layer to listen on + * @param {Object} [options={}] The options to override the defaults + */ + function FastClick(layer, options) { + var oldOnClick; + + options = options || {}; + + /** + * Whether a click is currently being tracked. + * + * @type boolean + */ + this.trackingClick = false; + + + /** + * Timestamp for when click tracking started. + * + * @type number + */ + this.trackingClickStart = 0; + + + /** + * The element being tracked for a click. + * + * @type EventTarget + */ + this.targetElement = null; + + + /** + * X-coordinate of touch start event. + * + * @type number + */ + this.touchStartX = 0; + + + /** + * Y-coordinate of touch start event. + * + * @type number + */ + this.touchStartY = 0; + + + /** + * ID of the last touch, retrieved from Touch.identifier. + * + * @type number + */ + this.lastTouchIdentifier = 0; + + + /** + * Touchmove boundary, beyond which a click will be cancelled. + * + * @type number + */ + this.touchBoundary = options.touchBoundary || 10; + + + /** + * The FastClick layer. + * + * @type Element + */ + this.layer = layer; + + /** + * The minimum time between tap(touchstart and touchend) events + * + * @type number + */ + this.tapDelay = options.tapDelay || 200; + + /** + * The maximum time for a tap + * + * @type number + */ + this.tapTimeout = options.tapTimeout || 700; + + if (FastClick.notNeeded(layer)) { + return; + } + + // Some old versions of Android don't have Function.prototype.bind + function bind(method, context) { + return function() { return method.apply(context, arguments); }; + } + + + var methods = ['onMouse', 'onClick', 'onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel']; + var context = this; + for (var i = 0, l = methods.length; i < l; i++) { + context[methods[i]] = bind(context[methods[i]], context); + } + + // Set up event handlers as required + if (deviceIsAndroid) { + layer.addEventListener('mouseover', this.onMouse, true); + layer.addEventListener('mousedown', this.onMouse, true); + layer.addEventListener('mouseup', this.onMouse, true); + } + + layer.addEventListener('click', this.onClick, true); + layer.addEventListener('touchstart', this.onTouchStart, false); + layer.addEventListener('touchmove', this.onTouchMove, false); + layer.addEventListener('touchend', this.onTouchEnd, false); + layer.addEventListener('touchcancel', this.onTouchCancel, false); + + // Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) + // which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick + // layer when they are cancelled. + if (!Event.prototype.stopImmediatePropagation) { + layer.removeEventListener = function(type, callback, capture) { + var rmv = Node.prototype.removeEventListener; + if (type === 'click') { + rmv.call(layer, type, callback.hijacked || callback, capture); + } else { + rmv.call(layer, type, callback, capture); + } + }; + + layer.addEventListener = function(type, callback, capture) { + var adv = Node.prototype.addEventListener; + if (type === 'click') { + adv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) { + if (!event.propagationStopped) { + callback(event); + } + }), capture); + } else { + adv.call(layer, type, callback, capture); + } + }; + } + + // If a handler is already declared in the element's onclick attribute, it will be fired before + // FastClick's onClick handler. Fix this by pulling out the user-defined handler function and + // adding it as listener. + if (typeof layer.onclick === 'function') { + + // Android browser on at least 3.2 requires a new reference to the function in layer.onclick + // - the old one won't work if passed to addEventListener directly. + oldOnClick = layer.onclick; + layer.addEventListener('click', function(event) { + oldOnClick(event); + }, false); + layer.onclick = null; + } + } + + /** + * Windows Phone 8.1 fakes user agent string to look like Android and iPhone. + * + * @type boolean + */ + var deviceIsWindowsPhone = navigator.userAgent.indexOf("Windows Phone") >= 0; + + /** + * Android requires exceptions. + * + * @type boolean + */ + var deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0 && !deviceIsWindowsPhone; + + + /** + * iOS requires exceptions. + * + * @type boolean + */ + var deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !deviceIsWindowsPhone; + + + /** + * iOS 4 requires an exception for select elements. + * + * @type boolean + */ + var deviceIsIOS4 = deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent); + + + /** + * iOS 6.0-7.* requires the target element to be manually derived + * + * @type boolean + */ + var deviceIsIOSWithBadTarget = deviceIsIOS && (/OS [6-7]_\d/).test(navigator.userAgent); + + /** + * BlackBerry requires exceptions. + * + * @type boolean + */ + var deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0; + + /** + * Determine whether a given element requires a native click. + * + * @param {EventTarget|Element} target Target DOM element + * @returns {boolean} Returns true if the element needs a native click + */ + FastClick.prototype.needsClick = function(target) { + switch (target.nodeName.toLowerCase()) { + + // Don't send a synthetic click to disabled inputs (issue #62) + case 'button': + case 'select': + case 'textarea': + if (target.disabled) { + return true; + } + + break; + case 'input': + + // File inputs need real clicks on iOS 6 due to a browser bug (issue #68) + if ((deviceIsIOS && target.type === 'file') || target.disabled) { + return true; + } + + break; + case 'label': + case 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames + case 'video': + return true; + } + + return (/\bneedsclick\b/).test(target.className); + }; + + + /** + * Determine whether a given element requires a call to focus to simulate click into element. + * + * @param {EventTarget|Element} target Target DOM element + * @returns {boolean} Returns true if the element requires a call to focus to simulate native click. + */ + FastClick.prototype.needsFocus = function(target) { + switch (target.nodeName.toLowerCase()) { + case 'textarea': + return true; + case 'select': + return !deviceIsAndroid; + case 'input': + switch (target.type) { + case 'button': + case 'checkbox': + case 'file': + case 'image': + case 'radio': + case 'submit': + return false; + } + + // No point in attempting to focus disabled inputs + return !target.disabled && !target.readOnly; + default: + return (/\bneedsfocus\b/).test(target.className); + } + }; + + + /** + * Send a click event to the specified element. + * + * @param {EventTarget|Element} targetElement + * @param {Event} event + */ + FastClick.prototype.sendClick = function(targetElement, event) { + var clickEvent, touch; + + // On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24) + if (document.activeElement && document.activeElement !== targetElement) { + document.activeElement.blur(); + } + + touch = event.changedTouches[0]; + + // Synthesise a click event, with an extra attribute so it can be tracked + clickEvent = document.createEvent('MouseEvents'); + clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null); + clickEvent.forwardedTouchEvent = true; + targetElement.dispatchEvent(clickEvent); + }; + + FastClick.prototype.determineEventType = function(targetElement) { + + //Issue #159: Android Chrome Select Box does not open with a synthetic click event + if (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') { + return 'mousedown'; + } + + return 'click'; + }; + + + /** + * @param {EventTarget|Element} targetElement + */ + FastClick.prototype.focus = function(targetElement) { + var length; + + // Issue #160: on iOS 7, some input elements (e.g. date datetime month) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724. + if (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') { + length = targetElement.value.length; + targetElement.setSelectionRange(length, length); + } else { + targetElement.focus(); + } + }; + + + /** + * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it. + * + * @param {EventTarget|Element} targetElement + */ + FastClick.prototype.updateScrollParent = function(targetElement) { + var scrollParent, parentElement; + + scrollParent = targetElement.fastClickScrollParent; + + // Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the + // target element was moved to another parent. + if (!scrollParent || !scrollParent.contains(targetElement)) { + parentElement = targetElement; + do { + if (parentElement.scrollHeight > parentElement.offsetHeight) { + scrollParent = parentElement; + targetElement.fastClickScrollParent = parentElement; + break; + } + + parentElement = parentElement.parentElement; + } while (parentElement); + } + + // Always update the scroll top tracker if possible. + if (scrollParent) { + scrollParent.fastClickLastScrollTop = scrollParent.scrollTop; + } + }; + + + /** + * @param {EventTarget} targetElement + * @returns {Element|EventTarget} + */ + FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) { + + // On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node. + if (eventTarget.nodeType === Node.TEXT_NODE) { + return eventTarget.parentNode; + } + + return eventTarget; + }; + + + /** + * On touch start, record the position and scroll offset. + * + * @param {Event} event + * @returns {boolean} + */ + FastClick.prototype.onTouchStart = function(event) { + var targetElement, touch, selection; + + // Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111). + if (event.targetTouches.length > 1) { + return true; + } + + targetElement = this.getTargetElementFromEventTarget(event.target); + touch = event.targetTouches[0]; + + if (deviceIsIOS) { + + // Only trusted events will deselect text on iOS (issue #49) + selection = window.getSelection(); + if (selection.rangeCount && !selection.isCollapsed) { + return true; + } + + if (!deviceIsIOS4) { + + // Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23): + // when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched + // with the same identifier as the touch event that previously triggered the click that triggered the alert. + // Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an + // immediately preceeding touch event (issue #52), so this fix is unavailable on that platform. + // Issue 120: touch.identifier is 0 when Chrome dev tools 'Emulate touch events' is set with an iOS device UA string, + // which causes all touch events to be ignored. As this block only applies to iOS, and iOS identifiers are always long, + // random integers, it's safe to to continue if the identifier is 0 here. + if (touch.identifier && touch.identifier === this.lastTouchIdentifier) { + event.preventDefault(); + return false; + } + + this.lastTouchIdentifier = touch.identifier; + + // If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and: + // 1) the user does a fling scroll on the scrollable layer + // 2) the user stops the fling scroll with another tap + // then the event.target of the last 'touchend' event will be the element that was under the user's finger + // when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check + // is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42). + this.updateScrollParent(targetElement); + } + } + + this.trackingClick = true; + this.trackingClickStart = event.timeStamp; + this.targetElement = targetElement; + + this.touchStartX = touch.pageX; + this.touchStartY = touch.pageY; + + // Prevent phantom clicks on fast double-tap (issue #36) + if ((event.timeStamp - this.lastClickTime) < this.tapDelay) { + event.preventDefault(); + } + + return true; + }; + + + /** + * Based on a touchmove event object, check whether the touch has moved past a boundary since it started. + * + * @param {Event} event + * @returns {boolean} + */ + FastClick.prototype.touchHasMoved = function(event) { + var touch = event.changedTouches[0], boundary = this.touchBoundary; + + if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) { + return true; + } + + return false; + }; + + + /** + * Update the last position. + * + * @param {Event} event + * @returns {boolean} + */ + FastClick.prototype.onTouchMove = function(event) { + if (!this.trackingClick) { + return true; + } + + // If the touch has moved, cancel the click tracking + if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) { + this.trackingClick = false; + this.targetElement = null; + } + + return true; + }; + + + /** + * Attempt to find the labelled control for the given label element. + * + * @param {EventTarget|HTMLLabelElement} labelElement + * @returns {Element|null} + */ + FastClick.prototype.findControl = function(labelElement) { + + // Fast path for newer browsers supporting the HTML5 control attribute + if (labelElement.control !== undefined) { + return labelElement.control; + } + + // All browsers under test that support touch events also support the HTML5 htmlFor attribute + if (labelElement.htmlFor) { + return document.getElementById(labelElement.htmlFor); + } + + // If no for attribute exists, attempt to retrieve the first labellable descendant element + // the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label + return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea'); + }; + + + /** + * On touch end, determine whether to send a click event at once. + * + * @param {Event} event + * @returns {boolean} + */ + FastClick.prototype.onTouchEnd = function(event) { + var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement; + + if (!this.trackingClick) { + return true; + } + + // Prevent phantom clicks on fast double-tap (issue #36) + if ((event.timeStamp - this.lastClickTime) < this.tapDelay) { + this.cancelNextClick = true; + return true; + } + + if ((event.timeStamp - this.trackingClickStart) > this.tapTimeout) { + return true; + } + + // Reset to prevent wrong click cancel on input (issue #156). + this.cancelNextClick = false; + + this.lastClickTime = event.timeStamp; + + trackingClickStart = this.trackingClickStart; + this.trackingClick = false; + this.trackingClickStart = 0; + + // On some iOS devices, the targetElement supplied with the event is invalid if the layer + // is performing a transition or scroll, and has to be re-detected manually. Note that + // for this to function correctly, it must be called *after* the event target is checked! + // See issue #57; also filed as rdar://13048589 . + if (deviceIsIOSWithBadTarget) { + touch = event.changedTouches[0]; + + // In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null + targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement; + targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent; + } + + targetTagName = targetElement.tagName.toLowerCase(); + if (targetTagName === 'label') { + forElement = this.findControl(targetElement); + if (forElement) { + this.focus(targetElement); + if (deviceIsAndroid) { + return false; + } + + targetElement = forElement; + } + } else if (this.needsFocus(targetElement)) { + + // Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through. + // Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37). + if ((event.timeStamp - trackingClickStart) > 100 || (deviceIsIOS && window.top !== window && targetTagName === 'input')) { + this.targetElement = null; + return false; + } + + this.focus(targetElement); + this.sendClick(targetElement, event); + + // Select elements need the event to go through on iOS 4, otherwise the selector menu won't open. + // Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others) + if (!deviceIsIOS || targetTagName !== 'select') { + this.targetElement = null; + event.preventDefault(); + } + + return false; + } + + if (deviceIsIOS && !deviceIsIOS4) { + + // Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled + // and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42). + scrollParent = targetElement.fastClickScrollParent; + if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) { + return true; + } + } + + // Prevent the actual click from going though - unless the target node is marked as requiring + // real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted. + if (!this.needsClick(targetElement)) { + event.preventDefault(); + this.sendClick(targetElement, event); + } + + return false; + }; + + + /** + * On touch cancel, stop tracking the click. + * + * @returns {void} + */ + FastClick.prototype.onTouchCancel = function() { + this.trackingClick = false; + this.targetElement = null; + }; + + + /** + * Determine mouse events which should be permitted. + * + * @param {Event} event + * @returns {boolean} + */ + FastClick.prototype.onMouse = function(event) { + + // If a target element was never set (because a touch event was never fired) allow the event + if (!this.targetElement) { + return true; + } + + if (event.forwardedTouchEvent) { + return true; + } + + // Programmatically generated events targeting a specific element should be permitted + if (!event.cancelable) { + return true; + } + + // Derive and check the target element to see whether the mouse event needs to be permitted; + // unless explicitly enabled, prevent non-touch click events from triggering actions, + // to prevent ghost/doubleclicks. + if (!this.needsClick(this.targetElement) || this.cancelNextClick) { + + // Prevent any user-added listeners declared on FastClick element from being fired. + if (event.stopImmediatePropagation) { + event.stopImmediatePropagation(); + } else { + + // Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) + event.propagationStopped = true; + } + + // Cancel the event + event.stopPropagation(); + event.preventDefault(); + + return false; + } + + // If the mouse event is permitted, return true for the action to go through. + return true; + }; + + + /** + * On actual clicks, determine whether this is a touch-generated click, a click action occurring + * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or + * an actual click which should be permitted. + * + * @param {Event} event + * @returns {boolean} + */ + FastClick.prototype.onClick = function(event) { + var permitted; + + // It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early. + if (this.trackingClick) { + this.targetElement = null; + this.trackingClick = false; + return true; + } + + // Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target. + if (event.target.type === 'submit' && event.detail === 0) { + return true; + } + + permitted = this.onMouse(event); + + // Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through. + if (!permitted) { + this.targetElement = null; + } + + // If clicks are permitted, return true for the action to go through. + return permitted; + }; + + + /** + * Remove all FastClick's event listeners. + * + * @returns {void} + */ + FastClick.prototype.destroy = function() { + var layer = this.layer; + + if (deviceIsAndroid) { + layer.removeEventListener('mouseover', this.onMouse, true); + layer.removeEventListener('mousedown', this.onMouse, true); + layer.removeEventListener('mouseup', this.onMouse, true); + } + + layer.removeEventListener('click', this.onClick, true); + layer.removeEventListener('touchstart', this.onTouchStart, false); + layer.removeEventListener('touchmove', this.onTouchMove, false); + layer.removeEventListener('touchend', this.onTouchEnd, false); + layer.removeEventListener('touchcancel', this.onTouchCancel, false); + }; + + + /** + * Check whether FastClick is needed. + * + * @param {Element} layer The layer to listen on + */ + FastClick.notNeeded = function(layer) { + var metaViewport; + var chromeVersion; + var blackberryVersion; + var firefoxVersion; + + // Devices that don't support touch don't need FastClick + if (typeof window.ontouchstart === 'undefined') { + return true; + } + + // Chrome version - zero for other browsers + chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1]; + + if (chromeVersion) { + + if (deviceIsAndroid) { + metaViewport = document.querySelector('meta[name=viewport]'); + + if (metaViewport) { + // Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89) + if (metaViewport.content.indexOf('user-scalable=no') !== -1) { + return true; + } + // Chrome 32 and above with width=device-width or less don't need FastClick + if (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) { + return true; + } + } + + // Chrome desktop doesn't need FastClick (issue #15) + } else { + return true; + } + } + + if (deviceIsBlackBerry10) { + blackberryVersion = navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/); + + // BlackBerry 10.3+ does not require Fastclick library. + // https://github.com/ftlabs/fastclick/issues/251 + if (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) { + metaViewport = document.querySelector('meta[name=viewport]'); + + if (metaViewport) { + // user-scalable=no eliminates click delay. + if (metaViewport.content.indexOf('user-scalable=no') !== -1) { + return true; + } + // width=device-width (or less than device-width) eliminates click delay. + if (document.documentElement.scrollWidth <= window.outerWidth) { + return true; + } + } + } + } + + // IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97) + if (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') { + return true; + } + + // Firefox version - zero for other browsers + firefoxVersion = +(/Firefox\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1]; + + if (firefoxVersion >= 27) { + // Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896 + + metaViewport = document.querySelector('meta[name=viewport]'); + if (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) { + return true; + } + } + + // IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version + // http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx + if (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') { + return true; + } + + return false; + }; + + + /** + * Factory method for creating a FastClick object + * + * @param {Element} layer The layer to listen on + * @param {Object} [options={}] The options to override the defaults + */ + FastClick.attach = function(layer, options) { + return new FastClick(layer, options); + }; + + + if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) { + + // AMD. Register as an anonymous module. + define(function() { + return FastClick; + }); + } else if (typeof module !== 'undefined' && module.exports) { + module.exports = FastClick.attach; + module.exports.FastClick = FastClick; + } else { + window.FastClick = FastClick; + } +}()); diff --git a/js/libs/jquery.js b/js/libs/jquery.js new file mode 100644 index 0000000..d4b67f7 --- /dev/null +++ b/js/libs/jquery.js @@ -0,0 +1,10308 @@ +/*! + * jQuery JavaScript Library v1.11.1 + * http://jquery.com/ + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * + * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2014-05-01T17:42Z + */ + +(function( global, factory ) { + + if ( typeof module === "object" && typeof module.exports === "object" ) { + // For CommonJS and CommonJS-like environments where a proper window is present, + // execute the factory and get jQuery + // For environments that do not inherently posses a window with a document + // (such as Node.js), expose a jQuery-making factory as module.exports + // This accentuates the need for the creation of a real window + // e.g. var jQuery = require("jquery")(window); + // See ticket #14549 for more info + module.exports = global.document ? + factory( global, true ) : + function( w ) { + if ( !w.document ) { + throw new Error( "jQuery requires a window with a document" ); + } + return factory( w ); + }; + } else { + factory( global ); + } + +// Pass this if window is not defined yet +}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) { + +// Can't do this because several apps including ASP.NET trace +// the stack via arguments.caller.callee and Firefox dies if +// you try to trace through "use strict" call chains. (#13335) +// Support: Firefox 18+ +// + +var deletedIds = []; + +var slice = deletedIds.slice; + +var concat = deletedIds.concat; + +var push = deletedIds.push; + +var indexOf = deletedIds.indexOf; + +var class2type = {}; + +var toString = class2type.toString; + +var hasOwn = class2type.hasOwnProperty; + +var support = {}; + + + +var + version = "1.11.1", + + // Define a local copy of jQuery + jQuery = function( selector, context ) { + // The jQuery object is actually just the init constructor 'enhanced' + // Need init if jQuery is called (just allow error to be thrown if not included) + return new jQuery.fn.init( selector, context ); + }, + + // Support: Android<4.1, IE<9 + // Make sure we trim BOM and NBSP + rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, + + // Matches dashed string for camelizing + rmsPrefix = /^-ms-/, + rdashAlpha = /-([\da-z])/gi, + + // Used by jQuery.camelCase as callback to replace() + fcamelCase = function( all, letter ) { + return letter.toUpperCase(); + }; + +jQuery.fn = jQuery.prototype = { + // The current version of jQuery being used + jquery: version, + + constructor: jQuery, + + // Start with an empty selector + selector: "", + + // The default length of a jQuery object is 0 + length: 0, + + toArray: function() { + return slice.call( this ); + }, + + // Get the Nth element in the matched element set OR + // Get the whole matched element set as a clean array + get: function( num ) { + return num != null ? + + // Return just the one element from the set + ( num < 0 ? this[ num + this.length ] : this[ num ] ) : + + // Return all the elements in a clean array + slice.call( this ); + }, + + // Take an array of elements and push it onto the stack + // (returning the new matched element set) + pushStack: function( elems ) { + + // Build a new jQuery matched element set + var ret = jQuery.merge( this.constructor(), elems ); + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + ret.context = this.context; + + // Return the newly-formed element set + return ret; + }, + + // Execute a callback for every element in the matched set. + // (You can seed the arguments with an array of args, but this is + // only used internally.) + each: function( callback, args ) { + return jQuery.each( this, callback, args ); + }, + + map: function( callback ) { + return this.pushStack( jQuery.map(this, function( elem, i ) { + return callback.call( elem, i, elem ); + })); + }, + + slice: function() { + return this.pushStack( slice.apply( this, arguments ) ); + }, + + first: function() { + return this.eq( 0 ); + }, + + last: function() { + return this.eq( -1 ); + }, + + eq: function( i ) { + var len = this.length, + j = +i + ( i < 0 ? len : 0 ); + return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] ); + }, + + end: function() { + return this.prevObject || this.constructor(null); + }, + + // For internal use only. + // Behaves like an Array's method, not like a jQuery method. + push: push, + sort: deletedIds.sort, + splice: deletedIds.splice +}; + +jQuery.extend = jQuery.fn.extend = function() { + var src, copyIsArray, copy, name, options, clone, + target = arguments[0] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + + // skip the boolean and the target + target = arguments[ i ] || {}; + i++; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target !== "object" && !jQuery.isFunction(target) ) { + target = {}; + } + + // extend jQuery itself if only one argument is passed + if ( i === length ) { + target = this; + i--; + } + + for ( ; i < length; i++ ) { + // Only deal with non-null/undefined values + if ( (options = arguments[ i ]) != null ) { + // Extend the base object + for ( name in options ) { + src = target[ name ]; + copy = options[ name ]; + + // Prevent never-ending loop + if ( target === copy ) { + continue; + } + + // Recurse if we're merging plain objects or arrays + if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { + if ( copyIsArray ) { + copyIsArray = false; + clone = src && jQuery.isArray(src) ? src : []; + + } else { + clone = src && jQuery.isPlainObject(src) ? src : {}; + } + + // Never move original objects, clone them + target[ name ] = jQuery.extend( deep, clone, copy ); + + // Don't bring in undefined values + } else if ( copy !== undefined ) { + target[ name ] = copy; + } + } + } + } + + // Return the modified object + return target; +}; + +jQuery.extend({ + // Unique for each copy of jQuery on the page + expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), + + // Assume jQuery is ready without the ready module + isReady: true, + + error: function( msg ) { + throw new Error( msg ); + }, + + noop: function() {}, + + // See test/unit/core.js for details concerning isFunction. + // Since version 1.3, DOM methods and functions like alert + // aren't supported. They return false on IE (#2968). + isFunction: function( obj ) { + return jQuery.type(obj) === "function"; + }, + + isArray: Array.isArray || function( obj ) { + return jQuery.type(obj) === "array"; + }, + + isWindow: function( obj ) { + /* jshint eqeqeq: false */ + return obj != null && obj == obj.window; + }, + + isNumeric: function( obj ) { + // parseFloat NaNs numeric-cast false positives (null|true|false|"") + // ...but misinterprets leading-number strings, particularly hex literals ("0x...") + // subtraction forces infinities to NaN + return !jQuery.isArray( obj ) && obj - parseFloat( obj ) >= 0; + }, + + isEmptyObject: function( obj ) { + var name; + for ( name in obj ) { + return false; + } + return true; + }, + + isPlainObject: function( obj ) { + var key; + + // Must be an Object. + // Because of IE, we also have to check the presence of the constructor property. + // Make sure that DOM nodes and window objects don't pass through, as well + if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { + return false; + } + + try { + // Not own constructor property must be Object + if ( obj.constructor && + !hasOwn.call(obj, "constructor") && + !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) { + return false; + } + } catch ( e ) { + // IE8,9 Will throw exceptions on certain host objects #9897 + return false; + } + + // Support: IE<9 + // Handle iteration over inherited properties before own properties. + if ( support.ownLast ) { + for ( key in obj ) { + return hasOwn.call( obj, key ); + } + } + + // Own properties are enumerated firstly, so to speed up, + // if last one is own, then all properties are own. + for ( key in obj ) {} + + return key === undefined || hasOwn.call( obj, key ); + }, + + type: function( obj ) { + if ( obj == null ) { + return obj + ""; + } + return typeof obj === "object" || typeof obj === "function" ? + class2type[ toString.call(obj) ] || "object" : + typeof obj; + }, + + // Evaluates a script in a global context + // Workarounds based on findings by Jim Driscoll + // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context + globalEval: function( data ) { + if ( data && jQuery.trim( data ) ) { + // We use execScript on Internet Explorer + // We use an anonymous function so that context is window + // rather than jQuery in Firefox + ( window.execScript || function( data ) { + window[ "eval" ].call( window, data ); + } )( data ); + } + }, + + // Convert dashed to camelCase; used by the css and data modules + // Microsoft forgot to hump their vendor prefix (#9572) + camelCase: function( string ) { + return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); + }, + + nodeName: function( elem, name ) { + return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); + }, + + // args is for internal usage only + each: function( obj, callback, args ) { + var value, + i = 0, + length = obj.length, + isArray = isArraylike( obj ); + + if ( args ) { + if ( isArray ) { + for ( ; i < length; i++ ) { + value = callback.apply( obj[ i ], args ); + + if ( value === false ) { + break; + } + } + } else { + for ( i in obj ) { + value = callback.apply( obj[ i ], args ); + + if ( value === false ) { + break; + } + } + } + + // A special, fast, case for the most common use of each + } else { + if ( isArray ) { + for ( ; i < length; i++ ) { + value = callback.call( obj[ i ], i, obj[ i ] ); + + if ( value === false ) { + break; + } + } + } else { + for ( i in obj ) { + value = callback.call( obj[ i ], i, obj[ i ] ); + + if ( value === false ) { + break; + } + } + } + } + + return obj; + }, + + // Support: Android<4.1, IE<9 + trim: function( text ) { + return text == null ? + "" : + ( text + "" ).replace( rtrim, "" ); + }, + + // results is for internal usage only + makeArray: function( arr, results ) { + var ret = results || []; + + if ( arr != null ) { + if ( isArraylike( Object(arr) ) ) { + jQuery.merge( ret, + typeof arr === "string" ? + [ arr ] : arr + ); + } else { + push.call( ret, arr ); + } + } + + return ret; + }, + + inArray: function( elem, arr, i ) { + var len; + + if ( arr ) { + if ( indexOf ) { + return indexOf.call( arr, elem, i ); + } + + len = arr.length; + i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0; + + for ( ; i < len; i++ ) { + // Skip accessing in sparse arrays + if ( i in arr && arr[ i ] === elem ) { + return i; + } + } + } + + return -1; + }, + + merge: function( first, second ) { + var len = +second.length, + j = 0, + i = first.length; + + while ( j < len ) { + first[ i++ ] = second[ j++ ]; + } + + // Support: IE<9 + // Workaround casting of .length to NaN on otherwise arraylike objects (e.g., NodeLists) + if ( len !== len ) { + while ( second[j] !== undefined ) { + first[ i++ ] = second[ j++ ]; + } + } + + first.length = i; + + return first; + }, + + grep: function( elems, callback, invert ) { + var callbackInverse, + matches = [], + i = 0, + length = elems.length, + callbackExpect = !invert; + + // Go through the array, only saving the items + // that pass the validator function + for ( ; i < length; i++ ) { + callbackInverse = !callback( elems[ i ], i ); + if ( callbackInverse !== callbackExpect ) { + matches.push( elems[ i ] ); + } + } + + return matches; + }, + + // arg is for internal usage only + map: function( elems, callback, arg ) { + var value, + i = 0, + length = elems.length, + isArray = isArraylike( elems ), + ret = []; + + // Go through the array, translating each of the items to their new values + if ( isArray ) { + for ( ; i < length; i++ ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret.push( value ); + } + } + + // Go through every key on the object, + } else { + for ( i in elems ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret.push( value ); + } + } + } + + // Flatten any nested arrays + return concat.apply( [], ret ); + }, + + // A global GUID counter for objects + guid: 1, + + // Bind a function to a context, optionally partially applying any + // arguments. + proxy: function( fn, context ) { + var args, proxy, tmp; + + if ( typeof context === "string" ) { + tmp = fn[ context ]; + context = fn; + fn = tmp; + } + + // Quick check to determine if target is callable, in the spec + // this throws a TypeError, but we will just return undefined. + if ( !jQuery.isFunction( fn ) ) { + return undefined; + } + + // Simulated bind + args = slice.call( arguments, 2 ); + proxy = function() { + return fn.apply( context || this, args.concat( slice.call( arguments ) ) ); + }; + + // Set the guid of unique handler to the same of original handler, so it can be removed + proxy.guid = fn.guid = fn.guid || jQuery.guid++; + + return proxy; + }, + + now: function() { + return +( new Date() ); + }, + + // jQuery.support is not used in Core but other projects attach their + // properties to it so it needs to exist. + support: support +}); + +// Populate the class2type map +jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { + class2type[ "[object " + name + "]" ] = name.toLowerCase(); +}); + +function isArraylike( obj ) { + var length = obj.length, + type = jQuery.type( obj ); + + if ( type === "function" || jQuery.isWindow( obj ) ) { + return false; + } + + if ( obj.nodeType === 1 && length ) { + return true; + } + + return type === "array" || length === 0 || + typeof length === "number" && length > 0 && ( length - 1 ) in obj; +} +var Sizzle = +/*! + * Sizzle CSS Selector Engine v1.10.19 + * http://sizzlejs.com/ + * + * Copyright 2013 jQuery Foundation, Inc. and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2014-04-18 + */ +(function( window ) { + +var i, + support, + Expr, + getText, + isXML, + tokenize, + compile, + select, + outermostContext, + sortInput, + hasDuplicate, + + // Local document vars + setDocument, + document, + docElem, + documentIsHTML, + rbuggyQSA, + rbuggyMatches, + matches, + contains, + + // Instance-specific data + expando = "sizzle" + -(new Date()), + preferredDoc = window.document, + dirruns = 0, + done = 0, + classCache = createCache(), + tokenCache = createCache(), + compilerCache = createCache(), + sortOrder = function( a, b ) { + if ( a === b ) { + hasDuplicate = true; + } + return 0; + }, + + // General-purpose constants + strundefined = typeof undefined, + MAX_NEGATIVE = 1 << 31, + + // Instance methods + hasOwn = ({}).hasOwnProperty, + arr = [], + pop = arr.pop, + push_native = arr.push, + push = arr.push, + slice = arr.slice, + // Use a stripped-down indexOf if we can't use a native one + indexOf = arr.indexOf || function( elem ) { + var i = 0, + len = this.length; + for ( ; i < len; i++ ) { + if ( this[i] === elem ) { + return i; + } + } + return -1; + }, + + booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", + + // Regular expressions + + // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace + whitespace = "[\\x20\\t\\r\\n\\f]", + // http://www.w3.org/TR/css3-syntax/#characters + characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", + + // Loosely modeled on CSS identifier characters + // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors + // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier + identifier = characterEncoding.replace( "w", "w#" ), + + // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors + attributes = "\\[" + whitespace + "*(" + characterEncoding + ")(?:" + whitespace + + // Operator (capture 2) + "*([*^$|!~]?=)" + whitespace + + // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]" + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + + "*\\]", + + pseudos = ":(" + characterEncoding + ")(?:\\((" + + // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: + // 1. quoted (capture 3; capture 4 or capture 5) + "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + + // 2. simple (capture 6) + "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + + // 3. anything else (capture 2) + ".*" + + ")\\)|)", + + // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter + rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), + + rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), + rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), + + rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ), + + rpseudo = new RegExp( pseudos ), + ridentifier = new RegExp( "^" + identifier + "$" ), + + matchExpr = { + "ID": new RegExp( "^#(" + characterEncoding + ")" ), + "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), + "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ), + "ATTR": new RegExp( "^" + attributes ), + "PSEUDO": new RegExp( "^" + pseudos ), + "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), + "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), + // For use in libraries implementing .is() + // We use this for POS matching in `select` + "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) + }, + + rinputs = /^(?:input|select|textarea|button)$/i, + rheader = /^h\d$/i, + + rnative = /^[^{]+\{\s*\[native \w/, + + // Easily-parseable/retrievable ID or TAG or CLASS selectors + rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, + + rsibling = /[+~]/, + rescape = /'|\\/g, + + // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters + runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), + funescape = function( _, escaped, escapedWhitespace ) { + var high = "0x" + escaped - 0x10000; + // NaN means non-codepoint + // Support: Firefox<24 + // Workaround erroneous numeric interpretation of +"0x" + return high !== high || escapedWhitespace ? + escaped : + high < 0 ? + // BMP codepoint + String.fromCharCode( high + 0x10000 ) : + // Supplemental Plane codepoint (surrogate pair) + String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); + }; + +// Optimize for push.apply( _, NodeList ) +try { + push.apply( + (arr = slice.call( preferredDoc.childNodes )), + preferredDoc.childNodes + ); + // Support: Android<4.0 + // Detect silently failing push.apply + arr[ preferredDoc.childNodes.length ].nodeType; +} catch ( e ) { + push = { apply: arr.length ? + + // Leverage slice if possible + function( target, els ) { + push_native.apply( target, slice.call(els) ); + } : + + // Support: IE<9 + // Otherwise append directly + function( target, els ) { + var j = target.length, + i = 0; + // Can't trust NodeList.length + while ( (target[j++] = els[i++]) ) {} + target.length = j - 1; + } + }; +} + +function Sizzle( selector, context, results, seed ) { + var match, elem, m, nodeType, + // QSA vars + i, groups, old, nid, newContext, newSelector; + + if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { + setDocument( context ); + } + + context = context || document; + results = results || []; + + if ( !selector || typeof selector !== "string" ) { + return results; + } + + if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) { + return []; + } + + if ( documentIsHTML && !seed ) { + + // Shortcuts + if ( (match = rquickExpr.exec( selector )) ) { + // Speed-up: Sizzle("#ID") + if ( (m = match[1]) ) { + if ( nodeType === 9 ) { + elem = context.getElementById( m ); + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document (jQuery #6963) + if ( elem && elem.parentNode ) { + // Handle the case where IE, Opera, and Webkit return items + // by name instead of ID + if ( elem.id === m ) { + results.push( elem ); + return results; + } + } else { + return results; + } + } else { + // Context is not a document + if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && + contains( context, elem ) && elem.id === m ) { + results.push( elem ); + return results; + } + } + + // Speed-up: Sizzle("TAG") + } else if ( match[2] ) { + push.apply( results, context.getElementsByTagName( selector ) ); + return results; + + // Speed-up: Sizzle(".CLASS") + } else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) { + push.apply( results, context.getElementsByClassName( m ) ); + return results; + } + } + + // QSA path + if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { + nid = old = expando; + newContext = context; + newSelector = nodeType === 9 && selector; + + // qSA works strangely on Element-rooted queries + // We can work around this by specifying an extra ID on the root + // and working up from there (Thanks to Andrew Dupont for the technique) + // IE 8 doesn't work on object elements + if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { + groups = tokenize( selector ); + + if ( (old = context.getAttribute("id")) ) { + nid = old.replace( rescape, "\\$&" ); + } else { + context.setAttribute( "id", nid ); + } + nid = "[id='" + nid + "'] "; + + i = groups.length; + while ( i-- ) { + groups[i] = nid + toSelector( groups[i] ); + } + newContext = rsibling.test( selector ) && testContext( context.parentNode ) || context; + newSelector = groups.join(","); + } + + if ( newSelector ) { + try { + push.apply( results, + newContext.querySelectorAll( newSelector ) + ); + return results; + } catch(qsaError) { + } finally { + if ( !old ) { + context.removeAttribute("id"); + } + } + } + } + } + + // All others + return select( selector.replace( rtrim, "$1" ), context, results, seed ); +} + +/** + * Create key-value caches of limited size + * @returns {Function(string, Object)} Returns the Object data after storing it on itself with + * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) + * deleting the oldest entry + */ +function createCache() { + var keys = []; + + function cache( key, value ) { + // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) + if ( keys.push( key + " " ) > Expr.cacheLength ) { + // Only keep the most recent entries + delete cache[ keys.shift() ]; + } + return (cache[ key + " " ] = value); + } + return cache; +} + +/** + * Mark a function for special use by Sizzle + * @param {Function} fn The function to mark + */ +function markFunction( fn ) { + fn[ expando ] = true; + return fn; +} + +/** + * Support testing using an element + * @param {Function} fn Passed the created div and expects a boolean result + */ +function assert( fn ) { + var div = document.createElement("div"); + + try { + return !!fn( div ); + } catch (e) { + return false; + } finally { + // Remove from its parent by default + if ( div.parentNode ) { + div.parentNode.removeChild( div ); + } + // release memory in IE + div = null; + } +} + +/** + * Adds the same handler for all of the specified attrs + * @param {String} attrs Pipe-separated list of attributes + * @param {Function} handler The method that will be applied + */ +function addHandle( attrs, handler ) { + var arr = attrs.split("|"), + i = attrs.length; + + while ( i-- ) { + Expr.attrHandle[ arr[i] ] = handler; + } +} + +/** + * Checks document order of two siblings + * @param {Element} a + * @param {Element} b + * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b + */ +function siblingCheck( a, b ) { + var cur = b && a, + diff = cur && a.nodeType === 1 && b.nodeType === 1 && + ( ~b.sourceIndex || MAX_NEGATIVE ) - + ( ~a.sourceIndex || MAX_NEGATIVE ); + + // Use IE sourceIndex if available on both nodes + if ( diff ) { + return diff; + } + + // Check if b follows a + if ( cur ) { + while ( (cur = cur.nextSibling) ) { + if ( cur === b ) { + return -1; + } + } + } + + return a ? 1 : -1; +} + +/** + * Returns a function to use in pseudos for input types + * @param {String} type + */ +function createInputPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for buttons + * @param {String} type + */ +function createButtonPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return (name === "input" || name === "button") && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for positionals + * @param {Function} fn + */ +function createPositionalPseudo( fn ) { + return markFunction(function( argument ) { + argument = +argument; + return markFunction(function( seed, matches ) { + var j, + matchIndexes = fn( [], seed.length, argument ), + i = matchIndexes.length; + + // Match elements found at the specified indexes + while ( i-- ) { + if ( seed[ (j = matchIndexes[i]) ] ) { + seed[j] = !(matches[j] = seed[j]); + } + } + }); + }); +} + +/** + * Checks a node for validity as a Sizzle context + * @param {Element|Object=} context + * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value + */ +function testContext( context ) { + return context && typeof context.getElementsByTagName !== strundefined && context; +} + +// Expose support vars for convenience +support = Sizzle.support = {}; + +/** + * Detects XML nodes + * @param {Element|Object} elem An element or a document + * @returns {Boolean} True iff elem is a non-HTML XML node + */ +isXML = Sizzle.isXML = function( elem ) { + // documentElement is verified for cases where it doesn't yet exist + // (such as loading iframes in IE - #4833) + var documentElement = elem && (elem.ownerDocument || elem).documentElement; + return documentElement ? documentElement.nodeName !== "HTML" : false; +}; + +/** + * Sets document-related variables once based on the current document + * @param {Element|Object} [doc] An element or document object to use to set the document + * @returns {Object} Returns the current document + */ +setDocument = Sizzle.setDocument = function( node ) { + var hasCompare, + doc = node ? node.ownerDocument || node : preferredDoc, + parent = doc.defaultView; + + // If no document and documentElement is available, return + if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { + return document; + } + + // Set our document + document = doc; + docElem = doc.documentElement; + + // Support tests + documentIsHTML = !isXML( doc ); + + // Support: IE>8 + // If iframe document is assigned to "document" variable and if iframe has been reloaded, + // IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936 + // IE6-8 do not support the defaultView property so parent will be undefined + if ( parent && parent !== parent.top ) { + // IE11 does not have attachEvent, so all must suffer + if ( parent.addEventListener ) { + parent.addEventListener( "unload", function() { + setDocument(); + }, false ); + } else if ( parent.attachEvent ) { + parent.attachEvent( "onunload", function() { + setDocument(); + }); + } + } + + /* Attributes + ---------------------------------------------------------------------- */ + + // Support: IE<8 + // Verify that getAttribute really returns attributes and not properties (excepting IE8 booleans) + support.attributes = assert(function( div ) { + div.className = "i"; + return !div.getAttribute("className"); + }); + + /* getElement(s)By* + ---------------------------------------------------------------------- */ + + // Check if getElementsByTagName("*") returns only elements + support.getElementsByTagName = assert(function( div ) { + div.appendChild( doc.createComment("") ); + return !div.getElementsByTagName("*").length; + }); + + // Check if getElementsByClassName can be trusted + support.getElementsByClassName = rnative.test( doc.getElementsByClassName ) && assert(function( div ) { + div.innerHTML = "
    "; + + // Support: Safari<4 + // Catch class over-caching + div.firstChild.className = "i"; + // Support: Opera<10 + // Catch gEBCN failure to find non-leading classes + return div.getElementsByClassName("i").length === 2; + }); + + // Support: IE<10 + // Check if getElementById returns elements by name + // The broken getElementById methods don't pick up programatically-set names, + // so use a roundabout getElementsByName test + support.getById = assert(function( div ) { + docElem.appendChild( div ).id = expando; + return !doc.getElementsByName || !doc.getElementsByName( expando ).length; + }); + + // ID find and filter + if ( support.getById ) { + Expr.find["ID"] = function( id, context ) { + if ( typeof context.getElementById !== strundefined && documentIsHTML ) { + var m = context.getElementById( id ); + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + return m && m.parentNode ? [ m ] : []; + } + }; + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + return elem.getAttribute("id") === attrId; + }; + }; + } else { + // Support: IE6/7 + // getElementById is not reliable as a find shortcut + delete Expr.find["ID"]; + + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id"); + return node && node.value === attrId; + }; + }; + } + + // Tag + Expr.find["TAG"] = support.getElementsByTagName ? + function( tag, context ) { + if ( typeof context.getElementsByTagName !== strundefined ) { + return context.getElementsByTagName( tag ); + } + } : + function( tag, context ) { + var elem, + tmp = [], + i = 0, + results = context.getElementsByTagName( tag ); + + // Filter out possible comments + if ( tag === "*" ) { + while ( (elem = results[i++]) ) { + if ( elem.nodeType === 1 ) { + tmp.push( elem ); + } + } + + return tmp; + } + return results; + }; + + // Class + Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { + if ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) { + return context.getElementsByClassName( className ); + } + }; + + /* QSA/matchesSelector + ---------------------------------------------------------------------- */ + + // QSA and matchesSelector support + + // matchesSelector(:active) reports false when true (IE9/Opera 11.5) + rbuggyMatches = []; + + // qSa(:focus) reports false when true (Chrome 21) + // We allow this because of a bug in IE8/9 that throws an error + // whenever `document.activeElement` is accessed on an iframe + // So, we allow :focus to pass through QSA all the time to avoid the IE error + // See http://bugs.jquery.com/ticket/13378 + rbuggyQSA = []; + + if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) { + // Build QSA regex + // Regex strategy adopted from Diego Perini + assert(function( div ) { + // Select is set to empty string on purpose + // This is to test IE's treatment of not explicitly + // setting a boolean content attribute, + // since its presence should be enough + // http://bugs.jquery.com/ticket/12359 + div.innerHTML = ""; + + // Support: IE8, Opera 11-12.16 + // Nothing should be selected when empty strings follow ^= or $= or *= + // The test attribute must be unknown in Opera but "safe" for WinRT + // http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section + if ( div.querySelectorAll("[msallowclip^='']").length ) { + rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); + } + + // Support: IE8 + // Boolean attributes and "value" are not treated correctly + if ( !div.querySelectorAll("[selected]").length ) { + rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); + } + + // Webkit/Opera - :checked should return selected option elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + // IE8 throws error here and will not see later tests + if ( !div.querySelectorAll(":checked").length ) { + rbuggyQSA.push(":checked"); + } + }); + + assert(function( div ) { + // Support: Windows 8 Native Apps + // The type and name attributes are restricted during .innerHTML assignment + var input = doc.createElement("input"); + input.setAttribute( "type", "hidden" ); + div.appendChild( input ).setAttribute( "name", "D" ); + + // Support: IE8 + // Enforce case-sensitivity of name attribute + if ( div.querySelectorAll("[name=d]").length ) { + rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); + } + + // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) + // IE8 throws error here and will not see later tests + if ( !div.querySelectorAll(":enabled").length ) { + rbuggyQSA.push( ":enabled", ":disabled" ); + } + + // Opera 10-11 does not throw on post-comma invalid pseudos + div.querySelectorAll("*,:x"); + rbuggyQSA.push(",.*:"); + }); + } + + if ( (support.matchesSelector = rnative.test( (matches = docElem.matches || + docElem.webkitMatchesSelector || + docElem.mozMatchesSelector || + docElem.oMatchesSelector || + docElem.msMatchesSelector) )) ) { + + assert(function( div ) { + // Check to see if it's possible to do matchesSelector + // on a disconnected node (IE 9) + support.disconnectedMatch = matches.call( div, "div" ); + + // This should fail with an exception + // Gecko does not error, returns false instead + matches.call( div, "[s!='']:x" ); + rbuggyMatches.push( "!=", pseudos ); + }); + } + + rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); + rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); + + /* Contains + ---------------------------------------------------------------------- */ + hasCompare = rnative.test( docElem.compareDocumentPosition ); + + // Element contains another + // Purposefully does not implement inclusive descendent + // As in, an element does not contain itself + contains = hasCompare || rnative.test( docElem.contains ) ? + function( a, b ) { + var adown = a.nodeType === 9 ? a.documentElement : a, + bup = b && b.parentNode; + return a === bup || !!( bup && bup.nodeType === 1 && ( + adown.contains ? + adown.contains( bup ) : + a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 + )); + } : + function( a, b ) { + if ( b ) { + while ( (b = b.parentNode) ) { + if ( b === a ) { + return true; + } + } + } + return false; + }; + + /* Sorting + ---------------------------------------------------------------------- */ + + // Document order sorting + sortOrder = hasCompare ? + function( a, b ) { + + // Flag for duplicate removal + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + // Sort on method existence if only one input has compareDocumentPosition + var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; + if ( compare ) { + return compare; + } + + // Calculate position if both inputs belong to the same document + compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? + a.compareDocumentPosition( b ) : + + // Otherwise we know they are disconnected + 1; + + // Disconnected nodes + if ( compare & 1 || + (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { + + // Choose the first element that is related to our preferred document + if ( a === doc || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { + return -1; + } + if ( b === doc || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { + return 1; + } + + // Maintain original order + return sortInput ? + ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : + 0; + } + + return compare & 4 ? -1 : 1; + } : + function( a, b ) { + // Exit early if the nodes are identical + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + var cur, + i = 0, + aup = a.parentNode, + bup = b.parentNode, + ap = [ a ], + bp = [ b ]; + + // Parentless nodes are either documents or disconnected + if ( !aup || !bup ) { + return a === doc ? -1 : + b === doc ? 1 : + aup ? -1 : + bup ? 1 : + sortInput ? + ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : + 0; + + // If the nodes are siblings, we can do a quick check + } else if ( aup === bup ) { + return siblingCheck( a, b ); + } + + // Otherwise we need full lists of their ancestors for comparison + cur = a; + while ( (cur = cur.parentNode) ) { + ap.unshift( cur ); + } + cur = b; + while ( (cur = cur.parentNode) ) { + bp.unshift( cur ); + } + + // Walk down the tree looking for a discrepancy + while ( ap[i] === bp[i] ) { + i++; + } + + return i ? + // Do a sibling check if the nodes have a common ancestor + siblingCheck( ap[i], bp[i] ) : + + // Otherwise nodes in our document sort first + ap[i] === preferredDoc ? -1 : + bp[i] === preferredDoc ? 1 : + 0; + }; + + return doc; +}; + +Sizzle.matches = function( expr, elements ) { + return Sizzle( expr, null, null, elements ); +}; + +Sizzle.matchesSelector = function( elem, expr ) { + // Set document vars if needed + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } + + // Make sure that attribute selectors are quoted + expr = expr.replace( rattributeQuotes, "='$1']" ); + + if ( support.matchesSelector && documentIsHTML && + ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && + ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { + + try { + var ret = matches.call( elem, expr ); + + // IE 9's matchesSelector returns false on disconnected nodes + if ( ret || support.disconnectedMatch || + // As well, disconnected nodes are said to be in a document + // fragment in IE 9 + elem.document && elem.document.nodeType !== 11 ) { + return ret; + } + } catch(e) {} + } + + return Sizzle( expr, document, null, [ elem ] ).length > 0; +}; + +Sizzle.contains = function( context, elem ) { + // Set document vars if needed + if ( ( context.ownerDocument || context ) !== document ) { + setDocument( context ); + } + return contains( context, elem ); +}; + +Sizzle.attr = function( elem, name ) { + // Set document vars if needed + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } + + var fn = Expr.attrHandle[ name.toLowerCase() ], + // Don't get fooled by Object.prototype properties (jQuery #13807) + val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? + fn( elem, name, !documentIsHTML ) : + undefined; + + return val !== undefined ? + val : + support.attributes || !documentIsHTML ? + elem.getAttribute( name ) : + (val = elem.getAttributeNode(name)) && val.specified ? + val.value : + null; +}; + +Sizzle.error = function( msg ) { + throw new Error( "Syntax error, unrecognized expression: " + msg ); +}; + +/** + * Document sorting and removing duplicates + * @param {ArrayLike} results + */ +Sizzle.uniqueSort = function( results ) { + var elem, + duplicates = [], + j = 0, + i = 0; + + // Unless we *know* we can detect duplicates, assume their presence + hasDuplicate = !support.detectDuplicates; + sortInput = !support.sortStable && results.slice( 0 ); + results.sort( sortOrder ); + + if ( hasDuplicate ) { + while ( (elem = results[i++]) ) { + if ( elem === results[ i ] ) { + j = duplicates.push( i ); + } + } + while ( j-- ) { + results.splice( duplicates[ j ], 1 ); + } + } + + // Clear input after sorting to release objects + // See https://github.com/jquery/sizzle/pull/225 + sortInput = null; + + return results; +}; + +/** + * Utility function for retrieving the text value of an array of DOM nodes + * @param {Array|Element} elem + */ +getText = Sizzle.getText = function( elem ) { + var node, + ret = "", + i = 0, + nodeType = elem.nodeType; + + if ( !nodeType ) { + // If no nodeType, this is expected to be an array + while ( (node = elem[i++]) ) { + // Do not traverse comment nodes + ret += getText( node ); + } + } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { + // Use textContent for elements + // innerText usage removed for consistency of new lines (jQuery #11153) + if ( typeof elem.textContent === "string" ) { + return elem.textContent; + } else { + // Traverse its children + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + ret += getText( elem ); + } + } + } else if ( nodeType === 3 || nodeType === 4 ) { + return elem.nodeValue; + } + // Do not include comment or processing instruction nodes + + return ret; +}; + +Expr = Sizzle.selectors = { + + // Can be adjusted by the user + cacheLength: 50, + + createPseudo: markFunction, + + match: matchExpr, + + attrHandle: {}, + + find: {}, + + relative: { + ">": { dir: "parentNode", first: true }, + " ": { dir: "parentNode" }, + "+": { dir: "previousSibling", first: true }, + "~": { dir: "previousSibling" } + }, + + preFilter: { + "ATTR": function( match ) { + match[1] = match[1].replace( runescape, funescape ); + + // Move the given value to match[3] whether quoted or unquoted + match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape ); + + if ( match[2] === "~=" ) { + match[3] = " " + match[3] + " "; + } + + return match.slice( 0, 4 ); + }, + + "CHILD": function( match ) { + /* matches from matchExpr["CHILD"] + 1 type (only|nth|...) + 2 what (child|of-type) + 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) + 4 xn-component of xn+y argument ([+-]?\d*n|) + 5 sign of xn-component + 6 x of xn-component + 7 sign of y-component + 8 y of y-component + */ + match[1] = match[1].toLowerCase(); + + if ( match[1].slice( 0, 3 ) === "nth" ) { + // nth-* requires argument + if ( !match[3] ) { + Sizzle.error( match[0] ); + } + + // numeric x and y parameters for Expr.filter.CHILD + // remember that false/true cast respectively to 0/1 + match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); + match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); + + // other types prohibit arguments + } else if ( match[3] ) { + Sizzle.error( match[0] ); + } + + return match; + }, + + "PSEUDO": function( match ) { + var excess, + unquoted = !match[6] && match[2]; + + if ( matchExpr["CHILD"].test( match[0] ) ) { + return null; + } + + // Accept quoted arguments as-is + if ( match[3] ) { + match[2] = match[4] || match[5] || ""; + + // Strip excess characters from unquoted arguments + } else if ( unquoted && rpseudo.test( unquoted ) && + // Get excess from tokenize (recursively) + (excess = tokenize( unquoted, true )) && + // advance to the next closing parenthesis + (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { + + // excess is a negative index + match[0] = match[0].slice( 0, excess ); + match[2] = unquoted.slice( 0, excess ); + } + + // Return only captures needed by the pseudo filter method (type and argument) + return match.slice( 0, 3 ); + } + }, + + filter: { + + "TAG": function( nodeNameSelector ) { + var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); + return nodeNameSelector === "*" ? + function() { return true; } : + function( elem ) { + return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; + }; + }, + + "CLASS": function( className ) { + var pattern = classCache[ className + " " ]; + + return pattern || + (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && + classCache( className, function( elem ) { + return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "" ); + }); + }, + + "ATTR": function( name, operator, check ) { + return function( elem ) { + var result = Sizzle.attr( elem, name ); + + if ( result == null ) { + return operator === "!="; + } + if ( !operator ) { + return true; + } + + result += ""; + + return operator === "=" ? result === check : + operator === "!=" ? result !== check : + operator === "^=" ? check && result.indexOf( check ) === 0 : + operator === "*=" ? check && result.indexOf( check ) > -1 : + operator === "$=" ? check && result.slice( -check.length ) === check : + operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 : + operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : + false; + }; + }, + + "CHILD": function( type, what, argument, first, last ) { + var simple = type.slice( 0, 3 ) !== "nth", + forward = type.slice( -4 ) !== "last", + ofType = what === "of-type"; + + return first === 1 && last === 0 ? + + // Shortcut for :nth-*(n) + function( elem ) { + return !!elem.parentNode; + } : + + function( elem, context, xml ) { + var cache, outerCache, node, diff, nodeIndex, start, + dir = simple !== forward ? "nextSibling" : "previousSibling", + parent = elem.parentNode, + name = ofType && elem.nodeName.toLowerCase(), + useCache = !xml && !ofType; + + if ( parent ) { + + // :(first|last|only)-(child|of-type) + if ( simple ) { + while ( dir ) { + node = elem; + while ( (node = node[ dir ]) ) { + if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { + return false; + } + } + // Reverse direction for :only-* (if we haven't yet done so) + start = dir = type === "only" && !start && "nextSibling"; + } + return true; + } + + start = [ forward ? parent.firstChild : parent.lastChild ]; + + // non-xml :nth-child(...) stores cache data on `parent` + if ( forward && useCache ) { + // Seek `elem` from a previously-cached index + outerCache = parent[ expando ] || (parent[ expando ] = {}); + cache = outerCache[ type ] || []; + nodeIndex = cache[0] === dirruns && cache[1]; + diff = cache[0] === dirruns && cache[2]; + node = nodeIndex && parent.childNodes[ nodeIndex ]; + + while ( (node = ++nodeIndex && node && node[ dir ] || + + // Fallback to seeking `elem` from the start + (diff = nodeIndex = 0) || start.pop()) ) { + + // When found, cache indexes on `parent` and break + if ( node.nodeType === 1 && ++diff && node === elem ) { + outerCache[ type ] = [ dirruns, nodeIndex, diff ]; + break; + } + } + + // Use previously-cached element index if available + } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) { + diff = cache[1]; + + // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...) + } else { + // Use the same loop as above to seek `elem` from the start + while ( (node = ++nodeIndex && node && node[ dir ] || + (diff = nodeIndex = 0) || start.pop()) ) { + + if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { + // Cache the index of each encountered element + if ( useCache ) { + (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ]; + } + + if ( node === elem ) { + break; + } + } + } + } + + // Incorporate the offset, then check against cycle size + diff -= last; + return diff === first || ( diff % first === 0 && diff / first >= 0 ); + } + }; + }, + + "PSEUDO": function( pseudo, argument ) { + // pseudo-class names are case-insensitive + // http://www.w3.org/TR/selectors/#pseudo-classes + // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters + // Remember that setFilters inherits from pseudos + var args, + fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || + Sizzle.error( "unsupported pseudo: " + pseudo ); + + // The user may use createPseudo to indicate that + // arguments are needed to create the filter function + // just as Sizzle does + if ( fn[ expando ] ) { + return fn( argument ); + } + + // But maintain support for old signatures + if ( fn.length > 1 ) { + args = [ pseudo, pseudo, "", argument ]; + return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? + markFunction(function( seed, matches ) { + var idx, + matched = fn( seed, argument ), + i = matched.length; + while ( i-- ) { + idx = indexOf.call( seed, matched[i] ); + seed[ idx ] = !( matches[ idx ] = matched[i] ); + } + }) : + function( elem ) { + return fn( elem, 0, args ); + }; + } + + return fn; + } + }, + + pseudos: { + // Potentially complex pseudos + "not": markFunction(function( selector ) { + // Trim the selector passed to compile + // to avoid treating leading and trailing + // spaces as combinators + var input = [], + results = [], + matcher = compile( selector.replace( rtrim, "$1" ) ); + + return matcher[ expando ] ? + markFunction(function( seed, matches, context, xml ) { + var elem, + unmatched = matcher( seed, null, xml, [] ), + i = seed.length; + + // Match elements unmatched by `matcher` + while ( i-- ) { + if ( (elem = unmatched[i]) ) { + seed[i] = !(matches[i] = elem); + } + } + }) : + function( elem, context, xml ) { + input[0] = elem; + matcher( input, null, xml, results ); + return !results.pop(); + }; + }), + + "has": markFunction(function( selector ) { + return function( elem ) { + return Sizzle( selector, elem ).length > 0; + }; + }), + + "contains": markFunction(function( text ) { + return function( elem ) { + return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; + }; + }), + + // "Whether an element is represented by a :lang() selector + // is based solely on the element's language value + // being equal to the identifier C, + // or beginning with the identifier C immediately followed by "-". + // The matching of C against the element's language value is performed case-insensitively. + // The identifier C does not have to be a valid language name." + // http://www.w3.org/TR/selectors/#lang-pseudo + "lang": markFunction( function( lang ) { + // lang value must be a valid identifier + if ( !ridentifier.test(lang || "") ) { + Sizzle.error( "unsupported lang: " + lang ); + } + lang = lang.replace( runescape, funescape ).toLowerCase(); + return function( elem ) { + var elemLang; + do { + if ( (elemLang = documentIsHTML ? + elem.lang : + elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { + + elemLang = elemLang.toLowerCase(); + return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; + } + } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); + return false; + }; + }), + + // Miscellaneous + "target": function( elem ) { + var hash = window.location && window.location.hash; + return hash && hash.slice( 1 ) === elem.id; + }, + + "root": function( elem ) { + return elem === docElem; + }, + + "focus": function( elem ) { + return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); + }, + + // Boolean properties + "enabled": function( elem ) { + return elem.disabled === false; + }, + + "disabled": function( elem ) { + return elem.disabled === true; + }, + + "checked": function( elem ) { + // In CSS3, :checked should return both checked and selected elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + var nodeName = elem.nodeName.toLowerCase(); + return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); + }, + + "selected": function( elem ) { + // Accessing this property makes selected-by-default + // options in Safari work properly + if ( elem.parentNode ) { + elem.parentNode.selectedIndex; + } + + return elem.selected === true; + }, + + // Contents + "empty": function( elem ) { + // http://www.w3.org/TR/selectors/#empty-pseudo + // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), + // but not by others (comment: 8; processing instruction: 7; etc.) + // nodeType < 6 works because attributes (2) do not appear as children + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + if ( elem.nodeType < 6 ) { + return false; + } + } + return true; + }, + + "parent": function( elem ) { + return !Expr.pseudos["empty"]( elem ); + }, + + // Element/input types + "header": function( elem ) { + return rheader.test( elem.nodeName ); + }, + + "input": function( elem ) { + return rinputs.test( elem.nodeName ); + }, + + "button": function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === "button" || name === "button"; + }, + + "text": function( elem ) { + var attr; + return elem.nodeName.toLowerCase() === "input" && + elem.type === "text" && + + // Support: IE<8 + // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" + ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); + }, + + // Position-in-collection + "first": createPositionalPseudo(function() { + return [ 0 ]; + }), + + "last": createPositionalPseudo(function( matchIndexes, length ) { + return [ length - 1 ]; + }), + + "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { + return [ argument < 0 ? argument + length : argument ]; + }), + + "even": createPositionalPseudo(function( matchIndexes, length ) { + var i = 0; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "odd": createPositionalPseudo(function( matchIndexes, length ) { + var i = 1; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; --i >= 0; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; ++i < length; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }) + } +}; + +Expr.pseudos["nth"] = Expr.pseudos["eq"]; + +// Add button/input type pseudos +for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { + Expr.pseudos[ i ] = createInputPseudo( i ); +} +for ( i in { submit: true, reset: true } ) { + Expr.pseudos[ i ] = createButtonPseudo( i ); +} + +// Easy API for creating new setFilters +function setFilters() {} +setFilters.prototype = Expr.filters = Expr.pseudos; +Expr.setFilters = new setFilters(); + +tokenize = Sizzle.tokenize = function( selector, parseOnly ) { + var matched, match, tokens, type, + soFar, groups, preFilters, + cached = tokenCache[ selector + " " ]; + + if ( cached ) { + return parseOnly ? 0 : cached.slice( 0 ); + } + + soFar = selector; + groups = []; + preFilters = Expr.preFilter; + + while ( soFar ) { + + // Comma and first run + if ( !matched || (match = rcomma.exec( soFar )) ) { + if ( match ) { + // Don't consume trailing commas as valid + soFar = soFar.slice( match[0].length ) || soFar; + } + groups.push( (tokens = []) ); + } + + matched = false; + + // Combinators + if ( (match = rcombinators.exec( soFar )) ) { + matched = match.shift(); + tokens.push({ + value: matched, + // Cast descendant combinators to space + type: match[0].replace( rtrim, " " ) + }); + soFar = soFar.slice( matched.length ); + } + + // Filters + for ( type in Expr.filter ) { + if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || + (match = preFilters[ type ]( match ))) ) { + matched = match.shift(); + tokens.push({ + value: matched, + type: type, + matches: match + }); + soFar = soFar.slice( matched.length ); + } + } + + if ( !matched ) { + break; + } + } + + // Return the length of the invalid excess + // if we're just parsing + // Otherwise, throw an error or return tokens + return parseOnly ? + soFar.length : + soFar ? + Sizzle.error( selector ) : + // Cache the tokens + tokenCache( selector, groups ).slice( 0 ); +}; + +function toSelector( tokens ) { + var i = 0, + len = tokens.length, + selector = ""; + for ( ; i < len; i++ ) { + selector += tokens[i].value; + } + return selector; +} + +function addCombinator( matcher, combinator, base ) { + var dir = combinator.dir, + checkNonElements = base && dir === "parentNode", + doneName = done++; + + return combinator.first ? + // Check against closest ancestor/preceding element + function( elem, context, xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + return matcher( elem, context, xml ); + } + } + } : + + // Check against all ancestor/preceding elements + function( elem, context, xml ) { + var oldCache, outerCache, + newCache = [ dirruns, doneName ]; + + // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching + if ( xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + if ( matcher( elem, context, xml ) ) { + return true; + } + } + } + } else { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + outerCache = elem[ expando ] || (elem[ expando ] = {}); + if ( (oldCache = outerCache[ dir ]) && + oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { + + // Assign to newCache so results back-propagate to previous elements + return (newCache[ 2 ] = oldCache[ 2 ]); + } else { + // Reuse newcache so results back-propagate to previous elements + outerCache[ dir ] = newCache; + + // A match means we're done; a fail means we have to keep checking + if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { + return true; + } + } + } + } + } + }; +} + +function elementMatcher( matchers ) { + return matchers.length > 1 ? + function( elem, context, xml ) { + var i = matchers.length; + while ( i-- ) { + if ( !matchers[i]( elem, context, xml ) ) { + return false; + } + } + return true; + } : + matchers[0]; +} + +function multipleContexts( selector, contexts, results ) { + var i = 0, + len = contexts.length; + for ( ; i < len; i++ ) { + Sizzle( selector, contexts[i], results ); + } + return results; +} + +function condense( unmatched, map, filter, context, xml ) { + var elem, + newUnmatched = [], + i = 0, + len = unmatched.length, + mapped = map != null; + + for ( ; i < len; i++ ) { + if ( (elem = unmatched[i]) ) { + if ( !filter || filter( elem, context, xml ) ) { + newUnmatched.push( elem ); + if ( mapped ) { + map.push( i ); + } + } + } + } + + return newUnmatched; +} + +function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { + if ( postFilter && !postFilter[ expando ] ) { + postFilter = setMatcher( postFilter ); + } + if ( postFinder && !postFinder[ expando ] ) { + postFinder = setMatcher( postFinder, postSelector ); + } + return markFunction(function( seed, results, context, xml ) { + var temp, i, elem, + preMap = [], + postMap = [], + preexisting = results.length, + + // Get initial elements from seed or context + elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), + + // Prefilter to get matcher input, preserving a map for seed-results synchronization + matcherIn = preFilter && ( seed || !selector ) ? + condense( elems, preMap, preFilter, context, xml ) : + elems, + + matcherOut = matcher ? + // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, + postFinder || ( seed ? preFilter : preexisting || postFilter ) ? + + // ...intermediate processing is necessary + [] : + + // ...otherwise use results directly + results : + matcherIn; + + // Find primary matches + if ( matcher ) { + matcher( matcherIn, matcherOut, context, xml ); + } + + // Apply postFilter + if ( postFilter ) { + temp = condense( matcherOut, postMap ); + postFilter( temp, [], context, xml ); + + // Un-match failing elements by moving them back to matcherIn + i = temp.length; + while ( i-- ) { + if ( (elem = temp[i]) ) { + matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); + } + } + } + + if ( seed ) { + if ( postFinder || preFilter ) { + if ( postFinder ) { + // Get the final matcherOut by condensing this intermediate into postFinder contexts + temp = []; + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) ) { + // Restore matcherIn since elem is not yet a final match + temp.push( (matcherIn[i] = elem) ); + } + } + postFinder( null, (matcherOut = []), temp, xml ); + } + + // Move matched elements from seed to results to keep them synchronized + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) && + (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) { + + seed[temp] = !(results[temp] = elem); + } + } + } + + // Add elements to results, through postFinder if defined + } else { + matcherOut = condense( + matcherOut === results ? + matcherOut.splice( preexisting, matcherOut.length ) : + matcherOut + ); + if ( postFinder ) { + postFinder( null, results, matcherOut, xml ); + } else { + push.apply( results, matcherOut ); + } + } + }); +} + +function matcherFromTokens( tokens ) { + var checkContext, matcher, j, + len = tokens.length, + leadingRelative = Expr.relative[ tokens[0].type ], + implicitRelative = leadingRelative || Expr.relative[" "], + i = leadingRelative ? 1 : 0, + + // The foundational matcher ensures that elements are reachable from top-level context(s) + matchContext = addCombinator( function( elem ) { + return elem === checkContext; + }, implicitRelative, true ), + matchAnyContext = addCombinator( function( elem ) { + return indexOf.call( checkContext, elem ) > -1; + }, implicitRelative, true ), + matchers = [ function( elem, context, xml ) { + return ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( + (checkContext = context).nodeType ? + matchContext( elem, context, xml ) : + matchAnyContext( elem, context, xml ) ); + } ]; + + for ( ; i < len; i++ ) { + if ( (matcher = Expr.relative[ tokens[i].type ]) ) { + matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; + } else { + matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); + + // Return special upon seeing a positional matcher + if ( matcher[ expando ] ) { + // Find the next relative operator (if any) for proper handling + j = ++i; + for ( ; j < len; j++ ) { + if ( Expr.relative[ tokens[j].type ] ) { + break; + } + } + return setMatcher( + i > 1 && elementMatcher( matchers ), + i > 1 && toSelector( + // If the preceding token was a descendant combinator, insert an implicit any-element `*` + tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) + ).replace( rtrim, "$1" ), + matcher, + i < j && matcherFromTokens( tokens.slice( i, j ) ), + j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), + j < len && toSelector( tokens ) + ); + } + matchers.push( matcher ); + } + } + + return elementMatcher( matchers ); +} + +function matcherFromGroupMatchers( elementMatchers, setMatchers ) { + var bySet = setMatchers.length > 0, + byElement = elementMatchers.length > 0, + superMatcher = function( seed, context, xml, results, outermost ) { + var elem, j, matcher, + matchedCount = 0, + i = "0", + unmatched = seed && [], + setMatched = [], + contextBackup = outermostContext, + // We must always have either seed elements or outermost context + elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), + // Use integer dirruns iff this is the outermost matcher + dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), + len = elems.length; + + if ( outermost ) { + outermostContext = context !== document && context; + } + + // Add elements passing elementMatchers directly to results + // Keep `i` a string if there are no elements so `matchedCount` will be "00" below + // Support: IE<9, Safari + // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id + for ( ; i !== len && (elem = elems[i]) != null; i++ ) { + if ( byElement && elem ) { + j = 0; + while ( (matcher = elementMatchers[j++]) ) { + if ( matcher( elem, context, xml ) ) { + results.push( elem ); + break; + } + } + if ( outermost ) { + dirruns = dirrunsUnique; + } + } + + // Track unmatched elements for set filters + if ( bySet ) { + // They will have gone through all possible matchers + if ( (elem = !matcher && elem) ) { + matchedCount--; + } + + // Lengthen the array for every element, matched or not + if ( seed ) { + unmatched.push( elem ); + } + } + } + + // Apply set filters to unmatched elements + matchedCount += i; + if ( bySet && i !== matchedCount ) { + j = 0; + while ( (matcher = setMatchers[j++]) ) { + matcher( unmatched, setMatched, context, xml ); + } + + if ( seed ) { + // Reintegrate element matches to eliminate the need for sorting + if ( matchedCount > 0 ) { + while ( i-- ) { + if ( !(unmatched[i] || setMatched[i]) ) { + setMatched[i] = pop.call( results ); + } + } + } + + // Discard index placeholder values to get only actual matches + setMatched = condense( setMatched ); + } + + // Add matches to results + push.apply( results, setMatched ); + + // Seedless set matches succeeding multiple successful matchers stipulate sorting + if ( outermost && !seed && setMatched.length > 0 && + ( matchedCount + setMatchers.length ) > 1 ) { + + Sizzle.uniqueSort( results ); + } + } + + // Override manipulation of globals by nested matchers + if ( outermost ) { + dirruns = dirrunsUnique; + outermostContext = contextBackup; + } + + return unmatched; + }; + + return bySet ? + markFunction( superMatcher ) : + superMatcher; +} + +compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { + var i, + setMatchers = [], + elementMatchers = [], + cached = compilerCache[ selector + " " ]; + + if ( !cached ) { + // Generate a function of recursive functions that can be used to check each element + if ( !match ) { + match = tokenize( selector ); + } + i = match.length; + while ( i-- ) { + cached = matcherFromTokens( match[i] ); + if ( cached[ expando ] ) { + setMatchers.push( cached ); + } else { + elementMatchers.push( cached ); + } + } + + // Cache the compiled function + cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); + + // Save selector and tokenization + cached.selector = selector; + } + return cached; +}; + +/** + * A low-level selection function that works with Sizzle's compiled + * selector functions + * @param {String|Function} selector A selector or a pre-compiled + * selector function built with Sizzle.compile + * @param {Element} context + * @param {Array} [results] + * @param {Array} [seed] A set of elements to match against + */ +select = Sizzle.select = function( selector, context, results, seed ) { + var i, tokens, token, type, find, + compiled = typeof selector === "function" && selector, + match = !seed && tokenize( (selector = compiled.selector || selector) ); + + results = results || []; + + // Try to minimize operations if there is no seed and only one group + if ( match.length === 1 ) { + + // Take a shortcut and set the context if the root selector is an ID + tokens = match[0] = match[0].slice( 0 ); + if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && + support.getById && context.nodeType === 9 && documentIsHTML && + Expr.relative[ tokens[1].type ] ) { + + context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; + if ( !context ) { + return results; + + // Precompiled matchers will still verify ancestry, so step up a level + } else if ( compiled ) { + context = context.parentNode; + } + + selector = selector.slice( tokens.shift().value.length ); + } + + // Fetch a seed set for right-to-left matching + i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; + while ( i-- ) { + token = tokens[i]; + + // Abort if we hit a combinator + if ( Expr.relative[ (type = token.type) ] ) { + break; + } + if ( (find = Expr.find[ type ]) ) { + // Search, expanding context for leading sibling combinators + if ( (seed = find( + token.matches[0].replace( runescape, funescape ), + rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context + )) ) { + + // If seed is empty or no tokens remain, we can return early + tokens.splice( i, 1 ); + selector = seed.length && toSelector( tokens ); + if ( !selector ) { + push.apply( results, seed ); + return results; + } + + break; + } + } + } + } + + // Compile and execute a filtering function if one is not provided + // Provide `match` to avoid retokenization if we modified the selector above + ( compiled || compile( selector, match ) )( + seed, + context, + !documentIsHTML, + results, + rsibling.test( selector ) && testContext( context.parentNode ) || context + ); + return results; +}; + +// One-time assignments + +// Sort stability +support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; + +// Support: Chrome<14 +// Always assume duplicates if they aren't passed to the comparison function +support.detectDuplicates = !!hasDuplicate; + +// Initialize against the default document +setDocument(); + +// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) +// Detached nodes confoundingly follow *each other* +support.sortDetached = assert(function( div1 ) { + // Should return 1, but returns 4 (following) + return div1.compareDocumentPosition( document.createElement("div") ) & 1; +}); + +// Support: IE<8 +// Prevent attribute/property "interpolation" +// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx +if ( !assert(function( div ) { + div.innerHTML = ""; + return div.firstChild.getAttribute("href") === "#" ; +}) ) { + addHandle( "type|href|height|width", function( elem, name, isXML ) { + if ( !isXML ) { + return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); + } + }); +} + +// Support: IE<9 +// Use defaultValue in place of getAttribute("value") +if ( !support.attributes || !assert(function( div ) { + div.innerHTML = ""; + div.firstChild.setAttribute( "value", "" ); + return div.firstChild.getAttribute( "value" ) === ""; +}) ) { + addHandle( "value", function( elem, name, isXML ) { + if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { + return elem.defaultValue; + } + }); +} + +// Support: IE<9 +// Use getAttributeNode to fetch booleans when getAttribute lies +if ( !assert(function( div ) { + return div.getAttribute("disabled") == null; +}) ) { + addHandle( booleans, function( elem, name, isXML ) { + var val; + if ( !isXML ) { + return elem[ name ] === true ? name.toLowerCase() : + (val = elem.getAttributeNode( name )) && val.specified ? + val.value : + null; + } + }); +} + +return Sizzle; + +})( window ); + + + +jQuery.find = Sizzle; +jQuery.expr = Sizzle.selectors; +jQuery.expr[":"] = jQuery.expr.pseudos; +jQuery.unique = Sizzle.uniqueSort; +jQuery.text = Sizzle.getText; +jQuery.isXMLDoc = Sizzle.isXML; +jQuery.contains = Sizzle.contains; + + + +var rneedsContext = jQuery.expr.match.needsContext; + +var rsingleTag = (/^<(\w+)\s*\/?>(?:<\/\1>|)$/); + + + +var risSimple = /^.[^:#\[\.,]*$/; + +// Implement the identical functionality for filter and not +function winnow( elements, qualifier, not ) { + if ( jQuery.isFunction( qualifier ) ) { + return jQuery.grep( elements, function( elem, i ) { + /* jshint -W018 */ + return !!qualifier.call( elem, i, elem ) !== not; + }); + + } + + if ( qualifier.nodeType ) { + return jQuery.grep( elements, function( elem ) { + return ( elem === qualifier ) !== not; + }); + + } + + if ( typeof qualifier === "string" ) { + if ( risSimple.test( qualifier ) ) { + return jQuery.filter( qualifier, elements, not ); + } + + qualifier = jQuery.filter( qualifier, elements ); + } + + return jQuery.grep( elements, function( elem ) { + return ( jQuery.inArray( elem, qualifier ) >= 0 ) !== not; + }); +} + +jQuery.filter = function( expr, elems, not ) { + var elem = elems[ 0 ]; + + if ( not ) { + expr = ":not(" + expr + ")"; + } + + return elems.length === 1 && elem.nodeType === 1 ? + jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] : + jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { + return elem.nodeType === 1; + })); +}; + +jQuery.fn.extend({ + find: function( selector ) { + var i, + ret = [], + self = this, + len = self.length; + + if ( typeof selector !== "string" ) { + return this.pushStack( jQuery( selector ).filter(function() { + for ( i = 0; i < len; i++ ) { + if ( jQuery.contains( self[ i ], this ) ) { + return true; + } + } + }) ); + } + + for ( i = 0; i < len; i++ ) { + jQuery.find( selector, self[ i ], ret ); + } + + // Needed because $( selector, context ) becomes $( context ).find( selector ) + ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); + ret.selector = this.selector ? this.selector + " " + selector : selector; + return ret; + }, + filter: function( selector ) { + return this.pushStack( winnow(this, selector || [], false) ); + }, + not: function( selector ) { + return this.pushStack( winnow(this, selector || [], true) ); + }, + is: function( selector ) { + return !!winnow( + this, + + // If this is a positional/relative selector, check membership in the returned set + // so $("p:first").is("p:last") won't return true for a doc with two "p". + typeof selector === "string" && rneedsContext.test( selector ) ? + jQuery( selector ) : + selector || [], + false + ).length; + } +}); + + +// Initialize a jQuery object + + +// A central reference to the root jQuery(document) +var rootjQuery, + + // Use the correct document accordingly with window argument (sandbox) + document = window.document, + + // A simple way to check for HTML strings + // Prioritize #id over to avoid XSS via location.hash (#9521) + // Strict HTML recognition (#11290: must start with <) + rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, + + init = jQuery.fn.init = function( selector, context ) { + var match, elem; + + // HANDLE: $(""), $(null), $(undefined), $(false) + if ( !selector ) { + return this; + } + + // Handle HTML strings + if ( typeof selector === "string" ) { + if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { + // Assume that strings that start and end with <> are HTML and skip the regex check + match = [ null, selector, null ]; + + } else { + match = rquickExpr.exec( selector ); + } + + // Match html or make sure no context is specified for #id + if ( match && (match[1] || !context) ) { + + // HANDLE: $(html) -> $(array) + if ( match[1] ) { + context = context instanceof jQuery ? context[0] : context; + + // scripts is true for back-compat + // Intentionally let the error be thrown if parseHTML is not present + jQuery.merge( this, jQuery.parseHTML( + match[1], + context && context.nodeType ? context.ownerDocument || context : document, + true + ) ); + + // HANDLE: $(html, props) + if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) { + for ( match in context ) { + // Properties of context are called as methods if possible + if ( jQuery.isFunction( this[ match ] ) ) { + this[ match ]( context[ match ] ); + + // ...and otherwise set as attributes + } else { + this.attr( match, context[ match ] ); + } + } + } + + return this; + + // HANDLE: $(#id) + } else { + elem = document.getElementById( match[2] ); + + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + if ( elem && elem.parentNode ) { + // Handle the case where IE and Opera return items + // by name instead of ID + if ( elem.id !== match[2] ) { + return rootjQuery.find( selector ); + } + + // Otherwise, we inject the element directly into the jQuery object + this.length = 1; + this[0] = elem; + } + + this.context = document; + this.selector = selector; + return this; + } + + // HANDLE: $(expr, $(...)) + } else if ( !context || context.jquery ) { + return ( context || rootjQuery ).find( selector ); + + // HANDLE: $(expr, context) + // (which is just equivalent to: $(context).find(expr) + } else { + return this.constructor( context ).find( selector ); + } + + // HANDLE: $(DOMElement) + } else if ( selector.nodeType ) { + this.context = this[0] = selector; + this.length = 1; + return this; + + // HANDLE: $(function) + // Shortcut for document ready + } else if ( jQuery.isFunction( selector ) ) { + return typeof rootjQuery.ready !== "undefined" ? + rootjQuery.ready( selector ) : + // Execute immediately if ready is not present + selector( jQuery ); + } + + if ( selector.selector !== undefined ) { + this.selector = selector.selector; + this.context = selector.context; + } + + return jQuery.makeArray( selector, this ); + }; + +// Give the init function the jQuery prototype for later instantiation +init.prototype = jQuery.fn; + +// Initialize central reference +rootjQuery = jQuery( document ); + + +var rparentsprev = /^(?:parents|prev(?:Until|All))/, + // methods guaranteed to produce a unique set when starting from a unique set + guaranteedUnique = { + children: true, + contents: true, + next: true, + prev: true + }; + +jQuery.extend({ + dir: function( elem, dir, until ) { + var matched = [], + cur = elem[ dir ]; + + while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { + if ( cur.nodeType === 1 ) { + matched.push( cur ); + } + cur = cur[dir]; + } + return matched; + }, + + sibling: function( n, elem ) { + var r = []; + + for ( ; n; n = n.nextSibling ) { + if ( n.nodeType === 1 && n !== elem ) { + r.push( n ); + } + } + + return r; + } +}); + +jQuery.fn.extend({ + has: function( target ) { + var i, + targets = jQuery( target, this ), + len = targets.length; + + return this.filter(function() { + for ( i = 0; i < len; i++ ) { + if ( jQuery.contains( this, targets[i] ) ) { + return true; + } + } + }); + }, + + closest: function( selectors, context ) { + var cur, + i = 0, + l = this.length, + matched = [], + pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ? + jQuery( selectors, context || this.context ) : + 0; + + for ( ; i < l; i++ ) { + for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) { + // Always skip document fragments + if ( cur.nodeType < 11 && (pos ? + pos.index(cur) > -1 : + + // Don't pass non-elements to Sizzle + cur.nodeType === 1 && + jQuery.find.matchesSelector(cur, selectors)) ) { + + matched.push( cur ); + break; + } + } + } + + return this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched ); + }, + + // Determine the position of an element within + // the matched set of elements + index: function( elem ) { + + // No argument, return index in parent + if ( !elem ) { + return ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1; + } + + // index in selector + if ( typeof elem === "string" ) { + return jQuery.inArray( this[0], jQuery( elem ) ); + } + + // Locate the position of the desired element + return jQuery.inArray( + // If it receives a jQuery object, the first element is used + elem.jquery ? elem[0] : elem, this ); + }, + + add: function( selector, context ) { + return this.pushStack( + jQuery.unique( + jQuery.merge( this.get(), jQuery( selector, context ) ) + ) + ); + }, + + addBack: function( selector ) { + return this.add( selector == null ? + this.prevObject : this.prevObject.filter(selector) + ); + } +}); + +function sibling( cur, dir ) { + do { + cur = cur[ dir ]; + } while ( cur && cur.nodeType !== 1 ); + + return cur; +} + +jQuery.each({ + parent: function( elem ) { + var parent = elem.parentNode; + return parent && parent.nodeType !== 11 ? parent : null; + }, + parents: function( elem ) { + return jQuery.dir( elem, "parentNode" ); + }, + parentsUntil: function( elem, i, until ) { + return jQuery.dir( elem, "parentNode", until ); + }, + next: function( elem ) { + return sibling( elem, "nextSibling" ); + }, + prev: function( elem ) { + return sibling( elem, "previousSibling" ); + }, + nextAll: function( elem ) { + return jQuery.dir( elem, "nextSibling" ); + }, + prevAll: function( elem ) { + return jQuery.dir( elem, "previousSibling" ); + }, + nextUntil: function( elem, i, until ) { + return jQuery.dir( elem, "nextSibling", until ); + }, + prevUntil: function( elem, i, until ) { + return jQuery.dir( elem, "previousSibling", until ); + }, + siblings: function( elem ) { + return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem ); + }, + children: function( elem ) { + return jQuery.sibling( elem.firstChild ); + }, + contents: function( elem ) { + return jQuery.nodeName( elem, "iframe" ) ? + elem.contentDocument || elem.contentWindow.document : + jQuery.merge( [], elem.childNodes ); + } +}, function( name, fn ) { + jQuery.fn[ name ] = function( until, selector ) { + var ret = jQuery.map( this, fn, until ); + + if ( name.slice( -5 ) !== "Until" ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + if ( this.length > 1 ) { + // Remove duplicates + if ( !guaranteedUnique[ name ] ) { + ret = jQuery.unique( ret ); + } + + // Reverse order for parents* and prev-derivatives + if ( rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + } + + return this.pushStack( ret ); + }; +}); +var rnotwhite = (/\S+/g); + + + +// String to Object options format cache +var optionsCache = {}; + +// Convert String-formatted options into Object-formatted ones and store in cache +function createOptions( options ) { + var object = optionsCache[ options ] = {}; + jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) { + object[ flag ] = true; + }); + return object; +} + +/* + * Create a callback list using the following parameters: + * + * options: an optional list of space-separated options that will change how + * the callback list behaves or a more traditional option object + * + * By default a callback list will act like an event callback list and can be + * "fired" multiple times. + * + * Possible options: + * + * once: will ensure the callback list can only be fired once (like a Deferred) + * + * memory: will keep track of previous values and will call any callback added + * after the list has been fired right away with the latest "memorized" + * values (like a Deferred) + * + * unique: will ensure a callback can only be added once (no duplicate in the list) + * + * stopOnFalse: interrupt callings when a callback returns false + * + */ +jQuery.Callbacks = function( options ) { + + // Convert options from String-formatted to Object-formatted if needed + // (we check in cache first) + options = typeof options === "string" ? + ( optionsCache[ options ] || createOptions( options ) ) : + jQuery.extend( {}, options ); + + var // Flag to know if list is currently firing + firing, + // Last fire value (for non-forgettable lists) + memory, + // Flag to know if list was already fired + fired, + // End of the loop when firing + firingLength, + // Index of currently firing callback (modified by remove if needed) + firingIndex, + // First callback to fire (used internally by add and fireWith) + firingStart, + // Actual callback list + list = [], + // Stack of fire calls for repeatable lists + stack = !options.once && [], + // Fire callbacks + fire = function( data ) { + memory = options.memory && data; + fired = true; + firingIndex = firingStart || 0; + firingStart = 0; + firingLength = list.length; + firing = true; + for ( ; list && firingIndex < firingLength; firingIndex++ ) { + if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) { + memory = false; // To prevent further calls using add + break; + } + } + firing = false; + if ( list ) { + if ( stack ) { + if ( stack.length ) { + fire( stack.shift() ); + } + } else if ( memory ) { + list = []; + } else { + self.disable(); + } + } + }, + // Actual Callbacks object + self = { + // Add a callback or a collection of callbacks to the list + add: function() { + if ( list ) { + // First, we save the current length + var start = list.length; + (function add( args ) { + jQuery.each( args, function( _, arg ) { + var type = jQuery.type( arg ); + if ( type === "function" ) { + if ( !options.unique || !self.has( arg ) ) { + list.push( arg ); + } + } else if ( arg && arg.length && type !== "string" ) { + // Inspect recursively + add( arg ); + } + }); + })( arguments ); + // Do we need to add the callbacks to the + // current firing batch? + if ( firing ) { + firingLength = list.length; + // With memory, if we're not firing then + // we should call right away + } else if ( memory ) { + firingStart = start; + fire( memory ); + } + } + return this; + }, + // Remove a callback from the list + remove: function() { + if ( list ) { + jQuery.each( arguments, function( _, arg ) { + var index; + while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { + list.splice( index, 1 ); + // Handle firing indexes + if ( firing ) { + if ( index <= firingLength ) { + firingLength--; + } + if ( index <= firingIndex ) { + firingIndex--; + } + } + } + }); + } + return this; + }, + // Check if a given callback is in the list. + // If no argument is given, return whether or not list has callbacks attached. + has: function( fn ) { + return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length ); + }, + // Remove all callbacks from the list + empty: function() { + list = []; + firingLength = 0; + return this; + }, + // Have the list do nothing anymore + disable: function() { + list = stack = memory = undefined; + return this; + }, + // Is it disabled? + disabled: function() { + return !list; + }, + // Lock the list in its current state + lock: function() { + stack = undefined; + if ( !memory ) { + self.disable(); + } + return this; + }, + // Is it locked? + locked: function() { + return !stack; + }, + // Call all callbacks with the given context and arguments + fireWith: function( context, args ) { + if ( list && ( !fired || stack ) ) { + args = args || []; + args = [ context, args.slice ? args.slice() : args ]; + if ( firing ) { + stack.push( args ); + } else { + fire( args ); + } + } + return this; + }, + // Call all the callbacks with the given arguments + fire: function() { + self.fireWith( this, arguments ); + return this; + }, + // To know if the callbacks have already been called at least once + fired: function() { + return !!fired; + } + }; + + return self; +}; + + +jQuery.extend({ + + Deferred: function( func ) { + var tuples = [ + // action, add listener, listener list, final state + [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ], + [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ], + [ "notify", "progress", jQuery.Callbacks("memory") ] + ], + state = "pending", + promise = { + state: function() { + return state; + }, + always: function() { + deferred.done( arguments ).fail( arguments ); + return this; + }, + then: function( /* fnDone, fnFail, fnProgress */ ) { + var fns = arguments; + return jQuery.Deferred(function( newDefer ) { + jQuery.each( tuples, function( i, tuple ) { + var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ]; + // deferred[ done | fail | progress ] for forwarding actions to newDefer + deferred[ tuple[1] ](function() { + var returned = fn && fn.apply( this, arguments ); + if ( returned && jQuery.isFunction( returned.promise ) ) { + returned.promise() + .done( newDefer.resolve ) + .fail( newDefer.reject ) + .progress( newDefer.notify ); + } else { + newDefer[ tuple[ 0 ] + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments ); + } + }); + }); + fns = null; + }).promise(); + }, + // Get a promise for this deferred + // If obj is provided, the promise aspect is added to the object + promise: function( obj ) { + return obj != null ? jQuery.extend( obj, promise ) : promise; + } + }, + deferred = {}; + + // Keep pipe for back-compat + promise.pipe = promise.then; + + // Add list-specific methods + jQuery.each( tuples, function( i, tuple ) { + var list = tuple[ 2 ], + stateString = tuple[ 3 ]; + + // promise[ done | fail | progress ] = list.add + promise[ tuple[1] ] = list.add; + + // Handle state + if ( stateString ) { + list.add(function() { + // state = [ resolved | rejected ] + state = stateString; + + // [ reject_list | resolve_list ].disable; progress_list.lock + }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); + } + + // deferred[ resolve | reject | notify ] + deferred[ tuple[0] ] = function() { + deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments ); + return this; + }; + deferred[ tuple[0] + "With" ] = list.fireWith; + }); + + // Make the deferred a promise + promise.promise( deferred ); + + // Call given func if any + if ( func ) { + func.call( deferred, deferred ); + } + + // All done! + return deferred; + }, + + // Deferred helper + when: function( subordinate /* , ..., subordinateN */ ) { + var i = 0, + resolveValues = slice.call( arguments ), + length = resolveValues.length, + + // the count of uncompleted subordinates + remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, + + // the master Deferred. If resolveValues consist of only a single Deferred, just use that. + deferred = remaining === 1 ? subordinate : jQuery.Deferred(), + + // Update function for both resolve and progress values + updateFunc = function( i, contexts, values ) { + return function( value ) { + contexts[ i ] = this; + values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; + if ( values === progressValues ) { + deferred.notifyWith( contexts, values ); + + } else if ( !(--remaining) ) { + deferred.resolveWith( contexts, values ); + } + }; + }, + + progressValues, progressContexts, resolveContexts; + + // add listeners to Deferred subordinates; treat others as resolved + if ( length > 1 ) { + progressValues = new Array( length ); + progressContexts = new Array( length ); + resolveContexts = new Array( length ); + for ( ; i < length; i++ ) { + if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { + resolveValues[ i ].promise() + .done( updateFunc( i, resolveContexts, resolveValues ) ) + .fail( deferred.reject ) + .progress( updateFunc( i, progressContexts, progressValues ) ); + } else { + --remaining; + } + } + } + + // if we're not waiting on anything, resolve the master + if ( !remaining ) { + deferred.resolveWith( resolveContexts, resolveValues ); + } + + return deferred.promise(); + } +}); + + +// The deferred used on DOM ready +var readyList; + +jQuery.fn.ready = function( fn ) { + // Add the callback + jQuery.ready.promise().done( fn ); + + return this; +}; + +jQuery.extend({ + // Is the DOM ready to be used? Set to true once it occurs. + isReady: false, + + // A counter to track how many items to wait for before + // the ready event fires. See #6781 + readyWait: 1, + + // Hold (or release) the ready event + holdReady: function( hold ) { + if ( hold ) { + jQuery.readyWait++; + } else { + jQuery.ready( true ); + } + }, + + // Handle when the DOM is ready + ready: function( wait ) { + + // Abort if there are pending holds or we're already ready + if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { + return; + } + + // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). + if ( !document.body ) { + return setTimeout( jQuery.ready ); + } + + // Remember that the DOM is ready + jQuery.isReady = true; + + // If a normal DOM Ready event fired, decrement, and wait if need be + if ( wait !== true && --jQuery.readyWait > 0 ) { + return; + } + + // If there are functions bound, to execute + readyList.resolveWith( document, [ jQuery ] ); + + // Trigger any bound ready events + if ( jQuery.fn.triggerHandler ) { + jQuery( document ).triggerHandler( "ready" ); + jQuery( document ).off( "ready" ); + } + } +}); + +/** + * Clean-up method for dom ready events + */ +function detach() { + if ( document.addEventListener ) { + document.removeEventListener( "DOMContentLoaded", completed, false ); + window.removeEventListener( "load", completed, false ); + + } else { + document.detachEvent( "onreadystatechange", completed ); + window.detachEvent( "onload", completed ); + } +} + +/** + * The ready event handler and self cleanup method + */ +function completed() { + // readyState === "complete" is good enough for us to call the dom ready in oldIE + if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) { + detach(); + jQuery.ready(); + } +} + +jQuery.ready.promise = function( obj ) { + if ( !readyList ) { + + readyList = jQuery.Deferred(); + + // Catch cases where $(document).ready() is called after the browser event has already occurred. + // we once tried to use readyState "interactive" here, but it caused issues like the one + // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 + if ( document.readyState === "complete" ) { + // Handle it asynchronously to allow scripts the opportunity to delay ready + setTimeout( jQuery.ready ); + + // Standards-based browsers support DOMContentLoaded + } else if ( document.addEventListener ) { + // Use the handy event callback + document.addEventListener( "DOMContentLoaded", completed, false ); + + // A fallback to window.onload, that will always work + window.addEventListener( "load", completed, false ); + + // If IE event model is used + } else { + // Ensure firing before onload, maybe late but safe also for iframes + document.attachEvent( "onreadystatechange", completed ); + + // A fallback to window.onload, that will always work + window.attachEvent( "onload", completed ); + + // If IE and not a frame + // continually check to see if the document is ready + var top = false; + + try { + top = window.frameElement == null && document.documentElement; + } catch(e) {} + + if ( top && top.doScroll ) { + (function doScrollCheck() { + if ( !jQuery.isReady ) { + + try { + // Use the trick by Diego Perini + // http://javascript.nwbox.com/IEContentLoaded/ + top.doScroll("left"); + } catch(e) { + return setTimeout( doScrollCheck, 50 ); + } + + // detach all dom ready events + detach(); + + // and execute any waiting functions + jQuery.ready(); + } + })(); + } + } + } + return readyList.promise( obj ); +}; + + +var strundefined = typeof undefined; + + + +// Support: IE<9 +// Iteration over object's inherited properties before its own +var i; +for ( i in jQuery( support ) ) { + break; +} +support.ownLast = i !== "0"; + +// Note: most support tests are defined in their respective modules. +// false until the test is run +support.inlineBlockNeedsLayout = false; + +// Execute ASAP in case we need to set body.style.zoom +jQuery(function() { + // Minified: var a,b,c,d + var val, div, body, container; + + body = document.getElementsByTagName( "body" )[ 0 ]; + if ( !body || !body.style ) { + // Return for frameset docs that don't have a body + return; + } + + // Setup + div = document.createElement( "div" ); + container = document.createElement( "div" ); + container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px"; + body.appendChild( container ).appendChild( div ); + + if ( typeof div.style.zoom !== strundefined ) { + // Support: IE<8 + // Check if natively block-level elements act like inline-block + // elements when setting their display to 'inline' and giving + // them layout + div.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1"; + + support.inlineBlockNeedsLayout = val = div.offsetWidth === 3; + if ( val ) { + // Prevent IE 6 from affecting layout for positioned elements #11048 + // Prevent IE from shrinking the body in IE 7 mode #12869 + // Support: IE<8 + body.style.zoom = 1; + } + } + + body.removeChild( container ); +}); + + + + +(function() { + var div = document.createElement( "div" ); + + // Execute the test only if not already executed in another module. + if (support.deleteExpando == null) { + // Support: IE<9 + support.deleteExpando = true; + try { + delete div.test; + } catch( e ) { + support.deleteExpando = false; + } + } + + // Null elements to avoid leaks in IE. + div = null; +})(); + + +/** + * Determines whether an object can have data + */ +jQuery.acceptData = function( elem ) { + var noData = jQuery.noData[ (elem.nodeName + " ").toLowerCase() ], + nodeType = +elem.nodeType || 1; + + // Do not set data on non-element DOM nodes because it will not be cleared (#8335). + return nodeType !== 1 && nodeType !== 9 ? + false : + + // Nodes accept data unless otherwise specified; rejection can be conditional + !noData || noData !== true && elem.getAttribute("classid") === noData; +}; + + +var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, + rmultiDash = /([A-Z])/g; + +function dataAttr( elem, key, data ) { + // If nothing was found internally, try to fetch any + // data from the HTML5 data-* attribute + if ( data === undefined && elem.nodeType === 1 ) { + + var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); + + data = elem.getAttribute( name ); + + if ( typeof data === "string" ) { + try { + data = data === "true" ? true : + data === "false" ? false : + data === "null" ? null : + // Only convert to a number if it doesn't change the string + +data + "" === data ? +data : + rbrace.test( data ) ? jQuery.parseJSON( data ) : + data; + } catch( e ) {} + + // Make sure we set the data so it isn't changed later + jQuery.data( elem, key, data ); + + } else { + data = undefined; + } + } + + return data; +} + +// checks a cache object for emptiness +function isEmptyDataObject( obj ) { + var name; + for ( name in obj ) { + + // if the public data object is empty, the private is still empty + if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) { + continue; + } + if ( name !== "toJSON" ) { + return false; + } + } + + return true; +} + +function internalData( elem, name, data, pvt /* Internal Use Only */ ) { + if ( !jQuery.acceptData( elem ) ) { + return; + } + + var ret, thisCache, + internalKey = jQuery.expando, + + // We have to handle DOM nodes and JS objects differently because IE6-7 + // can't GC object references properly across the DOM-JS boundary + isNode = elem.nodeType, + + // Only DOM nodes need the global jQuery cache; JS object data is + // attached directly to the object so GC can occur automatically + cache = isNode ? jQuery.cache : elem, + + // Only defining an ID for JS objects if its cache already exists allows + // the code to shortcut on the same path as a DOM node with no cache + id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey; + + // Avoid doing any more work than we need to when trying to get data on an + // object that has no data at all + if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) { + return; + } + + if ( !id ) { + // Only DOM nodes need a new unique ID for each element since their data + // ends up in the global cache + if ( isNode ) { + id = elem[ internalKey ] = deletedIds.pop() || jQuery.guid++; + } else { + id = internalKey; + } + } + + if ( !cache[ id ] ) { + // Avoid exposing jQuery metadata on plain JS objects when the object + // is serialized using JSON.stringify + cache[ id ] = isNode ? {} : { toJSON: jQuery.noop }; + } + + // An object can be passed to jQuery.data instead of a key/value pair; this gets + // shallow copied over onto the existing cache + if ( typeof name === "object" || typeof name === "function" ) { + if ( pvt ) { + cache[ id ] = jQuery.extend( cache[ id ], name ); + } else { + cache[ id ].data = jQuery.extend( cache[ id ].data, name ); + } + } + + thisCache = cache[ id ]; + + // jQuery data() is stored in a separate object inside the object's internal data + // cache in order to avoid key collisions between internal data and user-defined + // data. + if ( !pvt ) { + if ( !thisCache.data ) { + thisCache.data = {}; + } + + thisCache = thisCache.data; + } + + if ( data !== undefined ) { + thisCache[ jQuery.camelCase( name ) ] = data; + } + + // Check for both converted-to-camel and non-converted data property names + // If a data property was specified + if ( typeof name === "string" ) { + + // First Try to find as-is property data + ret = thisCache[ name ]; + + // Test for null|undefined property data + if ( ret == null ) { + + // Try to find the camelCased property + ret = thisCache[ jQuery.camelCase( name ) ]; + } + } else { + ret = thisCache; + } + + return ret; +} + +function internalRemoveData( elem, name, pvt ) { + if ( !jQuery.acceptData( elem ) ) { + return; + } + + var thisCache, i, + isNode = elem.nodeType, + + // See jQuery.data for more information + cache = isNode ? jQuery.cache : elem, + id = isNode ? elem[ jQuery.expando ] : jQuery.expando; + + // If there is already no cache entry for this object, there is no + // purpose in continuing + if ( !cache[ id ] ) { + return; + } + + if ( name ) { + + thisCache = pvt ? cache[ id ] : cache[ id ].data; + + if ( thisCache ) { + + // Support array or space separated string names for data keys + if ( !jQuery.isArray( name ) ) { + + // try the string as a key before any manipulation + if ( name in thisCache ) { + name = [ name ]; + } else { + + // split the camel cased version by spaces unless a key with the spaces exists + name = jQuery.camelCase( name ); + if ( name in thisCache ) { + name = [ name ]; + } else { + name = name.split(" "); + } + } + } else { + // If "name" is an array of keys... + // When data is initially created, via ("key", "val") signature, + // keys will be converted to camelCase. + // Since there is no way to tell _how_ a key was added, remove + // both plain key and camelCase key. #12786 + // This will only penalize the array argument path. + name = name.concat( jQuery.map( name, jQuery.camelCase ) ); + } + + i = name.length; + while ( i-- ) { + delete thisCache[ name[i] ]; + } + + // If there is no data left in the cache, we want to continue + // and let the cache object itself get destroyed + if ( pvt ? !isEmptyDataObject(thisCache) : !jQuery.isEmptyObject(thisCache) ) { + return; + } + } + } + + // See jQuery.data for more information + if ( !pvt ) { + delete cache[ id ].data; + + // Don't destroy the parent cache unless the internal data object + // had been the only thing left in it + if ( !isEmptyDataObject( cache[ id ] ) ) { + return; + } + } + + // Destroy the cache + if ( isNode ) { + jQuery.cleanData( [ elem ], true ); + + // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080) + /* jshint eqeqeq: false */ + } else if ( support.deleteExpando || cache != cache.window ) { + /* jshint eqeqeq: true */ + delete cache[ id ]; + + // When all else fails, null + } else { + cache[ id ] = null; + } +} + +jQuery.extend({ + cache: {}, + + // The following elements (space-suffixed to avoid Object.prototype collisions) + // throw uncatchable exceptions if you attempt to set expando properties + noData: { + "applet ": true, + "embed ": true, + // ...but Flash objects (which have this classid) *can* handle expandos + "object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" + }, + + hasData: function( elem ) { + elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ]; + return !!elem && !isEmptyDataObject( elem ); + }, + + data: function( elem, name, data ) { + return internalData( elem, name, data ); + }, + + removeData: function( elem, name ) { + return internalRemoveData( elem, name ); + }, + + // For internal use only. + _data: function( elem, name, data ) { + return internalData( elem, name, data, true ); + }, + + _removeData: function( elem, name ) { + return internalRemoveData( elem, name, true ); + } +}); + +jQuery.fn.extend({ + data: function( key, value ) { + var i, name, data, + elem = this[0], + attrs = elem && elem.attributes; + + // Special expections of .data basically thwart jQuery.access, + // so implement the relevant behavior ourselves + + // Gets all values + if ( key === undefined ) { + if ( this.length ) { + data = jQuery.data( elem ); + + if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) { + i = attrs.length; + while ( i-- ) { + + // Support: IE11+ + // The attrs elements can be null (#14894) + if ( attrs[ i ] ) { + name = attrs[ i ].name; + if ( name.indexOf( "data-" ) === 0 ) { + name = jQuery.camelCase( name.slice(5) ); + dataAttr( elem, name, data[ name ] ); + } + } + } + jQuery._data( elem, "parsedAttrs", true ); + } + } + + return data; + } + + // Sets multiple values + if ( typeof key === "object" ) { + return this.each(function() { + jQuery.data( this, key ); + }); + } + + return arguments.length > 1 ? + + // Sets one value + this.each(function() { + jQuery.data( this, key, value ); + }) : + + // Gets one value + // Try to fetch any internally stored data first + elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : undefined; + }, + + removeData: function( key ) { + return this.each(function() { + jQuery.removeData( this, key ); + }); + } +}); + + +jQuery.extend({ + queue: function( elem, type, data ) { + var queue; + + if ( elem ) { + type = ( type || "fx" ) + "queue"; + queue = jQuery._data( elem, type ); + + // Speed up dequeue by getting out quickly if this is just a lookup + if ( data ) { + if ( !queue || jQuery.isArray(data) ) { + queue = jQuery._data( elem, type, jQuery.makeArray(data) ); + } else { + queue.push( data ); + } + } + return queue || []; + } + }, + + dequeue: function( elem, type ) { + type = type || "fx"; + + var queue = jQuery.queue( elem, type ), + startLength = queue.length, + fn = queue.shift(), + hooks = jQuery._queueHooks( elem, type ), + next = function() { + jQuery.dequeue( elem, type ); + }; + + // If the fx queue is dequeued, always remove the progress sentinel + if ( fn === "inprogress" ) { + fn = queue.shift(); + startLength--; + } + + if ( fn ) { + + // Add a progress sentinel to prevent the fx queue from being + // automatically dequeued + if ( type === "fx" ) { + queue.unshift( "inprogress" ); + } + + // clear up the last queue stop function + delete hooks.stop; + fn.call( elem, next, hooks ); + } + + if ( !startLength && hooks ) { + hooks.empty.fire(); + } + }, + + // not intended for public consumption - generates a queueHooks object, or returns the current one + _queueHooks: function( elem, type ) { + var key = type + "queueHooks"; + return jQuery._data( elem, key ) || jQuery._data( elem, key, { + empty: jQuery.Callbacks("once memory").add(function() { + jQuery._removeData( elem, type + "queue" ); + jQuery._removeData( elem, key ); + }) + }); + } +}); + +jQuery.fn.extend({ + queue: function( type, data ) { + var setter = 2; + + if ( typeof type !== "string" ) { + data = type; + type = "fx"; + setter--; + } + + if ( arguments.length < setter ) { + return jQuery.queue( this[0], type ); + } + + return data === undefined ? + this : + this.each(function() { + var queue = jQuery.queue( this, type, data ); + + // ensure a hooks for this queue + jQuery._queueHooks( this, type ); + + if ( type === "fx" && queue[0] !== "inprogress" ) { + jQuery.dequeue( this, type ); + } + }); + }, + dequeue: function( type ) { + return this.each(function() { + jQuery.dequeue( this, type ); + }); + }, + clearQueue: function( type ) { + return this.queue( type || "fx", [] ); + }, + // Get a promise resolved when queues of a certain type + // are emptied (fx is the type by default) + promise: function( type, obj ) { + var tmp, + count = 1, + defer = jQuery.Deferred(), + elements = this, + i = this.length, + resolve = function() { + if ( !( --count ) ) { + defer.resolveWith( elements, [ elements ] ); + } + }; + + if ( typeof type !== "string" ) { + obj = type; + type = undefined; + } + type = type || "fx"; + + while ( i-- ) { + tmp = jQuery._data( elements[ i ], type + "queueHooks" ); + if ( tmp && tmp.empty ) { + count++; + tmp.empty.add( resolve ); + } + } + resolve(); + return defer.promise( obj ); + } +}); +var pnum = (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source; + +var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; + +var isHidden = function( elem, el ) { + // isHidden might be called from jQuery#filter function; + // in that case, element will be second argument + elem = el || elem; + return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); + }; + + + +// Multifunctional method to get and set values of a collection +// The value/s can optionally be executed if it's a function +var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) { + var i = 0, + length = elems.length, + bulk = key == null; + + // Sets many values + if ( jQuery.type( key ) === "object" ) { + chainable = true; + for ( i in key ) { + jQuery.access( elems, fn, i, key[i], true, emptyGet, raw ); + } + + // Sets one value + } else if ( value !== undefined ) { + chainable = true; + + if ( !jQuery.isFunction( value ) ) { + raw = true; + } + + if ( bulk ) { + // Bulk operations run against the entire set + if ( raw ) { + fn.call( elems, value ); + fn = null; + + // ...except when executing function values + } else { + bulk = fn; + fn = function( elem, key, value ) { + return bulk.call( jQuery( elem ), value ); + }; + } + } + + if ( fn ) { + for ( ; i < length; i++ ) { + fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) ); + } + } + } + + return chainable ? + elems : + + // Gets + bulk ? + fn.call( elems ) : + length ? fn( elems[0], key ) : emptyGet; +}; +var rcheckableType = (/^(?:checkbox|radio)$/i); + + + +(function() { + // Minified: var a,b,c + var input = document.createElement( "input" ), + div = document.createElement( "div" ), + fragment = document.createDocumentFragment(); + + // Setup + div.innerHTML = "
    a"; + + // IE strips leading whitespace when .innerHTML is used + support.leadingWhitespace = div.firstChild.nodeType === 3; + + // Make sure that tbody elements aren't automatically inserted + // IE will insert them into empty tables + support.tbody = !div.getElementsByTagName( "tbody" ).length; + + // Make sure that link elements get serialized correctly by innerHTML + // This requires a wrapper element in IE + support.htmlSerialize = !!div.getElementsByTagName( "link" ).length; + + // Makes sure cloning an html5 element does not cause problems + // Where outerHTML is undefined, this still works + support.html5Clone = + document.createElement( "nav" ).cloneNode( true ).outerHTML !== "<:nav>"; + + // Check if a disconnected checkbox will retain its checked + // value of true after appended to the DOM (IE6/7) + input.type = "checkbox"; + input.checked = true; + fragment.appendChild( input ); + support.appendChecked = input.checked; + + // Make sure textarea (and checkbox) defaultValue is properly cloned + // Support: IE6-IE11+ + div.innerHTML = ""; + support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; + + // #11217 - WebKit loses check when the name is after the checked attribute + fragment.appendChild( div ); + div.innerHTML = ""; + + // Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3 + // old WebKit doesn't clone checked state correctly in fragments + support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; + + // Support: IE<9 + // Opera does not clone events (and typeof div.attachEvent === undefined). + // IE9-10 clones events bound via attachEvent, but they don't trigger with .click() + support.noCloneEvent = true; + if ( div.attachEvent ) { + div.attachEvent( "onclick", function() { + support.noCloneEvent = false; + }); + + div.cloneNode( true ).click(); + } + + // Execute the test only if not already executed in another module. + if (support.deleteExpando == null) { + // Support: IE<9 + support.deleteExpando = true; + try { + delete div.test; + } catch( e ) { + support.deleteExpando = false; + } + } +})(); + + +(function() { + var i, eventName, + div = document.createElement( "div" ); + + // Support: IE<9 (lack submit/change bubble), Firefox 23+ (lack focusin event) + for ( i in { submit: true, change: true, focusin: true }) { + eventName = "on" + i; + + if ( !(support[ i + "Bubbles" ] = eventName in window) ) { + // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP) + div.setAttribute( eventName, "t" ); + support[ i + "Bubbles" ] = div.attributes[ eventName ].expando === false; + } + } + + // Null elements to avoid leaks in IE. + div = null; +})(); + + +var rformElems = /^(?:input|select|textarea)$/i, + rkeyEvent = /^key/, + rmouseEvent = /^(?:mouse|pointer|contextmenu)|click/, + rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, + rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; + +function returnTrue() { + return true; +} + +function returnFalse() { + return false; +} + +function safeActiveElement() { + try { + return document.activeElement; + } catch ( err ) { } +} + +/* + * Helper functions for managing events -- not part of the public interface. + * Props to Dean Edwards' addEvent library for many of the ideas. + */ +jQuery.event = { + + global: {}, + + add: function( elem, types, handler, data, selector ) { + var tmp, events, t, handleObjIn, + special, eventHandle, handleObj, + handlers, type, namespaces, origType, + elemData = jQuery._data( elem ); + + // Don't attach events to noData or text/comment nodes (but allow plain objects) + if ( !elemData ) { + return; + } + + // Caller can pass in an object of custom data in lieu of the handler + if ( handler.handler ) { + handleObjIn = handler; + handler = handleObjIn.handler; + selector = handleObjIn.selector; + } + + // Make sure that the handler has a unique ID, used to find/remove it later + if ( !handler.guid ) { + handler.guid = jQuery.guid++; + } + + // Init the element's event structure and main handler, if this is the first + if ( !(events = elemData.events) ) { + events = elemData.events = {}; + } + if ( !(eventHandle = elemData.handle) ) { + eventHandle = elemData.handle = function( e ) { + // Discard the second event of a jQuery.event.trigger() and + // when an event is called after a page has unloaded + return typeof jQuery !== strundefined && (!e || jQuery.event.triggered !== e.type) ? + jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : + undefined; + }; + // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events + eventHandle.elem = elem; + } + + // Handle multiple events separated by a space + types = ( types || "" ).match( rnotwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[t] ) || []; + type = origType = tmp[1]; + namespaces = ( tmp[2] || "" ).split( "." ).sort(); + + // There *must* be a type, no attaching namespace-only handlers + if ( !type ) { + continue; + } + + // If event changes its type, use the special event handlers for the changed type + special = jQuery.event.special[ type ] || {}; + + // If selector defined, determine special event api type, otherwise given type + type = ( selector ? special.delegateType : special.bindType ) || type; + + // Update special based on newly reset type + special = jQuery.event.special[ type ] || {}; + + // handleObj is passed to all event handlers + handleObj = jQuery.extend({ + type: type, + origType: origType, + data: data, + handler: handler, + guid: handler.guid, + selector: selector, + needsContext: selector && jQuery.expr.match.needsContext.test( selector ), + namespace: namespaces.join(".") + }, handleObjIn ); + + // Init the event handler queue if we're the first + if ( !(handlers = events[ type ]) ) { + handlers = events[ type ] = []; + handlers.delegateCount = 0; + + // Only use addEventListener/attachEvent if the special events handler returns false + if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { + // Bind the global event handler to the element + if ( elem.addEventListener ) { + elem.addEventListener( type, eventHandle, false ); + + } else if ( elem.attachEvent ) { + elem.attachEvent( "on" + type, eventHandle ); + } + } + } + + if ( special.add ) { + special.add.call( elem, handleObj ); + + if ( !handleObj.handler.guid ) { + handleObj.handler.guid = handler.guid; + } + } + + // Add to the element's handler list, delegates in front + if ( selector ) { + handlers.splice( handlers.delegateCount++, 0, handleObj ); + } else { + handlers.push( handleObj ); + } + + // Keep track of which events have ever been used, for event optimization + jQuery.event.global[ type ] = true; + } + + // Nullify elem to prevent memory leaks in IE + elem = null; + }, + + // Detach an event or set of events from an element + remove: function( elem, types, handler, selector, mappedTypes ) { + var j, handleObj, tmp, + origCount, t, events, + special, handlers, type, + namespaces, origType, + elemData = jQuery.hasData( elem ) && jQuery._data( elem ); + + if ( !elemData || !(events = elemData.events) ) { + return; + } + + // Once for each type.namespace in types; type may be omitted + types = ( types || "" ).match( rnotwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[t] ) || []; + type = origType = tmp[1]; + namespaces = ( tmp[2] || "" ).split( "." ).sort(); + + // Unbind all events (on this namespace, if provided) for the element + if ( !type ) { + for ( type in events ) { + jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); + } + continue; + } + + special = jQuery.event.special[ type ] || {}; + type = ( selector ? special.delegateType : special.bindType ) || type; + handlers = events[ type ] || []; + tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ); + + // Remove matching events + origCount = j = handlers.length; + while ( j-- ) { + handleObj = handlers[ j ]; + + if ( ( mappedTypes || origType === handleObj.origType ) && + ( !handler || handler.guid === handleObj.guid ) && + ( !tmp || tmp.test( handleObj.namespace ) ) && + ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { + handlers.splice( j, 1 ); + + if ( handleObj.selector ) { + handlers.delegateCount--; + } + if ( special.remove ) { + special.remove.call( elem, handleObj ); + } + } + } + + // Remove generic event handler if we removed something and no more handlers exist + // (avoids potential for endless recursion during removal of special event handlers) + if ( origCount && !handlers.length ) { + if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { + jQuery.removeEvent( elem, type, elemData.handle ); + } + + delete events[ type ]; + } + } + + // Remove the expando if it's no longer used + if ( jQuery.isEmptyObject( events ) ) { + delete elemData.handle; + + // removeData also checks for emptiness and clears the expando if empty + // so use it instead of delete + jQuery._removeData( elem, "events" ); + } + }, + + trigger: function( event, data, elem, onlyHandlers ) { + var handle, ontype, cur, + bubbleType, special, tmp, i, + eventPath = [ elem || document ], + type = hasOwn.call( event, "type" ) ? event.type : event, + namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : []; + + cur = tmp = elem = elem || document; + + // Don't do events on text and comment nodes + if ( elem.nodeType === 3 || elem.nodeType === 8 ) { + return; + } + + // focus/blur morphs to focusin/out; ensure we're not firing them right now + if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { + return; + } + + if ( type.indexOf(".") >= 0 ) { + // Namespaced trigger; create a regexp to match event type in handle() + namespaces = type.split("."); + type = namespaces.shift(); + namespaces.sort(); + } + ontype = type.indexOf(":") < 0 && "on" + type; + + // Caller can pass in a jQuery.Event object, Object, or just an event type string + event = event[ jQuery.expando ] ? + event : + new jQuery.Event( type, typeof event === "object" && event ); + + // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) + event.isTrigger = onlyHandlers ? 2 : 3; + event.namespace = namespaces.join("."); + event.namespace_re = event.namespace ? + new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) : + null; + + // Clean up the event in case it is being reused + event.result = undefined; + if ( !event.target ) { + event.target = elem; + } + + // Clone any incoming data and prepend the event, creating the handler arg list + data = data == null ? + [ event ] : + jQuery.makeArray( data, [ event ] ); + + // Allow special events to draw outside the lines + special = jQuery.event.special[ type ] || {}; + if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { + return; + } + + // Determine event propagation path in advance, per W3C events spec (#9951) + // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) + if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { + + bubbleType = special.delegateType || type; + if ( !rfocusMorph.test( bubbleType + type ) ) { + cur = cur.parentNode; + } + for ( ; cur; cur = cur.parentNode ) { + eventPath.push( cur ); + tmp = cur; + } + + // Only add window if we got to document (e.g., not plain obj or detached DOM) + if ( tmp === (elem.ownerDocument || document) ) { + eventPath.push( tmp.defaultView || tmp.parentWindow || window ); + } + } + + // Fire handlers on the event path + i = 0; + while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) { + + event.type = i > 1 ? + bubbleType : + special.bindType || type; + + // jQuery handler + handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" ); + if ( handle ) { + handle.apply( cur, data ); + } + + // Native handler + handle = ontype && cur[ ontype ]; + if ( handle && handle.apply && jQuery.acceptData( cur ) ) { + event.result = handle.apply( cur, data ); + if ( event.result === false ) { + event.preventDefault(); + } + } + } + event.type = type; + + // If nobody prevented the default action, do it now + if ( !onlyHandlers && !event.isDefaultPrevented() ) { + + if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) && + jQuery.acceptData( elem ) ) { + + // Call a native DOM method on the target with the same name name as the event. + // Can't use an .isFunction() check here because IE6/7 fails that test. + // Don't do default actions on window, that's where global variables be (#6170) + if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) { + + // Don't re-trigger an onFOO event when we call its FOO() method + tmp = elem[ ontype ]; + + if ( tmp ) { + elem[ ontype ] = null; + } + + // Prevent re-triggering of the same event, since we already bubbled it above + jQuery.event.triggered = type; + try { + elem[ type ](); + } catch ( e ) { + // IE<9 dies on focus/blur to hidden element (#1486,#12518) + // only reproducible on winXP IE8 native, not IE9 in IE8 mode + } + jQuery.event.triggered = undefined; + + if ( tmp ) { + elem[ ontype ] = tmp; + } + } + } + } + + return event.result; + }, + + dispatch: function( event ) { + + // Make a writable jQuery.Event from the native event object + event = jQuery.event.fix( event ); + + var i, ret, handleObj, matched, j, + handlerQueue = [], + args = slice.call( arguments ), + handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [], + special = jQuery.event.special[ event.type ] || {}; + + // Use the fix-ed jQuery.Event rather than the (read-only) native event + args[0] = event; + event.delegateTarget = this; + + // Call the preDispatch hook for the mapped type, and let it bail if desired + if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { + return; + } + + // Determine handlers + handlerQueue = jQuery.event.handlers.call( this, event, handlers ); + + // Run delegates first; they may want to stop propagation beneath us + i = 0; + while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) { + event.currentTarget = matched.elem; + + j = 0; + while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) { + + // Triggered event must either 1) have no namespace, or + // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). + if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) { + + event.handleObj = handleObj; + event.data = handleObj.data; + + ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) + .apply( matched.elem, args ); + + if ( ret !== undefined ) { + if ( (event.result = ret) === false ) { + event.preventDefault(); + event.stopPropagation(); + } + } + } + } + } + + // Call the postDispatch hook for the mapped type + if ( special.postDispatch ) { + special.postDispatch.call( this, event ); + } + + return event.result; + }, + + handlers: function( event, handlers ) { + var sel, handleObj, matches, i, + handlerQueue = [], + delegateCount = handlers.delegateCount, + cur = event.target; + + // Find delegate handlers + // Black-hole SVG instance trees (#13180) + // Avoid non-left-click bubbling in Firefox (#3861) + if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { + + /* jshint eqeqeq: false */ + for ( ; cur != this; cur = cur.parentNode || this ) { + /* jshint eqeqeq: true */ + + // Don't check non-elements (#13208) + // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) + if ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== "click") ) { + matches = []; + for ( i = 0; i < delegateCount; i++ ) { + handleObj = handlers[ i ]; + + // Don't conflict with Object.prototype properties (#13203) + sel = handleObj.selector + " "; + + if ( matches[ sel ] === undefined ) { + matches[ sel ] = handleObj.needsContext ? + jQuery( sel, this ).index( cur ) >= 0 : + jQuery.find( sel, this, null, [ cur ] ).length; + } + if ( matches[ sel ] ) { + matches.push( handleObj ); + } + } + if ( matches.length ) { + handlerQueue.push({ elem: cur, handlers: matches }); + } + } + } + } + + // Add the remaining (directly-bound) handlers + if ( delegateCount < handlers.length ) { + handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) }); + } + + return handlerQueue; + }, + + fix: function( event ) { + if ( event[ jQuery.expando ] ) { + return event; + } + + // Create a writable copy of the event object and normalize some properties + var i, prop, copy, + type = event.type, + originalEvent = event, + fixHook = this.fixHooks[ type ]; + + if ( !fixHook ) { + this.fixHooks[ type ] = fixHook = + rmouseEvent.test( type ) ? this.mouseHooks : + rkeyEvent.test( type ) ? this.keyHooks : + {}; + } + copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; + + event = new jQuery.Event( originalEvent ); + + i = copy.length; + while ( i-- ) { + prop = copy[ i ]; + event[ prop ] = originalEvent[ prop ]; + } + + // Support: IE<9 + // Fix target property (#1925) + if ( !event.target ) { + event.target = originalEvent.srcElement || document; + } + + // Support: Chrome 23+, Safari? + // Target should not be a text node (#504, #13143) + if ( event.target.nodeType === 3 ) { + event.target = event.target.parentNode; + } + + // Support: IE<9 + // For mouse/key events, metaKey==false if it's undefined (#3368, #11328) + event.metaKey = !!event.metaKey; + + return fixHook.filter ? fixHook.filter( event, originalEvent ) : event; + }, + + // Includes some event props shared by KeyEvent and MouseEvent + props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), + + fixHooks: {}, + + keyHooks: { + props: "char charCode key keyCode".split(" "), + filter: function( event, original ) { + + // Add which for key events + if ( event.which == null ) { + event.which = original.charCode != null ? original.charCode : original.keyCode; + } + + return event; + } + }, + + mouseHooks: { + props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), + filter: function( event, original ) { + var body, eventDoc, doc, + button = original.button, + fromElement = original.fromElement; + + // Calculate pageX/Y if missing and clientX/Y available + if ( event.pageX == null && original.clientX != null ) { + eventDoc = event.target.ownerDocument || document; + doc = eventDoc.documentElement; + body = eventDoc.body; + + event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); + event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); + } + + // Add relatedTarget, if necessary + if ( !event.relatedTarget && fromElement ) { + event.relatedTarget = fromElement === event.target ? original.toElement : fromElement; + } + + // Add which for click: 1 === left; 2 === middle; 3 === right + // Note: button is not normalized, so don't use it + if ( !event.which && button !== undefined ) { + event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); + } + + return event; + } + }, + + special: { + load: { + // Prevent triggered image.load events from bubbling to window.load + noBubble: true + }, + focus: { + // Fire native event if possible so blur/focus sequence is correct + trigger: function() { + if ( this !== safeActiveElement() && this.focus ) { + try { + this.focus(); + return false; + } catch ( e ) { + // Support: IE<9 + // If we error on focus to hidden element (#1486, #12518), + // let .trigger() run the handlers + } + } + }, + delegateType: "focusin" + }, + blur: { + trigger: function() { + if ( this === safeActiveElement() && this.blur ) { + this.blur(); + return false; + } + }, + delegateType: "focusout" + }, + click: { + // For checkbox, fire native event so checked state will be right + trigger: function() { + if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) { + this.click(); + return false; + } + }, + + // For cross-browser consistency, don't fire native .click() on links + _default: function( event ) { + return jQuery.nodeName( event.target, "a" ); + } + }, + + beforeunload: { + postDispatch: function( event ) { + + // Support: Firefox 20+ + // Firefox doesn't alert if the returnValue field is not set. + if ( event.result !== undefined && event.originalEvent ) { + event.originalEvent.returnValue = event.result; + } + } + } + }, + + simulate: function( type, elem, event, bubble ) { + // Piggyback on a donor event to simulate a different one. + // Fake originalEvent to avoid donor's stopPropagation, but if the + // simulated event prevents default then we do the same on the donor. + var e = jQuery.extend( + new jQuery.Event(), + event, + { + type: type, + isSimulated: true, + originalEvent: {} + } + ); + if ( bubble ) { + jQuery.event.trigger( e, null, elem ); + } else { + jQuery.event.dispatch.call( elem, e ); + } + if ( e.isDefaultPrevented() ) { + event.preventDefault(); + } + } +}; + +jQuery.removeEvent = document.removeEventListener ? + function( elem, type, handle ) { + if ( elem.removeEventListener ) { + elem.removeEventListener( type, handle, false ); + } + } : + function( elem, type, handle ) { + var name = "on" + type; + + if ( elem.detachEvent ) { + + // #8545, #7054, preventing memory leaks for custom events in IE6-8 + // detachEvent needed property on element, by name of that event, to properly expose it to GC + if ( typeof elem[ name ] === strundefined ) { + elem[ name ] = null; + } + + elem.detachEvent( name, handle ); + } + }; + +jQuery.Event = function( src, props ) { + // Allow instantiation without the 'new' keyword + if ( !(this instanceof jQuery.Event) ) { + return new jQuery.Event( src, props ); + } + + // Event object + if ( src && src.type ) { + this.originalEvent = src; + this.type = src.type; + + // Events bubbling up the document may have been marked as prevented + // by a handler lower down the tree; reflect the correct value. + this.isDefaultPrevented = src.defaultPrevented || + src.defaultPrevented === undefined && + // Support: IE < 9, Android < 4.0 + src.returnValue === false ? + returnTrue : + returnFalse; + + // Event type + } else { + this.type = src; + } + + // Put explicitly provided properties onto the event object + if ( props ) { + jQuery.extend( this, props ); + } + + // Create a timestamp if incoming event doesn't have one + this.timeStamp = src && src.timeStamp || jQuery.now(); + + // Mark it as fixed + this[ jQuery.expando ] = true; +}; + +// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding +// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html +jQuery.Event.prototype = { + isDefaultPrevented: returnFalse, + isPropagationStopped: returnFalse, + isImmediatePropagationStopped: returnFalse, + + preventDefault: function() { + var e = this.originalEvent; + + this.isDefaultPrevented = returnTrue; + if ( !e ) { + return; + } + + // If preventDefault exists, run it on the original event + if ( e.preventDefault ) { + e.preventDefault(); + + // Support: IE + // Otherwise set the returnValue property of the original event to false + } else { + e.returnValue = false; + } + }, + stopPropagation: function() { + var e = this.originalEvent; + + this.isPropagationStopped = returnTrue; + if ( !e ) { + return; + } + // If stopPropagation exists, run it on the original event + if ( e.stopPropagation ) { + e.stopPropagation(); + } + + // Support: IE + // Set the cancelBubble property of the original event to true + e.cancelBubble = true; + }, + stopImmediatePropagation: function() { + var e = this.originalEvent; + + this.isImmediatePropagationStopped = returnTrue; + + if ( e && e.stopImmediatePropagation ) { + e.stopImmediatePropagation(); + } + + this.stopPropagation(); + } +}; + +// Create mouseenter/leave events using mouseover/out and event-time checks +jQuery.each({ + mouseenter: "mouseover", + mouseleave: "mouseout", + pointerenter: "pointerover", + pointerleave: "pointerout" +}, function( orig, fix ) { + jQuery.event.special[ orig ] = { + delegateType: fix, + bindType: fix, + + handle: function( event ) { + var ret, + target = this, + related = event.relatedTarget, + handleObj = event.handleObj; + + // For mousenter/leave call the handler if related is outside the target. + // NB: No relatedTarget if the mouse left/entered the browser window + if ( !related || (related !== target && !jQuery.contains( target, related )) ) { + event.type = handleObj.origType; + ret = handleObj.handler.apply( this, arguments ); + event.type = fix; + } + return ret; + } + }; +}); + +// IE submit delegation +if ( !support.submitBubbles ) { + + jQuery.event.special.submit = { + setup: function() { + // Only need this for delegated form submit events + if ( jQuery.nodeName( this, "form" ) ) { + return false; + } + + // Lazy-add a submit handler when a descendant form may potentially be submitted + jQuery.event.add( this, "click._submit keypress._submit", function( e ) { + // Node name check avoids a VML-related crash in IE (#9807) + var elem = e.target, + form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined; + if ( form && !jQuery._data( form, "submitBubbles" ) ) { + jQuery.event.add( form, "submit._submit", function( event ) { + event._submit_bubble = true; + }); + jQuery._data( form, "submitBubbles", true ); + } + }); + // return undefined since we don't need an event listener + }, + + postDispatch: function( event ) { + // If form was submitted by the user, bubble the event up the tree + if ( event._submit_bubble ) { + delete event._submit_bubble; + if ( this.parentNode && !event.isTrigger ) { + jQuery.event.simulate( "submit", this.parentNode, event, true ); + } + } + }, + + teardown: function() { + // Only need this for delegated form submit events + if ( jQuery.nodeName( this, "form" ) ) { + return false; + } + + // Remove delegated handlers; cleanData eventually reaps submit handlers attached above + jQuery.event.remove( this, "._submit" ); + } + }; +} + +// IE change delegation and checkbox/radio fix +if ( !support.changeBubbles ) { + + jQuery.event.special.change = { + + setup: function() { + + if ( rformElems.test( this.nodeName ) ) { + // IE doesn't fire change on a check/radio until blur; trigger it on click + // after a propertychange. Eat the blur-change in special.change.handle. + // This still fires onchange a second time for check/radio after blur. + if ( this.type === "checkbox" || this.type === "radio" ) { + jQuery.event.add( this, "propertychange._change", function( event ) { + if ( event.originalEvent.propertyName === "checked" ) { + this._just_changed = true; + } + }); + jQuery.event.add( this, "click._change", function( event ) { + if ( this._just_changed && !event.isTrigger ) { + this._just_changed = false; + } + // Allow triggered, simulated change events (#11500) + jQuery.event.simulate( "change", this, event, true ); + }); + } + return false; + } + // Delegated event; lazy-add a change handler on descendant inputs + jQuery.event.add( this, "beforeactivate._change", function( e ) { + var elem = e.target; + + if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "changeBubbles" ) ) { + jQuery.event.add( elem, "change._change", function( event ) { + if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { + jQuery.event.simulate( "change", this.parentNode, event, true ); + } + }); + jQuery._data( elem, "changeBubbles", true ); + } + }); + }, + + handle: function( event ) { + var elem = event.target; + + // Swallow native change events from checkbox/radio, we already triggered them above + if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) { + return event.handleObj.handler.apply( this, arguments ); + } + }, + + teardown: function() { + jQuery.event.remove( this, "._change" ); + + return !rformElems.test( this.nodeName ); + } + }; +} + +// Create "bubbling" focus and blur events +if ( !support.focusinBubbles ) { + jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { + + // Attach a single capturing handler on the document while someone wants focusin/focusout + var handler = function( event ) { + jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); + }; + + jQuery.event.special[ fix ] = { + setup: function() { + var doc = this.ownerDocument || this, + attaches = jQuery._data( doc, fix ); + + if ( !attaches ) { + doc.addEventListener( orig, handler, true ); + } + jQuery._data( doc, fix, ( attaches || 0 ) + 1 ); + }, + teardown: function() { + var doc = this.ownerDocument || this, + attaches = jQuery._data( doc, fix ) - 1; + + if ( !attaches ) { + doc.removeEventListener( orig, handler, true ); + jQuery._removeData( doc, fix ); + } else { + jQuery._data( doc, fix, attaches ); + } + } + }; + }); +} + +jQuery.fn.extend({ + + on: function( types, selector, data, fn, /*INTERNAL*/ one ) { + var type, origFn; + + // Types can be a map of types/handlers + if ( typeof types === "object" ) { + // ( types-Object, selector, data ) + if ( typeof selector !== "string" ) { + // ( types-Object, data ) + data = data || selector; + selector = undefined; + } + for ( type in types ) { + this.on( type, selector, data, types[ type ], one ); + } + return this; + } + + if ( data == null && fn == null ) { + // ( types, fn ) + fn = selector; + data = selector = undefined; + } else if ( fn == null ) { + if ( typeof selector === "string" ) { + // ( types, selector, fn ) + fn = data; + data = undefined; + } else { + // ( types, data, fn ) + fn = data; + data = selector; + selector = undefined; + } + } + if ( fn === false ) { + fn = returnFalse; + } else if ( !fn ) { + return this; + } + + if ( one === 1 ) { + origFn = fn; + fn = function( event ) { + // Can use an empty set, since event contains the info + jQuery().off( event ); + return origFn.apply( this, arguments ); + }; + // Use same guid so caller can remove using origFn + fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); + } + return this.each( function() { + jQuery.event.add( this, types, fn, data, selector ); + }); + }, + one: function( types, selector, data, fn ) { + return this.on( types, selector, data, fn, 1 ); + }, + off: function( types, selector, fn ) { + var handleObj, type; + if ( types && types.preventDefault && types.handleObj ) { + // ( event ) dispatched jQuery.Event + handleObj = types.handleObj; + jQuery( types.delegateTarget ).off( + handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, + handleObj.selector, + handleObj.handler + ); + return this; + } + if ( typeof types === "object" ) { + // ( types-object [, selector] ) + for ( type in types ) { + this.off( type, selector, types[ type ] ); + } + return this; + } + if ( selector === false || typeof selector === "function" ) { + // ( types [, fn] ) + fn = selector; + selector = undefined; + } + if ( fn === false ) { + fn = returnFalse; + } + return this.each(function() { + jQuery.event.remove( this, types, fn, selector ); + }); + }, + + trigger: function( type, data ) { + return this.each(function() { + jQuery.event.trigger( type, data, this ); + }); + }, + triggerHandler: function( type, data ) { + var elem = this[0]; + if ( elem ) { + return jQuery.event.trigger( type, data, elem, true ); + } + } +}); + + +function createSafeFragment( document ) { + var list = nodeNames.split( "|" ), + safeFrag = document.createDocumentFragment(); + + if ( safeFrag.createElement ) { + while ( list.length ) { + safeFrag.createElement( + list.pop() + ); + } + } + return safeFrag; +} + +var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + + "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", + rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, + rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"), + rleadingWhitespace = /^\s+/, + rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, + rtagName = /<([\w:]+)/, + rtbody = /\s*$/g, + + // We have to close these tags to support XHTML (#13200) + wrapMap = { + option: [ 1, "" ], + legend: [ 1, "
    ", "
    " ], + area: [ 1, "", "" ], + param: [ 1, "", "" ], + thead: [ 1, "", "
    " ], + tr: [ 2, "", "
    " ], + col: [ 2, "", "
    " ], + td: [ 3, "", "
    " ], + + // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags, + // unless wrapped in a div with non-breaking characters in front of it. + _default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X
    ", "
    " ] + }, + safeFragment = createSafeFragment( document ), + fragmentDiv = safeFragment.appendChild( document.createElement("div") ); + +wrapMap.optgroup = wrapMap.option; +wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; +wrapMap.th = wrapMap.td; + +function getAll( context, tag ) { + var elems, elem, + i = 0, + found = typeof context.getElementsByTagName !== strundefined ? context.getElementsByTagName( tag || "*" ) : + typeof context.querySelectorAll !== strundefined ? context.querySelectorAll( tag || "*" ) : + undefined; + + if ( !found ) { + for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) { + if ( !tag || jQuery.nodeName( elem, tag ) ) { + found.push( elem ); + } else { + jQuery.merge( found, getAll( elem, tag ) ); + } + } + } + + return tag === undefined || tag && jQuery.nodeName( context, tag ) ? + jQuery.merge( [ context ], found ) : + found; +} + +// Used in buildFragment, fixes the defaultChecked property +function fixDefaultChecked( elem ) { + if ( rcheckableType.test( elem.type ) ) { + elem.defaultChecked = elem.checked; + } +} + +// Support: IE<8 +// Manipulating tables requires a tbody +function manipulationTarget( elem, content ) { + return jQuery.nodeName( elem, "table" ) && + jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ? + + elem.getElementsByTagName("tbody")[0] || + elem.appendChild( elem.ownerDocument.createElement("tbody") ) : + elem; +} + +// Replace/restore the type attribute of script elements for safe DOM manipulation +function disableScript( elem ) { + elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type; + return elem; +} +function restoreScript( elem ) { + var match = rscriptTypeMasked.exec( elem.type ); + if ( match ) { + elem.type = match[1]; + } else { + elem.removeAttribute("type"); + } + return elem; +} + +// Mark scripts as having already been evaluated +function setGlobalEval( elems, refElements ) { + var elem, + i = 0; + for ( ; (elem = elems[i]) != null; i++ ) { + jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) ); + } +} + +function cloneCopyEvent( src, dest ) { + + if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) { + return; + } + + var type, i, l, + oldData = jQuery._data( src ), + curData = jQuery._data( dest, oldData ), + events = oldData.events; + + if ( events ) { + delete curData.handle; + curData.events = {}; + + for ( type in events ) { + for ( i = 0, l = events[ type ].length; i < l; i++ ) { + jQuery.event.add( dest, type, events[ type ][ i ] ); + } + } + } + + // make the cloned public data object a copy from the original + if ( curData.data ) { + curData.data = jQuery.extend( {}, curData.data ); + } +} + +function fixCloneNodeIssues( src, dest ) { + var nodeName, e, data; + + // We do not need to do anything for non-Elements + if ( dest.nodeType !== 1 ) { + return; + } + + nodeName = dest.nodeName.toLowerCase(); + + // IE6-8 copies events bound via attachEvent when using cloneNode. + if ( !support.noCloneEvent && dest[ jQuery.expando ] ) { + data = jQuery._data( dest ); + + for ( e in data.events ) { + jQuery.removeEvent( dest, e, data.handle ); + } + + // Event data gets referenced instead of copied if the expando gets copied too + dest.removeAttribute( jQuery.expando ); + } + + // IE blanks contents when cloning scripts, and tries to evaluate newly-set text + if ( nodeName === "script" && dest.text !== src.text ) { + disableScript( dest ).text = src.text; + restoreScript( dest ); + + // IE6-10 improperly clones children of object elements using classid. + // IE10 throws NoModificationAllowedError if parent is null, #12132. + } else if ( nodeName === "object" ) { + if ( dest.parentNode ) { + dest.outerHTML = src.outerHTML; + } + + // This path appears unavoidable for IE9. When cloning an object + // element in IE9, the outerHTML strategy above is not sufficient. + // If the src has innerHTML and the destination does not, + // copy the src.innerHTML into the dest.innerHTML. #10324 + if ( support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) { + dest.innerHTML = src.innerHTML; + } + + } else if ( nodeName === "input" && rcheckableType.test( src.type ) ) { + // IE6-8 fails to persist the checked state of a cloned checkbox + // or radio button. Worse, IE6-7 fail to give the cloned element + // a checked appearance if the defaultChecked value isn't also set + + dest.defaultChecked = dest.checked = src.checked; + + // IE6-7 get confused and end up setting the value of a cloned + // checkbox/radio button to an empty string instead of "on" + if ( dest.value !== src.value ) { + dest.value = src.value; + } + + // IE6-8 fails to return the selected option to the default selected + // state when cloning options + } else if ( nodeName === "option" ) { + dest.defaultSelected = dest.selected = src.defaultSelected; + + // IE6-8 fails to set the defaultValue to the correct value when + // cloning other types of input fields + } else if ( nodeName === "input" || nodeName === "textarea" ) { + dest.defaultValue = src.defaultValue; + } +} + +jQuery.extend({ + clone: function( elem, dataAndEvents, deepDataAndEvents ) { + var destElements, node, clone, i, srcElements, + inPage = jQuery.contains( elem.ownerDocument, elem ); + + if ( support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) { + clone = elem.cloneNode( true ); + + // IE<=8 does not properly clone detached, unknown element nodes + } else { + fragmentDiv.innerHTML = elem.outerHTML; + fragmentDiv.removeChild( clone = fragmentDiv.firstChild ); + } + + if ( (!support.noCloneEvent || !support.noCloneChecked) && + (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) { + + // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 + destElements = getAll( clone ); + srcElements = getAll( elem ); + + // Fix all IE cloning issues + for ( i = 0; (node = srcElements[i]) != null; ++i ) { + // Ensure that the destination node is not null; Fixes #9587 + if ( destElements[i] ) { + fixCloneNodeIssues( node, destElements[i] ); + } + } + } + + // Copy the events from the original to the clone + if ( dataAndEvents ) { + if ( deepDataAndEvents ) { + srcElements = srcElements || getAll( elem ); + destElements = destElements || getAll( clone ); + + for ( i = 0; (node = srcElements[i]) != null; i++ ) { + cloneCopyEvent( node, destElements[i] ); + } + } else { + cloneCopyEvent( elem, clone ); + } + } + + // Preserve script evaluation history + destElements = getAll( clone, "script" ); + if ( destElements.length > 0 ) { + setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); + } + + destElements = srcElements = node = null; + + // Return the cloned set + return clone; + }, + + buildFragment: function( elems, context, scripts, selection ) { + var j, elem, contains, + tmp, tag, tbody, wrap, + l = elems.length, + + // Ensure a safe fragment + safe = createSafeFragment( context ), + + nodes = [], + i = 0; + + for ( ; i < l; i++ ) { + elem = elems[ i ]; + + if ( elem || elem === 0 ) { + + // Add nodes directly + if ( jQuery.type( elem ) === "object" ) { + jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); + + // Convert non-html into a text node + } else if ( !rhtml.test( elem ) ) { + nodes.push( context.createTextNode( elem ) ); + + // Convert html into DOM nodes + } else { + tmp = tmp || safe.appendChild( context.createElement("div") ); + + // Deserialize a standard representation + tag = (rtagName.exec( elem ) || [ "", "" ])[ 1 ].toLowerCase(); + wrap = wrapMap[ tag ] || wrapMap._default; + + tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1>" ) + wrap[2]; + + // Descend through wrappers to the right content + j = wrap[0]; + while ( j-- ) { + tmp = tmp.lastChild; + } + + // Manually add leading whitespace removed by IE + if ( !support.leadingWhitespace && rleadingWhitespace.test( elem ) ) { + nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) ); + } + + // Remove IE's autoinserted from table fragments + if ( !support.tbody ) { + + // String was a , *may* have spurious + elem = tag === "table" && !rtbody.test( elem ) ? + tmp.firstChild : + + // String was a bare or + wrap[1] === "
    " && !rtbody.test( elem ) ? + tmp : + 0; + + j = elem && elem.childNodes.length; + while ( j-- ) { + if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) { + elem.removeChild( tbody ); + } + } + } + + jQuery.merge( nodes, tmp.childNodes ); + + // Fix #12392 for WebKit and IE > 9 + tmp.textContent = ""; + + // Fix #12392 for oldIE + while ( tmp.firstChild ) { + tmp.removeChild( tmp.firstChild ); + } + + // Remember the top-level container for proper cleanup + tmp = safe.lastChild; + } + } + } + + // Fix #11356: Clear elements from fragment + if ( tmp ) { + safe.removeChild( tmp ); + } + + // Reset defaultChecked for any radios and checkboxes + // about to be appended to the DOM in IE 6/7 (#8060) + if ( !support.appendChecked ) { + jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked ); + } + + i = 0; + while ( (elem = nodes[ i++ ]) ) { + + // #4087 - If origin and destination elements are the same, and this is + // that element, do not do anything + if ( selection && jQuery.inArray( elem, selection ) !== -1 ) { + continue; + } + + contains = jQuery.contains( elem.ownerDocument, elem ); + + // Append to fragment + tmp = getAll( safe.appendChild( elem ), "script" ); + + // Preserve script evaluation history + if ( contains ) { + setGlobalEval( tmp ); + } + + // Capture executables + if ( scripts ) { + j = 0; + while ( (elem = tmp[ j++ ]) ) { + if ( rscriptType.test( elem.type || "" ) ) { + scripts.push( elem ); + } + } + } + } + + tmp = null; + + return safe; + }, + + cleanData: function( elems, /* internal */ acceptData ) { + var elem, type, id, data, + i = 0, + internalKey = jQuery.expando, + cache = jQuery.cache, + deleteExpando = support.deleteExpando, + special = jQuery.event.special; + + for ( ; (elem = elems[i]) != null; i++ ) { + if ( acceptData || jQuery.acceptData( elem ) ) { + + id = elem[ internalKey ]; + data = id && cache[ id ]; + + if ( data ) { + if ( data.events ) { + for ( type in data.events ) { + if ( special[ type ] ) { + jQuery.event.remove( elem, type ); + + // This is a shortcut to avoid jQuery.event.remove's overhead + } else { + jQuery.removeEvent( elem, type, data.handle ); + } + } + } + + // Remove cache only if it was not already removed by jQuery.event.remove + if ( cache[ id ] ) { + + delete cache[ id ]; + + // IE does not allow us to delete expando properties from nodes, + // nor does it have a removeAttribute function on Document nodes; + // we must handle all of these cases + if ( deleteExpando ) { + delete elem[ internalKey ]; + + } else if ( typeof elem.removeAttribute !== strundefined ) { + elem.removeAttribute( internalKey ); + + } else { + elem[ internalKey ] = null; + } + + deletedIds.push( id ); + } + } + } + } + } +}); + +jQuery.fn.extend({ + text: function( value ) { + return access( this, function( value ) { + return value === undefined ? + jQuery.text( this ) : + this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) ); + }, null, value, arguments.length ); + }, + + append: function() { + return this.domManip( arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.appendChild( elem ); + } + }); + }, + + prepend: function() { + return this.domManip( arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.insertBefore( elem, target.firstChild ); + } + }); + }, + + before: function() { + return this.domManip( arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this ); + } + }); + }, + + after: function() { + return this.domManip( arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this.nextSibling ); + } + }); + }, + + remove: function( selector, keepData /* Internal Use Only */ ) { + var elem, + elems = selector ? jQuery.filter( selector, this ) : this, + i = 0; + + for ( ; (elem = elems[i]) != null; i++ ) { + + if ( !keepData && elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem ) ); + } + + if ( elem.parentNode ) { + if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) { + setGlobalEval( getAll( elem, "script" ) ); + } + elem.parentNode.removeChild( elem ); + } + } + + return this; + }, + + empty: function() { + var elem, + i = 0; + + for ( ; (elem = this[i]) != null; i++ ) { + // Remove element nodes and prevent memory leaks + if ( elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem, false ) ); + } + + // Remove any remaining nodes + while ( elem.firstChild ) { + elem.removeChild( elem.firstChild ); + } + + // If this is a select, ensure that it displays empty (#12336) + // Support: IE<9 + if ( elem.options && jQuery.nodeName( elem, "select" ) ) { + elem.options.length = 0; + } + } + + return this; + }, + + clone: function( dataAndEvents, deepDataAndEvents ) { + dataAndEvents = dataAndEvents == null ? false : dataAndEvents; + deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; + + return this.map(function() { + return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); + }); + }, + + html: function( value ) { + return access( this, function( value ) { + var elem = this[ 0 ] || {}, + i = 0, + l = this.length; + + if ( value === undefined ) { + return elem.nodeType === 1 ? + elem.innerHTML.replace( rinlinejQuery, "" ) : + undefined; + } + + // See if we can take a shortcut and just use innerHTML + if ( typeof value === "string" && !rnoInnerhtml.test( value ) && + ( support.htmlSerialize || !rnoshimcache.test( value ) ) && + ( support.leadingWhitespace || !rleadingWhitespace.test( value ) ) && + !wrapMap[ (rtagName.exec( value ) || [ "", "" ])[ 1 ].toLowerCase() ] ) { + + value = value.replace( rxhtmlTag, "<$1>" ); + + try { + for (; i < l; i++ ) { + // Remove element nodes and prevent memory leaks + elem = this[i] || {}; + if ( elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem, false ) ); + elem.innerHTML = value; + } + } + + elem = 0; + + // If using innerHTML throws an exception, use the fallback method + } catch(e) {} + } + + if ( elem ) { + this.empty().append( value ); + } + }, null, value, arguments.length ); + }, + + replaceWith: function() { + var arg = arguments[ 0 ]; + + // Make the changes, replacing each context element with the new content + this.domManip( arguments, function( elem ) { + arg = this.parentNode; + + jQuery.cleanData( getAll( this ) ); + + if ( arg ) { + arg.replaceChild( elem, this ); + } + }); + + // Force removal if there was no new content (e.g., from empty arguments) + return arg && (arg.length || arg.nodeType) ? this : this.remove(); + }, + + detach: function( selector ) { + return this.remove( selector, true ); + }, + + domManip: function( args, callback ) { + + // Flatten any nested arrays + args = concat.apply( [], args ); + + var first, node, hasScripts, + scripts, doc, fragment, + i = 0, + l = this.length, + set = this, + iNoClone = l - 1, + value = args[0], + isFunction = jQuery.isFunction( value ); + + // We can't cloneNode fragments that contain checked, in WebKit + if ( isFunction || + ( l > 1 && typeof value === "string" && + !support.checkClone && rchecked.test( value ) ) ) { + return this.each(function( index ) { + var self = set.eq( index ); + if ( isFunction ) { + args[0] = value.call( this, index, self.html() ); + } + self.domManip( args, callback ); + }); + } + + if ( l ) { + fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this ); + first = fragment.firstChild; + + if ( fragment.childNodes.length === 1 ) { + fragment = first; + } + + if ( first ) { + scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); + hasScripts = scripts.length; + + // Use the original fragment for the last item instead of the first because it can end up + // being emptied incorrectly in certain situations (#8070). + for ( ; i < l; i++ ) { + node = fragment; + + if ( i !== iNoClone ) { + node = jQuery.clone( node, true, true ); + + // Keep references to cloned scripts for later restoration + if ( hasScripts ) { + jQuery.merge( scripts, getAll( node, "script" ) ); + } + } + + callback.call( this[i], node, i ); + } + + if ( hasScripts ) { + doc = scripts[ scripts.length - 1 ].ownerDocument; + + // Reenable scripts + jQuery.map( scripts, restoreScript ); + + // Evaluate executable scripts on first document insertion + for ( i = 0; i < hasScripts; i++ ) { + node = scripts[ i ]; + if ( rscriptType.test( node.type || "" ) && + !jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) { + + if ( node.src ) { + // Optional AJAX dependency, but won't run scripts if not present + if ( jQuery._evalUrl ) { + jQuery._evalUrl( node.src ); + } + } else { + jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) ); + } + } + } + } + + // Fix #11809: Avoid leaking memory + fragment = first = null; + } + } + + return this; + } +}); + +jQuery.each({ + appendTo: "append", + prependTo: "prepend", + insertBefore: "before", + insertAfter: "after", + replaceAll: "replaceWith" +}, function( name, original ) { + jQuery.fn[ name ] = function( selector ) { + var elems, + i = 0, + ret = [], + insert = jQuery( selector ), + last = insert.length - 1; + + for ( ; i <= last; i++ ) { + elems = i === last ? this : this.clone(true); + jQuery( insert[i] )[ original ]( elems ); + + // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get() + push.apply( ret, elems.get() ); + } + + return this.pushStack( ret ); + }; +}); + + +var iframe, + elemdisplay = {}; + +/** + * Retrieve the actual display of a element + * @param {String} name nodeName of the element + * @param {Object} doc Document object + */ +// Called only from within defaultDisplay +function actualDisplay( name, doc ) { + var style, + elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ), + + // getDefaultComputedStyle might be reliably used only on attached element + display = window.getDefaultComputedStyle && ( style = window.getDefaultComputedStyle( elem[ 0 ] ) ) ? + + // Use of this method is a temporary fix (more like optmization) until something better comes along, + // since it was removed from specification and supported only in FF + style.display : jQuery.css( elem[ 0 ], "display" ); + + // We don't have any data stored on the element, + // so use "detach" method as fast way to get rid of the element + elem.detach(); + + return display; +} + +/** + * Try to determine the default display value of an element + * @param {String} nodeName + */ +function defaultDisplay( nodeName ) { + var doc = document, + display = elemdisplay[ nodeName ]; + + if ( !display ) { + display = actualDisplay( nodeName, doc ); + + // If the simple way fails, read from inside an iframe + if ( display === "none" || !display ) { + + // Use the already-created iframe if possible + iframe = (iframe || jQuery( "