├── .gitignore ├── LICENSE ├── README.md ├── config.js ├── css ├── codemirror.css ├── ds.css ├── jquery.mobile-1.4.5.min.css ├── jquery.mobile.custom.structure.css ├── jquery.mobile.custom.structure.min.css ├── jquery.mobile.custom.theme.css └── jquery.mobile.custom.theme.min.css ├── images ├── android-icon-144x144.png ├── android-icon-192x192.png ├── android-icon-36x36.png ├── android-icon-48x48.png ├── android-icon-72x72.png ├── android-icon-96x96.png ├── apple-icon-114x114.png ├── apple-icon-120x120.png ├── apple-icon-144x144.png ├── apple-icon-152x152.png ├── apple-icon-180x180.png ├── apple-icon-57x57.png ├── apple-icon-60x60.png ├── apple-icon-72x72.png ├── apple-icon-76x76.png ├── apple-icon-precomposed.png ├── apple-icon.png ├── browserconfig.xml ├── eye.png ├── favicon-16x16.png ├── favicon-32x32.png ├── favicon-96x96.png ├── favicon.ico ├── manifest.json ├── ms-icon-144x144.png ├── ms-icon-150x150.png ├── ms-icon-310x310.png └── ms-icon-70x70.png ├── index.html ├── jquery.js └── js ├── d3.layout.cloud.js ├── d3.v3.min.js ├── drawCloud.js ├── histograms.js ├── jquery.mobile-1.4.5.min.js ├── jquery.mobile.custom.js ├── jquery.mobile.custom.min.js ├── jquery.mobile.custom.structure.css ├── jquery.mobile.custom.structure.min.css ├── jquery.mobile.custom.theme.css ├── jquery.mobile.custom.theme.min.css ├── libs ├── codemirror-compressed.js ├── coffee-script.js ├── d3.v2.js ├── d3.v2.min.js ├── jquery-1.7.2.js └── jquery-1.7.2.min.js ├── random.js ├── sizer.js └── storageEngineRepresentation.js /.gitignore: -------------------------------------------------------------------------------- 1 | config.js 2 | *.swp 3 | *.DS_Store 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | 203 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Cassandra Data Modeler 2 | ============= 3 | 4 | To test run the following (on python 2.x) 5 | 6 | python -m SimpleHTTPServer 7 | 8 | or this (on python 3.x) 9 | 10 | python -m http.server 11 | -------------------------------------------------------------------------------- /config.js: -------------------------------------------------------------------------------- 1 | var GoogleAnalyticsID = "UA-57322103-1"; 2 | -------------------------------------------------------------------------------- /css/codemirror.css: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2016 by Marijn Haverbeke and others 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is 9 | furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | THE SOFTWARE. 21 | */ 22 | /* BASICS */ 23 | 24 | .CodeMirror { 25 | /* Set height, width, borders, and global font properties here */ 26 | font-family: monospace; 27 | height: 300px; 28 | color: black; 29 | } 30 | 31 | /* PADDING */ 32 | 33 | .CodeMirror-lines { 34 | padding: 4px 0; /* Vertical padding around content */ 35 | } 36 | .CodeMirror pre { 37 | padding: 0 4px; /* Horizontal padding of content */ 38 | } 39 | 40 | .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { 41 | background-color: white; /* The little square between H and V scrollbars */ 42 | } 43 | 44 | /* GUTTER */ 45 | 46 | .CodeMirror-gutters { 47 | border-right: 1px solid #ddd; 48 | background-color: #f7f7f7; 49 | white-space: nowrap; 50 | } 51 | .CodeMirror-linenumbers {} 52 | .CodeMirror-linenumber { 53 | padding: 0 3px 0 5px; 54 | min-width: 20px; 55 | text-align: right; 56 | color: #999; 57 | white-space: nowrap; 58 | } 59 | 60 | .CodeMirror-guttermarker { color: black; } 61 | .CodeMirror-guttermarker-subtle { color: #999; } 62 | 63 | /* CURSOR */ 64 | 65 | .CodeMirror-cursor { 66 | border-left: 1px solid black; 67 | border-right: none; 68 | width: 0; 69 | } 70 | /* Shown when moving in bi-directional text */ 71 | .CodeMirror div.CodeMirror-secondarycursor { 72 | border-left: 1px solid silver; 73 | } 74 | .cm-fat-cursor .CodeMirror-cursor { 75 | width: auto; 76 | border: 0 !important; 77 | background: #7e7; 78 | } 79 | .cm-fat-cursor div.CodeMirror-cursors { 80 | z-index: 1; 81 | } 82 | 83 | .cm-animate-fat-cursor { 84 | width: auto; 85 | border: 0; 86 | -webkit-animation: blink 1.06s steps(1) infinite; 87 | -moz-animation: blink 1.06s steps(1) infinite; 88 | animation: blink 1.06s steps(1) infinite; 89 | background-color: #7e7; 90 | } 91 | @-moz-keyframes blink { 92 | 0% {} 93 | 50% { background-color: transparent; } 94 | 100% {} 95 | } 96 | @-webkit-keyframes blink { 97 | 0% {} 98 | 50% { background-color: transparent; } 99 | 100% {} 100 | } 101 | @keyframes blink { 102 | 0% {} 103 | 50% { background-color: transparent; } 104 | 100% {} 105 | } 106 | 107 | /* Can style cursor different in overwrite (non-insert) mode */ 108 | .CodeMirror-overwrite .CodeMirror-cursor {} 109 | 110 | .cm-tab { display: inline-block; text-decoration: inherit; } 111 | 112 | .CodeMirror-rulers { 113 | position: absolute; 114 | left: 0; right: 0; top: -50px; bottom: -20px; 115 | overflow: hidden; 116 | } 117 | .CodeMirror-ruler { 118 | border-left: 1px solid #ccc; 119 | top: 0; bottom: 0; 120 | position: absolute; 121 | } 122 | 123 | /* DEFAULT THEME */ 124 | 125 | .cm-s-default .cm-header {color: blue;} 126 | .cm-s-default .cm-quote {color: #090;} 127 | .cm-negative {color: #d44;} 128 | .cm-positive {color: #292;} 129 | .cm-header, .cm-strong {font-weight: bold;} 130 | .cm-em {font-style: italic;} 131 | .cm-link {text-decoration: underline;} 132 | .cm-strikethrough {text-decoration: line-through;} 133 | 134 | .cm-s-default .cm-keyword {color: #708;} 135 | .cm-s-default .cm-atom {color: #219;} 136 | .cm-s-default .cm-number {color: #164;} 137 | .cm-s-default .cm-def {color: #00f;} 138 | .cm-s-default .cm-variable, 139 | .cm-s-default .cm-punctuation, 140 | .cm-s-default .cm-property, 141 | .cm-s-default .cm-operator {} 142 | .cm-s-default .cm-variable-2 {color: #05a;} 143 | .cm-s-default .cm-variable-3 {color: #085;} 144 | .cm-s-default .cm-comment {color: #a50;} 145 | .cm-s-default .cm-string {color: #a11;} 146 | .cm-s-default .cm-string-2 {color: #f50;} 147 | .cm-s-default .cm-meta {color: #555;} 148 | .cm-s-default .cm-qualifier {color: #555;} 149 | .cm-s-default .cm-builtin {color: #30a;} 150 | .cm-s-default .cm-bracket {color: #997;} 151 | .cm-s-default .cm-tag {color: #170;} 152 | .cm-s-default .cm-attribute {color: #00c;} 153 | .cm-s-default .cm-hr {color: #999;} 154 | .cm-s-default .cm-link {color: #00c;} 155 | 156 | .cm-s-default .cm-error {color: #f00;} 157 | .cm-invalidchar {color: #f00;} 158 | 159 | .CodeMirror-composing { border-bottom: 2px solid; } 160 | 161 | /* Default styles for common addons */ 162 | 163 | div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;} 164 | div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;} 165 | .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); } 166 | .CodeMirror-activeline-background {background: #e8f2ff;} 167 | 168 | /* STOP */ 169 | 170 | /* The rest of this file contains styles related to the mechanics of 171 | the editor. You probably shouldn't touch them. */ 172 | 173 | .CodeMirror { 174 | position: relative; 175 | overflow: hidden; 176 | background: white; 177 | } 178 | 179 | .CodeMirror-scroll { 180 | overflow: scroll !important; /* Things will break if this is overridden */ 181 | /* 30px is the magic margin used to hide the element's real scrollbars */ 182 | /* See overflow: hidden in .CodeMirror */ 183 | margin-bottom: -30px; margin-right: -30px; 184 | padding-bottom: 30px; 185 | height: 100%; 186 | outline: none; /* Prevent dragging from highlighting the element */ 187 | position: relative; 188 | } 189 | .CodeMirror-sizer { 190 | position: relative; 191 | border-right: 30px solid transparent; 192 | } 193 | 194 | /* The fake, visible scrollbars. Used to force redraw during scrolling 195 | before actual scrolling happens, thus preventing shaking and 196 | flickering artifacts. */ 197 | .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { 198 | position: absolute; 199 | z-index: 6; 200 | display: none; 201 | } 202 | .CodeMirror-vscrollbar { 203 | right: 0; top: 0; 204 | overflow-x: hidden; 205 | overflow-y: scroll; 206 | } 207 | .CodeMirror-hscrollbar { 208 | bottom: 0; left: 0; 209 | overflow-y: hidden; 210 | overflow-x: scroll; 211 | } 212 | .CodeMirror-scrollbar-filler { 213 | right: 0; bottom: 0; 214 | } 215 | .CodeMirror-gutter-filler { 216 | left: 0; bottom: 0; 217 | } 218 | 219 | .CodeMirror-gutters { 220 | position: absolute; left: 0; top: 0; 221 | min-height: 100%; 222 | z-index: 3; 223 | } 224 | .CodeMirror-gutter { 225 | white-space: normal; 226 | height: 100%; 227 | display: inline-block; 228 | vertical-align: top; 229 | margin-bottom: -30px; 230 | /* Hack to make IE7 behave */ 231 | *zoom:1; 232 | *display:inline; 233 | } 234 | .CodeMirror-gutter-wrapper { 235 | position: absolute; 236 | z-index: 4; 237 | background: none !important; 238 | border: none !important; 239 | } 240 | .CodeMirror-gutter-background { 241 | position: absolute; 242 | top: 0; bottom: 0; 243 | z-index: 4; 244 | } 245 | .CodeMirror-gutter-elt { 246 | position: absolute; 247 | cursor: default; 248 | z-index: 4; 249 | } 250 | .CodeMirror-gutter-wrapper { 251 | -webkit-user-select: none; 252 | -moz-user-select: none; 253 | user-select: none; 254 | } 255 | 256 | .CodeMirror-lines { 257 | cursor: text; 258 | min-height: 1px; /* prevents collapsing before first draw */ 259 | } 260 | .CodeMirror pre { 261 | /* Reset some styles that the rest of the page might have set */ 262 | -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; 263 | border-width: 0; 264 | background: transparent; 265 | font-family: inherit; 266 | font-size: inherit; 267 | margin: 0; 268 | white-space: pre; 269 | word-wrap: normal; 270 | line-height: inherit; 271 | color: inherit; 272 | z-index: 2; 273 | position: relative; 274 | overflow: visible; 275 | -webkit-tap-highlight-color: transparent; 276 | -webkit-font-variant-ligatures: none; 277 | font-variant-ligatures: none; 278 | } 279 | .CodeMirror-wrap pre { 280 | word-wrap: break-word; 281 | white-space: pre-wrap; 282 | word-break: normal; 283 | } 284 | 285 | .CodeMirror-linebackground { 286 | position: absolute; 287 | left: 0; right: 0; top: 0; bottom: 0; 288 | z-index: 0; 289 | } 290 | 291 | .CodeMirror-linewidget { 292 | position: relative; 293 | z-index: 2; 294 | overflow: auto; 295 | } 296 | 297 | .CodeMirror-widget {} 298 | 299 | .CodeMirror-code { 300 | outline: none; 301 | } 302 | 303 | /* Force content-box sizing for the elements where we expect it */ 304 | .CodeMirror-scroll, 305 | .CodeMirror-sizer, 306 | .CodeMirror-gutter, 307 | .CodeMirror-gutters, 308 | .CodeMirror-linenumber { 309 | -moz-box-sizing: content-box; 310 | box-sizing: content-box; 311 | } 312 | 313 | .CodeMirror-measure { 314 | position: absolute; 315 | width: 100%; 316 | height: 0; 317 | overflow: hidden; 318 | visibility: hidden; 319 | } 320 | 321 | .CodeMirror-cursor { 322 | position: absolute; 323 | pointer-events: none; 324 | } 325 | .CodeMirror-measure pre { position: static; } 326 | 327 | div.CodeMirror-cursors { 328 | visibility: hidden; 329 | position: relative; 330 | z-index: 3; 331 | } 332 | div.CodeMirror-dragcursors { 333 | visibility: visible; 334 | } 335 | 336 | .CodeMirror-focused div.CodeMirror-cursors { 337 | visibility: visible; 338 | } 339 | 340 | .CodeMirror-selected { background: #d9d9d9; } 341 | .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; } 342 | .CodeMirror-crosshair { cursor: crosshair; } 343 | .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; } 344 | .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; } 345 | 346 | .cm-searching { 347 | background: #ffa; 348 | background: rgba(255, 255, 0, .4); 349 | } 350 | 351 | /* IE7 hack to prevent it from returning funny offsetTops on the spans */ 352 | .CodeMirror span { *vertical-align: text-bottom; } 353 | 354 | /* Used to force a border model for a node */ 355 | .cm-force-border { padding-right: .1px; } 356 | 357 | @media print { 358 | /* Hide the cursor when printing */ 359 | .CodeMirror div.CodeMirror-cursors { 360 | visibility: hidden; 361 | } 362 | } 363 | 364 | /* See issue #2901 */ 365 | .cm-tab-wrap-hack:after { content: ''; } 366 | 367 | /* Help users use markselection to safely style text background */ 368 | span.CodeMirror-selectedtext { background: none; } 369 | -------------------------------------------------------------------------------- /css/ds.css: -------------------------------------------------------------------------------- 1 | 2 | //Stuff for the table sizer boxes 3 | table { 4 | font-family: "Helvetica", "Lucida Sans", "Lucida Sans Unicode", "Luxi Sans", Tahoma, sans-serif; 5 | box-shadow: 1px 1px 10px rgba(0,0,0,0.5); 6 | border-collapse: collapse; 7 | border-spacing: 0; 8 | } 9 | table { 10 | margin: auto; 11 | } 12 | 13 | td, th { 14 | color: #1287b1; 15 | padding: 7px; 16 | text-align: center; 17 | border: 1px solid #bbe6fb; 18 | border-radius: 5px; 19 | } 20 | th { 21 | background-color: #1287b1; 22 | color: #d3effc; 23 | } 24 | 25 | .centerDiv table{ 26 | color:white; 27 | } 28 | 29 | .centerDiv{ 30 | position:absolute; 31 | top:150px; 32 | display: none; 33 | } 34 | 35 | .ui-page{ 36 | padding: 5%; 37 | width: 90%; 38 | } 39 | 40 | .ui-mobile{ 41 | width:90% 42 | } 43 | 44 | insert, .ui-input-text{ 45 | width:250px; 46 | display:inline-block; 47 | } 48 | 49 | hr { 50 | border-color: rgb(221,221,221); 51 | border-width: 1px; 52 | border-style: solid; 53 | } 54 | -------------------------------------------------------------------------------- /css/jquery.mobile.custom.structure.min.css: -------------------------------------------------------------------------------- 1 | /*! jQuery Mobile v1.4.3 | Copyright 2010, 2014 jQuery Foundation, Inc. | jquery.org/license */ 2 | 3 | /* * jQuery Mobile v1.4.3 * http://jquerymobile.com * * Copyright 2010,2014 jQuery Foundation,Inc. and other contributors * Released under the MIT license. * http://jquery.org/license * */ .ui-mobile,.ui-mobile body{height:99.9%;}.ui-mobile fieldset,.ui-page{padding:0;margin:0;}.ui-mobile a img,.ui-mobile fieldset{border-width:0;}.ui-mobile fieldset{min-width:0;}@-moz-document url-prefix(){.ui-mobile fieldset{display:table-column;vertical-align:middle;}}.ui-mobile-viewport{margin:0;overflow-x:visible;-webkit-text-size-adjust:100%;-ms-text-size-adjust:none;-webkit-tap-highlight-color:rgba(0,0,0,0);}body.ui-mobile-viewport,div.ui-mobile-viewport{overflow-x:hidden;}.ui-mobile [data-role=page],.ui-mobile [data-role=dialog],.ui-page{top:0;left:0;width:100%;min-height:100%;position:absolute;display:none;border:0;}.ui-page{outline:none;}.ui-mobile .ui-page-active{display:block;overflow:visible;overflow-x:hidden;}@media screen and (orientation:portrait){.ui-mobile .ui-page{min-height:420px;}}@media screen and (orientation:landscape){.ui-mobile .ui-page{min-height:300px;}}.ui-mobile-rendering > *{visibility:hidden;}.ui-nojs{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);}.ui-loading .ui-loader{display:block;}.ui-loader{display:none;z-index:9999999;position:fixed;top:50%;left:50%;border:0;}.ui-loader-default{background:none;filter:Alpha(Opacity=18);opacity:.18;width:2.875em;height:2.875em;margin-left:-1.4375em;margin-top:-1.4375em;}.ui-loader-verbose{width:12.5em;filter:Alpha(Opacity=88);opacity:.88;box-shadow:0 1px 1px -1px #fff;height:auto;margin-left:-6.875em;margin-top:-2.6875em;padding:.625em;}.ui-loader-default h1{font-size:0;width:0;height:0;overflow:hidden;}.ui-loader-verbose h1{font-size:1em;margin:0;text-align:center;}.ui-loader .ui-icon-loading{background-color:#000;display:block;margin:0;width:2.75em;height:2.75em;padding:.0625em;-webkit-border-radius:2.25em;border-radius:2.25em;}.ui-loader-verbose .ui-icon-loading{margin:0 auto .625em;filter:Alpha(Opacity=75);opacity:.75;}.ui-loader-textonly{padding:.9375em;margin-left:-7.1875em;}.ui-loader-textonly .ui-icon-loading{display:none;}.ui-loader-fakefix{position:absolute;}.ui-bar,.ui-body{position:relative;padding:.4em 1em;overflow:hidden;display:block;clear:both;}.ui-bar h1,.ui-bar h2,.ui-bar h3,.ui-bar h4,.ui-bar h5,.ui-bar h6{margin:0;padding:0;font-size:1em;display:inline-block;}.ui-header,.ui-footer{border-width:1px 0;border-style:solid;position:relative;}.ui-header:empty,.ui-footer:empty{min-height:2.6875em;}.ui-header .ui-title,.ui-footer .ui-title{font-size:1em;min-height:1.1em;text-align:center;display:block;margin:0 30%;padding:.7em 0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;outline:0 !important;}.ui-footer .ui-title{margin:0 1em;}.ui-content{border-width:0;overflow:visible;overflow-x:hidden;padding:1em;}.ui-corner-all > .ui-header:first-child,.ui-corner-all > .ui-content:first-child,.ui-corner-all > .ui-footer:first-child{-webkit-border-top-left-radius:inherit;border-top-left-radius:inherit;-webkit-border-top-right-radius:inherit;border-top-right-radius:inherit;}.ui-corner-all > .ui-header:last-child,.ui-corner-all > .ui-content:last-child,.ui-corner-all > .ui-footer:last-child{-webkit-border-bottom-left-radius:inherit;border-bottom-left-radius:inherit;-webkit-border-bottom-right-radius:inherit;border-bottom-right-radius:inherit;}.ui-btn{font-size:16px;margin:.5em 0;padding:.7em 1em;display:block;position:relative;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}.ui-btn-icon-notext,.ui-header button.ui-btn.ui-btn-icon-notext,.ui-footer button.ui-btn.ui-btn-icon-notext{padding:0;width:1.75em;height:1.75em;text-indent:-9999px;white-space:nowrap !important;}.ui-mini{font-size:12.5px;}.ui-mini .ui-btn{font-size:inherit;}.ui-header .ui-btn,.ui-footer .ui-btn{font-size:12.5px;display:inline-block;vertical-align:middle;}.ui-header .ui-controlgroup .ui-btn-icon-notext,.ui-footer .ui-controlgroup .ui-btn-icon-notext{font-size:12.5px;}.ui-header .ui-btn-left,.ui-header .ui-btn-right{font-size:12.5px;}.ui-mini.ui-btn-icon-notext,.ui-mini .ui-btn-icon-notext,.ui-header .ui-btn-icon-notext,.ui-footer .ui-btn-icon-notext{font-size:16px;padding:0;}.ui-btn-inline{display:inline-block;vertical-align:middle;margin-right:.625em;}.ui-btn-icon-left{padding-left:2.5em;}.ui-btn-icon-right{padding-right:2.5em;}.ui-btn-icon-top{padding-top:2.5em;}.ui-btn-icon-bottom{padding-bottom:2.5em;}.ui-header .ui-btn-icon-top,.ui-footer .ui-btn-icon-top,.ui-header .ui-btn-icon-bottom,.ui-footer .ui-btn-icon-bottom{padding-left:.3125em;padding-right:.3125em;}.ui-btn-icon-left:after,.ui-btn-icon-right:after,.ui-btn-icon-top:after,.ui-btn-icon-bottom:after,.ui-btn-icon-notext:after{content:"";position:absolute;display:block;width:22px;height:22px;}.ui-btn-icon-notext:after,.ui-btn-icon-left:after,.ui-btn-icon-right:after{top:50%;margin-top:-11px;}.ui-btn-icon-left:after{left:.5625em;}.ui-btn-icon-right:after{right:.5625em;}.ui-mini.ui-btn-icon-left:after,.ui-mini .ui-btn-icon-left:after,.ui-header .ui-btn-icon-left:after,.ui-footer .ui-btn-icon-left:after{left:.37em;}.ui-mini.ui-btn-icon-right:after,.ui-mini .ui-btn-icon-right:after,.ui-header .ui-btn-icon-right:after,.ui-footer .ui-btn-icon-right:after{right:.37em;}.ui-btn-icon-notext:after,.ui-btn-icon-top:after,.ui-btn-icon-bottom:after{left:50%;margin-left:-11px;}.ui-btn-icon-top:after{top:.5625em;}.ui-btn-icon-bottom:after{top:auto;bottom:.5625em;}.ui-header .ui-btn-left,.ui-header .ui-btn-right,.ui-btn-left > [class*="ui-"],.ui-btn-right > [class*="ui-"]{margin:0;}.ui-btn-left,.ui-btn-right{position:absolute;top:.24em;}.ui-btn-left{left:.4em;}.ui-btn-right{right:.4em;}.ui-btn-icon-notext.ui-btn-left{top:.3125em;left:.3125em;}.ui-btn-icon-notext.ui-btn-right{top:.3125em;right:.3125em;}button.ui-btn,.ui-controlgroup-controls button.ui-btn-icon-notext{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;width:100%;}button.ui-btn-inline,.ui-header button.ui-btn,.ui-footer button.ui-btn{width:auto;}button.ui-btn::-moz-focus-inner{border:0;}button.ui-btn-icon-notext,.ui-controlgroup-horizontal .ui-controlgroup-controls button.ui-btn{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;width:1.75em;}.ui-mobile label,.ui-controlgroup-label{display:block;margin:0 0 .4em;}.ui-hide-label > label,.ui-hide-label .ui-controlgroup-label,.ui-hide-label .ui-rangeslider label,.ui-hidden-accessible{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);}.ui-screen-hidden{display:none !important;}.ui-field-contain,.ui-mobile fieldset.ui-field-contain{display:block;position:relative;overflow:visible;clear:both;padding:.8em 0;}.ui-field-contain > label ~ [class*="ui-"],.ui-field-contain .ui-controlgroup-controls{margin:0;}.ui-field-contain:last-child{border-bottom-width:0;}@media (min-width:28em){.ui-field-contain,.ui-mobile fieldset.ui-field-contain{padding:0;margin:1em 0;border-bottom-width:0;}.ui-field-contain:before,.ui-field-contain:after{content:"";display:table;}.ui-field-contain:after{clear:both;}.ui-field-contain > label,.ui-field-contain .ui-controlgroup-label,.ui-field-contain > .ui-rangeslider > label{float:left;width:20%;margin:.5em 2% 0 0;}.ui-popup .ui-field-contain > label,.ui-popup .ui-field-contain .ui-controlgroup-label,.ui-popup .ui-field-contain > .ui-rangeslider > label{float:none;width:auto;margin:0 0 .4em;}.ui-field-contain > label ~ [class*="ui-"],.ui-field-contain .ui-controlgroup-controls{float:left;width:78%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}.ui-hide-label > label ~ [class*="ui-"],.ui-hide-label .ui-controlgroup-controls,.ui-popup .ui-field-contain > label ~ [class*="ui-"],.ui-popup .ui-field-contain .ui-controlgroup-controls{float:none;width:100%;}.ui-field-contain > label ~ .ui-btn-inline{width:auto;margin-right:.625em;}}.ui-mobile-viewport-transitioning,.ui-mobile-viewport-transitioning .ui-page{width:100%;height:100%;overflow:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}.ui-page-pre-in{opacity:0;}.in{-webkit-animation-timing-function:ease-out;-webkit-animation-duration:350ms;-moz-animation-timing-function:ease-out;-moz-animation-duration:350ms;animation-timing-function:ease-out;animation-duration:350ms;}.out{-webkit-animation-timing-function:ease-in;-webkit-animation-duration:225ms;-moz-animation-timing-function:ease-in;-moz-animation-duration:225ms;animation-timing-function:ease-in;animation-duration:225ms;}@-webkit-keyframes fadein{from{opacity:0;}to{opacity:1;}}@-moz-keyframes fadein{from{opacity:0;}to{opacity:1;}}@keyframes fadein{from{opacity:0;}to{opacity:1;}}@-webkit-keyframes fadeout{from{opacity:1;}to{opacity:0;}}@-moz-keyframes fadeout{from{opacity:1;}to{opacity:0;}}@keyframes fadeout{from{opacity:1;}to{opacity:0;}}.fade.out{opacity:0;-webkit-animation-duration:125ms;-webkit-animation-name:fadeout;-moz-animation-duration:125ms;-moz-animation-name:fadeout;animation-duration:125ms;animation-name:fadeout;}.fade.in{opacity:1;-webkit-animation-duration:225ms;-webkit-animation-name:fadein;-moz-animation-duration:225ms;-moz-animation-name:fadein;animation-duration:225ms;animation-name:fadein;}.viewport-flip{-webkit-perspective:1000;-moz-perspective:1000;perspective:1000;position:absolute;}.flip{-webkit-backface-visibility:hidden;-webkit-transform:translateX(0);-moz-backface-visibility:hidden;-moz-transform:translateX(0);backface-visibility:hidden;transform:translateX(0);}.flip.out{-webkit-transform:rotateY(-90deg) scale(.9);-webkit-animation-name:flipouttoleft;-webkit-animation-duration:175ms;-moz-transform:rotateY(-90deg) scale(.9);-moz-animation-name:flipouttoleft;-moz-animation-duration:175ms;transform:rotateY(-90deg) scale(.9);animation-name:flipouttoleft;animation-duration:175ms;}.flip.in{-webkit-animation-name:flipintoright;-webkit-animation-duration:225ms;-moz-animation-name:flipintoright;-moz-animation-duration:225ms;animation-name:flipintoright;animation-duration:225ms;}.flip.out.reverse{-webkit-transform:rotateY(90deg) scale(.9);-webkit-animation-name:flipouttoright;-moz-transform:rotateY(90deg) scale(.9);-moz-animation-name:flipouttoright;transform:rotateY(90deg) scale(.9);animation-name:flipouttoright;}.flip.in.reverse{-webkit-animation-name:flipintoleft;-moz-animation-name:flipintoleft;animation-name:flipintoleft;}@-webkit-keyframes flipouttoleft{from{-webkit-transform:rotateY(0);}to{-webkit-transform:rotateY(-90deg) scale(.9);}}@-moz-keyframes flipouttoleft{from{-moz-transform:rotateY(0);}to{-moz-transform:rotateY(-90deg) scale(.9);}}@keyframes flipouttoleft{from{transform:rotateY(0);}to{transform:rotateY(-90deg) scale(.9);}}@-webkit-keyframes flipouttoright{from{-webkit-transform:rotateY(0) ;}to{-webkit-transform:rotateY(90deg) scale(.9);}}@-moz-keyframes flipouttoright{from{-moz-transform:rotateY(0);}to{-moz-transform:rotateY(90deg) scale(.9);}}@keyframes flipouttoright{from{transform:rotateY(0);}to{transform:rotateY(90deg) scale(.9);}}@-webkit-keyframes flipintoleft{from{-webkit-transform:rotateY(-90deg) scale(.9);}to{-webkit-transform:rotateY(0);}}@-moz-keyframes flipintoleft{from{-moz-transform:rotateY(-90deg) scale(.9);}to{-moz-transform:rotateY(0);}}@keyframes flipintoleft{from{transform:rotateY(-90deg) scale(.9);}to{transform:rotateY(0);}}@-webkit-keyframes flipintoright{from{-webkit-transform:rotateY(90deg) scale(.9);}to{-webkit-transform:rotateY(0);}}@-moz-keyframes flipintoright{from{-moz-transform:rotateY(90deg) scale(.9);}to{-moz-transform:rotateY(0);}}@keyframes flipintoright{from{transform:rotateY(90deg) scale(.9);}to{transform:rotateY(0);}}.flow{-webkit-transform-origin:50% 30%;-webkit-box-shadow:0 0 20px rgba(0,0,0,.4);-moz-transform-origin:50% 30%;-moz-box-shadow:0 0 20px rgba(0,0,0,.4);transform-origin:50% 30%;box-shadow:0 0 20px rgba(0,0,0,.4);}.ui-dialog.flow{-webkit-transform-origin:none;-webkit-box-shadow:none;-moz-transform-origin:none;-moz-box-shadow:none;transform-origin:none;box-shadow:none;}.flow.out{-webkit-transform:translateX(-100%) scale(.7);-webkit-animation-name:flowouttoleft;-webkit-animation-timing-function:ease;-webkit-animation-duration:350ms;-moz-transform:translateX(-100%) scale(.7);-moz-animation-name:flowouttoleft;-moz-animation-timing-function:ease;-moz-animation-duration:350ms;transform:translateX(-100%) scale(.7);animation-name:flowouttoleft;animation-timing-function:ease;animation-duration:350ms;}.flow.in{-webkit-transform:translateX(0) scale(1);-webkit-animation-name:flowinfromright;-webkit-animation-timing-function:ease;-webkit-animation-duration:350ms;-moz-transform:translateX(0) scale(1);-moz-animation-name:flowinfromright;-moz-animation-timing-function:ease;-moz-animation-duration:350ms;transform:translateX(0) scale(1);animation-name:flowinfromright;animation-timing-function:ease;animation-duration:350ms;}.flow.out.reverse{-webkit-transform:translateX(100%);-webkit-animation-name:flowouttoright;-moz-transform:translateX(100%);-moz-animation-name:flowouttoright;transform:translateX(100%);animation-name:flowouttoright;}.flow.in.reverse{-webkit-animation-name:flowinfromleft;-moz-animation-name:flowinfromleft;animation-name:flowinfromleft;}@-webkit-keyframes flowouttoleft{0%{-webkit-transform:translateX(0) scale(1);}60%,70%{-webkit-transform:translateX(0) scale(.7);}100%{-webkit-transform:translateX(-100%) scale(.7);}}@-moz-keyframes flowouttoleft{0%{-moz-transform:translateX(0) scale(1);}60%,70%{-moz-transform:translateX(0) scale(.7);}100%{-moz-transform:translateX(-100%) scale(.7);}}@keyframes flowouttoleft{0%{transform:translateX(0) scale(1);}60%,70%{transform:translateX(0) scale(.7);}100%{transform:translateX(-100%) scale(.7);}}@-webkit-keyframes flowouttoright{0%{-webkit-transform:translateX(0) scale(1);}60%,70%{-webkit-transform:translateX(0) scale(.7);}100%{-webkit-transform:translateX(100%) scale(.7);}}@-moz-keyframes flowouttoright{0%{-moz-transform:translateX(0) scale(1);}60%,70%{-moz-transform:translateX(0) scale(.7);}100%{-moz-transform:translateX(100%) scale(.7);}}@keyframes flowouttoright{0%{transform:translateX(0) scale(1);}60%,70%{transform:translateX(0) scale(.7);}100%{transform:translateX(100%) scale(.7);}}@-webkit-keyframes flowinfromleft{0%{-webkit-transform:translateX(-100%) scale(.7);}30%,40%{-webkit-transform:translateX(0) scale(.7);}100%{-webkit-transform:translateX(0) scale(1);}}@-moz-keyframes flowinfromleft{0%{-moz-transform:translateX(-100%) scale(.7);}30%,40%{-moz-transform:translateX(0) scale(.7);}100%{-moz-transform:translateX(0) scale(1);}}@keyframes flowinfromleft{0%{transform:translateX(-100%) scale(.7);}30%,40%{transform:translateX(0) scale(.7);}100%{transform:translateX(0) scale(1);}}@-webkit-keyframes flowinfromright{0%{-webkit-transform:translateX(100%) scale(.7);}30%,40%{-webkit-transform:translateX(0) scale(.7);}100%{-webkit-transform:translateX(0) scale(1);}}@-moz-keyframes flowinfromright{0%{-moz-transform:translateX(100%) scale(.7);}30%,40%{-moz-transform:translateX(0) scale(.7);}100%{-moz-transform:translateX(0) scale(1);}}@keyframes flowinfromright{0%{transform:translateX(100%) scale(.7);}30%,40%{transform:translateX(0) scale(.7);}100%{transform:translateX(0) scale(1);}}.pop{-webkit-transform-origin:50% 50%;-moz-transform-origin:50% 50%;transform-origin:50% 50%;}.pop.in{-webkit-transform:scale(1);-webkit-animation-name:popin;-webkit-animation-duration:350ms;-moz-transform:scale(1);-moz-animation-name:popin;-moz-animation-duration:350ms;transform:scale(1);animation-name:popin;animation-duration:350ms;opacity:1;}.pop.out{-webkit-animation-name:fadeout;-webkit-animation-duration:100ms;-moz-animation-name:fadeout;-moz-animation-duration:100ms;animation-name:fadeout;animation-duration:100ms;opacity:0;}.pop.in.reverse{-webkit-animation-name:fadein;-moz-animation-name:fadein;animation-name:fadein;}.pop.out.reverse{-webkit-transform:scale(.8);-webkit-animation-name:popout;-moz-transform:scale(.8);-moz-animation-name:popout;transform:scale(.8);animation-name:popout;}@-webkit-keyframes popin{from{-webkit-transform:scale(.8);opacity:0;}to{-webkit-transform:scale(1);opacity:1;}}@-moz-keyframes popin{from{-moz-transform:scale(.8);opacity:0;}to{-moz-transform:scale(1);opacity:1;}}@keyframes popin{from{transform:scale(.8);opacity:0;}to{transform:scale(1);opacity:1;}}@-webkit-keyframes popout{from{-webkit-transform:scale(1);opacity:1;}to{-webkit-transform:scale(.8);opacity:0;}}@-moz-keyframes popout{from{-moz-transform:scale(1);opacity:1;}to{-moz-transform:scale(.8);opacity:0;}}@keyframes popout{from{transform:scale(1);opacity:1;}to{transform:scale(.8);opacity:0;}}@-webkit-keyframes slideinfromright{from{-webkit-transform:translate3d(100%,0,0);}to{-webkit-transform:translate3d(0,0,0);}}@-moz-keyframes slideinfromright{from{-moz-transform:translateX(100%);}to{-moz-transform:translateX(0);}}@keyframes slideinfromright{from{transform:translateX(100%);}to{transform:translateX(0);}}@-webkit-keyframes slideinfromleft{from{-webkit-transform:translate3d(-100%,0,0);}to{-webkit-transform:translate3d(0,0,0);}}@-moz-keyframes slideinfromleft{from{-moz-transform:translateX(-100%);}to{-moz-transform:translateX(0);}}@keyframes slideinfromleft{from{transform:translateX(-100%);}to{transform:translateX(0);}}@-webkit-keyframes slideouttoleft{from{-webkit-transform:translate3d(0,0,0);}to{-webkit-transform:translate3d(-100%,0,0);}}@-moz-keyframes slideouttoleft{from{-moz-transform:translateX(0);}to{-moz-transform:translateX(-100%);}}@keyframes slideouttoleft{from{transform:translateX(0);}to{transform:translateX(-100%);}}@-webkit-keyframes slideouttoright{from{-webkit-transform:translate3d(0,0,0);}to{-webkit-transform:translate3d(100%,0,0);}}@-moz-keyframes slideouttoright{from{-moz-transform:translateX(0);}to{-moz-transform:translateX(100%);}}@keyframes slideouttoright{from{transform:translateX(0);}to{transform:translateX(100%);}}.slide.out,.slide.in{-webkit-animation-timing-function:ease-out;-webkit-animation-duration:350ms;-moz-animation-timing-function:ease-out;-moz-animation-duration:350ms;animation-timing-function:ease-out;animation-duration:350ms;}.slide.out{-webkit-transform:translate3d(-100%,0,0);-webkit-animation-name:slideouttoleft;-moz-transform:translateX(-100%);-moz-animation-name:slideouttoleft;transform:translateX(-100%);animation-name:slideouttoleft;}.slide.in{-webkit-transform:translate3d(0,0,0);-webkit-animation-name:slideinfromright;-moz-transform:translateX(0);-moz-animation-name:slideinfromright;transform:translateX(0);animation-name:slideinfromright;}.slide.out.reverse{-webkit-transform:translate3d(100%,0,0);-webkit-animation-name:slideouttoright;-moz-transform:translateX(100%);-moz-animation-name:slideouttoright;transform:translateX(100%);animation-name:slideouttoright;}.slide.in.reverse{-webkit-transform:translate3d(0,0,0);-webkit-animation-name:slideinfromleft;-moz-transform:translateX(0);-moz-animation-name:slideinfromleft;transform:translateX(0);animation-name:slideinfromleft;}.slidedown.out{-webkit-animation-name:fadeout;-webkit-animation-duration:100ms;-moz-animation-name:fadeout;-moz-animation-duration:100ms;animation-name:fadeout;animation-duration:100ms;}.slidedown.in{-webkit-transform:translateY(0);-webkit-animation-name:slideinfromtop;-webkit-animation-duration:250ms;-moz-transform:translateY(0);-moz-animation-name:slideinfromtop;-moz-animation-duration:250ms;transform:translateY(0);animation-name:slideinfromtop;animation-duration:250ms;}.slidedown.in.reverse{-webkit-animation-name:fadein;-webkit-animation-duration:150ms;-moz-animation-name:fadein;-moz-animation-duration:150ms;animation-name:fadein;animation-duration:150ms;}.slidedown.out.reverse{-webkit-transform:translateY(-100%);-webkit-animation-name:slideouttotop;-webkit-animation-duration:200ms;-moz-transform:translateY(-100%);-moz-animation-name:slideouttotop;-moz-animation-duration:200ms;transform:translateY(-100%);animation-name:slideouttotop;animation-duration:200ms;}@-webkit-keyframes slideinfromtop{from{-webkit-transform:translateY(-100%);}to{-webkit-transform:translateY(0);}}@-moz-keyframes slideinfromtop{from{-moz-transform:translateY(-100%);}to{-moz-transform:translateY(0);}}@keyframes slideinfromtop{from{transform:translateY(-100%);}to{transform:translateY(0);}}@-webkit-keyframes slideouttotop{from{-webkit-transform:translateY(0);}to{-webkit-transform:translateY(-100%);}}@-moz-keyframes slideouttotop{from{-moz-transform:translateY(0);}to{-moz-transform:translateY(-100%);}}@keyframes slideouttotop{from{transform:translateY(0);}to{transform:translateY(-100%);}}@-webkit-keyframes fadein{from{opacity:0;}to{opacity:1;}}@-moz-keyframes fadein{from{opacity:0;}to{opacity:1;}}@keyframes fadein{from{opacity:0;}to{opacity:1;}}@-webkit-keyframes fadeout{from{opacity:1;}to{opacity:0;}}@-moz-keyframes fadeout{from{opacity:1;}to{opacity:0;}}@keyframes fadeout{from{opacity:1;}to{opacity:0;}}.fade.out{opacity:0;-webkit-animation-duration:125ms;-webkit-animation-name:fadeout;-moz-animation-duration:125ms;-moz-animation-name:fadeout;animation-duration:125ms;animation-name:fadeout;}.fade.in{opacity:1;-webkit-animation-duration:225ms;-webkit-animation-name:fadein;-moz-animation-duration:225ms;-moz-animation-name:fadein;animation-duration:225ms;animation-name:fadein;}@-webkit-keyframes slideouttoleft{from{-webkit-transform:translate3d(0,0,0);}to{-webkit-transform:translate3d(-100%,0,0);}}@-moz-keyframes slideouttoleft{from{-moz-transform:translateX(0);}to{-moz-transform:translateX(-100%);}}@keyframes slideouttoleft{from{transform:translateX(0);}to{transform:translateX(-100%);}}@-webkit-keyframes slideouttoright{from{-webkit-transform:translate3d(0,0,0);}to{-webkit-transform:translate3d(100%,0,0);}}@-moz-keyframes slideouttoright{from{-moz-transform:translateX(0);}to{-moz-transform:translateX(100%);}}@keyframes slideouttoright{from{transform:translateX(0);}to{transform:translateX(100%);}}.slidefade.out{-webkit-transform:translateX(-100%);-webkit-animation-name:slideouttoleft;-webkit-animation-duration:225ms;-moz-transform:translateX(-100%);-moz-animation-name:slideouttoleft;-moz-animation-duration:225ms;transform:translateX(-100%);animation-name:slideouttoleft;animation-duration:225ms;}.slidefade.in{-webkit-transform:translateX(0);-webkit-animation-name:fadein;-webkit-animation-duration:200ms;-moz-transform:translateX(0);-moz-animation-name:fadein;-moz-animation-duration:200ms;transform:translateX(0);animation-name:fadein;animation-duration:200ms;}.slidefade.out.reverse{-webkit-transform:translateX(100%);-webkit-animation-name:slideouttoright;-webkit-animation-duration:200ms;-moz-transform:translateX(100%);-moz-animation-name:slideouttoright;-moz-animation-duration:200ms;transform:translateX(100%);animation-name:slideouttoright;animation-duration:200ms;}.slidefade.in.reverse{-webkit-transform:translateX(0);-webkit-animation-name:fadein;-webkit-animation-duration:200ms;-moz-transform:translateX(0);-moz-animation-name:fadein;-moz-animation-duration:200ms;transform:translateX(0);animation-name:fadein;animation-duration:200ms;}.slideup.out{-webkit-animation-name:fadeout;-webkit-animation-duration:100ms;-moz-animation-name:fadeout;-moz-animation-duration:100ms;animation-name:fadeout;animation-duration:100ms;}.slideup.in{-webkit-transform:translateY(0);-webkit-animation-name:slideinfrombottom;-webkit-animation-duration:250ms;-moz-transform:translateY(0);-moz-animation-name:slideinfrombottom;-moz-animation-duration:250ms;transform:translateY(0);animation-name:slideinfrombottom;animation-duration:250ms;}.slideup.in.reverse{-webkit-animation-name:fadein;-webkit-animation-duration:150ms;-moz-animation-name:fadein;-moz-animation-duration:150ms;animation-name:fadein;animation-duration:150ms;}.slideup.out.reverse{-webkit-transform:translateY(100%);-webkit-animation-name:slideouttobottom;-webkit-animation-duration:200ms;-moz-transform:translateY(100%);-moz-animation-name:slideouttobottom;-moz-animation-duration:200ms;transform:translateY(100%);animation-name:slideouttobottom;animation-duration:200ms;}@-webkit-keyframes slideinfrombottom{from{-webkit-transform:translateY(100%);}to{-webkit-transform:translateY(0);}}@-moz-keyframes slideinfrombottom{from{-moz-transform:translateY(100%);}to{-moz-transform:translateY(0);}}@keyframes slideinfrombottom{from{transform:translateY(100%);}to{transform:translateY(0);}}@-webkit-keyframes slideouttobottom{from{-webkit-transform:translateY(0);}to{-webkit-transform:translateY(100%);}}@-moz-keyframes slideouttobottom{from{-moz-transform:translateY(0);}to{-moz-transform:translateY(100%);}}@keyframes slideouttobottom{from{transform:translateY(0);}to{transform:translateY(100%);}}.viewport-turn{-webkit-perspective:200px;-moz-perspective:200px;-ms-perspective:200px;perspective:200px;position:absolute;}.turn{-webkit-backface-visibility:hidden;-webkit-transform:translateX(0);-webkit-transform-origin:0;-moz-backface-visibility:hidden;-moz-transform:translateX(0);-moz-transform-origin:0;backface-visibility :hidden;transform:translateX(0);transform-origin:0;}.turn.out{-webkit-transform:rotateY(-90deg) scale(.9);-webkit-animation-name:flipouttoleft;-webkit-animation-duration:125ms;-moz-transform:rotateY(-90deg) scale(.9);-moz-animation-name:flipouttoleft;-moz-animation-duration:125ms;transform:rotateY(-90deg) scale(.9);animation-name:flipouttoleft;animation-duration:125ms;}.turn.in{-webkit-animation-name:flipintoright;-webkit-animation-duration:250ms;-moz-animation-name:flipintoright;-moz-animation-duration:250ms;animation-name:flipintoright;animation-duration:250ms;}.turn.out.reverse{-webkit-transform:rotateY(90deg) scale(.9);-webkit-animation-name:flipouttoright;-moz-transform:rotateY(90deg) scale(.9);-moz-animation-name:flipouttoright;transform:rotateY(90deg) scale(.9);animation-name:flipouttoright;}.turn.in.reverse{-webkit-animation-name:flipintoleft;-moz-animation-name:flipintoleft;animation-name:flipintoleft;}@-webkit-keyframes flipouttoleft{from{-webkit-transform:rotateY(0);}to{-webkit-transform:rotateY(-90deg) scale(.9);}}@-moz-keyframes flipouttoleft{from{-moz-transform:rotateY(0);}to{-moz-transform:rotateY(-90deg) scale(.9);}}@keyframes flipouttoleft{from{transform:rotateY(0);}to{transform:rotateY(-90deg) scale(.9);}}@-webkit-keyframes flipouttoright{from{-webkit-transform:rotateY(0) ;}to{-webkit-transform:rotateY(90deg) scale(.9);}}@-moz-keyframes flipouttoright{from{-moz-transform:rotateY(0);}to{-moz-transform:rotateY(90deg) scale(.9);}}@keyframes flipouttoright{from{transform:rotateY(0);}to{transform:rotateY(90deg) scale(.9);}}@-webkit-keyframes flipintoleft{from{-webkit-transform:rotateY(-90deg) scale(.9);}to{-webkit-transform:rotateY(0);}}@-moz-keyframes flipintoleft{from{-moz-transform:rotateY(-90deg) scale(.9);}to{-moz-transform:rotateY(0);}}@keyframes flipintoleft{from{transform:rotateY(-90deg) scale(.9);}to{transform:rotateY(0);}}@-webkit-keyframes flipintoright{from{-webkit-transform:rotateY(90deg) scale(.9);}to{-webkit-transform:rotateY(0);}}@-moz-keyframes flipintoright{from{-moz-transform:rotateY(90deg) scale(.9);}to{-moz-transform:rotateY(0);}}@keyframes flipintoright{from{transform:rotateY(90deg) scale(.9);}to{transform:rotateY(0);}}.ui-controlgroup,fieldset.ui-controlgroup{padding:0;margin:.5em 0;}.ui-field-contain .ui-controlgroup,.ui-field-contain fieldset.ui-controlgroup{margin:0;}.ui-mini .ui-controlgroup-label{font-size:16px;}.ui-controlgroup.ui-mini .ui-btn-icon-notext,.ui-controlgroup .ui-mini.ui-btn-icon-notext{font-size:inherit;}.ui-controlgroup-controls .ui-btn,.ui-controlgroup-controls .ui-checkbox,.ui-controlgroup-controls .ui-radio,.ui-controlgroup-controls .ui-select{margin:0;}.ui-controlgroup-controls .ui-btn:focus,.ui-controlgroup-controls .ui-btn.ui-focus{z-index:1;}.ui-controlgroup-controls li{list-style:none;}.ui-controlgroup-horizontal .ui-controlgroup-controls{display:inline-block;vertical-align:middle;}.ui-controlgroup-horizontal .ui-controlgroup-controls:before,.ui-controlgroup-horizontal .ui-controlgroup-controls:after{content:"";display:table;}.ui-controlgroup-horizontal .ui-controlgroup-controls:after{clear:both;}.ui-controlgroup-horizontal .ui-controlgroup-controls > .ui-btn,.ui-controlgroup-horizontal .ui-controlgroup-controls li > .ui-btn,.ui-controlgroup-horizontal .ui-controlgroup-controls .ui-checkbox,.ui-controlgroup-horizontal .ui-controlgroup-controls .ui-radio,.ui-controlgroup-horizontal .ui-controlgroup-controls .ui-select{float:left;clear:none;}.ui-controlgroup-horizontal .ui-controlgroup-controls button.ui-btn,.ui-controlgroup-controls .ui-btn-icon-notext{width:auto;}.ui-controlgroup-horizontal .ui-controlgroup-controls .ui-btn-icon-notext,.ui-controlgroup-horizontal .ui-controlgroup-controls button.ui-btn-icon-notext{width:1.5em;}.ui-controlgroup-controls .ui-btn-icon-notext{height:auto;padding:.7em 1em;}.ui-controlgroup-vertical .ui-controlgroup-controls .ui-btn{border-bottom-width:0;}.ui-controlgroup-vertical .ui-controlgroup-controls .ui-btn.ui-last-child{border-bottom-width:1px;}.ui-controlgroup-horizontal .ui-controlgroup-controls .ui-btn{border-right-width:0;}.ui-controlgroup-horizontal .ui-controlgroup-controls .ui-btn.ui-last-child{border-right-width:1px;}.ui-controlgroup-controls .ui-btn-corner-all,.ui-controlgroup-controls .ui-btn.ui-corner-all{-webkit-border-radius:0;border-radius:0;}.ui-controlgroup-controls,.ui-controlgroup-controls .ui-radio,.ui-controlgroup-controls .ui-checkbox,.ui-controlgroup-controls .ui-select,.ui-controlgroup-controls li{-webkit-border-radius:inherit;border-radius:inherit;}.ui-controlgroup-vertical .ui-btn.ui-first-child{-webkit-border-top-left-radius:inherit;border-top-left-radius:inherit;-webkit-border-top-right-radius:inherit;border-top-right-radius:inherit;}.ui-controlgroup-vertical .ui-btn.ui-last-child{-webkit-border-bottom-left-radius:inherit;border-bottom-left-radius:inherit;-webkit-border-bottom-right-radius:inherit;border-bottom-right-radius:inherit;}.ui-controlgroup-horizontal .ui-btn.ui-first-child{-webkit-border-top-left-radius:inherit;border-top-left-radius:inherit;-webkit-border-bottom-left-radius:inherit;border-bottom-left-radius:inherit;}.ui-controlgroup-horizontal .ui-btn.ui-last-child{-webkit-border-top-right-radius:inherit;border-top-right-radius:inherit;-webkit-border-bottom-right-radius:inherit;border-bottom-right-radius:inherit;}.ui-controlgroup-controls a.ui-shadow:not(:focus),.ui-controlgroup-controls button.ui-shadow:not(:focus),.ui-controlgroup-controls div.ui-shadow:not(.ui-focus){-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;}.ui-controlgroup-label legend{max-width:100%;}.ui-controlgroup-controls > label{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);}.ui-dialog{background:none !important;}.ui-dialog-contain{width:92.5%;max-width:500px;margin:10% auto 1em auto;padding:0;position:relative;top:-1em;}.ui-dialog-contain > .ui-header,.ui-dialog-contain > .ui-content,.ui-dialog-contain > .ui-footer{display:block;position:relative;width:auto;margin:0;}.ui-dialog-contain > .ui-header{overflow:hidden;z-index:10;padding:0;border-top-width:0;}.ui-dialog-contain > .ui-footer{z-index:10;padding:0 1em;border-bottom-width:0;}textarea.ui-input-text.ui-textinput-autogrow{overflow:hidden;}.ui-textinput-autogrow-resize{-webkit-transition:height 0.25s;-o-transition:height 0.25s;-moz-transition:height 0.25s;transition:height 0.25s;}.ui-input-btn input{position:absolute;top:0;left:0;width:100%;height:100%;padding:0;border:0;outline:0;-webkit-border-radius:inherit;border-radius:inherit;-webkit-appearance:none;-moz-appearance:none;cursor:pointer;background:#fff;background:rgba(255,255,255,0);filter:Alpha(Opacity=0);opacity:.1;font-size:1px;text-indent:-9999px;z-index:2;}.ui-input-btn.ui-state-disabled input{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);}.ui-checkbox,.ui-radio{margin:.5em 0;position:relative;}.ui-checkbox .ui-btn,.ui-radio .ui-btn{margin:0;text-align:left;white-space:normal;z-index:2;}.ui-controlgroup .ui-checkbox .ui-btn.ui-focus,.ui-controlgroup .ui-radio .ui-btn.ui-focus{z-index:3;}.ui-checkbox .ui-btn-icon-top,.ui-radio .ui-btn-icon-top,.ui-checkbox .ui-btn-icon-bottom,.ui-radio .ui-btn-icon-bottom{text-align:center;}.ui-controlgroup-horizontal .ui-checkbox .ui-btn:after,.ui-controlgroup-horizontal .ui-radio .ui-btn:after{content:none;display:none;}.ui-checkbox input,.ui-radio input{position:absolute;left:.466em;top:50%;width:22px;height:22px;margin:-11px 0 0 0;outline:0 !important;z-index:1;}.ui-controlgroup-horizontal .ui-checkbox input,.ui-controlgroup-horizontal .ui-radio input{left:50%;margin-left:-9px;}.ui-checkbox input:disabled,.ui-radio input:disabled{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);}.ui-input-text,.ui-input-search{margin:.5em 0;border-width:1px;border-style:solid;}.ui-input-text input,.ui-input-search input,textarea.ui-input-text{padding:.4em;line-height:1.4em;display:block;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;outline:0;}.ui-input-text input,.ui-input-search input{margin:0;min-height:2.2em;text-align:left;border:0;background:transparent none;-webkit-appearance:none;-webkit-border-radius:inherit;border-radius:inherit;}textarea.ui-input-text{overflow:auto;resize:vertical;}.ui-mini .ui-input-text input,.ui-mini .ui-input-search input,.ui-input-text.ui-mini input,.ui-input-search.ui-mini input,.ui-mini textarea.ui-input-text,textarea.ui-mini{font-size:14px;}.ui-mini textarea.ui-input-text,textarea.ui-mini{margin:.446em 0;}.ui-input-has-clear,.ui-input-search{position:relative;}.ui-input-has-clear{padding-right:2.375em;}.ui-mini.ui-input-has-clear{padding-right:2.923em;}.ui-input-has-clear input{padding-right:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;}.ui-input-search input{padding-left:1.75em;}.ui-input-search:after{position:absolute;left:.3125em;top:50%;margin-top:-7px;content:"";background-position:center center;background-repeat:no-repeat;width:14px;height:14px;filter:Alpha(Opacity=50);opacity:.5;}.ui-input-search.ui-input-has-clear .ui-btn.ui-input-clear,.ui-input-text.ui-input-has-clear .ui-btn.ui-input-clear{position:absolute;right:0;top:50%;margin:-14px .3125em 0;border:0;background-color:transparent;}.ui-input-search .ui-input-clear-hidden,.ui-input-text .ui-input-clear-hidden{display:none;}.ui-input-text input::-moz-placeholder,.ui-input-search input::-moz-placeholder,textarea.ui-input-text::-moz-placeholder{color:#aaa;}.ui-input-text input:-ms-input-placeholder,.ui-input-search input:-ms-input-placeholder,textarea.ui-input-text:-ms-input-placeholder{color:#aaa;}.ui-input-text input[type=number]::-webkit-outer-spin-button{margin:0;}.ui-input-text input::-ms-clear,.ui-input-search input::-ms-clear{display:none;}.ui-input-text input:focus,.ui-input-search input:focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}.ui-flipswitch{display:inline-block;vertical-align:middle;width:5.875em;height:1.875em;border-width:1px;border-style:solid;margin:.5em 0;overflow:hidden;-webkit-transition-property:padding,width,background-color,color,border-color;-moz-transition-property:padding,width,background-color,color,border-color;-o-transition-property:padding,width,background-color,color,border-color;transition-property:padding,width,background-color,color,border-color;-webkit-transition-duration:100ms;-moz-transition-duration:100ms;-o-transition-duration:100ms;transition-duration:100ms;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;}.ui-flipswitch.ui-flipswitch-active{padding-left:4em;width:1.875em;}.ui-flipswitch-input{position:absolute;height:1px;width:1px;margin:-1px;overflow:hidden;clip:rect(1px,1px,1px,1px);border:0;outline:0;filter:Alpha(Opacity=0);opacity:0;}.ui-flipswitch .ui-btn.ui-flipswitch-on,.ui-flipswitch .ui-flipswitch-off{float:left;height:1.75em;margin:.0625em;line-height:1.65em;}.ui-flipswitch .ui-btn.ui-flipswitch-on{width:1.75em;padding:0;text-indent:-2.6em;text-align:left;border-width:1px;border-style:solid;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border-radius:inherit;overflow:visible;color:inherit;text-shadow:inherit;}.ui-flipswitch .ui-flipswitch-off{padding:1px;text-indent:1em;}html .ui-field-contain > label + .ui-flipswitch,html .ui-popup .ui-field-contain > label + .ui-flipswitch{display:inline-block;width:5.875em;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;}.ui-field-contain .ui-flipswitch.ui-flipswitch-active,.ui-popup .ui-field-contain .ui-flipswitch.ui-flipswitch-active{width:1.875em;}.ui-rangeslider{margin:.5em 0;}.ui-rangeslider:before,.ui-rangeslider:after{content:"";display:table;}.ui-rangeslider:after{clear:both;}.ui-rangeslider .ui-slider-input.ui-rangeslider-last{float:right;}.ui-rangeslider .ui-rangeslider-sliders{position:relative;overflow:visible;height:30px;margin:0 68px;}.ui-rangeslider .ui-rangeslider-sliders .ui-slider-track{position:absolute;top:6px;right:0;left:0;margin:0;}.ui-rangeslider.ui-mini .ui-rangeslider-sliders .ui-slider-track{top:8px;}.ui-rangeslider .ui-slider-track:first-child .ui-slider-bg{display:none;}.ui-rangeslider .ui-rangeslider-sliders .ui-slider-track:first-child{background-color:transparent;background:none;border-width:0;height:0;}html >body .ui-rangeslider .ui-rangeslider-sliders .ui-slider-track:first-child{height:15px;border-width:1px;}html >body .ui-rangeslider.ui-mini .ui-rangeslider-sliders .ui-slider-track:first-child{height:12px;}div.ui-rangeslider label{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);}.ui-field-contain .ui-rangeslider input.ui-slider-input,.ui-field-contain .ui-rangeslider.ui-mini input.ui-slider-input,.ui-field-contain .ui-rangeslider .ui-rangeslider-sliders,.ui-field-contain .ui-rangeslider.ui-mini .ui-rangeslider-sliders{margin-top:0;margin-bottom:0;}.ui-select{margin-top:.5em;margin-bottom:.5em;position:relative;}.ui-select > select{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);}.ui-select .ui-btn{margin:0;opacity:1;}.ui-select .ui-btn select{position:absolute;top:0;left:0;width:100%;min-height:1.5em;min-height:100%;height:3em;max-height:100%;outline:0;-webkit-border-radius:inherit;border-radius:inherit;-webkit-appearance:none;-moz-appearance:none;cursor:pointer;filter:Alpha(Opacity=0);opacity:0;z-index:2;}@-moz-document url-prefix(){.ui-select .ui-btn select{opacity:0.0001;}}.ui-select .ui-state-disabled select{display:none;}.ui-select span.ui-state-disabled{filter:Alpha(Opacity=100);opacity:1;}.ui-select .ui-btn.ui-select-nativeonly{border-radius:0;border:0;}.ui-select .ui-btn.ui-select-nativeonly select{opacity:1;text-indent:0;display:block;}.ui-select .ui-li-has-count.ui-btn{padding-right:2.8125em;}.ui-select .ui-li-has-count.ui-btn-icon-right{padding-right:4.6875em;}.ui-select .ui-btn-icon-right .ui-li-count{right:3.2em;}.ui-select .ui-btn > span:not(.ui-li-count){display:block;text-overflow:ellipsis;overflow:hidden !important;white-space:nowrap;}.ui-selectmenu.ui-popup{min-width:11em;}.ui-selectmenu .ui-dialog-contain{overflow:hidden;}.ui-selectmenu .ui-header{margin:0;padding:0;border-width:0;}.ui-selectmenu.ui-dialog .ui-header{z-index:1;position:relative;}.ui-selectmenu.ui-popup .ui-header{-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;}.ui-selectmenu.ui-popup .ui-header h1:after{content:'.';visibility:hidden;}.ui-selectmenu .ui-header .ui-title{margin:0 2.875em;}.ui-selectmenu.ui-dialog .ui-content{overflow:visible;z-index:1;}.ui-selectmenu .ui-selectmenu-list{margin:0;-webkit-border-radius:inherit;border-radius:inherit;}.ui-header:not(.ui-screen-hidden) + .ui-selectmenu-list{-webkit-border-top-right-radius:0;border-top-right-radius:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;}.ui-header.ui-screen-hidden + .ui-selectmenu-list li.ui-first-child .ui-btn{border-top-width:0;}.ui-selectmenu .ui-selectmenu-list li.ui-last-child .ui-btn{border-bottom-width:0;}.ui-selectmenu .ui-btn.ui-li-divider{cursor:default;}.ui-selectmenu .ui-selectmenu-placeholder{display:none;}div.ui-slider{height:30px;margin:.5em 0;padding:0;-ms-touch-action:pan-y pinch-zoom double-tap-zoom;}div.ui-slider:before,div.ui-slider:after{content:"";display:table;}div.ui-slider:after{clear:both;}input.ui-slider-input{display:block;float:left;font-size:14px;font-weight:bold;margin:0;padding:4px;width:40px;height:20px;line-height:20px;border-width:1px;border-style:solid;outline:0;text-align:center;vertical-align:text-bottom;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;}.ui-slider-input::-webkit-outer-spin-button,.ui-slider-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}.ui-slider-track{position:relative;overflow:visible;border-width:1px;border-style:solid;height:15px;margin:0 15px 0 68px;top:6px;}.ui-slider-track.ui-mini{height:12px;top:8px;}.ui-slider-track .ui-slider-bg{height:100%;}.ui-slider-track .ui-btn.ui-slider-handle{position:absolute;z-index:1;top:50%;width:28px;height:28px;margin:-15px 0 0 -15px;outline:0;padding:0;}.ui-slider-track.ui-mini .ui-slider-handle{height:14px;width:14px;margin:-8px 0 0 -8px;}select.ui-slider-switch{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);}div.ui-slider-switch{display:inline-block;height:32px;width:5.8em;top:0;}div.ui-slider-switch:before,div.ui-slider-switch:after{display:none;clear:none;}div.ui-slider-switch.ui-mini{height:29px;top:0;}.ui-slider-inneroffset{margin:0 16px;position:relative;z-index:1;}.ui-slider-switch.ui-mini .ui-slider-inneroffset{margin:0 15px 0 14px;}.ui-slider-switch .ui-btn.ui-slider-handle{margin:1px 0 0 -15px;}.ui-slider-switch.ui-mini .ui-slider-handle{width:25px;height:25px;margin:1px 0 0 -13px;padding:0;}.ui-slider-handle-snapping{-webkit-transition:left 70ms linear;-moz-transition:left 70ms linear;transition:left 70ms linear;}.ui-slider-switch .ui-slider-label{position:absolute;text-align:center;width:100%;overflow:hidden;font-size:16px;top:0;line-height:2;min-height:100%;white-space:nowrap;cursor:pointer;}.ui-slider-switch.ui-mini .ui-slider-label{font-size:14px;}.ui-slider-switch .ui-slider-label-a{z-index:1;left:0;text-indent:-1.5em;}.ui-slider-switch .ui-slider-label-b{z-index:0;right:0;text-indent:1.5em;}.ui-slider-track .ui-slider-bg,.ui-slider-switch .ui-slider-label,.ui-slider-switch .ui-slider-inneroffset,.ui-slider-handle{-webkit-border-radius:inherit;border-radius:inherit;}.ui-field-contain div.ui-slider-switch{margin:0;}.ui-field-contain div.ui-slider-switch,.ui-field-contain.ui-hide-label div.ui-slider-switch,html .ui-popup .ui-field-contain div.ui-slider-switch{display:inline-block;width:5.8em;}.ui-slider-popup{width:64px;height:64px;font-size:36px;padding-top:14px;opacity:0.8;}.ui-slider-popup{position:absolute !important;text-align:center;z-index:100;}.ui-slider-track .ui-btn.ui-slider-handle{font-size:.9em;line-height:30px;}.ui-listview,.ui-listview > li{margin:0;padding:0;list-style:none;}.ui-content .ui-listview,.ui-panel-inner > .ui-listview{margin:-1em;}.ui-content .ui-listview-inset,.ui-panel-inner > .ui-listview-inset{margin:1em 0;}.ui-collapsible-content > .ui-listview{margin:-.5em -1em;}.ui-collapsible-content > .ui-listview-inset{margin:.5em 0;}.ui-listview > li{display:block;position:relative;overflow:visible;}.ui-listview > .ui-li-static,.ui-listview > .ui-li-divider,.ui-listview > li > a.ui-btn{margin:0;display:block;position:relative;text-align:left;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}.ui-listview > li > .ui-btn:focus{z-index:1;}.ui-listview > .ui-li-static,.ui-listview > .ui-li-divider,.ui-listview > li > a.ui-btn{border-width:1px 0 0 0;border-style:solid;}.ui-listview-inset > .ui-li-static,.ui-listview-inset > .ui-li-divider,.ui-listview-inset > li > a.ui-btn{border-right-width:1px;border-left-width:1px;}.ui-listview > .ui-li-static.ui-last-child,.ui-listview > .ui-li-divider.ui-last-child,.ui-listview > li.ui-last-child > a.ui-btn{border-bottom-width:1px;}.ui-collapsible-content > .ui-listview:not(.ui-listview-inset) > li.ui-first-child,.ui-collapsible-content > .ui-listview:not(.ui-listview-inset) > li.ui-first-child > a.ui-btn{border-top-width:0;}.ui-collapsible-themed-content .ui-listview:not(.ui-listview-inset) > li.ui-last-child,.ui-collapsible-themed-content .ui-listview:not(.ui-listview-inset) > li.ui-last-child > a.ui-btn{border-bottom-width:0;}.ui-listview > li.ui-first-child,.ui-listview > li.ui-first-child > a.ui-btn{-webkit-border-top-right-radius:inherit;border-top-right-radius:inherit;-webkit-border-top-left-radius:inherit;border-top-left-radius:inherit;}.ui-listview > li.ui-last-child,.ui-listview > li.ui-last-child > a.ui-btn{-webkit-border-bottom-right-radius:inherit;border-bottom-right-radius:inherit;-webkit-border-bottom-left-radius:inherit;border-bottom-left-radius:inherit;}.ui-listview > li.ui-li-has-alt > a.ui-btn{-webkit-border-top-right-radius:0;border-top-right-radius:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;}.ui-listview > li.ui-first-child > a.ui-btn + a.ui-btn{-webkit-border-top-left-radius:0;border-top-left-radius:0;-webkit-border-top-right-radius:inherit;border-top-right-radius:inherit;}.ui-listview > li.ui-last-child > a.ui-btn + a.ui-btn{-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;-webkit-border-bottom-right-radius:inherit;border-bottom-right-radius:inherit;}.ui-listview > li.ui-first-child img:first-child:not(.ui-li-icon){-webkit-border-top-left-radius:inherit;border-top-left-radius:inherit;}.ui-listview > li.ui-last-child img:first-child:not(.ui-li-icon){-webkit-border-bottom-left-radius:inherit;border-bottom-left-radius:inherit;}.ui-collapsible-content > .ui-listview:not(.ui-listview-inset){-webkit-border-radius:inherit;border-radius:inherit;}.ui-listview > .ui-li-static{padding:.7em 1em;}.ui-listview > .ui-li-divider{padding:.5em 1.143em;font-size:14px;font-weight:bold;cursor:default;outline:0;}.ui-listview > .ui-li-has-count > .ui-btn,.ui-listview > .ui-li-static.ui-li-has-count,.ui-listview > .ui-li-divider.ui-li-has-count{padding-right:2.8125em;}.ui-listview > .ui-li-has-count > .ui-btn-icon-right{padding-right:4.6875em;}.ui-listview > .ui-li-has-thumb > .ui-btn,.ui-listview > .ui-li-static.ui-li-has-thumb{min-height:3.625em;padding-left:6.25em;}.ui-listview > .ui-li-has-icon > .ui-btn,.ui-listview > .ui-li-static.ui-li-has-icon{min-height:1.25em;padding-left:2.5em;}.ui-li-count{position:absolute;font-size:12.5px;font-weight:bold;text-align:center;border-width:1px;border-style:solid;padding:0 .48em;line-height:1.6em;min-height:1.6em;min-width:.64em;right:.8em;top:50%;margin-top:-.88em;}.ui-listview .ui-btn-icon-right .ui-li-count{right:3.2em;}.ui-listview .ui-li-has-thumb > img:first-child,.ui-listview .ui-li-has-thumb > .ui-btn > img:first-child,.ui-listview .ui-li-has-thumb .ui-li-thumb{position:absolute;left:0;top:0;max-height:5em;max-width:5em;}.ui-listview > .ui-li-has-icon > img:first-child,.ui-listview > .ui-li-has-icon > .ui-btn > img:first-child{position:absolute;left:.625em;top:.9em;max-height:1em;max-width:1em;}.ui-listview > li h1,.ui-listview > li h2,.ui-listview > li h3,.ui-listview > li h4,.ui-listview > li h5,.ui-listview > li h6{font-size:1em;font-weight:bold;display:block;margin:.45em 0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}.ui-listview > li p{font-size:.75em;font-weight:normal;display:block;margin:.6em 0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}.ui-listview .ui-li-aside{position:absolute;top:1em;right:3.333em;margin:0;text-align:right;}.ui-listview > li.ui-li-has-alt > .ui-btn{margin-right:2.5em;border-right-width:0;}.ui-listview > li.ui-li-has-alt > .ui-btn + .ui-btn{position:absolute;width:2.5em;height:100%;min-height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border-left-width:1px;top:0;right:0;margin:0;padding:0;z-index:2;}.ui-listview-inset > li.ui-li-has-alt > .ui-btn + .ui-btn{border-right-width:1px;}.ui-listview > li.ui-li-has-alt > .ui-btn + .ui-btn:focus{z-index:3;}ol.ui-listview,ol.ui-listview > .ui-li-divider{counter-reset:listnumbering;}ol.ui-listview > li > .ui-btn,ol.ui-listview > li.ui-li-static{vertical-align:middle;}ol.ui-listview > li > .ui-btn:first-child:before,ol.ui-listview > li.ui-li-static:before,ol.ui-listview > li.ui-field-contain > label:before,ol.ui-listview > li.ui-field-contain > .ui-controlgroup-label:before{display:inline-block;font-size:.9em;font-weight:normal;padding-right:.3em;min-width:1.4em;line-height:1.5;vertical-align:middle;counter-increment:listnumbering;content:counter(listnumbering) ".";}ol.ui-listview > li.ui-field-contain:before{content:none;display:none;}ol.ui-listview > li h1:first-child,ol.ui-listview > li h2:first-child,ol.ui-listview > li h3:first-child,ol.ui-listview > li h4:first-child,ol.ui-listview > li h5:first-child,ol.ui-listview > li h6:first-child,ol.ui-listview > li p:first-child,ol.ui-listview > li img:first-child + *{display:inline-block;vertical-align:middle;}ol.ui-listview > li h1:first-child ~ *,ol.ui-listview > li h2:first-child ~ *,ol.ui-listview > li h3:first-child ~ *,ol.ui-listview > li h4:first-child ~ *,ol.ui-listview > li h5:first-child ~ *,ol.ui-listview > li h6:first-child ~ *,ol.ui-listview > li p:first-child ~ *,ol.ui-listview > li img:first-child + * ~ *{margin-top:0;text-indent:2.04em;}.ui-popup-open .ui-header-fixed,.ui-popup-open .ui-footer-fixed{position:absolute !important;}.ui-popup-screen{background-image:url("data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==");top:0;left:0;right:0;bottom:1px;position:absolute;filter:Alpha(Opacity=0);opacity:0;z-index:1099;}.ui-popup-screen.in{opacity:0.5;filter:Alpha(Opacity=50);}.ui-popup-screen.out{opacity:0;filter:Alpha(Opacity=0);}.ui-popup-container{z-index:1100;display:inline-block;position:absolute;padding:0;outline:0;}.ui-popup{position:relative;}.ui-popup.ui-body-inherit{border-width:1px;border-style:solid;}.ui-popup-hidden{left:0;top:0;position:absolute !important;visibility:hidden;}.ui-popup-truncate{height:1px;width:1px;margin:-1px;overflow:hidden;clip:rect(1px,1px,1px,1px);}.ui-popup.ui-content,.ui-popup .ui-content{overflow:visible;}.ui-popup > .ui-header{border-top-width:0;}.ui-popup > .ui-footer{border-bottom-width:0;}.ui-popup > p,.ui-popup > h1,.ui-popup > h2,.ui-popup > h3,.ui-popup > h4,.ui-popup > h5,.ui-popup > h6{margin:.5em .4375em;}.ui-popup > span{display:block;margin:.5em .4375em;}.ui-popup-container .ui-content > p,.ui-popup-container .ui-content > h1,.ui-popup-container .ui-content > h2,.ui-popup-container .ui-content > h3,.ui-popup-container .ui-content > h4,.ui-popup-container .ui-content > h5,.ui-popup-container .ui-content > h6{margin:.5em 0;}.ui-popup-container .ui-content > span{margin:0;}.ui-popup-container .ui-content > p:first-child,.ui-popup-container .ui-content > h1:first-child,.ui-popup-container .ui-content > h2:first-child,.ui-popup-container .ui-content > h3:first-child,.ui-popup-container .ui-content > h4:first-child,.ui-popup-container .ui-content > h5:first-child,.ui-popup-container .ui-content > h6:first-child{margin-top:0;}.ui-popup-container .ui-content > p:last-child,.ui-popup-container .ui-content > h1:last-child,.ui-popup-container .ui-content > h2:last-child,.ui-popup-container .ui-content > h3:last-child,.ui-popup-container .ui-content > h4:last-child,.ui-popup-container .ui-content > h5:last-child,.ui-popup-container .ui-content > h6:last-child{margin-bottom:0;}.ui-popup > img{max-width:100%;max-height:100%;vertical-align:middle;}.ui-popup:not(.ui-content) > img:only-child,.ui-popup:not(.ui-content) > .ui-btn-left:first-child + img:last-child,.ui-popup:not(.ui-content) > .ui-btn-right:first-child + img:last-child{-webkit-border-radius:inherit;border-radius:inherit;}.ui-popup iframe{vertical-align:middle;}.ui-popup > .ui-btn-left,.ui-popup > .ui-btn-right{position:absolute;top:-11px;margin:0;z-index:1101;}.ui-popup > .ui-btn-left{left:-11px;}.ui-popup > .ui-btn-right{right:-11px;}@-webkit-keyframes fadein{from{opacity:0;}to{opacity:1;}}@-moz-keyframes fadein{from{opacity:0;}to{opacity:1;}}@keyframes fadein{from{opacity:0;}to{opacity:1;}}@-webkit-keyframes fadeout{from{opacity:1;}to{opacity:0;}}@-moz-keyframes fadeout{from{opacity:1;}to{opacity:0;}}@keyframes fadeout{from{opacity:1;}to{opacity:0;}}.fade.out{opacity:0;-webkit-animation-duration:125ms;-webkit-animation-name:fadeout;-moz-animation-duration:125ms;-moz-animation-name:fadeout;animation-duration:125ms;animation-name:fadeout;}.fade.in{opacity:1;-webkit-animation-duration:225ms;-webkit-animation-name:fadein;-moz-animation-duration:225ms;-moz-animation-name:fadein;animation-duration:225ms;animation-name:fadein;} -------------------------------------------------------------------------------- /css/jquery.mobile.custom.theme.css: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery Mobile v1.4.3 3 | * http://jquerymobile.com 4 | * 5 | * Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors 6 | * Released under the MIT license. 7 | * http://jquery.org/license 8 | * 9 | */ 10 | 11 | /* Globals */ 12 | 13 | /* Font 14 | -----------------------------------------------------------------------------------------------------------*/ 15 | 16 | html { 17 | font-size: 100%; 18 | } 19 | body, 20 | input, 21 | select, 22 | textarea, 23 | button, 24 | .ui-btn { 25 | font-size: 1em; 26 | line-height: 1.3; 27 | font-family: sans-serif /*{global-font-family}*/; 28 | } 29 | legend, 30 | .ui-input-text input, 31 | .ui-input-search input { 32 | color: inherit; 33 | text-shadow: inherit; 34 | } 35 | /* Form labels (overrides font-weight bold in bars, and mini font-size) */ 36 | .ui-mobile label, 37 | div.ui-controlgroup-label { 38 | font-weight: normal; 39 | font-size: 16px; 40 | } 41 | 42 | /* Separators 43 | -----------------------------------------------------------------------------------------------------------*/ 44 | /* Field contain separator (< 28em) */ 45 | .ui-field-contain { 46 | border-bottom-color: #828282; 47 | border-bottom-color: rgba(0,0,0,.15); 48 | border-bottom-width: 1px; 49 | border-bottom-style: solid; 50 | } 51 | 52 | /* Table opt-in classes: strokes between each row, and alternating row stripes */ 53 | /* Classes table-stroke and table-stripe are deprecated in 1.4. */ 54 | .table-stroke thead th, 55 | .table-stripe thead th, 56 | .table-stripe tbody tr:last-child { 57 | border-bottom: 1px solid #d6d6d6; /* non-RGBA fallback */ 58 | border-bottom: 1px solid rgba(0,0,0,.1); 59 | } 60 | .table-stroke tbody th, 61 | .table-stroke tbody td { 62 | border-bottom: 1px solid #e6e6e6; /* non-RGBA fallback */ 63 | border-bottom: 1px solid rgba(0,0,0,.05); 64 | } 65 | .table-stripe.table-stroke tbody tr:last-child th, 66 | .table-stripe.table-stroke tbody tr:last-child td { 67 | border-bottom: 0; 68 | } 69 | .table-stripe tbody tr:nth-child(odd) td, 70 | .table-stripe tbody tr:nth-child(odd) th { 71 | background-color: #eeeeee; /* non-RGBA fallback */ 72 | background-color: rgba(0,0,0,.04); 73 | } 74 | 75 | /* Buttons 76 | -----------------------------------------------------------------------------------------------------------*/ 77 | 78 | .ui-btn, 79 | label.ui-btn { 80 | font-weight: bold; 81 | border-width: 1px; 82 | border-style: solid; 83 | } 84 | .ui-btn { 85 | text-decoration: none !important; 86 | } 87 | .ui-btn-active { 88 | cursor: pointer; 89 | } 90 | 91 | /* Corner rounding 92 | -----------------------------------------------------------------------------------------------------------*/ 93 | /* Class ui-btn-corner-all deprecated in 1.4 */ 94 | 95 | .ui-corner-all { 96 | -webkit-border-radius: .3125em /*{global-radii-blocks}*/; 97 | border-radius: .3125em /*{global-radii-blocks}*/; 98 | } 99 | /* Buttons */ 100 | .ui-btn-corner-all, 101 | .ui-btn.ui-corner-all, 102 | /* Slider track */ 103 | .ui-slider-track.ui-corner-all, 104 | /* Flipswitch */ 105 | .ui-flipswitch.ui-corner-all, 106 | /* Count bubble */ 107 | .ui-li-count { 108 | -webkit-border-radius: .3125em /*{global-radii-buttons}*/; 109 | border-radius: .3125em /*{global-radii-buttons}*/; 110 | } 111 | /* Icon-only buttons */ 112 | .ui-btn-icon-notext.ui-btn-corner-all, 113 | .ui-btn-icon-notext.ui-corner-all { 114 | -webkit-border-radius: 1em; 115 | border-radius: 1em; 116 | } 117 | /* Radius clip workaround for cleaning up corner trapping */ 118 | .ui-btn-corner-all, 119 | .ui-corner-all { 120 | -webkit-background-clip: padding; 121 | background-clip: padding-box; 122 | } 123 | /* Popup arrow */ 124 | .ui-popup.ui-corner-all > .ui-popup-arrow-guide { 125 | left: .6em /*{global-radii-blocks}*/; 126 | right: .6em /*{global-radii-blocks}*/; 127 | top: .6em /*{global-radii-blocks}*/; 128 | bottom: .6em /*{global-radii-blocks}*/; 129 | } 130 | 131 | /* Shadow 132 | -----------------------------------------------------------------------------------------------------------*/ 133 | 134 | .ui-shadow { 135 | -webkit-box-shadow: 0 1px 3px /*{global-box-shadow-size}*/ rgba(0,0,0,.15) /*{global-box-shadow-color}*/; 136 | -moz-box-shadow: 0 1px 3px /*{global-box-shadow-size}*/ rgba(0,0,0,.15) /*{global-box-shadow-color}*/; 137 | box-shadow: 0 1px 3px /*{global-box-shadow-size}*/ rgba(0,0,0,.15) /*{global-box-shadow-color}*/; 138 | } 139 | .ui-shadow-inset { 140 | -webkit-box-shadow: inset 0 1px 3px /*{global-box-shadow-size}*/ rgba(0,0,0,.2) /*{global-box-shadow-color}*/; 141 | -moz-box-shadow: inset 0 1px 3px /*{global-box-shadow-size}*/ rgba(0,0,0,.2) /*{global-box-shadow-color}*/; 142 | box-shadow: inset 0 1px 3px /*{global-box-shadow-size}*/ rgba(0,0,0,.2) /*{global-box-shadow-color}*/; 143 | } 144 | .ui-overlay-shadow { 145 | -webkit-box-shadow: 0 0 12px rgba(0,0,0,.6); 146 | -moz-box-shadow: 0 0 12px rgba(0,0,0,.6); 147 | box-shadow: 0 0 12px rgba(0,0,0,.6); 148 | } 149 | 150 | /* Icons 151 | -----------------------------------------------------------------------------------------------------------*/ 152 | 153 | .ui-btn-icon-left:after, 154 | .ui-btn-icon-right:after, 155 | .ui-btn-icon-top:after, 156 | .ui-btn-icon-bottom:after, 157 | .ui-btn-icon-notext:after { 158 | background-color: #666 /*{global-icon-color}*/; 159 | background-color: rgba(0,0,0,.3) /*{global-icon-disc}*/; 160 | background-position: center center; 161 | background-repeat: no-repeat; 162 | -webkit-border-radius: 1em; 163 | border-radius: 1em; 164 | } 165 | 166 | /* Alt icons */ 167 | .ui-alt-icon.ui-btn:after, 168 | .ui-alt-icon .ui-btn:after, 169 | html .ui-alt-icon.ui-checkbox-off:after, 170 | html .ui-alt-icon.ui-radio-off:after, 171 | html .ui-alt-icon .ui-checkbox-off:after, 172 | html .ui-alt-icon .ui-radio-off:after { 173 | background-color: #666 /*{global-icon-color}*/; 174 | background-color: rgba(0,0,0,.15) /*{global-icon-disc}*/; 175 | } 176 | 177 | /* No disc */ 178 | .ui-nodisc-icon.ui-btn:after, 179 | .ui-nodisc-icon .ui-btn:after { 180 | background-color: transparent; 181 | } 182 | 183 | /* Icon shadow */ 184 | .ui-shadow-icon.ui-btn:after, 185 | .ui-shadow-icon .ui-btn:after { 186 | -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.3) /*{global-icon-shadow}*/; 187 | -moz-box-shadow: 0 1px 0 rgba(255,255,255,.3) /*{global-icon-shadow}*/; 188 | box-shadow: 0 1px 0 rgba(255,255,255,.3) /*{global-icon-shadow}*/; 189 | } 190 | 191 | /* Checkbox and radio */ 192 | .ui-btn.ui-checkbox-off:after, 193 | .ui-btn.ui-checkbox-on:after, 194 | .ui-btn.ui-radio-off:after, 195 | .ui-btn.ui-radio-on:after { 196 | display: block; 197 | width: 18px; 198 | height: 18px; 199 | margin: -9px 2px 0 2px; 200 | } 201 | .ui-checkbox-off:after, 202 | .ui-btn.ui-radio-off:after { 203 | filter: Alpha(Opacity=30); 204 | opacity: .3; 205 | } 206 | .ui-btn.ui-checkbox-off:after, 207 | .ui-btn.ui-checkbox-on:after { 208 | -webkit-border-radius: .1875em; 209 | border-radius: .1875em; 210 | } 211 | .ui-btn.ui-checkbox-off:after { 212 | background-color: #666; 213 | background-color: rgba(0,0,0,.3); 214 | } 215 | .ui-radio .ui-btn.ui-radio-on:after { 216 | background-image: none; 217 | background-color: #fff; 218 | width: 8px; 219 | height: 8px; 220 | border-width: 5px; 221 | border-style: solid; 222 | } 223 | .ui-alt-icon.ui-btn.ui-radio-on:after, 224 | .ui-alt-icon .ui-btn.ui-radio-on:after { 225 | background-color: #000; 226 | } 227 | 228 | /* Loader */ 229 | .ui-icon-loading { 230 | background: url("images/ajax-loader.gif"); 231 | background-size: 2.875em 2.875em; 232 | } 233 | 234 | /* Swatches */ 235 | 236 | /* A 237 | -----------------------------------------------------------------------------------------------------------*/ 238 | 239 | /* Bar: Toolbars, dividers, slider track */ 240 | .ui-bar-a, 241 | .ui-page-theme-a .ui-bar-inherit, 242 | html .ui-bar-a .ui-bar-inherit, 243 | html .ui-body-a .ui-bar-inherit, 244 | html body .ui-group-theme-a .ui-bar-inherit { 245 | background-color: #e9e9e9 /*{a-bar-background-color}*/; 246 | border-color: #ddd /*{a-bar-border}*/; 247 | color: #333 /*{a-bar-color}*/; 248 | text-shadow: 0 /*{a-bar-shadow-x}*/ 1px /*{a-bar-shadow-y}*/ 0 /*{a-bar-shadow-radius}*/ #eee /*{a-bar-shadow-color}*/; 249 | font-weight: bold; 250 | } 251 | .ui-bar-a { 252 | border-width: 1px; 253 | border-style: solid; 254 | } 255 | 256 | /* Page and overlay */ 257 | .ui-overlay-a, 258 | .ui-page-theme-a, 259 | .ui-page-theme-a .ui-panel-wrapper { 260 | background-color: #f9f9f9 /*{a-page-background-color}*/; 261 | border-color: #bbb /*{a-page-border}*/; 262 | color: #333 /*{a-page-color}*/; 263 | text-shadow: 0 /*{a-page-shadow-x}*/ 1px /*{a-page-shadow-y}*/ 0 /*{a-page-shadow-radius}*/ #f3f3f3 /*{a-page-shadow-color}*/; 264 | } 265 | 266 | /* Body: Read-only lists, text inputs, collapsible content */ 267 | .ui-body-a, 268 | .ui-page-theme-a .ui-body-inherit, 269 | html .ui-bar-a .ui-body-inherit, 270 | html .ui-body-a .ui-body-inherit, 271 | html body .ui-group-theme-a .ui-body-inherit, 272 | html .ui-panel-page-container-a { 273 | background-color: #fff /*{a-body-background-color}*/; 274 | border-color: #ddd /*{a-body-border}*/; 275 | color: #333 /*{a-body-color}*/; 276 | text-shadow: 0 /*{a-body-shadow-x}*/ 1px /*{a-body-shadow-y}*/ 0 /*{a-body-shadow-radius}*/ #f3f3f3 /*{a-body-shadow-color}*/; 277 | } 278 | .ui-body-a { 279 | border-width: 1px; 280 | border-style: solid; 281 | } 282 | 283 | /* Links */ 284 | .ui-page-theme-a a, 285 | html .ui-bar-a a, 286 | html .ui-body-a a, 287 | html body .ui-group-theme-a a { 288 | color: #3388cc /*{a-link-color}*/; 289 | font-weight: bold; 290 | } 291 | .ui-page-theme-a a:visited, 292 | html .ui-bar-a a:visited, 293 | html .ui-body-a a:visited, 294 | html body .ui-group-theme-a a:visited { 295 | color: #3388cc /*{a-link-visited}*/; 296 | } 297 | .ui-page-theme-a a:hover, 298 | html .ui-bar-a a:hover, 299 | html .ui-body-a a:hover, 300 | html body .ui-group-theme-a a:hover { 301 | color: #005599 /*{a-link-hover}*/; 302 | } 303 | .ui-page-theme-a a:active, 304 | html .ui-bar-a a:active, 305 | html .ui-body-a a:active, 306 | html body .ui-group-theme-a a:active { 307 | color: #005599 /*{a-link-active}*/; 308 | } 309 | 310 | /* Button up */ 311 | .ui-page-theme-a .ui-btn, 312 | html .ui-bar-a .ui-btn, 313 | html .ui-body-a .ui-btn, 314 | html body .ui-group-theme-a .ui-btn, 315 | html head + body .ui-btn.ui-btn-a, 316 | /* Button visited */ 317 | .ui-page-theme-a .ui-btn:visited, 318 | html .ui-bar-a .ui-btn:visited, 319 | html .ui-body-a .ui-btn:visited, 320 | html body .ui-group-theme-a .ui-btn:visited, 321 | html head + body .ui-btn.ui-btn-a:visited { 322 | background-color: #f6f6f6 /*{a-bup-background-color}*/; 323 | border-color: #ddd /*{a-bup-border}*/; 324 | color: #333 /*{a-bup-color}*/; 325 | text-shadow: 0 /*{a-bup-shadow-x}*/ 1px /*{a-bup-shadow-y}*/ 0 /*{a-bup-shadow-radius}*/ #f3f3f3 /*{a-bup-shadow-color}*/; 326 | } 327 | /* Button hover */ 328 | .ui-page-theme-a .ui-btn:hover, 329 | html .ui-bar-a .ui-btn:hover, 330 | html .ui-body-a .ui-btn:hover, 331 | html body .ui-group-theme-a .ui-btn:hover, 332 | html head + body .ui-btn.ui-btn-a:hover { 333 | background-color: #ededed /*{a-bhover-background-color}*/; 334 | border-color: #ddd /*{a-bhover-border}*/; 335 | color: #333 /*{a-bhover-color}*/; 336 | text-shadow: 0 /*{a-bhover-shadow-x}*/ 1px /*{a-bhover-shadow-y}*/ 0 /*{a-bhover-shadow-radius}*/ #f3f3f3 /*{a-bhover-shadow-color}*/; 337 | } 338 | /* Button down */ 339 | .ui-page-theme-a .ui-btn:active, 340 | html .ui-bar-a .ui-btn:active, 341 | html .ui-body-a .ui-btn:active, 342 | html body .ui-group-theme-a .ui-btn:active, 343 | html head + body .ui-btn.ui-btn-a:active { 344 | background-color: #e8e8e8 /*{a-bdown-background-color}*/; 345 | border-color: #ddd /*{a-bdown-border}*/; 346 | color: #333 /*{a-bdown-color}*/; 347 | text-shadow: 0 /*{a-bdown-shadow-x}*/ 1px /*{a-bdown-shadow-y}*/ 0 /*{a-bdown-shadow-radius}*/ #f3f3f3 /*{a-bdown-shadow-color}*/; 348 | } 349 | 350 | /* Active button */ 351 | .ui-page-theme-a .ui-btn.ui-btn-active, 352 | html .ui-bar-a .ui-btn.ui-btn-active, 353 | html .ui-body-a .ui-btn.ui-btn-active, 354 | html body .ui-group-theme-a .ui-btn.ui-btn-active, 355 | html head + body .ui-btn.ui-btn-a.ui-btn-active, 356 | /* Active checkbox icon */ 357 | .ui-page-theme-a .ui-checkbox-on:after, 358 | html .ui-bar-a .ui-checkbox-on:after, 359 | html .ui-body-a .ui-checkbox-on:after, 360 | html body .ui-group-theme-a .ui-checkbox-on:after, 361 | .ui-btn.ui-checkbox-on.ui-btn-a:after, 362 | /* Active flipswitch background */ 363 | .ui-page-theme-a .ui-flipswitch-active, 364 | html .ui-bar-a .ui-flipswitch-active, 365 | html .ui-body-a .ui-flipswitch-active, 366 | html body .ui-group-theme-a .ui-flipswitch-active, 367 | html body .ui-flipswitch.ui-bar-a.ui-flipswitch-active, 368 | /* Active slider track */ 369 | .ui-page-theme-a .ui-slider-track .ui-btn-active, 370 | html .ui-bar-a .ui-slider-track .ui-btn-active, 371 | html .ui-body-a .ui-slider-track .ui-btn-active, 372 | html body .ui-group-theme-a .ui-slider-track .ui-btn-active, 373 | html body div.ui-slider-track.ui-body-a .ui-btn-active { 374 | background-color: #3388cc /*{a-active-background-color}*/; 375 | border-color: #3388cc /*{a-active-border}*/; 376 | color: #fff /*{a-active-color}*/; 377 | text-shadow: 0 /*{a-active-shadow-x}*/ 1px /*{a-active-shadow-y}*/ 0 /*{a-active-shadow-radius}*/ #005599 /*{a-active-shadow-color}*/; 378 | } 379 | /* Active radio button icon */ 380 | .ui-page-theme-a .ui-radio-on:after, 381 | html .ui-bar-a .ui-radio-on:after, 382 | html .ui-body-a .ui-radio-on:after, 383 | html body .ui-group-theme-a .ui-radio-on:after, 384 | .ui-btn.ui-radio-on.ui-btn-a:after { 385 | border-color: #3388cc /*{a-active-background-color}*/; 386 | } 387 | 388 | /* Focus */ 389 | .ui-page-theme-a .ui-btn:focus, 390 | html .ui-bar-a .ui-btn:focus, 391 | html .ui-body-a .ui-btn:focus, 392 | html body .ui-group-theme-a .ui-btn:focus, 393 | html head + body .ui-btn.ui-btn-a:focus, 394 | /* Focus buttons and text inputs with div wrap */ 395 | .ui-page-theme-a .ui-focus, 396 | html .ui-bar-a .ui-focus, 397 | html .ui-body-a .ui-focus, 398 | html body .ui-group-theme-a .ui-focus, 399 | html head + body .ui-btn-a.ui-focus, 400 | html head + body .ui-body-a.ui-focus { 401 | -webkit-box-shadow: 0 0 12px #3388cc /*{a-active-background-color}*/; 402 | -moz-box-shadow: 0 0 12px #3388cc /*{a-active-background-color}*/; 403 | box-shadow: 0 0 12px #3388cc /*{a-active-background-color}*/; 404 | } 405 | 406 | /* B 407 | -----------------------------------------------------------------------------------------------------------*/ 408 | 409 | /* Bar: Toolbars, dividers, slider track */ 410 | .ui-bar-b, 411 | .ui-page-theme-b .ui-bar-inherit, 412 | html .ui-bar-b .ui-bar-inherit, 413 | html .ui-body-b .ui-bar-inherit, 414 | html body .ui-group-theme-b .ui-bar-inherit { 415 | background-color: #1d1d1d /*{b-bar-background-color}*/; 416 | border-color: #1b1b1b /*{b-bar-border}*/; 417 | color: #fff /*{b-bar-color}*/; 418 | text-shadow: 0 /*{b-bar-shadow-x}*/ 1px /*{b-bar-shadow-y}*/ 0 /*{b-bar-shadow-radius}*/ #111 /*{b-bar-shadow-color}*/; 419 | font-weight: bold; 420 | } 421 | .ui-bar-b { 422 | border-width: 1px; 423 | border-style: solid; 424 | } 425 | 426 | /* Page and overlay */ 427 | .ui-overlay-b, 428 | .ui-page-theme-b, 429 | .ui-page-theme-b .ui-panel-wrapper { 430 | background-color: #252525 /*{b-page-background-color}*/; 431 | border-color: #454545 /*{b-page-border}*/; 432 | color: #fff /*{b-page-color}*/; 433 | text-shadow: 0 /*{b-page-shadow-x}*/ 1px /*{b-page-shadow-y}*/ 0 /*{b-page-shadow-radius}*/ #111 /*{b-page-shadow-color}*/; 434 | } 435 | 436 | /* Body: Read-only lists, text inputs, collapsible content */ 437 | .ui-body-b, 438 | .ui-page-theme-b .ui-body-inherit, 439 | html .ui-bar-b .ui-body-inherit, 440 | html .ui-body-b .ui-body-inherit, 441 | html body .ui-group-theme-b .ui-body-inherit, 442 | html .ui-panel-page-container-b { 443 | background-color: #2a2a2a /*{b-body-background-color}*/; 444 | border-color: #1d1d1d /*{b-body-border}*/; 445 | color: #fff /*{b-body-color}*/; 446 | text-shadow: 0 /*{b-body-shadow-x}*/ 1px /*{b-body-shadow-y}*/ 0 /*{b-body-shadow-radius}*/ #111 /*{b-body-shadow-color}*/; 447 | } 448 | .ui-body-b { 449 | border-width: 1px; 450 | border-style: solid; 451 | } 452 | 453 | /* Links */ 454 | .ui-page-theme-b a, 455 | html .ui-bar-b a, 456 | html .ui-body-b a, 457 | html body .ui-group-theme-b a { 458 | color: #22aadd /*{b-link-color}*/; 459 | font-weight: bold; 460 | } 461 | .ui-page-theme-b a:visited, 462 | html .ui-bar-b a:visited, 463 | html .ui-body-b a:visited, 464 | html body .ui-group-theme-b a:visited { 465 | color: #22aadd /*{b-link-visited}*/; 466 | } 467 | .ui-page-theme-b a:hover, 468 | html .ui-bar-b a:hover, 469 | html .ui-body-b a:hover, 470 | html body .ui-group-theme-b a:hover { 471 | color: #0088bb /*{b-link-hover}*/; 472 | } 473 | .ui-page-theme-b a:active, 474 | html .ui-bar-b a:active, 475 | html .ui-body-b a:active, 476 | html body .ui-group-theme-b a:active { 477 | color: #0088bb /*{b-link-active}*/; 478 | } 479 | 480 | /* Button up */ 481 | .ui-page-theme-b .ui-btn, 482 | html .ui-bar-b .ui-btn, 483 | html .ui-body-b .ui-btn, 484 | html body .ui-group-theme-b .ui-btn, 485 | html head + body .ui-btn.ui-btn-b, 486 | /* Button visited */ 487 | .ui-page-theme-b .ui-btn:visited, 488 | html .ui-bar-b .ui-btn:visited, 489 | html .ui-body-b .ui-btn:visited, 490 | html body .ui-group-theme-b .ui-btn:visited, 491 | html head + body .ui-btn.ui-btn-b:visited { 492 | background-color: #333 /*{b-bup-background-color}*/; 493 | border-color: #1f1f1f /*{b-bup-border}*/; 494 | color: #fff /*{b-bup-color}*/; 495 | text-shadow: 0 /*{b-bup-shadow-x}*/ 1px /*{b-bup-shadow-y}*/ 0 /*{b-bup-shadow-radius}*/ #111 /*{b-bup-shadow-color}*/; 496 | } 497 | /* Button hover */ 498 | .ui-page-theme-b .ui-btn:hover, 499 | html .ui-bar-b .ui-btn:hover, 500 | html .ui-body-b .ui-btn:hover, 501 | html body .ui-group-theme-b .ui-btn:hover, 502 | html head + body .ui-btn.ui-btn-b:hover { 503 | background-color: #373737 /*{b-bhover-background-color}*/; 504 | border-color: #1f1f1f /*{b-bhover-border}*/; 505 | color: #fff /*{b-bhover-color}*/; 506 | text-shadow: 0 /*{b-bhover-shadow-x}*/ 1px /*{b-bhover-shadow-y}*/ 0 /*{b-bhover-shadow-radius}*/ #111 /*{b-bhover-shadow-color}*/; 507 | } 508 | /* Button down */ 509 | .ui-page-theme-b .ui-btn:active, 510 | html .ui-bar-b .ui-btn:active, 511 | html .ui-body-b .ui-btn:active, 512 | html body .ui-group-theme-b .ui-btn:active, 513 | html head + body .ui-btn.ui-btn-b:active { 514 | background-color: #404040 /*{b-bdown-background-color}*/; 515 | border-color: #1f1f1f /*{b-bdown-border}*/; 516 | color: #fff /*{b-bdown-color}*/; 517 | text-shadow: 0 /*{b-bdown-shadow-x}*/ 1px /*{b-bdown-shadow-y}*/ 0 /*{b-bdown-shadow-radius}*/ #111 /*{b-bdown-shadow-color}*/; 518 | } 519 | 520 | /* Active button */ 521 | .ui-page-theme-b .ui-btn.ui-btn-active, 522 | html .ui-bar-b .ui-btn.ui-btn-active, 523 | html .ui-body-b .ui-btn.ui-btn-active, 524 | html body .ui-group-theme-b .ui-btn.ui-btn-active, 525 | html head + body .ui-btn.ui-btn-b.ui-btn-active, 526 | /* Active checkbox icon */ 527 | .ui-page-theme-b .ui-checkbox-on:after, 528 | html .ui-bar-b .ui-checkbox-on:after, 529 | html .ui-body-b .ui-checkbox-on:after, 530 | html body .ui-group-theme-b .ui-checkbox-on:after, 531 | .ui-btn.ui-checkbox-on.ui-btn-b:after, 532 | /* Active flipswitch background */ 533 | .ui-page-theme-b .ui-flipswitch-active, 534 | html .ui-bar-b .ui-flipswitch-active, 535 | html .ui-body-b .ui-flipswitch-active, 536 | html body .ui-group-theme-b .ui-flipswitch-active, 537 | html body .ui-flipswitch.ui-bar-b.ui-flipswitch-active, 538 | /* Active slider track */ 539 | .ui-page-theme-b .ui-slider-track .ui-btn-active, 540 | html .ui-bar-b .ui-slider-track .ui-btn-active, 541 | html .ui-body-b .ui-slider-track .ui-btn-active, 542 | html body .ui-group-theme-b .ui-slider-track .ui-btn-active, 543 | html body div.ui-slider-track.ui-body-b .ui-btn-active { 544 | background-color: #22aadd /*{b-active-background-color}*/; 545 | border-color: #22aadd /*{b-active-border}*/; 546 | color: #fff /*{b-active-color}*/; 547 | text-shadow: 0 /*{b-active-shadow-x}*/ 1px /*{b-active-shadow-y}*/ 0 /*{b-active-shadow-radius}*/ #0088bb /*{b-active-shadow-color}*/; 548 | } 549 | /* Active radio button icon */ 550 | .ui-page-theme-b .ui-radio-on:after, 551 | html .ui-bar-b .ui-radio-on:after, 552 | html .ui-body-b .ui-radio-on:after, 553 | html body .ui-group-theme-b .ui-radio-on:after, 554 | .ui-btn.ui-radio-on.ui-btn-b:after { 555 | border-color: #22aadd /*{b-active-background-color}*/; 556 | } 557 | 558 | /* Focus */ 559 | .ui-page-theme-b .ui-btn:focus, 560 | html .ui-bar-b .ui-btn:focus, 561 | html .ui-body-b .ui-btn:focus, 562 | html body .ui-group-theme-b .ui-btn:focus, 563 | html head + body .ui-btn.ui-btn-b:focus, 564 | /* Focus buttons and text inputs with div wrap */ 565 | .ui-page-theme-b .ui-focus, 566 | html .ui-bar-b .ui-focus, 567 | html .ui-body-b .ui-focus, 568 | html body .ui-group-theme-b .ui-focus, 569 | html head + body .ui-btn-b.ui-focus, 570 | html head + body .ui-body-b.ui-focus { 571 | -webkit-box-shadow: 0 0 12px #22aadd /*{b-active-background-color}*/; 572 | -moz-box-shadow: 0 0 12px #22aadd /*{b-active-background-color}*/; 573 | box-shadow: 0 0 12px #22aadd /*{b-active-background-color}*/; 574 | } 575 | 576 | /* Structure */ 577 | 578 | /* Disabled 579 | -----------------------------------------------------------------------------------------------------------*/ 580 | /* Class ui-disabled deprecated in 1.4. :disabled not supported by IE8 so we use [disabled] */ 581 | 582 | .ui-disabled, 583 | .ui-state-disabled, 584 | button[disabled], 585 | .ui-select .ui-btn.ui-state-disabled { 586 | filter: Alpha(Opacity=30); 587 | opacity: .3; 588 | cursor: default !important; 589 | pointer-events: none; 590 | } 591 | 592 | /* Focus state outline 593 | -----------------------------------------------------------------------------------------------------------*/ 594 | 595 | .ui-btn:focus, 596 | .ui-btn.ui-focus { 597 | outline: 0; 598 | } 599 | /* Unset box-shadow in browsers that don't do it right */ 600 | .ui-noboxshadow .ui-shadow, 601 | .ui-noboxshadow .ui-shadow-inset, 602 | .ui-noboxshadow .ui-overlay-shadow, 603 | .ui-noboxshadow .ui-shadow-icon.ui-btn:after, 604 | .ui-noboxshadow .ui-shadow-icon .ui-btn:after, 605 | .ui-noboxshadow .ui-focus, 606 | .ui-noboxshadow .ui-btn:focus, 607 | .ui-noboxshadow input:focus, 608 | .ui-noboxshadow .ui-panel { 609 | -webkit-box-shadow: none !important; 610 | -moz-box-shadow: none !important; 611 | box-shadow: none !important; 612 | } 613 | .ui-noboxshadow .ui-btn:focus, 614 | .ui-noboxshadow .ui-focus { 615 | outline-width: 1px; 616 | outline-style: auto; 617 | } -------------------------------------------------------------------------------- /css/jquery.mobile.custom.theme.min.css: -------------------------------------------------------------------------------- 1 | /*! jQuery Mobile v1.4.3 | Copyright 2010, 2014 jQuery Foundation, Inc. | jquery.org/license */ 2 | 3 | /* * jQuery Mobile v1.4.3 * http://jquerymobile.com * * Copyright 2010,2014 jQuery Foundation,Inc. and other contributors * Released under the MIT license. * http://jquery.org/license * */ html{font-size:100%;}body,input,select,textarea,button,.ui-btn{font-size:1em;line-height:1.3;font-family:sans-serif ;}legend,.ui-input-text input,.ui-input-search input{color:inherit;text-shadow:inherit;}.ui-mobile label,div.ui-controlgroup-label{font-weight:normal;font-size:16px;}.ui-field-contain{border-bottom-color:#828282;border-bottom-color:rgba(0,0,0,.15);border-bottom-width:1px;border-bottom-style:solid;}.table-stroke thead th,.table-stripe thead th,.table-stripe tbody tr:last-child{border-bottom:1px solid #d6d6d6;border-bottom:1px solid rgba(0,0,0,.1);}.table-stroke tbody th,.table-stroke tbody td{border-bottom:1px solid #e6e6e6;border-bottom:1px solid rgba(0,0,0,.05);}.table-stripe.table-stroke tbody tr:last-child th,.table-stripe.table-stroke tbody tr:last-child td{border-bottom:0;}.table-stripe tbody tr:nth-child(odd) td,.table-stripe tbody tr:nth-child(odd) th{background-color:#eeeeee;background-color:rgba(0,0,0,.04);}.ui-btn,label.ui-btn{font-weight:bold;border-width:1px;border-style:solid;}.ui-btn{text-decoration:none !important;}.ui-btn-active{cursor:pointer;}.ui-corner-all{-webkit-border-radius:.3125em ;border-radius:.3125em ;}.ui-btn-corner-all,.ui-btn.ui-corner-all,.ui-slider-track.ui-corner-all,.ui-flipswitch.ui-corner-all,.ui-li-count{-webkit-border-radius:.3125em ;border-radius:.3125em ;}.ui-btn-icon-notext.ui-btn-corner-all,.ui-btn-icon-notext.ui-corner-all{-webkit-border-radius:1em;border-radius:1em;}.ui-btn-corner-all,.ui-corner-all{-webkit-background-clip:padding;background-clip:padding-box;}.ui-popup.ui-corner-all > .ui-popup-arrow-guide{left:.6em ;right:.6em ;top:.6em ;bottom:.6em ;}.ui-shadow{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.15) ;-moz-box-shadow:0 1px 3px rgba(0,0,0,.15) ;box-shadow:0 1px 3px rgba(0,0,0,.15) ;}.ui-shadow-inset{-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.2) ;-moz-box-shadow:inset 0 1px 3px rgba(0,0,0,.2) ;box-shadow:inset 0 1px 3px rgba(0,0,0,.2) ;}.ui-overlay-shadow{-webkit-box-shadow:0 0 12px rgba(0,0,0,.6);-moz-box-shadow:0 0 12px rgba(0,0,0,.6);box-shadow:0 0 12px rgba(0,0,0,.6);}.ui-btn-icon-left:after,.ui-btn-icon-right:after,.ui-btn-icon-top:after,.ui-btn-icon-bottom:after,.ui-btn-icon-notext:after{background-color:#666 ;background-color:rgba(0,0,0,.3) ;background-position:center center;background-repeat:no-repeat;-webkit-border-radius:1em;border-radius:1em;}.ui-alt-icon.ui-btn:after,.ui-alt-icon .ui-btn:after,html .ui-alt-icon.ui-checkbox-off:after,html .ui-alt-icon.ui-radio-off:after,html .ui-alt-icon .ui-checkbox-off:after,html .ui-alt-icon .ui-radio-off:after{background-color:#666 ;background-color:rgba(0,0,0,.15) ;}.ui-nodisc-icon.ui-btn:after,.ui-nodisc-icon .ui-btn:after{background-color:transparent;}.ui-shadow-icon.ui-btn:after,.ui-shadow-icon .ui-btn:after{-webkit-box-shadow:0 1px 0 rgba(255,255,255,.3) ;-moz-box-shadow:0 1px 0 rgba(255,255,255,.3) ;box-shadow:0 1px 0 rgba(255,255,255,.3) ;}.ui-btn.ui-checkbox-off:after,.ui-btn.ui-checkbox-on:after,.ui-btn.ui-radio-off:after,.ui-btn.ui-radio-on:after{display:block;width:18px;height:18px;margin:-9px 2px 0 2px;}.ui-checkbox-off:after,.ui-btn.ui-radio-off:after{filter:Alpha(Opacity=30);opacity:.3;}.ui-btn.ui-checkbox-off:after,.ui-btn.ui-checkbox-on:after{-webkit-border-radius:.1875em;border-radius:.1875em;}.ui-btn.ui-checkbox-off:after{background-color:#666;background-color:rgba(0,0,0,.3);}.ui-radio .ui-btn.ui-radio-on:after{background-image:none;background-color:#fff;width:8px;height:8px;border-width:5px;border-style:solid;}.ui-alt-icon.ui-btn.ui-radio-on:after,.ui-alt-icon .ui-btn.ui-radio-on:after{background-color:#000;}.ui-icon-loading{background:url("images/ajax-loader.gif");background-size:2.875em 2.875em;}.ui-bar-a,.ui-page-theme-a .ui-bar-inherit,html .ui-bar-a .ui-bar-inherit,html .ui-body-a .ui-bar-inherit,html body .ui-group-theme-a .ui-bar-inherit{background-color:#e9e9e9 ;border-color:#ddd ;color:#333 ;text-shadow:0 1px 0 #eee ;font-weight:bold;}.ui-bar-a{border-width:1px;border-style:solid;}.ui-overlay-a,.ui-page-theme-a,.ui-page-theme-a .ui-panel-wrapper{background-color:#f9f9f9 ;border-color:#bbb ;color:#333 ;text-shadow:0 1px 0 #f3f3f3 ;}.ui-body-a,.ui-page-theme-a .ui-body-inherit,html .ui-bar-a .ui-body-inherit,html .ui-body-a .ui-body-inherit,html body .ui-group-theme-a .ui-body-inherit,html .ui-panel-page-container-a{background-color:#fff ;border-color:#ddd ;color:#333 ;text-shadow:0 1px 0 #f3f3f3 ;}.ui-body-a{border-width:1px;border-style:solid;}.ui-page-theme-a a,html .ui-bar-a a,html .ui-body-a a,html body .ui-group-theme-a a{color:#3388cc ;font-weight:bold;}.ui-page-theme-a a:visited,html .ui-bar-a a:visited,html .ui-body-a a:visited,html body .ui-group-theme-a a:visited{color:#3388cc ;}.ui-page-theme-a a:hover,html .ui-bar-a a:hover,html .ui-body-a a:hover,html body .ui-group-theme-a a:hover{color:#005599 ;}.ui-page-theme-a a:active,html .ui-bar-a a:active,html .ui-body-a a:active,html body .ui-group-theme-a a:active{color:#005599 ;}.ui-page-theme-a .ui-btn,html .ui-bar-a .ui-btn,html .ui-body-a .ui-btn,html body .ui-group-theme-a .ui-btn,html head + body .ui-btn.ui-btn-a,.ui-page-theme-a .ui-btn:visited,html .ui-bar-a .ui-btn:visited,html .ui-body-a .ui-btn:visited,html body .ui-group-theme-a .ui-btn:visited,html head + body .ui-btn.ui-btn-a:visited{background-color:#f6f6f6 ;border-color:#ddd ;color:#333 ;text-shadow:0 1px 0 #f3f3f3 ;}.ui-page-theme-a .ui-btn:hover,html .ui-bar-a .ui-btn:hover,html .ui-body-a .ui-btn:hover,html body .ui-group-theme-a .ui-btn:hover,html head + body .ui-btn.ui-btn-a:hover{background-color:#ededed ;border-color:#ddd ;color:#333 ;text-shadow:0 1px 0 #f3f3f3 ;}.ui-page-theme-a .ui-btn:active,html .ui-bar-a .ui-btn:active,html .ui-body-a .ui-btn:active,html body .ui-group-theme-a .ui-btn:active,html head + body .ui-btn.ui-btn-a:active{background-color:#e8e8e8 ;border-color:#ddd ;color:#333 ;text-shadow:0 1px 0 #f3f3f3 ;}.ui-page-theme-a .ui-btn.ui-btn-active,html .ui-bar-a .ui-btn.ui-btn-active,html .ui-body-a .ui-btn.ui-btn-active,html body .ui-group-theme-a .ui-btn.ui-btn-active,html head + body .ui-btn.ui-btn-a.ui-btn-active,.ui-page-theme-a .ui-checkbox-on:after,html .ui-bar-a .ui-checkbox-on:after,html .ui-body-a .ui-checkbox-on:after,html body .ui-group-theme-a .ui-checkbox-on:after,.ui-btn.ui-checkbox-on.ui-btn-a:after,.ui-page-theme-a .ui-flipswitch-active,html .ui-bar-a .ui-flipswitch-active,html .ui-body-a .ui-flipswitch-active,html body .ui-group-theme-a .ui-flipswitch-active,html body .ui-flipswitch.ui-bar-a.ui-flipswitch-active,.ui-page-theme-a .ui-slider-track .ui-btn-active,html .ui-bar-a .ui-slider-track .ui-btn-active,html .ui-body-a .ui-slider-track .ui-btn-active,html body .ui-group-theme-a .ui-slider-track .ui-btn-active,html body div.ui-slider-track.ui-body-a .ui-btn-active{background-color:#3388cc ;border-color:#3388cc ;color:#fff ;text-shadow:0 1px 0 #005599 ;}.ui-page-theme-a .ui-radio-on:after,html .ui-bar-a .ui-radio-on:after,html .ui-body-a .ui-radio-on:after,html body .ui-group-theme-a .ui-radio-on:after,.ui-btn.ui-radio-on.ui-btn-a:after{border-color:#3388cc ;}.ui-page-theme-a .ui-btn:focus,html .ui-bar-a .ui-btn:focus,html .ui-body-a .ui-btn:focus,html body .ui-group-theme-a .ui-btn:focus,html head + body .ui-btn.ui-btn-a:focus,.ui-page-theme-a .ui-focus,html .ui-bar-a .ui-focus,html .ui-body-a .ui-focus,html body .ui-group-theme-a .ui-focus,html head + body .ui-btn-a.ui-focus,html head + body .ui-body-a.ui-focus{-webkit-box-shadow:0 0 12px #3388cc ;-moz-box-shadow:0 0 12px #3388cc ;box-shadow:0 0 12px #3388cc ;}.ui-bar-b,.ui-page-theme-b .ui-bar-inherit,html .ui-bar-b .ui-bar-inherit,html .ui-body-b .ui-bar-inherit,html body .ui-group-theme-b .ui-bar-inherit{background-color:#1d1d1d ;border-color:#1b1b1b ;color:#fff ;text-shadow:0 1px 0 #111 ;font-weight:bold;}.ui-bar-b{border-width:1px;border-style:solid;}.ui-overlay-b,.ui-page-theme-b,.ui-page-theme-b .ui-panel-wrapper{background-color:#252525 ;border-color:#454545 ;color:#fff ;text-shadow:0 1px 0 #111 ;}.ui-body-b,.ui-page-theme-b .ui-body-inherit,html .ui-bar-b .ui-body-inherit,html .ui-body-b .ui-body-inherit,html body .ui-group-theme-b .ui-body-inherit,html .ui-panel-page-container-b{background-color:#2a2a2a ;border-color:#1d1d1d ;color:#fff ;text-shadow:0 1px 0 #111 ;}.ui-body-b{border-width:1px;border-style:solid;}.ui-page-theme-b a,html .ui-bar-b a,html .ui-body-b a,html body .ui-group-theme-b a{color:#22aadd ;font-weight:bold;}.ui-page-theme-b a:visited,html .ui-bar-b a:visited,html .ui-body-b a:visited,html body .ui-group-theme-b a:visited{color:#22aadd ;}.ui-page-theme-b a:hover,html .ui-bar-b a:hover,html .ui-body-b a:hover,html body .ui-group-theme-b a:hover{color:#0088bb ;}.ui-page-theme-b a:active,html .ui-bar-b a:active,html .ui-body-b a:active,html body .ui-group-theme-b a:active{color:#0088bb ;}.ui-page-theme-b .ui-btn,html .ui-bar-b .ui-btn,html .ui-body-b .ui-btn,html body .ui-group-theme-b .ui-btn,html head + body .ui-btn.ui-btn-b,.ui-page-theme-b .ui-btn:visited,html .ui-bar-b .ui-btn:visited,html .ui-body-b .ui-btn:visited,html body .ui-group-theme-b .ui-btn:visited,html head + body .ui-btn.ui-btn-b:visited{background-color:#333 ;border-color:#1f1f1f ;color:#fff ;text-shadow:0 1px 0 #111 ;}.ui-page-theme-b .ui-btn:hover,html .ui-bar-b .ui-btn:hover,html .ui-body-b .ui-btn:hover,html body .ui-group-theme-b .ui-btn:hover,html head + body .ui-btn.ui-btn-b:hover{background-color:#373737 ;border-color:#1f1f1f ;color:#fff ;text-shadow:0 1px 0 #111 ;}.ui-page-theme-b .ui-btn:active,html .ui-bar-b .ui-btn:active,html .ui-body-b .ui-btn:active,html body .ui-group-theme-b .ui-btn:active,html head + body .ui-btn.ui-btn-b:active{background-color:#404040 ;border-color:#1f1f1f ;color:#fff ;text-shadow:0 1px 0 #111 ;}.ui-page-theme-b .ui-btn.ui-btn-active,html .ui-bar-b .ui-btn.ui-btn-active,html .ui-body-b .ui-btn.ui-btn-active,html body .ui-group-theme-b .ui-btn.ui-btn-active,html head + body .ui-btn.ui-btn-b.ui-btn-active,.ui-page-theme-b .ui-checkbox-on:after,html .ui-bar-b .ui-checkbox-on:after,html .ui-body-b .ui-checkbox-on:after,html body .ui-group-theme-b .ui-checkbox-on:after,.ui-btn.ui-checkbox-on.ui-btn-b:after,.ui-page-theme-b .ui-flipswitch-active,html .ui-bar-b .ui-flipswitch-active,html .ui-body-b .ui-flipswitch-active,html body .ui-group-theme-b .ui-flipswitch-active,html body .ui-flipswitch.ui-bar-b.ui-flipswitch-active,.ui-page-theme-b .ui-slider-track .ui-btn-active,html .ui-bar-b .ui-slider-track .ui-btn-active,html .ui-body-b .ui-slider-track .ui-btn-active,html body .ui-group-theme-b .ui-slider-track .ui-btn-active,html body div.ui-slider-track.ui-body-b .ui-btn-active{background-color:#22aadd ;border-color:#22aadd ;color:#fff ;text-shadow:0 1px 0 #0088bb ;}.ui-page-theme-b .ui-radio-on:after,html .ui-bar-b .ui-radio-on:after,html .ui-body-b .ui-radio-on:after,html body .ui-group-theme-b .ui-radio-on:after,.ui-btn.ui-radio-on.ui-btn-b:after{border-color:#22aadd ;}.ui-page-theme-b .ui-btn:focus,html .ui-bar-b .ui-btn:focus,html .ui-body-b .ui-btn:focus,html body .ui-group-theme-b .ui-btn:focus,html head + body .ui-btn.ui-btn-b:focus,.ui-page-theme-b .ui-focus,html .ui-bar-b .ui-focus,html .ui-body-b .ui-focus,html body .ui-group-theme-b .ui-focus,html head + body .ui-btn-b.ui-focus,html head + body .ui-body-b.ui-focus{-webkit-box-shadow:0 0 12px #22aadd ;-moz-box-shadow:0 0 12px #22aadd ;box-shadow:0 0 12px #22aadd ;}.ui-disabled,.ui-state-disabled,button[disabled],.ui-select .ui-btn.ui-state-disabled{filter:Alpha(Opacity=30);opacity:.3;cursor:default !important;pointer-events:none;}.ui-btn:focus,.ui-btn.ui-focus{outline:0;}.ui-noboxshadow .ui-shadow,.ui-noboxshadow .ui-shadow-inset,.ui-noboxshadow .ui-overlay-shadow,.ui-noboxshadow .ui-shadow-icon.ui-btn:after,.ui-noboxshadow .ui-shadow-icon .ui-btn:after,.ui-noboxshadow .ui-focus,.ui-noboxshadow .ui-btn:focus,.ui-noboxshadow input:focus,.ui-noboxshadow .ui-panel{-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important;}.ui-noboxshadow .ui-btn:focus,.ui-noboxshadow .ui-focus{outline-width:1px;outline-style:auto;} -------------------------------------------------------------------------------- /images/android-icon-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/android-icon-144x144.png -------------------------------------------------------------------------------- /images/android-icon-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/android-icon-192x192.png -------------------------------------------------------------------------------- /images/android-icon-36x36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/android-icon-36x36.png -------------------------------------------------------------------------------- /images/android-icon-48x48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/android-icon-48x48.png -------------------------------------------------------------------------------- /images/android-icon-72x72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/android-icon-72x72.png -------------------------------------------------------------------------------- /images/android-icon-96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/android-icon-96x96.png -------------------------------------------------------------------------------- /images/apple-icon-114x114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/apple-icon-114x114.png -------------------------------------------------------------------------------- /images/apple-icon-120x120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/apple-icon-120x120.png -------------------------------------------------------------------------------- /images/apple-icon-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/apple-icon-144x144.png -------------------------------------------------------------------------------- /images/apple-icon-152x152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/apple-icon-152x152.png -------------------------------------------------------------------------------- /images/apple-icon-180x180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/apple-icon-180x180.png -------------------------------------------------------------------------------- /images/apple-icon-57x57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/apple-icon-57x57.png -------------------------------------------------------------------------------- /images/apple-icon-60x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/apple-icon-60x60.png -------------------------------------------------------------------------------- /images/apple-icon-72x72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/apple-icon-72x72.png -------------------------------------------------------------------------------- /images/apple-icon-76x76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/apple-icon-76x76.png -------------------------------------------------------------------------------- /images/apple-icon-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/apple-icon-precomposed.png -------------------------------------------------------------------------------- /images/apple-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/apple-icon.png -------------------------------------------------------------------------------- /images/browserconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | #ffffff -------------------------------------------------------------------------------- /images/eye.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/eye.png -------------------------------------------------------------------------------- /images/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/favicon-16x16.png -------------------------------------------------------------------------------- /images/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/favicon-32x32.png -------------------------------------------------------------------------------- /images/favicon-96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/favicon-96x96.png -------------------------------------------------------------------------------- /images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/favicon.ico -------------------------------------------------------------------------------- /images/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "App", 3 | "icons": [ 4 | { 5 | "src": "\/android-icon-36x36.png", 6 | "sizes": "36x36", 7 | "type": "image\/png", 8 | "density": "0.75" 9 | }, 10 | { 11 | "src": "\/android-icon-48x48.png", 12 | "sizes": "48x48", 13 | "type": "image\/png", 14 | "density": "1.0" 15 | }, 16 | { 17 | "src": "\/android-icon-72x72.png", 18 | "sizes": "72x72", 19 | "type": "image\/png", 20 | "density": "1.5" 21 | }, 22 | { 23 | "src": "\/android-icon-96x96.png", 24 | "sizes": "96x96", 25 | "type": "image\/png", 26 | "density": "2.0" 27 | }, 28 | { 29 | "src": "\/android-icon-144x144.png", 30 | "sizes": "144x144", 31 | "type": "image\/png", 32 | "density": "3.0" 33 | }, 34 | { 35 | "src": "\/android-icon-192x192.png", 36 | "sizes": "192x192", 37 | "type": "image\/png", 38 | "density": "4.0" 39 | } 40 | ] 41 | } -------------------------------------------------------------------------------- /images/ms-icon-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/ms-icon-144x144.png -------------------------------------------------------------------------------- /images/ms-icon-150x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/ms-icon-150x150.png -------------------------------------------------------------------------------- /images/ms-icon-310x310.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/ms-icon-310x310.png -------------------------------------------------------------------------------- /images/ms-icon-70x70.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phact/CassandraDataModeler/6afbee6760689166ee822eb9d063c47defa576fe/images/ms-icon-70x70.png -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 43 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | CQL Data Modeler 61 | 62 | 63 | 64 | 65 | 66 | 67 |
68 |

CQL Data Modeler

69 |
70 |
71 | 72 |
73 |
74 |
75 |

This tool is meant to improve your experience with Apache Cassandra. 76 | Provide some information about your table definition, and the size, population, and cluster distributions of each of your fields and the tool will give you a script you can use to benchmark your data model and a storage engine visualization.

77 | Please input your table definition for one table, keeping the Create statement, field definitions, and Primary Key definition on separate lines.

78 |
79 | 93 | Verify Table 94 |
95 |
96 |
97 |

98 |
99 | 106 |
107 |
108 |
109 |
110 |

Please complete the configuration tab.

111 | Generate Cassandra Stress 2.1 Yaml 112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 | 120 | 121 | 122 |
123 |

Loading...

124 |
125 | 126 |
127 |
128 | If you like this project take a look at CASSANDRA-12054. The source code is on github 129 |
130 |
131 | 132 | 133 | 140 | 141 | 142 | 143 | -------------------------------------------------------------------------------- /js/d3.layout.cloud.js: -------------------------------------------------------------------------------- 1 | // Word cloud layout by Jason Davies, http://www.jasondavies.com/word-cloud/ 2 | // Algorithm due to Jonathan Feinberg, http://static.mrfeinberg.com/bv_ch03.pdf 3 | (function() { 4 | function cloud() { 5 | var size = [256, 256], 6 | text = cloudText, 7 | font = cloudFont, 8 | fontSize = cloudFontSize, 9 | fontStyle = cloudFontNormal, 10 | fontWeight = cloudFontNormal, 11 | rotate = cloudRotate, 12 | padding = cloudPadding, 13 | spiral = archimedeanSpiral, 14 | words = [], 15 | timeInterval = Infinity, 16 | event = d3.dispatch("word", "end"), 17 | timer = null, 18 | cloud = {}; 19 | 20 | cloud.start = function() { 21 | var board = zeroArray((size[0] >> 5) * size[1]), 22 | bounds = null, 23 | n = words.length, 24 | i = -1, 25 | tags = [], 26 | data = words.map(function(d, i) { 27 | d.text = text.call(this, d, i); 28 | d.font = font.call(this, d, i); 29 | d.style = fontStyle.call(this, d, i); 30 | d.weight = fontWeight.call(this, d, i); 31 | d.rotate = rotate.call(this, d, i); 32 | d.size = ~~fontSize.call(this, d, i); 33 | d.padding = padding.call(this, d, i); 34 | return d; 35 | }).sort(function(a, b) { return b.size - a.size; }); 36 | 37 | if (timer) clearInterval(timer); 38 | timer = setInterval(step, 0); 39 | step(); 40 | 41 | return cloud; 42 | 43 | function step() { 44 | var start = +new Date, 45 | d; 46 | while (+new Date - start < timeInterval && ++i < n && timer) { 47 | d = data[i]; 48 | d.x = (size[0] * (Math.random() + .5)) >> 1; 49 | d.y = (size[1] * (Math.random() + .5)) >> 1; 50 | cloudSprite(d, data, i); 51 | if (d.hasText && place(board, d, bounds)) { 52 | tags.push(d); 53 | event.word(d); 54 | if (bounds) cloudBounds(bounds, d); 55 | else bounds = [{x: d.x + d.x0, y: d.y + d.y0}, {x: d.x + d.x1, y: d.y + d.y1}]; 56 | // Temporary hack 57 | d.x -= size[0] >> 1; 58 | d.y -= size[1] >> 1; 59 | } 60 | } 61 | if (i >= n) { 62 | cloud.stop(); 63 | event.end(tags, bounds); 64 | } 65 | } 66 | } 67 | 68 | cloud.stop = function() { 69 | if (timer) { 70 | clearInterval(timer); 71 | timer = null; 72 | } 73 | return cloud; 74 | }; 75 | 76 | cloud.timeInterval = function(x) { 77 | if (!arguments.length) return timeInterval; 78 | timeInterval = x == null ? Infinity : x; 79 | return cloud; 80 | }; 81 | 82 | function place(board, tag, bounds) { 83 | var perimeter = [{x: 0, y: 0}, {x: size[0], y: size[1]}], 84 | startX = tag.x, 85 | startY = tag.y, 86 | maxDelta = Math.sqrt(size[0] * size[0] + size[1] * size[1]), 87 | s = spiral(size), 88 | dt = Math.random() < .5 ? 1 : -1, 89 | t = -dt, 90 | dxdy, 91 | dx, 92 | dy; 93 | 94 | while (dxdy = s(t += dt)) { 95 | dx = ~~dxdy[0]; 96 | dy = ~~dxdy[1]; 97 | 98 | if (Math.min(dx, dy) > maxDelta) break; 99 | 100 | tag.x = startX + dx; 101 | tag.y = startY + dy; 102 | 103 | if (tag.x + tag.x0 < 0 || tag.y + tag.y0 < 0 || 104 | tag.x + tag.x1 > size[0] || tag.y + tag.y1 > size[1]) continue; 105 | // TODO only check for collisions within current bounds. 106 | if (!bounds || !cloudCollide(tag, board, size[0])) { 107 | if (!bounds || collideRects(tag, bounds)) { 108 | var sprite = tag.sprite, 109 | w = tag.width >> 5, 110 | sw = size[0] >> 5, 111 | lx = tag.x - (w << 4), 112 | sx = lx & 0x7f, 113 | msx = 32 - sx, 114 | h = tag.y1 - tag.y0, 115 | x = (tag.y + tag.y0) * sw + (lx >> 5), 116 | last; 117 | for (var j = 0; j < h; j++) { 118 | last = 0; 119 | for (var i = 0; i <= w; i++) { 120 | board[x + i] |= (last << msx) | (i < w ? (last = sprite[j * w + i]) >>> sx : 0); 121 | } 122 | x += sw; 123 | } 124 | delete tag.sprite; 125 | return true; 126 | } 127 | } 128 | } 129 | return false; 130 | } 131 | 132 | cloud.words = function(x) { 133 | if (!arguments.length) return words; 134 | words = x; 135 | return cloud; 136 | }; 137 | 138 | cloud.size = function(x) { 139 | if (!arguments.length) return size; 140 | size = [+x[0], +x[1]]; 141 | return cloud; 142 | }; 143 | 144 | cloud.font = function(x) { 145 | if (!arguments.length) return font; 146 | font = d3.functor(x); 147 | return cloud; 148 | }; 149 | 150 | cloud.fontStyle = function(x) { 151 | if (!arguments.length) return fontStyle; 152 | fontStyle = d3.functor(x); 153 | return cloud; 154 | }; 155 | 156 | cloud.fontWeight = function(x) { 157 | if (!arguments.length) return fontWeight; 158 | fontWeight = d3.functor(x); 159 | return cloud; 160 | }; 161 | 162 | cloud.rotate = function(x) { 163 | if (!arguments.length) return rotate; 164 | rotate = d3.functor(x); 165 | return cloud; 166 | }; 167 | 168 | cloud.text = function(x) { 169 | if (!arguments.length) return text; 170 | text = d3.functor(x); 171 | return cloud; 172 | }; 173 | 174 | cloud.spiral = function(x) { 175 | if (!arguments.length) return spiral; 176 | spiral = spirals[x + ""] || x; 177 | return cloud; 178 | }; 179 | 180 | cloud.fontSize = function(x) { 181 | if (!arguments.length) return fontSize; 182 | fontSize = d3.functor(x); 183 | return cloud; 184 | }; 185 | 186 | cloud.padding = function(x) { 187 | if (!arguments.length) return padding; 188 | padding = d3.functor(x); 189 | return cloud; 190 | }; 191 | 192 | return d3.rebind(cloud, event, "on"); 193 | } 194 | 195 | function cloudText(d) { 196 | return d.text; 197 | } 198 | 199 | function cloudFont() { 200 | return "serif"; 201 | } 202 | 203 | function cloudFontNormal() { 204 | return "normal"; 205 | } 206 | 207 | function cloudFontSize(d) { 208 | return Math.sqrt(d.value); 209 | } 210 | 211 | function cloudRotate() { 212 | return (~~(Math.random() * 6) - 3) * 30; 213 | } 214 | 215 | function cloudPadding() { 216 | return 1; 217 | } 218 | 219 | // Fetches a monochrome sprite bitmap for the specified text. 220 | // Load in batches for speed. 221 | function cloudSprite(d, data, di) { 222 | if (d.sprite) return; 223 | c.clearRect(0, 0, (cw << 5) / ratio, ch / ratio); 224 | var x = 0, 225 | y = 0, 226 | maxh = 0, 227 | n = data.length; 228 | --di; 229 | while (++di < n) { 230 | d = data[di]; 231 | c.save(); 232 | c.font = d.style + " " + d.weight + " " + ~~((d.size + 1) / ratio) + "px " + d.font; 233 | var w = c.measureText(d.text + "m").width * ratio, 234 | h = d.size << 1; 235 | if (d.rotate) { 236 | var sr = Math.sin(d.rotate * cloudRadians), 237 | cr = Math.cos(d.rotate * cloudRadians), 238 | wcr = w * cr, 239 | wsr = w * sr, 240 | hcr = h * cr, 241 | hsr = h * sr; 242 | w = (Math.max(Math.abs(wcr + hsr), Math.abs(wcr - hsr)) + 0x1f) >> 5 << 5; 243 | h = ~~Math.max(Math.abs(wsr + hcr), Math.abs(wsr - hcr)); 244 | } else { 245 | w = (w + 0x1f) >> 5 << 5; 246 | } 247 | if (h > maxh) maxh = h; 248 | if (x + w >= (cw << 5)) { 249 | x = 0; 250 | y += maxh; 251 | maxh = 0; 252 | } 253 | if (y + h >= ch) break; 254 | c.translate((x + (w >> 1)) / ratio, (y + (h >> 1)) / ratio); 255 | if (d.rotate) c.rotate(d.rotate * cloudRadians); 256 | c.fillText(d.text, 0, 0); 257 | if (d.padding) c.lineWidth = 2 * d.padding, c.strokeText(d.text, 0, 0); 258 | c.restore(); 259 | d.width = w; 260 | d.height = h; 261 | d.xoff = x; 262 | d.yoff = y; 263 | d.x1 = w >> 1; 264 | d.y1 = h >> 1; 265 | d.x0 = -d.x1; 266 | d.y0 = -d.y1; 267 | d.hasText = true; 268 | x += w; 269 | } 270 | var pixels = c.getImageData(0, 0, (cw << 5) / ratio, ch / ratio).data, 271 | sprite = []; 272 | while (--di >= 0) { 273 | d = data[di]; 274 | if (!d.hasText) continue; 275 | var w = d.width, 276 | w32 = w >> 5, 277 | h = d.y1 - d.y0; 278 | // Zero the buffer 279 | for (var i = 0; i < h * w32; i++) sprite[i] = 0; 280 | x = d.xoff; 281 | if (x == null) return; 282 | y = d.yoff; 283 | var seen = 0, 284 | seenRow = -1; 285 | for (var j = 0; j < h; j++) { 286 | for (var i = 0; i < w; i++) { 287 | var k = w32 * j + (i >> 5), 288 | m = pixels[((y + j) * (cw << 5) + (x + i)) << 2] ? 1 << (31 - (i % 32)) : 0; 289 | sprite[k] |= m; 290 | seen |= m; 291 | } 292 | if (seen) seenRow = j; 293 | else { 294 | d.y0++; 295 | h--; 296 | j--; 297 | y++; 298 | } 299 | } 300 | d.y1 = d.y0 + seenRow; 301 | d.sprite = sprite.slice(0, (d.y1 - d.y0) * w32); 302 | } 303 | } 304 | 305 | // Use mask-based collision detection. 306 | function cloudCollide(tag, board, sw) { 307 | sw >>= 5; 308 | var sprite = tag.sprite, 309 | w = tag.width >> 5, 310 | lx = tag.x - (w << 4), 311 | sx = lx & 0x7f, 312 | msx = 32 - sx, 313 | h = tag.y1 - tag.y0, 314 | x = (tag.y + tag.y0) * sw + (lx >> 5), 315 | last; 316 | for (var j = 0; j < h; j++) { 317 | last = 0; 318 | for (var i = 0; i <= w; i++) { 319 | if (((last << msx) | (i < w ? (last = sprite[j * w + i]) >>> sx : 0)) 320 | & board[x + i]) return true; 321 | } 322 | x += sw; 323 | } 324 | return false; 325 | } 326 | 327 | function cloudBounds(bounds, d) { 328 | var b0 = bounds[0], 329 | b1 = bounds[1]; 330 | if (d.x + d.x0 < b0.x) b0.x = d.x + d.x0; 331 | if (d.y + d.y0 < b0.y) b0.y = d.y + d.y0; 332 | if (d.x + d.x1 > b1.x) b1.x = d.x + d.x1; 333 | if (d.y + d.y1 > b1.y) b1.y = d.y + d.y1; 334 | } 335 | 336 | function collideRects(a, b) { 337 | return a.x + a.x1 > b[0].x && a.x + a.x0 < b[1].x && a.y + a.y1 > b[0].y && a.y + a.y0 < b[1].y; 338 | } 339 | 340 | function archimedeanSpiral(size) { 341 | var e = size[0] / size[1]; 342 | return function(t) { 343 | return [e * (t *= .1) * Math.cos(t), t * Math.sin(t)]; 344 | }; 345 | } 346 | 347 | function rectangularSpiral(size) { 348 | var dy = 4, 349 | dx = dy * size[0] / size[1], 350 | x = 0, 351 | y = 0; 352 | return function(t) { 353 | var sign = t < 0 ? -1 : 1; 354 | // See triangular numbers: T_n = n * (n + 1) / 2. 355 | switch ((Math.sqrt(1 + 4 * sign * t) - sign) & 3) { 356 | case 0: x += dx; break; 357 | case 1: y += dy; break; 358 | case 2: x -= dx; break; 359 | default: y -= dy; break; 360 | } 361 | return [x, y]; 362 | }; 363 | } 364 | 365 | // TODO reuse arrays? 366 | function zeroArray(n) { 367 | var a = [], 368 | i = -1; 369 | while (++i < n) a[i] = 0; 370 | return a; 371 | } 372 | 373 | var cloudRadians = Math.PI / 180, 374 | cw = 1 << 11 >> 5, 375 | ch = 1 << 11, 376 | canvas, 377 | ratio = 1; 378 | 379 | if (typeof document !== "undefined") { 380 | canvas = document.createElement("canvas"); 381 | canvas.width = 1; 382 | canvas.height = 1; 383 | ratio = Math.sqrt(canvas.getContext("2d").getImageData(0, 0, 1, 1).data.length >> 2); 384 | canvas.width = (cw << 5) / ratio; 385 | canvas.height = ch / ratio; 386 | } else { 387 | // Attempt to use node-canvas. 388 | canvas = new Canvas(cw << 5, ch); 389 | } 390 | 391 | var c = canvas.getContext("2d"), 392 | spirals = { 393 | archimedean: archimedeanSpiral, 394 | rectangular: rectangularSpiral 395 | }; 396 | c.fillStyle = c.strokeStyle = "red"; 397 | c.textAlign = "center"; 398 | 399 | if (typeof module === "object" && module.exports) module.exports = cloud; 400 | else (d3.layout || (d3.layout = {})).cloud = cloud; 401 | })(); 402 | -------------------------------------------------------------------------------- /js/drawCloud.js: -------------------------------------------------------------------------------- 1 | var numberOfTerms = 20; 2 | $("#search").val("userid") 3 | var executeSearch = function(terms){ 4 | 5 | numberOfTerms = terms; 6 | 7 | $(".cloudDiv svg").remove(); 8 | 9 | var searchTerm = $("#search").val(); 10 | myAjaxCall = $.ajax({ 11 | url: "http://54.193.104.165:8983/solr/foods.reviews_by_day/select?q=*%3A*&wt=json&indent=true&facet=true&facet.field="+searchTerm, 12 | context: document.body, 13 | 14 | type: "POST", 15 | contentType: "application/json; charset=utf-8", 16 | dataType: 'jsonp', 17 | crossDomain: true, 18 | jsonp: 'json.wrf' 19 | }).done(function(data) { 20 | 21 | $("sloadStatus").empty(); 22 | 23 | 24 | var wordResult = []; 25 | var textArray = []; 26 | 27 | var maxValue = data.facet_counts.facet_fields[searchTerm][1]; 28 | var linearScale = d3.scale.linear().domain([0,maxValue]); 29 | 30 | 31 | for (i = 0 ; i < terms ; i++){ 32 | 33 | var thisKey = data.facet_counts.facet_fields[searchTerm][i*2].toLowerCase(); 34 | 35 | textArray.push(thisKey); 36 | wordResult.push({size: data.facet_counts.facet_fields[searchTerm][i*2+1] , text: thisKey }); 37 | 38 | } 39 | 40 | 41 | var fill = d3.scale.category10(); 42 | 43 | var layout = d3.layout.cloud().size([1000, 1000]) 44 | .words(textArray.map(function(d, i) { 45 | 46 | 47 | test= {text: wordResult[i].text, size: linearScale(wordResult[i].size)*50 }; 48 | 49 | console.log(test); 50 | 51 | return test; 52 | })) 53 | .padding(1) 54 | .rotate(function() { return ~~(Math.random() * 2) * 90; }) 55 | .font("Impact") 56 | .fontSize(function(d) { return d.size; }) 57 | .on("end", drawNew) 58 | .start(); 59 | 60 | function drawNew(words) { 61 | d3.select(".cloudDiv").append("svg") 62 | .attr("width", 1000) 63 | .attr("height", 1000) 64 | .append("g") 65 | .attr("transform", "translate(150,150)") 66 | .selectAll("text") 67 | .data(words) 68 | .enter().append("text") 69 | .style("font-size", function(d) { return d.size + "px"; }) 70 | .style("font-family", "Impact") 71 | .style("fill", function(d, i) { return fill(i); }) 72 | .attr("text-anchor", "middle") 73 | .attr("transform", function(d) { 74 | return "translate(" + [d.x, d.y] + ")rotate(" + d.rotate + ")"; 75 | }) 76 | .text(function(d) { return d.text; }); 77 | } 78 | 79 | 80 | }); 81 | 82 | } 83 | 84 | executeSearch(100); 85 | -------------------------------------------------------------------------------- /js/histograms.js: -------------------------------------------------------------------------------- 1 | function insertHistogram(divID){ 2 | 3 | function addMiniHist(divID){ 4 | $("#"+divID+ " #svgDiv").remove(); 5 | var myDiv = $("#"+divID + " > div:nth-child(2)").before("
"); 6 | $("#"+divID+ " #svgDiv").prepend("
"+ 7 | //myDiv.append("
"+ 8 | "Select a Distribution (see the tooltips and the graphic to help make a decision):"+ 9 | ""+ 10 | ""+ 11 | ""+ 12 | ""+ 14 | ""+ 15 | ""+ 16 | ""+ 17 | ""+ 18 | ""+ 19 | ""+ 20 | "
"); 21 | 22 | 23 | $(".histogram").trigger("create") 24 | 25 | } 26 | 27 | addMiniHist(divID); 28 | 29 | $("#"+divID+" input").change(function(){ drawMiniHist(divID, this.value) } ); 30 | 31 | //Since Fixed is default - set Fixed settings 32 | $("#"+divID+"-radio-choice-h-2d").prop("checked", true).checkboxradio("refresh"); 33 | drawMiniHist(divID, "norm"); 34 | 35 | //ugly 36 | //$("#columnSize_"+divID.substr(divID.length - 1)+"_2").textinput('disable'); 37 | //$("#columnPopulation_"+divID.substr(divID.length - 1)+"_2").textinput('disable'); 38 | 39 | 40 | function drawMiniHist(divId, distribution){ 41 | var vars = new Random(Math.floor (1000*Math.random())); 42 | var nbins = 20; 43 | 44 | 45 | var lambda = 1000; 46 | 47 | var alpha = 20; 48 | var beta = 30; 49 | var n = 10000; 50 | 51 | var mean = 10; 52 | var stdv = 5; 53 | 54 | var min = 0; 55 | var max = 20; 56 | 57 | var fixedValue = 5; 58 | 59 | var values; 60 | 61 | //ugly 62 | //Determine size or population from divID 63 | if (divID.substr(0,divID.length -1) == "columnSizeGroup_"){ 64 | inputID = "columnSize_"+divID.substr(divID.length - 1) + "_2"; 65 | type = "Size"; 66 | unit = "bytes"; 67 | }else{ 68 | inputID = "columnPopulation_"+divID.substr(divID.length - 1) + "_2"; 69 | type = "Population"; 70 | unit = "count"; 71 | } 72 | if (divID.substr(0,divID.length -1) == "columnSizeGroup_"){ 73 | inputID1 = "columnSize_"+divID.substr(divID.length - 1) ; 74 | type = "Size"; 75 | unit = "bytes"; 76 | }else{ 77 | inputID1 = "columnPopulation_"+divID.substr(divID.length - 1) ; 78 | type = "Population"; 79 | unit = "count"; 80 | } 81 | 82 | //fixed 83 | if (distribution =="fixed"){ 84 | values = d3.range(n).map(function(x, i){ 85 | if (i == n/2){ 86 | return fixedValue; 87 | } 88 | else{ 89 | return 0; 90 | } 91 | }); 92 | $("#"+inputID).textinput('disable'); 93 | $("#"+ inputID1).attr("placeholder",type + " ("+unit+")"); 94 | } 95 | 96 | //exponential 97 | if (distribution == "exp") { 98 | values = d3.range(n).map(function(x, i){ return vars.exponential(lambda); } ); 99 | $("#"+inputID).textinput('enable'); 100 | $("#"+ inputID1).attr("placeholder","Minimum "+type.toLowerCase()+" ("+unit+")"); 101 | } 102 | //weibull 103 | if (distribution == "ext"){ 104 | values = d3.range(n).map(function(x, i){ return vars.weibull(alpha,beta); } ); 105 | $("#"+inputID).textinput('enable'); 106 | $("#"+ inputID1).attr("placeholder","Minimum "+type.toLowerCase()+" ("+unit+")"); 107 | } 108 | //normal 109 | if (distribution == "norm"){ 110 | values = d3.range(n).map(function(x, i){ return vars.normal(mean, stdv); }); 111 | $("#"+inputID).textinput('enable'); 112 | $("#"+ inputID1).attr("placeholder","Minimum "+type.toLowerCase()+" ("+unit+")"); 113 | } 114 | //uniform 115 | if (distribution == "uni"){ 116 | values = d3.range(n).map(function(x, i){ return vars.uniform(min, max); }); 117 | $("#"+inputID).textinput('enable'); 118 | $("#"+ inputID1).attr("placeholder","Minimum "+type.toLowerCase()+" ("+unit+")"); 119 | // values = d3.range(n).map(function(x, i){ return min + Math.random()* max; }); 120 | } 121 | // Generate a Bates distribution of 10 random variables. 122 | //var values = d3.range(1000).map(d3.random.bates(10)); 123 | 124 | // A formatter for counts. 125 | var formatCount = d3.format(",.0f"); 126 | 127 | var margin = {top: 0, right: 0, bottom: 0, left: 0}, 128 | width = 200 - margin.left - margin.right, 129 | height = 30 - margin.top - margin.bottom; 130 | 131 | var x = d3.scale.linear() 132 | .domain([d3.min(values), d3.max(values)]) 133 | .range([0, width]); 134 | 135 | 136 | // Generate a histogram using twenty uniformly-spaced bins. 137 | var data = d3.layout.histogram() 138 | .bins(x.ticks(nbins)) 139 | (values); 140 | 141 | var x2 = d3.scale.linear().domain([d3.min(values),d3.max(values)]).range([0,width]); 142 | 143 | var y = d3.scale.linear() 144 | // .domain([d3.min(data, function(d){ return d.y }), d3.max(data, function(d) { return d.y; })]) 145 | .domain([0, d3.max(data, function(d) { return d.y; })]) 146 | .range([height, 0]); 147 | 148 | var xAxis = d3.svg.axis() 149 | .scale(x) 150 | .orient("bottom"); 151 | 152 | $("#"+divId+" #svgDiv svg").remove(); 153 | 154 | var svg = d3.select("#"+divId+ " #svgDiv").append("svg") 155 | .attr("width", width + margin.left + margin.right) 156 | .attr("height", height + margin.top + margin.bottom) 157 | .style("margin-left","20px") 158 | .append("g") 159 | .attr("transform", "translate(" + margin.left + "," + margin.top + ")") 160 | .style("display", "inline"); 161 | 162 | var bar = svg.selectAll(".bar") 163 | .data(data) 164 | .enter().append("g") 165 | .attr("class", "bar") 166 | .attr("transform", function(d) { return "translate(" + x(d.x) + "," + y(d.y) + ")"; }); 167 | 168 | bar.append("rect") 169 | .attr("x", 1) 170 | .attr("width", x2(d3.min(values) +data[0].dx) -1 ) 171 | .attr("height", function(d) { return height - y(d.y); }) 172 | .style("fill","#1287b1"); 173 | 174 | 175 | svg.append("g") 176 | .attr("class", "x axis") 177 | .attr("transform", "translate(0," + height + ")") 178 | .call(xAxis); 179 | 180 | } 181 | 182 | } 183 | function createInputField(colString, i, category){ 184 | 185 | if (category == "size"){ 186 | $('#parameters').append("

Size information for "+colString+"

"+ 187 | "
"+ 188 | "
"+ 189 | "
"+ 190 | "
"+ 191 | ""+ 192 | "
"+ 193 | "
"); 194 | } 195 | if (category == "population"){ 196 | $('#parameters').append("

Population information for "+colString+"

"+ 197 | "
"+ 198 | "
"+ 199 | "
"+ 200 | "
"+ 201 | ""+ 202 | "
"+ 203 | "
"); 204 | } 205 | 206 | } 207 | -------------------------------------------------------------------------------- /js/jquery.mobile.custom.theme.css: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery Mobile v1.4.3 3 | * http://jquerymobile.com 4 | * 5 | * Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors 6 | * Released under the MIT license. 7 | * http://jquery.org/license 8 | * 9 | */ 10 | 11 | /* Globals */ 12 | 13 | /* Font 14 | -----------------------------------------------------------------------------------------------------------*/ 15 | 16 | html { 17 | font-size: 100%; 18 | } 19 | body, 20 | input, 21 | select, 22 | textarea, 23 | button, 24 | .ui-btn { 25 | font-size: 1em; 26 | line-height: 1.3; 27 | font-family: sans-serif /*{global-font-family}*/; 28 | } 29 | legend, 30 | .ui-input-text input, 31 | .ui-input-search input { 32 | color: inherit; 33 | text-shadow: inherit; 34 | } 35 | /* Form labels (overrides font-weight bold in bars, and mini font-size) */ 36 | .ui-mobile label, 37 | div.ui-controlgroup-label { 38 | font-weight: normal; 39 | font-size: 16px; 40 | } 41 | 42 | /* Separators 43 | -----------------------------------------------------------------------------------------------------------*/ 44 | /* Field contain separator (< 28em) */ 45 | .ui-field-contain { 46 | border-bottom-color: #828282; 47 | border-bottom-color: rgba(0,0,0,.15); 48 | border-bottom-width: 1px; 49 | border-bottom-style: solid; 50 | } 51 | 52 | /* Table opt-in classes: strokes between each row, and alternating row stripes */ 53 | /* Classes table-stroke and table-stripe are deprecated in 1.4. */ 54 | .table-stroke thead th, 55 | .table-stripe thead th, 56 | .table-stripe tbody tr:last-child { 57 | border-bottom: 1px solid #d6d6d6; /* non-RGBA fallback */ 58 | border-bottom: 1px solid rgba(0,0,0,.1); 59 | } 60 | .table-stroke tbody th, 61 | .table-stroke tbody td { 62 | border-bottom: 1px solid #e6e6e6; /* non-RGBA fallback */ 63 | border-bottom: 1px solid rgba(0,0,0,.05); 64 | } 65 | .table-stripe.table-stroke tbody tr:last-child th, 66 | .table-stripe.table-stroke tbody tr:last-child td { 67 | border-bottom: 0; 68 | } 69 | .table-stripe tbody tr:nth-child(odd) td, 70 | .table-stripe tbody tr:nth-child(odd) th { 71 | background-color: #eeeeee; /* non-RGBA fallback */ 72 | background-color: rgba(0,0,0,.04); 73 | } 74 | 75 | /* Buttons 76 | -----------------------------------------------------------------------------------------------------------*/ 77 | 78 | .ui-btn, 79 | label.ui-btn { 80 | font-weight: bold; 81 | border-width: 1px; 82 | border-style: solid; 83 | } 84 | .ui-btn { 85 | text-decoration: none !important; 86 | } 87 | .ui-btn-active { 88 | cursor: pointer; 89 | } 90 | 91 | /* Corner rounding 92 | -----------------------------------------------------------------------------------------------------------*/ 93 | /* Class ui-btn-corner-all deprecated in 1.4 */ 94 | 95 | .ui-corner-all { 96 | -webkit-border-radius: .3125em /*{global-radii-blocks}*/; 97 | border-radius: .3125em /*{global-radii-blocks}*/; 98 | } 99 | /* Buttons */ 100 | .ui-btn-corner-all, 101 | .ui-btn.ui-corner-all, 102 | /* Slider track */ 103 | .ui-slider-track.ui-corner-all, 104 | /* Flipswitch */ 105 | .ui-flipswitch.ui-corner-all, 106 | /* Count bubble */ 107 | .ui-li-count { 108 | -webkit-border-radius: .3125em /*{global-radii-buttons}*/; 109 | border-radius: .3125em /*{global-radii-buttons}*/; 110 | } 111 | /* Icon-only buttons */ 112 | .ui-btn-icon-notext.ui-btn-corner-all, 113 | .ui-btn-icon-notext.ui-corner-all { 114 | -webkit-border-radius: 1em; 115 | border-radius: 1em; 116 | } 117 | /* Radius clip workaround for cleaning up corner trapping */ 118 | .ui-btn-corner-all, 119 | .ui-corner-all { 120 | -webkit-background-clip: padding; 121 | background-clip: padding-box; 122 | } 123 | /* Popup arrow */ 124 | .ui-popup.ui-corner-all > .ui-popup-arrow-guide { 125 | left: .6em /*{global-radii-blocks}*/; 126 | right: .6em /*{global-radii-blocks}*/; 127 | top: .6em /*{global-radii-blocks}*/; 128 | bottom: .6em /*{global-radii-blocks}*/; 129 | } 130 | 131 | /* Shadow 132 | -----------------------------------------------------------------------------------------------------------*/ 133 | 134 | .ui-shadow { 135 | -webkit-box-shadow: 0 1px 3px /*{global-box-shadow-size}*/ rgba(0,0,0,.15) /*{global-box-shadow-color}*/; 136 | -moz-box-shadow: 0 1px 3px /*{global-box-shadow-size}*/ rgba(0,0,0,.15) /*{global-box-shadow-color}*/; 137 | box-shadow: 0 1px 3px /*{global-box-shadow-size}*/ rgba(0,0,0,.15) /*{global-box-shadow-color}*/; 138 | } 139 | .ui-shadow-inset { 140 | -webkit-box-shadow: inset 0 1px 3px /*{global-box-shadow-size}*/ rgba(0,0,0,.2) /*{global-box-shadow-color}*/; 141 | -moz-box-shadow: inset 0 1px 3px /*{global-box-shadow-size}*/ rgba(0,0,0,.2) /*{global-box-shadow-color}*/; 142 | box-shadow: inset 0 1px 3px /*{global-box-shadow-size}*/ rgba(0,0,0,.2) /*{global-box-shadow-color}*/; 143 | } 144 | .ui-overlay-shadow { 145 | -webkit-box-shadow: 0 0 12px rgba(0,0,0,.6); 146 | -moz-box-shadow: 0 0 12px rgba(0,0,0,.6); 147 | box-shadow: 0 0 12px rgba(0,0,0,.6); 148 | } 149 | 150 | /* Icons 151 | -----------------------------------------------------------------------------------------------------------*/ 152 | 153 | .ui-btn-icon-left:after, 154 | .ui-btn-icon-right:after, 155 | .ui-btn-icon-top:after, 156 | .ui-btn-icon-bottom:after, 157 | .ui-btn-icon-notext:after { 158 | background-color: #666 /*{global-icon-color}*/; 159 | background-color: rgba(0,0,0,.3) /*{global-icon-disc}*/; 160 | background-position: center center; 161 | background-repeat: no-repeat; 162 | -webkit-border-radius: 1em; 163 | border-radius: 1em; 164 | } 165 | 166 | /* Alt icons */ 167 | .ui-alt-icon.ui-btn:after, 168 | .ui-alt-icon .ui-btn:after, 169 | html .ui-alt-icon.ui-checkbox-off:after, 170 | html .ui-alt-icon.ui-radio-off:after, 171 | html .ui-alt-icon .ui-checkbox-off:after, 172 | html .ui-alt-icon .ui-radio-off:after { 173 | background-color: #666 /*{global-icon-color}*/; 174 | background-color: rgba(0,0,0,.15) /*{global-icon-disc}*/; 175 | } 176 | 177 | /* No disc */ 178 | .ui-nodisc-icon.ui-btn:after, 179 | .ui-nodisc-icon .ui-btn:after { 180 | background-color: transparent; 181 | } 182 | 183 | /* Icon shadow */ 184 | .ui-shadow-icon.ui-btn:after, 185 | .ui-shadow-icon .ui-btn:after { 186 | -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.3) /*{global-icon-shadow}*/; 187 | -moz-box-shadow: 0 1px 0 rgba(255,255,255,.3) /*{global-icon-shadow}*/; 188 | box-shadow: 0 1px 0 rgba(255,255,255,.3) /*{global-icon-shadow}*/; 189 | } 190 | 191 | /* Checkbox and radio */ 192 | .ui-btn.ui-checkbox-off:after, 193 | .ui-btn.ui-checkbox-on:after, 194 | .ui-btn.ui-radio-off:after, 195 | .ui-btn.ui-radio-on:after { 196 | display: block; 197 | width: 18px; 198 | height: 18px; 199 | margin: -9px 2px 0 2px; 200 | } 201 | .ui-checkbox-off:after, 202 | .ui-btn.ui-radio-off:after { 203 | filter: Alpha(Opacity=30); 204 | opacity: .3; 205 | } 206 | .ui-btn.ui-checkbox-off:after, 207 | .ui-btn.ui-checkbox-on:after { 208 | -webkit-border-radius: .1875em; 209 | border-radius: .1875em; 210 | } 211 | .ui-btn.ui-checkbox-off:after { 212 | background-color: #666; 213 | background-color: rgba(0,0,0,.3); 214 | } 215 | .ui-radio .ui-btn.ui-radio-on:after { 216 | background-image: none; 217 | background-color: #fff; 218 | width: 8px; 219 | height: 8px; 220 | border-width: 5px; 221 | border-style: solid; 222 | } 223 | .ui-alt-icon.ui-btn.ui-radio-on:after, 224 | .ui-alt-icon .ui-btn.ui-radio-on:after { 225 | background-color: #000; 226 | } 227 | 228 | /* Loader */ 229 | .ui-icon-loading { 230 | background: url("images/ajax-loader.gif"); 231 | background-size: 2.875em 2.875em; 232 | } 233 | 234 | /* Swatches */ 235 | 236 | /* A 237 | -----------------------------------------------------------------------------------------------------------*/ 238 | 239 | /* Bar: Toolbars, dividers, slider track */ 240 | .ui-bar-a, 241 | .ui-page-theme-a .ui-bar-inherit, 242 | html .ui-bar-a .ui-bar-inherit, 243 | html .ui-body-a .ui-bar-inherit, 244 | html body .ui-group-theme-a .ui-bar-inherit { 245 | background-color: #e9e9e9 /*{a-bar-background-color}*/; 246 | border-color: #ddd /*{a-bar-border}*/; 247 | color: #333 /*{a-bar-color}*/; 248 | text-shadow: 0 /*{a-bar-shadow-x}*/ 1px /*{a-bar-shadow-y}*/ 0 /*{a-bar-shadow-radius}*/ #eee /*{a-bar-shadow-color}*/; 249 | font-weight: bold; 250 | } 251 | .ui-bar-a { 252 | border-width: 1px; 253 | border-style: solid; 254 | } 255 | 256 | /* Page and overlay */ 257 | .ui-overlay-a, 258 | .ui-page-theme-a, 259 | .ui-page-theme-a .ui-panel-wrapper { 260 | background-color: #f9f9f9 /*{a-page-background-color}*/; 261 | border-color: #bbb /*{a-page-border}*/; 262 | color: #333 /*{a-page-color}*/; 263 | text-shadow: 0 /*{a-page-shadow-x}*/ 1px /*{a-page-shadow-y}*/ 0 /*{a-page-shadow-radius}*/ #f3f3f3 /*{a-page-shadow-color}*/; 264 | } 265 | 266 | /* Body: Read-only lists, text inputs, collapsible content */ 267 | .ui-body-a, 268 | .ui-page-theme-a .ui-body-inherit, 269 | html .ui-bar-a .ui-body-inherit, 270 | html .ui-body-a .ui-body-inherit, 271 | html body .ui-group-theme-a .ui-body-inherit, 272 | html .ui-panel-page-container-a { 273 | background-color: #fff /*{a-body-background-color}*/; 274 | border-color: #ddd /*{a-body-border}*/; 275 | color: #333 /*{a-body-color}*/; 276 | text-shadow: 0 /*{a-body-shadow-x}*/ 1px /*{a-body-shadow-y}*/ 0 /*{a-body-shadow-radius}*/ #f3f3f3 /*{a-body-shadow-color}*/; 277 | } 278 | .ui-body-a { 279 | border-width: 1px; 280 | border-style: solid; 281 | } 282 | 283 | /* Links */ 284 | .ui-page-theme-a a, 285 | html .ui-bar-a a, 286 | html .ui-body-a a, 287 | html body .ui-group-theme-a a { 288 | color: #3388cc /*{a-link-color}*/; 289 | font-weight: bold; 290 | } 291 | .ui-page-theme-a a:visited, 292 | html .ui-bar-a a:visited, 293 | html .ui-body-a a:visited, 294 | html body .ui-group-theme-a a:visited { 295 | color: #3388cc /*{a-link-visited}*/; 296 | } 297 | .ui-page-theme-a a:hover, 298 | html .ui-bar-a a:hover, 299 | html .ui-body-a a:hover, 300 | html body .ui-group-theme-a a:hover { 301 | color: #005599 /*{a-link-hover}*/; 302 | } 303 | .ui-page-theme-a a:active, 304 | html .ui-bar-a a:active, 305 | html .ui-body-a a:active, 306 | html body .ui-group-theme-a a:active { 307 | color: #005599 /*{a-link-active}*/; 308 | } 309 | 310 | /* Button up */ 311 | .ui-page-theme-a .ui-btn, 312 | html .ui-bar-a .ui-btn, 313 | html .ui-body-a .ui-btn, 314 | html body .ui-group-theme-a .ui-btn, 315 | html head + body .ui-btn.ui-btn-a, 316 | /* Button visited */ 317 | .ui-page-theme-a .ui-btn:visited, 318 | html .ui-bar-a .ui-btn:visited, 319 | html .ui-body-a .ui-btn:visited, 320 | html body .ui-group-theme-a .ui-btn:visited, 321 | html head + body .ui-btn.ui-btn-a:visited { 322 | background-color: #f6f6f6 /*{a-bup-background-color}*/; 323 | border-color: #ddd /*{a-bup-border}*/; 324 | color: #333 /*{a-bup-color}*/; 325 | text-shadow: 0 /*{a-bup-shadow-x}*/ 1px /*{a-bup-shadow-y}*/ 0 /*{a-bup-shadow-radius}*/ #f3f3f3 /*{a-bup-shadow-color}*/; 326 | } 327 | /* Button hover */ 328 | .ui-page-theme-a .ui-btn:hover, 329 | html .ui-bar-a .ui-btn:hover, 330 | html .ui-body-a .ui-btn:hover, 331 | html body .ui-group-theme-a .ui-btn:hover, 332 | html head + body .ui-btn.ui-btn-a:hover { 333 | background-color: #ededed /*{a-bhover-background-color}*/; 334 | border-color: #ddd /*{a-bhover-border}*/; 335 | color: #333 /*{a-bhover-color}*/; 336 | text-shadow: 0 /*{a-bhover-shadow-x}*/ 1px /*{a-bhover-shadow-y}*/ 0 /*{a-bhover-shadow-radius}*/ #f3f3f3 /*{a-bhover-shadow-color}*/; 337 | } 338 | /* Button down */ 339 | .ui-page-theme-a .ui-btn:active, 340 | html .ui-bar-a .ui-btn:active, 341 | html .ui-body-a .ui-btn:active, 342 | html body .ui-group-theme-a .ui-btn:active, 343 | html head + body .ui-btn.ui-btn-a:active { 344 | background-color: #e8e8e8 /*{a-bdown-background-color}*/; 345 | border-color: #ddd /*{a-bdown-border}*/; 346 | color: #333 /*{a-bdown-color}*/; 347 | text-shadow: 0 /*{a-bdown-shadow-x}*/ 1px /*{a-bdown-shadow-y}*/ 0 /*{a-bdown-shadow-radius}*/ #f3f3f3 /*{a-bdown-shadow-color}*/; 348 | } 349 | 350 | /* Active button */ 351 | .ui-page-theme-a .ui-btn.ui-btn-active, 352 | html .ui-bar-a .ui-btn.ui-btn-active, 353 | html .ui-body-a .ui-btn.ui-btn-active, 354 | html body .ui-group-theme-a .ui-btn.ui-btn-active, 355 | html head + body .ui-btn.ui-btn-a.ui-btn-active, 356 | /* Active checkbox icon */ 357 | .ui-page-theme-a .ui-checkbox-on:after, 358 | html .ui-bar-a .ui-checkbox-on:after, 359 | html .ui-body-a .ui-checkbox-on:after, 360 | html body .ui-group-theme-a .ui-checkbox-on:after, 361 | .ui-btn.ui-checkbox-on.ui-btn-a:after, 362 | /* Active flipswitch background */ 363 | .ui-page-theme-a .ui-flipswitch-active, 364 | html .ui-bar-a .ui-flipswitch-active, 365 | html .ui-body-a .ui-flipswitch-active, 366 | html body .ui-group-theme-a .ui-flipswitch-active, 367 | html body .ui-flipswitch.ui-bar-a.ui-flipswitch-active, 368 | /* Active slider track */ 369 | .ui-page-theme-a .ui-slider-track .ui-btn-active, 370 | html .ui-bar-a .ui-slider-track .ui-btn-active, 371 | html .ui-body-a .ui-slider-track .ui-btn-active, 372 | html body .ui-group-theme-a .ui-slider-track .ui-btn-active, 373 | html body div.ui-slider-track.ui-body-a .ui-btn-active { 374 | background-color: #3388cc /*{a-active-background-color}*/; 375 | border-color: #3388cc /*{a-active-border}*/; 376 | color: #fff /*{a-active-color}*/; 377 | text-shadow: 0 /*{a-active-shadow-x}*/ 1px /*{a-active-shadow-y}*/ 0 /*{a-active-shadow-radius}*/ #005599 /*{a-active-shadow-color}*/; 378 | } 379 | /* Active radio button icon */ 380 | .ui-page-theme-a .ui-radio-on:after, 381 | html .ui-bar-a .ui-radio-on:after, 382 | html .ui-body-a .ui-radio-on:after, 383 | html body .ui-group-theme-a .ui-radio-on:after, 384 | .ui-btn.ui-radio-on.ui-btn-a:after { 385 | border-color: #3388cc /*{a-active-background-color}*/; 386 | } 387 | 388 | /* Focus */ 389 | .ui-page-theme-a .ui-btn:focus, 390 | html .ui-bar-a .ui-btn:focus, 391 | html .ui-body-a .ui-btn:focus, 392 | html body .ui-group-theme-a .ui-btn:focus, 393 | html head + body .ui-btn.ui-btn-a:focus, 394 | /* Focus buttons and text inputs with div wrap */ 395 | .ui-page-theme-a .ui-focus, 396 | html .ui-bar-a .ui-focus, 397 | html .ui-body-a .ui-focus, 398 | html body .ui-group-theme-a .ui-focus, 399 | html head + body .ui-btn-a.ui-focus, 400 | html head + body .ui-body-a.ui-focus { 401 | -webkit-box-shadow: 0 0 12px #3388cc /*{a-active-background-color}*/; 402 | -moz-box-shadow: 0 0 12px #3388cc /*{a-active-background-color}*/; 403 | box-shadow: 0 0 12px #3388cc /*{a-active-background-color}*/; 404 | } 405 | 406 | /* B 407 | -----------------------------------------------------------------------------------------------------------*/ 408 | 409 | /* Bar: Toolbars, dividers, slider track */ 410 | .ui-bar-b, 411 | .ui-page-theme-b .ui-bar-inherit, 412 | html .ui-bar-b .ui-bar-inherit, 413 | html .ui-body-b .ui-bar-inherit, 414 | html body .ui-group-theme-b .ui-bar-inherit { 415 | background-color: #1d1d1d /*{b-bar-background-color}*/; 416 | border-color: #1b1b1b /*{b-bar-border}*/; 417 | color: #fff /*{b-bar-color}*/; 418 | text-shadow: 0 /*{b-bar-shadow-x}*/ 1px /*{b-bar-shadow-y}*/ 0 /*{b-bar-shadow-radius}*/ #111 /*{b-bar-shadow-color}*/; 419 | font-weight: bold; 420 | } 421 | .ui-bar-b { 422 | border-width: 1px; 423 | border-style: solid; 424 | } 425 | 426 | /* Page and overlay */ 427 | .ui-overlay-b, 428 | .ui-page-theme-b, 429 | .ui-page-theme-b .ui-panel-wrapper { 430 | background-color: #252525 /*{b-page-background-color}*/; 431 | border-color: #454545 /*{b-page-border}*/; 432 | color: #fff /*{b-page-color}*/; 433 | text-shadow: 0 /*{b-page-shadow-x}*/ 1px /*{b-page-shadow-y}*/ 0 /*{b-page-shadow-radius}*/ #111 /*{b-page-shadow-color}*/; 434 | } 435 | 436 | /* Body: Read-only lists, text inputs, collapsible content */ 437 | .ui-body-b, 438 | .ui-page-theme-b .ui-body-inherit, 439 | html .ui-bar-b .ui-body-inherit, 440 | html .ui-body-b .ui-body-inherit, 441 | html body .ui-group-theme-b .ui-body-inherit, 442 | html .ui-panel-page-container-b { 443 | background-color: #2a2a2a /*{b-body-background-color}*/; 444 | border-color: #1d1d1d /*{b-body-border}*/; 445 | color: #fff /*{b-body-color}*/; 446 | text-shadow: 0 /*{b-body-shadow-x}*/ 1px /*{b-body-shadow-y}*/ 0 /*{b-body-shadow-radius}*/ #111 /*{b-body-shadow-color}*/; 447 | } 448 | .ui-body-b { 449 | border-width: 1px; 450 | border-style: solid; 451 | } 452 | 453 | /* Links */ 454 | .ui-page-theme-b a, 455 | html .ui-bar-b a, 456 | html .ui-body-b a, 457 | html body .ui-group-theme-b a { 458 | color: #22aadd /*{b-link-color}*/; 459 | font-weight: bold; 460 | } 461 | .ui-page-theme-b a:visited, 462 | html .ui-bar-b a:visited, 463 | html .ui-body-b a:visited, 464 | html body .ui-group-theme-b a:visited { 465 | color: #22aadd /*{b-link-visited}*/; 466 | } 467 | .ui-page-theme-b a:hover, 468 | html .ui-bar-b a:hover, 469 | html .ui-body-b a:hover, 470 | html body .ui-group-theme-b a:hover { 471 | color: #0088bb /*{b-link-hover}*/; 472 | } 473 | .ui-page-theme-b a:active, 474 | html .ui-bar-b a:active, 475 | html .ui-body-b a:active, 476 | html body .ui-group-theme-b a:active { 477 | color: #0088bb /*{b-link-active}*/; 478 | } 479 | 480 | /* Button up */ 481 | .ui-page-theme-b .ui-btn, 482 | html .ui-bar-b .ui-btn, 483 | html .ui-body-b .ui-btn, 484 | html body .ui-group-theme-b .ui-btn, 485 | html head + body .ui-btn.ui-btn-b, 486 | /* Button visited */ 487 | .ui-page-theme-b .ui-btn:visited, 488 | html .ui-bar-b .ui-btn:visited, 489 | html .ui-body-b .ui-btn:visited, 490 | html body .ui-group-theme-b .ui-btn:visited, 491 | html head + body .ui-btn.ui-btn-b:visited { 492 | background-color: #333 /*{b-bup-background-color}*/; 493 | border-color: #1f1f1f /*{b-bup-border}*/; 494 | color: #fff /*{b-bup-color}*/; 495 | text-shadow: 0 /*{b-bup-shadow-x}*/ 1px /*{b-bup-shadow-y}*/ 0 /*{b-bup-shadow-radius}*/ #111 /*{b-bup-shadow-color}*/; 496 | } 497 | /* Button hover */ 498 | .ui-page-theme-b .ui-btn:hover, 499 | html .ui-bar-b .ui-btn:hover, 500 | html .ui-body-b .ui-btn:hover, 501 | html body .ui-group-theme-b .ui-btn:hover, 502 | html head + body .ui-btn.ui-btn-b:hover { 503 | background-color: #373737 /*{b-bhover-background-color}*/; 504 | border-color: #1f1f1f /*{b-bhover-border}*/; 505 | color: #fff /*{b-bhover-color}*/; 506 | text-shadow: 0 /*{b-bhover-shadow-x}*/ 1px /*{b-bhover-shadow-y}*/ 0 /*{b-bhover-shadow-radius}*/ #111 /*{b-bhover-shadow-color}*/; 507 | } 508 | /* Button down */ 509 | .ui-page-theme-b .ui-btn:active, 510 | html .ui-bar-b .ui-btn:active, 511 | html .ui-body-b .ui-btn:active, 512 | html body .ui-group-theme-b .ui-btn:active, 513 | html head + body .ui-btn.ui-btn-b:active { 514 | background-color: #404040 /*{b-bdown-background-color}*/; 515 | border-color: #1f1f1f /*{b-bdown-border}*/; 516 | color: #fff /*{b-bdown-color}*/; 517 | text-shadow: 0 /*{b-bdown-shadow-x}*/ 1px /*{b-bdown-shadow-y}*/ 0 /*{b-bdown-shadow-radius}*/ #111 /*{b-bdown-shadow-color}*/; 518 | } 519 | 520 | /* Active button */ 521 | .ui-page-theme-b .ui-btn.ui-btn-active, 522 | html .ui-bar-b .ui-btn.ui-btn-active, 523 | html .ui-body-b .ui-btn.ui-btn-active, 524 | html body .ui-group-theme-b .ui-btn.ui-btn-active, 525 | html head + body .ui-btn.ui-btn-b.ui-btn-active, 526 | /* Active checkbox icon */ 527 | .ui-page-theme-b .ui-checkbox-on:after, 528 | html .ui-bar-b .ui-checkbox-on:after, 529 | html .ui-body-b .ui-checkbox-on:after, 530 | html body .ui-group-theme-b .ui-checkbox-on:after, 531 | .ui-btn.ui-checkbox-on.ui-btn-b:after, 532 | /* Active flipswitch background */ 533 | .ui-page-theme-b .ui-flipswitch-active, 534 | html .ui-bar-b .ui-flipswitch-active, 535 | html .ui-body-b .ui-flipswitch-active, 536 | html body .ui-group-theme-b .ui-flipswitch-active, 537 | html body .ui-flipswitch.ui-bar-b.ui-flipswitch-active, 538 | /* Active slider track */ 539 | .ui-page-theme-b .ui-slider-track .ui-btn-active, 540 | html .ui-bar-b .ui-slider-track .ui-btn-active, 541 | html .ui-body-b .ui-slider-track .ui-btn-active, 542 | html body .ui-group-theme-b .ui-slider-track .ui-btn-active, 543 | html body div.ui-slider-track.ui-body-b .ui-btn-active { 544 | background-color: #22aadd /*{b-active-background-color}*/; 545 | border-color: #22aadd /*{b-active-border}*/; 546 | color: #fff /*{b-active-color}*/; 547 | text-shadow: 0 /*{b-active-shadow-x}*/ 1px /*{b-active-shadow-y}*/ 0 /*{b-active-shadow-radius}*/ #0088bb /*{b-active-shadow-color}*/; 548 | } 549 | /* Active radio button icon */ 550 | .ui-page-theme-b .ui-radio-on:after, 551 | html .ui-bar-b .ui-radio-on:after, 552 | html .ui-body-b .ui-radio-on:after, 553 | html body .ui-group-theme-b .ui-radio-on:after, 554 | .ui-btn.ui-radio-on.ui-btn-b:after { 555 | border-color: #22aadd /*{b-active-background-color}*/; 556 | } 557 | 558 | /* Focus */ 559 | .ui-page-theme-b .ui-btn:focus, 560 | html .ui-bar-b .ui-btn:focus, 561 | html .ui-body-b .ui-btn:focus, 562 | html body .ui-group-theme-b .ui-btn:focus, 563 | html head + body .ui-btn.ui-btn-b:focus, 564 | /* Focus buttons and text inputs with div wrap */ 565 | .ui-page-theme-b .ui-focus, 566 | html .ui-bar-b .ui-focus, 567 | html .ui-body-b .ui-focus, 568 | html body .ui-group-theme-b .ui-focus, 569 | html head + body .ui-btn-b.ui-focus, 570 | html head + body .ui-body-b.ui-focus { 571 | -webkit-box-shadow: 0 0 12px #22aadd /*{b-active-background-color}*/; 572 | -moz-box-shadow: 0 0 12px #22aadd /*{b-active-background-color}*/; 573 | box-shadow: 0 0 12px #22aadd /*{b-active-background-color}*/; 574 | } 575 | 576 | /* Structure */ 577 | 578 | /* Disabled 579 | -----------------------------------------------------------------------------------------------------------*/ 580 | /* Class ui-disabled deprecated in 1.4. :disabled not supported by IE8 so we use [disabled] */ 581 | 582 | .ui-disabled, 583 | .ui-state-disabled, 584 | button[disabled], 585 | .ui-select .ui-btn.ui-state-disabled { 586 | filter: Alpha(Opacity=30); 587 | opacity: .3; 588 | cursor: default !important; 589 | pointer-events: none; 590 | } 591 | 592 | /* Focus state outline 593 | -----------------------------------------------------------------------------------------------------------*/ 594 | 595 | .ui-btn:focus, 596 | .ui-btn.ui-focus { 597 | outline: 0; 598 | } 599 | /* Unset box-shadow in browsers that don't do it right */ 600 | .ui-noboxshadow .ui-shadow, 601 | .ui-noboxshadow .ui-shadow-inset, 602 | .ui-noboxshadow .ui-overlay-shadow, 603 | .ui-noboxshadow .ui-shadow-icon.ui-btn:after, 604 | .ui-noboxshadow .ui-shadow-icon .ui-btn:after, 605 | .ui-noboxshadow .ui-focus, 606 | .ui-noboxshadow .ui-btn:focus, 607 | .ui-noboxshadow input:focus, 608 | .ui-noboxshadow .ui-panel { 609 | -webkit-box-shadow: none !important; 610 | -moz-box-shadow: none !important; 611 | box-shadow: none !important; 612 | } 613 | .ui-noboxshadow .ui-btn:focus, 614 | .ui-noboxshadow .ui-focus { 615 | outline-width: 1px; 616 | outline-style: auto; 617 | } -------------------------------------------------------------------------------- /js/jquery.mobile.custom.theme.min.css: -------------------------------------------------------------------------------- 1 | /*! jQuery Mobile v1.4.3 | Copyright 2010, 2014 jQuery Foundation, Inc. | jquery.org/license */ 2 | 3 | /* * jQuery Mobile v1.4.3 * http://jquerymobile.com * * Copyright 2010,2014 jQuery Foundation,Inc. and other contributors * Released under the MIT license. * http://jquery.org/license * */ html{font-size:100%;}body,input,select,textarea,button,.ui-btn{font-size:1em;line-height:1.3;font-family:sans-serif ;}legend,.ui-input-text input,.ui-input-search input{color:inherit;text-shadow:inherit;}.ui-mobile label,div.ui-controlgroup-label{font-weight:normal;font-size:16px;}.ui-field-contain{border-bottom-color:#828282;border-bottom-color:rgba(0,0,0,.15);border-bottom-width:1px;border-bottom-style:solid;}.table-stroke thead th,.table-stripe thead th,.table-stripe tbody tr:last-child{border-bottom:1px solid #d6d6d6;border-bottom:1px solid rgba(0,0,0,.1);}.table-stroke tbody th,.table-stroke tbody td{border-bottom:1px solid #e6e6e6;border-bottom:1px solid rgba(0,0,0,.05);}.table-stripe.table-stroke tbody tr:last-child th,.table-stripe.table-stroke tbody tr:last-child td{border-bottom:0;}.table-stripe tbody tr:nth-child(odd) td,.table-stripe tbody tr:nth-child(odd) th{background-color:#eeeeee;background-color:rgba(0,0,0,.04);}.ui-btn,label.ui-btn{font-weight:bold;border-width:1px;border-style:solid;}.ui-btn{text-decoration:none !important;}.ui-btn-active{cursor:pointer;}.ui-corner-all{-webkit-border-radius:.3125em ;border-radius:.3125em ;}.ui-btn-corner-all,.ui-btn.ui-corner-all,.ui-slider-track.ui-corner-all,.ui-flipswitch.ui-corner-all,.ui-li-count{-webkit-border-radius:.3125em ;border-radius:.3125em ;}.ui-btn-icon-notext.ui-btn-corner-all,.ui-btn-icon-notext.ui-corner-all{-webkit-border-radius:1em;border-radius:1em;}.ui-btn-corner-all,.ui-corner-all{-webkit-background-clip:padding;background-clip:padding-box;}.ui-popup.ui-corner-all > .ui-popup-arrow-guide{left:.6em ;right:.6em ;top:.6em ;bottom:.6em ;}.ui-shadow{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.15) ;-moz-box-shadow:0 1px 3px rgba(0,0,0,.15) ;box-shadow:0 1px 3px rgba(0,0,0,.15) ;}.ui-shadow-inset{-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.2) ;-moz-box-shadow:inset 0 1px 3px rgba(0,0,0,.2) ;box-shadow:inset 0 1px 3px rgba(0,0,0,.2) ;}.ui-overlay-shadow{-webkit-box-shadow:0 0 12px rgba(0,0,0,.6);-moz-box-shadow:0 0 12px rgba(0,0,0,.6);box-shadow:0 0 12px rgba(0,0,0,.6);}.ui-btn-icon-left:after,.ui-btn-icon-right:after,.ui-btn-icon-top:after,.ui-btn-icon-bottom:after,.ui-btn-icon-notext:after{background-color:#666 ;background-color:rgba(0,0,0,.3) ;background-position:center center;background-repeat:no-repeat;-webkit-border-radius:1em;border-radius:1em;}.ui-alt-icon.ui-btn:after,.ui-alt-icon .ui-btn:after,html .ui-alt-icon.ui-checkbox-off:after,html .ui-alt-icon.ui-radio-off:after,html .ui-alt-icon .ui-checkbox-off:after,html .ui-alt-icon .ui-radio-off:after{background-color:#666 ;background-color:rgba(0,0,0,.15) ;}.ui-nodisc-icon.ui-btn:after,.ui-nodisc-icon .ui-btn:after{background-color:transparent;}.ui-shadow-icon.ui-btn:after,.ui-shadow-icon .ui-btn:after{-webkit-box-shadow:0 1px 0 rgba(255,255,255,.3) ;-moz-box-shadow:0 1px 0 rgba(255,255,255,.3) ;box-shadow:0 1px 0 rgba(255,255,255,.3) ;}.ui-btn.ui-checkbox-off:after,.ui-btn.ui-checkbox-on:after,.ui-btn.ui-radio-off:after,.ui-btn.ui-radio-on:after{display:block;width:18px;height:18px;margin:-9px 2px 0 2px;}.ui-checkbox-off:after,.ui-btn.ui-radio-off:after{filter:Alpha(Opacity=30);opacity:.3;}.ui-btn.ui-checkbox-off:after,.ui-btn.ui-checkbox-on:after{-webkit-border-radius:.1875em;border-radius:.1875em;}.ui-btn.ui-checkbox-off:after{background-color:#666;background-color:rgba(0,0,0,.3);}.ui-radio .ui-btn.ui-radio-on:after{background-image:none;background-color:#fff;width:8px;height:8px;border-width:5px;border-style:solid;}.ui-alt-icon.ui-btn.ui-radio-on:after,.ui-alt-icon .ui-btn.ui-radio-on:after{background-color:#000;}.ui-icon-loading{background:url("images/ajax-loader.gif");background-size:2.875em 2.875em;}.ui-bar-a,.ui-page-theme-a .ui-bar-inherit,html .ui-bar-a .ui-bar-inherit,html .ui-body-a .ui-bar-inherit,html body .ui-group-theme-a .ui-bar-inherit{background-color:#e9e9e9 ;border-color:#ddd ;color:#333 ;text-shadow:0 1px 0 #eee ;font-weight:bold;}.ui-bar-a{border-width:1px;border-style:solid;}.ui-overlay-a,.ui-page-theme-a,.ui-page-theme-a .ui-panel-wrapper{background-color:#f9f9f9 ;border-color:#bbb ;color:#333 ;text-shadow:0 1px 0 #f3f3f3 ;}.ui-body-a,.ui-page-theme-a .ui-body-inherit,html .ui-bar-a .ui-body-inherit,html .ui-body-a .ui-body-inherit,html body .ui-group-theme-a .ui-body-inherit,html .ui-panel-page-container-a{background-color:#fff ;border-color:#ddd ;color:#333 ;text-shadow:0 1px 0 #f3f3f3 ;}.ui-body-a{border-width:1px;border-style:solid;}.ui-page-theme-a a,html .ui-bar-a a,html .ui-body-a a,html body .ui-group-theme-a a{color:#3388cc ;font-weight:bold;}.ui-page-theme-a a:visited,html .ui-bar-a a:visited,html .ui-body-a a:visited,html body .ui-group-theme-a a:visited{color:#3388cc ;}.ui-page-theme-a a:hover,html .ui-bar-a a:hover,html .ui-body-a a:hover,html body .ui-group-theme-a a:hover{color:#005599 ;}.ui-page-theme-a a:active,html .ui-bar-a a:active,html .ui-body-a a:active,html body .ui-group-theme-a a:active{color:#005599 ;}.ui-page-theme-a .ui-btn,html .ui-bar-a .ui-btn,html .ui-body-a .ui-btn,html body .ui-group-theme-a .ui-btn,html head + body .ui-btn.ui-btn-a,.ui-page-theme-a .ui-btn:visited,html .ui-bar-a .ui-btn:visited,html .ui-body-a .ui-btn:visited,html body .ui-group-theme-a .ui-btn:visited,html head + body .ui-btn.ui-btn-a:visited{background-color:#f6f6f6 ;border-color:#ddd ;color:#333 ;text-shadow:0 1px 0 #f3f3f3 ;}.ui-page-theme-a .ui-btn:hover,html .ui-bar-a .ui-btn:hover,html .ui-body-a .ui-btn:hover,html body .ui-group-theme-a .ui-btn:hover,html head + body .ui-btn.ui-btn-a:hover{background-color:#ededed ;border-color:#ddd ;color:#333 ;text-shadow:0 1px 0 #f3f3f3 ;}.ui-page-theme-a .ui-btn:active,html .ui-bar-a .ui-btn:active,html .ui-body-a .ui-btn:active,html body .ui-group-theme-a .ui-btn:active,html head + body .ui-btn.ui-btn-a:active{background-color:#e8e8e8 ;border-color:#ddd ;color:#333 ;text-shadow:0 1px 0 #f3f3f3 ;}.ui-page-theme-a .ui-btn.ui-btn-active,html .ui-bar-a .ui-btn.ui-btn-active,html .ui-body-a .ui-btn.ui-btn-active,html body .ui-group-theme-a .ui-btn.ui-btn-active,html head + body .ui-btn.ui-btn-a.ui-btn-active,.ui-page-theme-a .ui-checkbox-on:after,html .ui-bar-a .ui-checkbox-on:after,html .ui-body-a .ui-checkbox-on:after,html body .ui-group-theme-a .ui-checkbox-on:after,.ui-btn.ui-checkbox-on.ui-btn-a:after,.ui-page-theme-a .ui-flipswitch-active,html .ui-bar-a .ui-flipswitch-active,html .ui-body-a .ui-flipswitch-active,html body .ui-group-theme-a .ui-flipswitch-active,html body .ui-flipswitch.ui-bar-a.ui-flipswitch-active,.ui-page-theme-a .ui-slider-track .ui-btn-active,html .ui-bar-a .ui-slider-track .ui-btn-active,html .ui-body-a .ui-slider-track .ui-btn-active,html body .ui-group-theme-a .ui-slider-track .ui-btn-active,html body div.ui-slider-track.ui-body-a .ui-btn-active{background-color:#3388cc ;border-color:#3388cc ;color:#fff ;text-shadow:0 1px 0 #005599 ;}.ui-page-theme-a .ui-radio-on:after,html .ui-bar-a .ui-radio-on:after,html .ui-body-a .ui-radio-on:after,html body .ui-group-theme-a .ui-radio-on:after,.ui-btn.ui-radio-on.ui-btn-a:after{border-color:#3388cc ;}.ui-page-theme-a .ui-btn:focus,html .ui-bar-a .ui-btn:focus,html .ui-body-a .ui-btn:focus,html body .ui-group-theme-a .ui-btn:focus,html head + body .ui-btn.ui-btn-a:focus,.ui-page-theme-a .ui-focus,html .ui-bar-a .ui-focus,html .ui-body-a .ui-focus,html body .ui-group-theme-a .ui-focus,html head + body .ui-btn-a.ui-focus,html head + body .ui-body-a.ui-focus{-webkit-box-shadow:0 0 12px #3388cc ;-moz-box-shadow:0 0 12px #3388cc ;box-shadow:0 0 12px #3388cc ;}.ui-bar-b,.ui-page-theme-b .ui-bar-inherit,html .ui-bar-b .ui-bar-inherit,html .ui-body-b .ui-bar-inherit,html body .ui-group-theme-b .ui-bar-inherit{background-color:#1d1d1d ;border-color:#1b1b1b ;color:#fff ;text-shadow:0 1px 0 #111 ;font-weight:bold;}.ui-bar-b{border-width:1px;border-style:solid;}.ui-overlay-b,.ui-page-theme-b,.ui-page-theme-b .ui-panel-wrapper{background-color:#252525 ;border-color:#454545 ;color:#fff ;text-shadow:0 1px 0 #111 ;}.ui-body-b,.ui-page-theme-b .ui-body-inherit,html .ui-bar-b .ui-body-inherit,html .ui-body-b .ui-body-inherit,html body .ui-group-theme-b .ui-body-inherit,html .ui-panel-page-container-b{background-color:#2a2a2a ;border-color:#1d1d1d ;color:#fff ;text-shadow:0 1px 0 #111 ;}.ui-body-b{border-width:1px;border-style:solid;}.ui-page-theme-b a,html .ui-bar-b a,html .ui-body-b a,html body .ui-group-theme-b a{color:#22aadd ;font-weight:bold;}.ui-page-theme-b a:visited,html .ui-bar-b a:visited,html .ui-body-b a:visited,html body .ui-group-theme-b a:visited{color:#22aadd ;}.ui-page-theme-b a:hover,html .ui-bar-b a:hover,html .ui-body-b a:hover,html body .ui-group-theme-b a:hover{color:#0088bb ;}.ui-page-theme-b a:active,html .ui-bar-b a:active,html .ui-body-b a:active,html body .ui-group-theme-b a:active{color:#0088bb ;}.ui-page-theme-b .ui-btn,html .ui-bar-b .ui-btn,html .ui-body-b .ui-btn,html body .ui-group-theme-b .ui-btn,html head + body .ui-btn.ui-btn-b,.ui-page-theme-b .ui-btn:visited,html .ui-bar-b .ui-btn:visited,html .ui-body-b .ui-btn:visited,html body .ui-group-theme-b .ui-btn:visited,html head + body .ui-btn.ui-btn-b:visited{background-color:#333 ;border-color:#1f1f1f ;color:#fff ;text-shadow:0 1px 0 #111 ;}.ui-page-theme-b .ui-btn:hover,html .ui-bar-b .ui-btn:hover,html .ui-body-b .ui-btn:hover,html body .ui-group-theme-b .ui-btn:hover,html head + body .ui-btn.ui-btn-b:hover{background-color:#373737 ;border-color:#1f1f1f ;color:#fff ;text-shadow:0 1px 0 #111 ;}.ui-page-theme-b .ui-btn:active,html .ui-bar-b .ui-btn:active,html .ui-body-b .ui-btn:active,html body .ui-group-theme-b .ui-btn:active,html head + body .ui-btn.ui-btn-b:active{background-color:#404040 ;border-color:#1f1f1f ;color:#fff ;text-shadow:0 1px 0 #111 ;}.ui-page-theme-b .ui-btn.ui-btn-active,html .ui-bar-b .ui-btn.ui-btn-active,html .ui-body-b .ui-btn.ui-btn-active,html body .ui-group-theme-b .ui-btn.ui-btn-active,html head + body .ui-btn.ui-btn-b.ui-btn-active,.ui-page-theme-b .ui-checkbox-on:after,html .ui-bar-b .ui-checkbox-on:after,html .ui-body-b .ui-checkbox-on:after,html body .ui-group-theme-b .ui-checkbox-on:after,.ui-btn.ui-checkbox-on.ui-btn-b:after,.ui-page-theme-b .ui-flipswitch-active,html .ui-bar-b .ui-flipswitch-active,html .ui-body-b .ui-flipswitch-active,html body .ui-group-theme-b .ui-flipswitch-active,html body .ui-flipswitch.ui-bar-b.ui-flipswitch-active,.ui-page-theme-b .ui-slider-track .ui-btn-active,html .ui-bar-b .ui-slider-track .ui-btn-active,html .ui-body-b .ui-slider-track .ui-btn-active,html body .ui-group-theme-b .ui-slider-track .ui-btn-active,html body div.ui-slider-track.ui-body-b .ui-btn-active{background-color:#22aadd ;border-color:#22aadd ;color:#fff ;text-shadow:0 1px 0 #0088bb ;}.ui-page-theme-b .ui-radio-on:after,html .ui-bar-b .ui-radio-on:after,html .ui-body-b .ui-radio-on:after,html body .ui-group-theme-b .ui-radio-on:after,.ui-btn.ui-radio-on.ui-btn-b:after{border-color:#22aadd ;}.ui-page-theme-b .ui-btn:focus,html .ui-bar-b .ui-btn:focus,html .ui-body-b .ui-btn:focus,html body .ui-group-theme-b .ui-btn:focus,html head + body .ui-btn.ui-btn-b:focus,.ui-page-theme-b .ui-focus,html .ui-bar-b .ui-focus,html .ui-body-b .ui-focus,html body .ui-group-theme-b .ui-focus,html head + body .ui-btn-b.ui-focus,html head + body .ui-body-b.ui-focus{-webkit-box-shadow:0 0 12px #22aadd ;-moz-box-shadow:0 0 12px #22aadd ;box-shadow:0 0 12px #22aadd ;}.ui-disabled,.ui-state-disabled,button[disabled],.ui-select .ui-btn.ui-state-disabled{filter:Alpha(Opacity=30);opacity:.3;cursor:default !important;pointer-events:none;}.ui-btn:focus,.ui-btn.ui-focus{outline:0;}.ui-noboxshadow .ui-shadow,.ui-noboxshadow .ui-shadow-inset,.ui-noboxshadow .ui-overlay-shadow,.ui-noboxshadow .ui-shadow-icon.ui-btn:after,.ui-noboxshadow .ui-shadow-icon .ui-btn:after,.ui-noboxshadow .ui-focus,.ui-noboxshadow .ui-btn:focus,.ui-noboxshadow input:focus,.ui-noboxshadow .ui-panel{-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important;}.ui-noboxshadow .ui-btn:focus,.ui-noboxshadow .ui-focus{outline-width:1px;outline-style:auto;} -------------------------------------------------------------------------------- /js/random.js: -------------------------------------------------------------------------------- 1 | 2 | /** Random.js library. 3 | * 4 | * The code is licensed as LGPL. 5 | */ 6 | 7 | /* 8 | A C-program for MT19937, with initialization improved 2002/1/26. 9 | Coded by Takuji Nishimura and Makoto Matsumoto. 10 | 11 | Before using, initialize the state by using init_genrand(seed) 12 | or init_by_array(init_key, key_length). 13 | 14 | Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura, 15 | All rights reserved. 16 | 17 | Redistribution and use in source and binary forms, with or without 18 | modification, are permitted provided that the following conditions 19 | are met: 20 | 21 | 1. Redistributions of source code must retain the above copyright 22 | notice, this list of conditions and the following disclaimer. 23 | 24 | 2. Redistributions in binary form must reproduce the above copyright 25 | notice, this list of conditions and the following disclaimer in the 26 | documentation and/or other materials provided with the distribution. 27 | 28 | 3. The names of its contributors may not be used to endorse or promote 29 | products derived from this software without specific prior written 30 | permission. 31 | 32 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 33 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 34 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 35 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 36 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 37 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 38 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 39 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 40 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 41 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 42 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 43 | 44 | 45 | Any feedback is very welcome. 46 | http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html 47 | email: m-mat @ math.sci.hiroshima-u.ac.jp (remove space) 48 | */ 49 | 50 | var Random = function(seed) { 51 | seed = (seed === undefined) ? (new Date()).getTime() : seed; 52 | if (typeof(seed) !== 'number' // ARG_CHECK 53 | || Math.ceil(seed) != Math.floor(seed)) { // ARG_CHECK 54 | throw new TypeError("seed value must be an integer"); // ARG_CHECK 55 | } // ARG_CHECK 56 | 57 | 58 | /* Period parameters */ 59 | this.N = 624; 60 | this.M = 397; 61 | this.MATRIX_A = 0x9908b0df; /* constant vector a */ 62 | this.UPPER_MASK = 0x80000000; /* most significant w-r bits */ 63 | this.LOWER_MASK = 0x7fffffff; /* least significant r bits */ 64 | 65 | this.mt = new Array(this.N); /* the array for the state vector */ 66 | this.mti=this.N+1; /* mti==N+1 means mt[N] is not initialized */ 67 | 68 | //this.init_genrand(seed); 69 | this.init_by_array([seed], 1); 70 | }; 71 | 72 | /* initializes mt[N] with a seed */ 73 | Random.prototype.init_genrand = function(s) { 74 | this.mt[0] = s >>> 0; 75 | for (this.mti=1; this.mti>> 30); 77 | this.mt[this.mti] = (((((s & 0xffff0000) >>> 16) * 1812433253) << 16) + (s & 0x0000ffff) * 1812433253) 78 | + this.mti; 79 | /* See Knuth TAOCP Vol2. 3rd Ed. P.106 for multiplier. */ 80 | /* In the previous versions, MSBs of the seed affect */ 81 | /* only MSBs of the array mt[]. */ 82 | /* 2002/01/09 modified by Makoto Matsumoto */ 83 | this.mt[this.mti] >>>= 0; 84 | /* for >32 bit machines */ 85 | } 86 | }; 87 | 88 | /* initialize by an array with array-length */ 89 | /* init_key is the array for initializing keys */ 90 | /* key_length is its length */ 91 | /* slight change for C++, 2004/2/26 */ 92 | Random.prototype.init_by_array = function(init_key, key_length) { 93 | var i, j, k; 94 | this.init_genrand(19650218); 95 | i=1; j=0; 96 | k = (this.N>key_length ? this.N : key_length); 97 | for (; k; k--) { 98 | var s = this.mt[i-1] ^ (this.mt[i-1] >>> 30); 99 | this.mt[i] = (this.mt[i] ^ (((((s & 0xffff0000) >>> 16) * 1664525) << 16) + ((s & 0x0000ffff) * 1664525))) 100 | + init_key[j] + j; /* non linear */ 101 | this.mt[i] >>>= 0; /* for WORDSIZE > 32 machines */ 102 | i++; j++; 103 | if (i>=this.N) { this.mt[0] = this.mt[this.N-1]; i=1; } 104 | if (j>=key_length) j=0; 105 | } 106 | for (k=this.N-1; k; k--) { 107 | var s = this.mt[i-1] ^ (this.mt[i-1] >>> 30); 108 | this.mt[i] = (this.mt[i] ^ (((((s & 0xffff0000) >>> 16) * 1566083941) << 16) + (s & 0x0000ffff) * 1566083941)) 109 | - i; /* non linear */ 110 | this.mt[i] >>>= 0; /* for WORDSIZE > 32 machines */ 111 | i++; 112 | if (i>=this.N) { this.mt[0] = this.mt[this.N-1]; i=1; } 113 | } 114 | 115 | this.mt[0] = 0x80000000; /* MSB is 1; assuring non-zero initial array */ 116 | }; 117 | 118 | /* generates a random number on [0,0xffffffff]-interval */ 119 | Random.prototype.genrand_int32 = function() { 120 | var y; 121 | var mag01 = new Array(0x0, this.MATRIX_A); 122 | /* mag01[x] = x * MATRIX_A for x=0,1 */ 123 | 124 | if (this.mti >= this.N) { /* generate N words at one time */ 125 | var kk; 126 | 127 | if (this.mti == this.N+1) /* if init_genrand() has not been called, */ 128 | this.init_genrand(5489); /* a default initial seed is used */ 129 | 130 | for (kk=0;kk>> 1) ^ mag01[y & 0x1]; 133 | } 134 | for (;kk>> 1) ^ mag01[y & 0x1]; 137 | } 138 | y = (this.mt[this.N-1]&this.UPPER_MASK)|(this.mt[0]&this.LOWER_MASK); 139 | this.mt[this.N-1] = this.mt[this.M-1] ^ (y >>> 1) ^ mag01[y & 0x1]; 140 | 141 | this.mti = 0; 142 | } 143 | 144 | y = this.mt[this.mti++]; 145 | 146 | /* Tempering */ 147 | y ^= (y >>> 11); 148 | y ^= (y << 7) & 0x9d2c5680; 149 | y ^= (y << 15) & 0xefc60000; 150 | y ^= (y >>> 18); 151 | 152 | return y >>> 0; 153 | }; 154 | 155 | /* generates a random number on [0,0x7fffffff]-interval */ 156 | Random.prototype.genrand_int31 = function() { 157 | return (this.genrand_int32()>>>1); 158 | }; 159 | 160 | /* generates a random number on [0,1]-real-interval */ 161 | Random.prototype.genrand_real1 = function() { 162 | return this.genrand_int32()*(1.0/4294967295.0); 163 | /* divided by 2^32-1 */ 164 | }; 165 | 166 | /* generates a random number on [0,1)-real-interval */ 167 | Random.prototype.random = function() { 168 | if (this.pythonCompatibility) { 169 | if (this.skip) { 170 | this.genrand_int32(); 171 | } 172 | this.skip = true; 173 | } 174 | return this.genrand_int32()*(1.0/4294967296.0); 175 | /* divided by 2^32 */ 176 | }; 177 | 178 | /* generates a random number on (0,1)-real-interval */ 179 | Random.prototype.genrand_real3 = function() { 180 | return (this.genrand_int32() + 0.5)*(1.0/4294967296.0); 181 | /* divided by 2^32 */ 182 | }; 183 | 184 | /* generates a random number on [0,1) with 53-bit resolution*/ 185 | Random.prototype.genrand_res53 = function() { 186 | var a=this.genrand_int32()>>>5, b=this.genrand_int32()>>>6; 187 | return(a*67108864.0+b)*(1.0/9007199254740992.0); 188 | }; 189 | 190 | /* These real versions are due to Isaku Wada, 2002/01/09 added */ 191 | 192 | 193 | /**************************************************************************/ 194 | Random.prototype.LOG4 = Math.log(4.0); 195 | Random.prototype.SG_MAGICCONST = 1.0 + Math.log(4.5); 196 | 197 | Random.prototype.exponential = function (lambda) { 198 | if (arguments.length != 1) { // ARG_CHECK 199 | throw new SyntaxError("exponential() must " // ARG_CHECK 200 | + " be called with 'lambda' parameter"); // ARG_CHECK 201 | } // ARG_CHECK 202 | 203 | var r = this.random(); 204 | return -Math.log(r) / lambda; 205 | }; 206 | 207 | Random.prototype.gamma = function (alpha, beta) { 208 | if (arguments.length != 2) { // ARG_CHECK 209 | throw new SyntaxError("gamma() must be called" // ARG_CHECK 210 | + " with alpha and beta parameters"); // ARG_CHECK 211 | } // ARG_CHECK 212 | 213 | /* Based on Python 2.6 source code of random.py. 214 | */ 215 | 216 | if (alpha > 1.0) { 217 | var ainv = Math.sqrt(2.0 * alpha - 1.0); 218 | var bbb = alpha - this.LOG4; 219 | var ccc = alpha + ainv; 220 | 221 | while (true) { 222 | var u1 = this.random(); 223 | if ((u1 < 1e-7) || (u > 0.9999999)) { 224 | continue; 225 | } 226 | var u2 = 1.0 - this.random(); 227 | var v = Math.log(u1 / (1.0 - u1)) / ainv; 228 | var x = alpha * Math.exp(v); 229 | var z = u1 * u1 * u2; 230 | var r = bbb + ccc * v - x; 231 | if ((r + this.SG_MAGICCONST - 4.5 * z >= 0.0) || (r >= Math.log(z))) { 232 | return x * beta; 233 | } 234 | } 235 | } else if (alpha == 1.0) { 236 | var u = this.random(); 237 | while (u <= 1e-7) { 238 | u = this.random(); 239 | } 240 | return - Math.log(u) * beta; 241 | } else { 242 | while (true) { 243 | var u = this.random(); 244 | var b = (Math.E + alpha) / Math.E; 245 | var p = b * u; 246 | if (p <= 1.0) { 247 | var x = Math.pow(p, 1.0 / alpha); 248 | } else { 249 | var x = - Math.log((b - p) / alpha); 250 | } 251 | var u1 = this.random(); 252 | if (p > 1.0) { 253 | if (u1 <= Math.pow(x, (alpha - 1.0))) { 254 | break; 255 | } 256 | } else if (u1 <= Math.exp(-x)) { 257 | break; 258 | } 259 | } 260 | return x * beta; 261 | } 262 | 263 | }; 264 | 265 | Random.prototype.normal = function (mu, sigma) { 266 | if (arguments.length != 2) { // ARG_CHECK 267 | throw new SyntaxError("normal() must be called" // ARG_CHECK 268 | + " with mu and sigma parameters"); // ARG_CHECK 269 | } // ARG_CHECK 270 | 271 | var z = this.lastNormal; 272 | this.lastNormal = NaN; 273 | if (!z) { 274 | var a = this.random() * 2 * Math.PI; 275 | var b = Math.sqrt(-2.0 * Math.log(1.0 - this.random())); 276 | z = Math.cos(a) * b; 277 | this.lastNormal = Math.sin(a) * b; 278 | } 279 | return mu + z * sigma; 280 | }; 281 | 282 | Random.prototype.pareto = function (alpha) { 283 | if (arguments.length != 1) { // ARG_CHECK 284 | throw new SyntaxError("pareto() must be called" // ARG_CHECK 285 | + " with alpha parameter"); // ARG_CHECK 286 | } // ARG_CHECK 287 | 288 | var u = this.random(); 289 | return 1.0 / Math.pow((1 - u), 1.0 / alpha); 290 | }; 291 | 292 | Random.prototype.triangular = function (lower, upper, mode) { 293 | // http://en.wikipedia.org/wiki/Triangular_distribution 294 | if (arguments.length != 3) { // ARG_CHECK 295 | throw new SyntaxError("triangular() must be called" // ARG_CHECK 296 | + " with lower, upper and mode parameters"); // ARG_CHECK 297 | } // ARG_CHECK 298 | 299 | var c = (mode - lower) / (upper - lower); 300 | var u = this.random(); 301 | 302 | if (u <= c) { 303 | return lower + Math.sqrt(u * (upper - lower) * (mode - lower)); 304 | } else { 305 | return upper - Math.sqrt((1 - u) * (upper - lower) * (upper - mode)); 306 | } 307 | }; 308 | 309 | Random.prototype.uniform = function (lower, upper) { 310 | if (arguments.length != 2) { // ARG_CHECK 311 | throw new SyntaxError("uniform() must be called" // ARG_CHECK 312 | + " with lower and upper parameters"); // ARG_CHECK 313 | } // ARG_CHECK 314 | return lower + this.random() * (upper - lower); 315 | }; 316 | 317 | Random.prototype.weibull = function (alpha, beta) { 318 | if (arguments.length != 2) { // ARG_CHECK 319 | throw new SyntaxError("weibull() must be called" // ARG_CHECK 320 | + " with alpha and beta parameters"); // ARG_CHECK 321 | } // ARG_CHECK 322 | var u = 1.0 - this.random(); 323 | return alpha * Math.pow(-Math.log(u), 1.0 / beta); 324 | }; 325 | -------------------------------------------------------------------------------- /js/sizer.js: -------------------------------------------------------------------------------- 1 | //instantiate lists (global) 2 | var keyList = []; 3 | var compKeyList = []; 4 | var staticList = []; 5 | var clusterKeyList = []; 6 | 7 | var keys = []; 8 | var columns = []; 9 | var likelyQueries = []; 10 | 11 | //instantiate counts (global) 12 | var compLength = 0; 13 | var columnLength = 0; 14 | var primaryKey; 15 | 16 | //here's the regex defs 17 | var cqlCreateTableRegex = /^\s? *\t*CREATE\s+TABLE\s+(\S+)\s*\(\s*( *\t*\S+\s+\S+(\s+\S+)*(\s+PRIMARY KEY|\s+static)*\s*,\s*)+(( *\t*\S+\s+\S+\s*\)$)|( *\t*PRIMARY KEY\s*\(.+\)\s*\)))/ig ; 18 | var cqlColumnsRegex = /^\(* *\t*\S+\s+\S+(\s+\S+>,)*(\s+PRIMARY KEY|\s+static)*\s*,*\s*$/igm; 19 | var cqlCompoundPrimaryKeys = /\( *\( *\w+ *(, *[^\)]+ *)*\)/igm; 20 | var cqlPrimaryKeys = /^\(* *\t*PRIMARY KEY\s*\(.+\)\t* *;?$/igm; 21 | var dashCommentsRegex = /--.+[\r\n]/gm; 22 | var slashCommentsRegex = /\/\/.+[\r\n]/gm; 23 | var extraSpaceRegex = /^\s+/gm; 24 | var emptyLinesRegex = /^\s*[\r\n]/gm; 25 | var pkWithCloseParen = /^\(* *\t*PRIMARY KEY\s*\(.+\)\s*\)?\s?/img; 26 | 27 | //negative lookahead 28 | var endOfColumnRegex = /,(?!\s?[a-z]+\s?>)/img; 29 | 30 | var getCreateStatement = function() { 31 | var value = editor.getValue(); 32 | value = value.match(cqlCreateTableRegex)[0]; 33 | value = value.toLowerCase(); 34 | value = value.replace(dashCommentsRegex,"\n"); 35 | value = value.replace(slashCommentsRegex,"\n"); 36 | value = value.replace(extraSpaceRegex,"\n"); 37 | value = value.replace(emptyLinesRegex,""); 38 | 39 | pk = value.match(pkWithCloseParen); 40 | value = value.replace(pkWithCloseParen,""); 41 | value = value.replace(endOfColumnRegex,",\n"); 42 | value = value + pk[0].trim(); 43 | value = value.replace(emptyLinesRegex,""); 44 | console.log(value); 45 | return value; 46 | } 47 | var processTableDef = function(){ 48 | var value = getCreateStatement(); 49 | //Clear out parameters area. 50 | $('#parameters input').remove(); 51 | $('#parameters p, h2 ').remove(); 52 | $('#parameters div').remove(); 53 | 54 | // is the table definition valid? 55 | if(cqlCreateTableRegex.test(value)){ 56 | $.mobile.loading( 'show', { 57 | text: "Processing CQL Data Model", 58 | textVisible: true, 59 | theme: "b" 60 | }); 61 | 62 | keyList = []; 63 | compKeyList = []; 64 | staticList = []; 65 | 66 | $('#valid').html("Table Validated"); 67 | $('#parameters').append("

In order to generate a cassandra-stress yaml and provide diagnostic information about your data model we need some characteristics about your data.
Please let us know how big your fields will be (size distribution) and how frequently values appear (population distribution).

"); 68 | //$('#parameters').append("

Number of Rows:

"+"
"); 69 | 70 | var i=0; 71 | columns =value.match(cqlColumnsRegex); 72 | 73 | columns = columns.filter(function (d){ return d.indexOf(";") == -1 }); 74 | //columns.pop(columns.indexOf(";")); 75 | columnLength = columns.length; 76 | 77 | //identify explicit primary keys 78 | keys = value.match(cqlPrimaryKeys); 79 | if (keys !== null){ 80 | keys = keys.toString(); 81 | keys = keys.replace(/PRIMARY KEY/ig,"").replace(/;+/ig,"").replace(/\(+/ig,"").replace(/\)+/gi,"").trim().split(","); 82 | keys = $.each(keys,function(i, v){ 83 | keys[i] = v.trim(); 84 | }); 85 | } 86 | 87 | //identify explicit compound keys 88 | var compKeys = value.match(cqlCompoundPrimaryKeys); 89 | if (compKeys !== null){ 90 | compKeys = compKeys.toString(); 91 | compKeys = compKeys.replace("PRIMARY KEY","").replace(/\(+/ig,"").replace(/\)+/gi,"").trim().split(","); 92 | compKeys = $.each(compKeys,function(i, v){ 93 | compKeys[i] = v.trim(); 94 | }); 95 | } 96 | 97 | while (i of type "+colDat[1]+ ":"; 101 | 102 | //find primitives and assign default size 103 | var defaultSize =""; 104 | if (colDat[1] == "int" || colDat[1] == "integer"){ 105 | defaultSize = "4"; 106 | } 107 | if (colDat[1] == "bigint"){ 108 | defaultSize = "8"; 109 | } 110 | if (colDat[1] == "boolean"){ 111 | //because of Java word size 112 | defaultSize = "4"; 113 | } 114 | if (colDat[1] == "counter"){ 115 | defaultSize = "4"; 116 | } 117 | if (colDat[1] == "double"){ 118 | defaultSize = "8"; 119 | } 120 | if (colDat[1] == "float"){ 121 | defaultSize = "4"; 122 | } 123 | if (colDat[1] == "inet"){ 124 | //per http://en.wikipedia.org/wiki/IPv6 125 | defaultSize = "32"; 126 | } 127 | if (colDat[1] == "timestamp"){ 128 | defaultSize = "8"; 129 | } 130 | if (colDat[1] == "uuid"){ 131 | defaultSize = "32"; 132 | } 133 | if (colDat[1] == "timeuuid"){ 134 | defaultSize = "32"; 135 | } 136 | if (colDat[1].includes("map")){ 137 | $('#parameters').append("Map collections are not currently supported, please remove your maps and try again."); 138 | } 139 | 140 | //create input field 141 | createInputField(colString,i,"size","Fixed"); 142 | //set value when known 143 | $('#columnSize_'+ i ).val(defaultSize); 144 | 145 | //create population input field 146 | createInputField(colString,i,"population","Fixed"); 147 | //set value when known 148 | $('#column_Population'+ i ).val(defaultSize); 149 | 150 | $('[type="text"]').textinput(); 151 | 152 | //inline primary key declaration 153 | if ((colDat.length>2 && colDat[2]=="PRIMARY" && colDat[3]=="KEY")){ 154 | keyList.push(i); 155 | } 156 | //count Static columns 157 | if ((colDat.length>2 && colDat[2]=="STATIC")){ 158 | staticList.push(i); 159 | } 160 | //add explicit keys to list 161 | if($.inArray(colDat[0],keys) >= 0){ 162 | keyList[$.inArray(colDat[0],keys)] = i; 163 | } 164 | //add comp keys to list 165 | if ($.inArray(colDat[0],compKeys)>=0){ 166 | compKeyList.push(i); 167 | } 168 | 169 | 170 | insertHistogram('columnSizeGroup_'+ i); 171 | insertHistogram('columnPopulationGroup_'+ i); 172 | 173 | i=i+1; 174 | } 175 | 176 | //key split and print 177 | clusterKeyList = $.extend(true, [], keyList); 178 | 179 | if (compKeyList.length > 0){ 180 | var i=0; 181 | var keyLength = clusterKeyList.length; 182 | while (i< keyLength){ 183 | var shifted = clusterKeyList.shift(); 184 | if ($.inArray(shifted, compKeyList) < 0){ 185 | clusterKeyList.push(shifted); 186 | } 187 | i=i+1; 188 | } 189 | $('#parameters').append("

Compound Primary: "+compKeyList+" Clustering: "+clusterKeyList.toString()+"<\p>"); 190 | 191 | }else{ 192 | 193 | primaryKey = clusterKeyList[0]; 194 | clusterKeyList.shift(); 195 | $('#parameters').append("

Primary: "+primaryKey+" Clustering: "+clusterKeyList.toString()+"<\p>"); 196 | } 197 | 198 | } 199 | else{ 200 | $('#valid').html("Invalid Syntax"); 201 | $('#valid').css("color","red"); 202 | } 203 | 204 | 205 | 206 | //bind 207 | $("#parameters input").change(function(){ 208 | //calculateSize(); 209 | }); 210 | 211 | //stat collection 212 | 213 | if (compKeys != null){ 214 | compLength = compKeys.length; 215 | } 216 | 217 | //draw Storage Engine 218 | drawStorageEngine(); 219 | 220 | $("#countResults h3").remove(); 221 | $("#countResults p").remove(); 222 | $("#countResults").append("

Download and run `cassandra-stress user profile=autoGen.yaml n=100000 ops\\(insert=1\\)` in your terminal

"); 223 | $("#countResults").append("

Likely select queries for this data model:

"); 224 | 225 | keyspaceName = $("#keyspace").val() 226 | if (value !="" && value != undefined){ 227 | tableName = value.match(/CREATE TABLE.+/i)[0].split(" ")[2]; 228 | } 229 | var query = ""; 230 | if (compKeyList.length == 0){ 231 | query = "SELECT * FROM "+ tableName + " WHERE "+ columns[primaryKey] + " = ?"; 232 | }else{ 233 | var compCounter = 1; 234 | query = "SELECT * FROM "+ tableName + " WHERE "+ columns[compKeyList[0]] + " = ?"; 235 | while (compCounter < compKeyList.length){ 236 | query = query + " AND "+columns[compKeyList[compCounter]]+" = ?"; 237 | compCounter++; 238 | } 239 | } 240 | likelyQueries = []; 241 | likelyQueries.push(query); 242 | $("#countResults").append("

"+query+";

"); 243 | 244 | cCCount = 0; 245 | while (cCCount < clusterKeyList.length){ 246 | var cColumn = columns[clusterKeyList[cCCount]]; 247 | query = query + " AND "+cColumn + " = ?"; 248 | 249 | likelyQueries.push(query); 250 | 251 | $("#countResults").append("

"+query+";

"); 252 | cCCount++; 253 | } 254 | 255 | //setup yaml and download 256 | //$("input[name*=columnSizeGroup_]").change(function() { downloadYaml("autoGen.yaml")} ); 257 | $("#tabs").click(function() { downloadYaml("autoGen.yaml")} ); 258 | downloadYaml("autoGen.yaml"); 259 | 260 | $.mobile.loading('hide'); 261 | 262 | } 263 | 264 | var calculateSize = function(){ 265 | //Here we'll be doing some math to figure out the table size etc: 266 | /* Here's the math 267 | Number of rows * ( Number of Columns - Partition Keys - Static Columns ) + Static Columns = Number of Values 268 | 269 | 270 | Sum of the size of the Keys + Sum of the size of the static columns + Number of rows * 271 | ( Sum of the size of the rows + Sum of the size of the Clustering Columns) + 8 * Number of Values = Size of table 272 | */ 273 | $('#countResults').remove("p"); 274 | 275 | if ($("#rowCount").val() != ""){ 276 | rowCount = parseInt($("#rowCount").val()); 277 | }else{ 278 | rowCount = 0; 279 | } 280 | 281 | var staticCount = staticList.length; 282 | var keysCount = keyList.length 283 | 284 | var nv = rowCount*(columnLength - keysCount - staticCount ) + staticCount; 285 | $('#countResults p').remove(); 286 | 287 | var clusterKeySize = 0; 288 | var rowsSize = 0; 289 | var rowsCount = 0; 290 | var staticSize = 0 291 | var i=0; 292 | while (i < columnLength){ 293 | 294 | if (i == primaryKey){ 295 | primaryKeySize = parseInt($('#columnSize_'+i).val()); 296 | } 297 | 298 | else if ($.inArray(i, clusterKeyList) >=0 ){ 299 | clusterKeySize = clusterKeySize + parseInt($('#columnSize_'+i).val()); 300 | } 301 | 302 | else if ($.inArray(i, staticList) >= 0 ){ 303 | staticSize = staticSize + parseInt($('#columnSize_'+i).val()); 304 | } 305 | else{ 306 | rowsSize = rowsSize + parseInt($('#columnSize_'+i).val()); 307 | rowsCount = rowsCount + 1; 308 | } 309 | i = i+1; 310 | 311 | } 312 | 313 | var sizeOnDisk = primaryKeySize + staticSize + rowCount * (rowsSize + rowsCount * clusterKeySize) + 8*nv 314 | 315 | 316 | //check for warning 317 | if (nv>100000 || sizeOnDisk > 100*1048567){ 318 | $('#countResults').css("color", "red"); 319 | $('#countResults').append("

Warning, try to stay under 100mb and 100,000 values per partition!

"); 320 | }else{ 321 | $('#countResults').css("color","white"); 322 | } 323 | 324 | //format bytes 325 | if (sizeOnDisk > 1048567){ 326 | sizeOnDisk = ""+Math.floor(sizeOnDisk/1048567) + " mb"; 327 | }else if (sizeOnDisk > 1024){ 328 | sizeOnDisk = ""+Math.floor(sizeOnDisk/1024) + " kb"; 329 | }else{ 330 | sizeOnDisk = ""+sizeOnDisk+ " bytes"; 331 | } 332 | 333 | // write results 334 | $('#countResults').append("

Number of Cells in Partition: "+(nv)+"

"); 335 | $('#countResults').append("

Size of Partition: " + sizeOnDisk +"

"); 336 | 337 | 338 | } 339 | 340 | 341 | //Ugly.... 342 | function downloadYaml(filename) { 343 | var text = getCreateStatement(); 344 | //yaml requires that we have spaces in the table def... 345 | text = " "+ text.replace(/\n/g,"\n "); 346 | var before = "### DML ### THIS IS UNDER CONSTRUCTION!!!\n"+ 347 | " \n"+ 348 | "# Keyspace Name\n"+ 349 | "keyspace: "+ keyspaceName +"\n"+ 350 | " \n"+ 351 | "# The CQL for creating a keyspace (optional if it already exists)\n"+ 352 | "keyspace_definition: |\n"+ 353 | " CREATE KEYSPACE autogeneratedtest WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};\n"+ 354 | " \n"+ 355 | "# Table name\n"+ 356 | "table: "+ tableName +"\n"+ 357 | " \n"+ 358 | "# The CQL for creating a table you wish to stress (optional if it already exists)\n"+ 359 | "table_definition: \n"; 360 | 361 | var after = "\n"+ 362 | "### Column Distribution Specifications ###\n"+ 363 | " \n"+ 364 | "columnspec:\n"; 365 | 366 | for (var i = 0;i < columnLength; i++){ 367 | 368 | //set size distributions 369 | if ($("input[name=columnSizeGroup_"+i+"-radio-choice-h-2]:checked").val() == "fixed"){ 370 | after = after + " - name: "+ columns[i] +"\n"+ 371 | " size: fixed("+$("#columnSize_"+i).val() +")\n"; 372 | } 373 | if ($("input[name=columnSizeGroup_"+i+"-radio-choice-h-2]:checked").val() == "uni"){ 374 | after = after + " - name: "+ columns[i] +"\n"+ 375 | " size: uniform("+$("#columnSize_"+i).val() +".."+ $("#columnSize_"+i+"_2").val() +")\n"; 376 | }if ($("input[name=columnSizeGroup_"+i+"-radio-choice-h-2]:checked").val() == "exp"){ 377 | after = after + " - name: "+ columns[i] +"\n"+ 378 | " size: exp("+$("#columnSize_"+i).val() +".."+ $("#columnSize_"+i+"_2").val() +")\n"; 379 | }if ($("input[name=columnSizeGroup_"+i+"-radio-choice-h-2]:checked").val() == "ext"){ 380 | after = after + " - name: "+ columns[i] +"\n"+ 381 | " size: extreme("+$("#columnSize_"+i).val() +".."+ $("#columnSize_"+i+"_2").val() +")\n"; 382 | }if ($("input[name=columnSizeGroup_"+i+"-radio-choice-h-2]:checked").val() == "norm"){ 383 | after = after + " - name: "+ columns[i] +"\n"+ 384 | " size: gaussian("+$("#columnSize_"+i).val() +".."+ $("#columnSize_"+i+"_2").val() +")\n"; 385 | } 386 | 387 | //set population distributions 388 | if ($("input[name=columnPopulationGroup_"+i+"-radio-choice-h-2]:checked").val() == "fixed"){ 389 | after = after + 390 | " population: fixed("+$("#columnPopulation_"+i).val() +")\n"+ 391 | " \n"; 392 | } 393 | if ($("input[name=columnPopulationGroup_"+i+"-radio-choice-h-2]:checked").val() == "uni"){ 394 | after = after + 395 | " population: uniform("+$("#columnPopulation_"+i).val() +".."+ $("#columnPopulation_"+i+"_2").val() +")\n"+ 396 | " \n"; 397 | }if ($("input[name=columnPopulationGroup_"+i+"-radio-choice-h-2]:checked").val() == "exp"){ 398 | after = after + 399 | " population: exp("+$("#columnPopulation_"+i).val() +".." + $("#columnPopulation_" +i+"_2").val() + ")\n"+ 400 | " \n"; 401 | }if ($("input[name=columnPopulationGroup_"+i+"-radio-choice-h-2]:checked").val() == "ext"){ 402 | after = after + 403 | " population: extreme("+$("#columnPopulation_"+i).val() +".."+ $("#columnPopulation_"+i+"_2").val() +")\n"+ 404 | " \n"; 405 | }if ($("input[name=columnPopulationGroup_"+i+"-radio-choice-h-2]:checked").val() == "norm"){ 406 | after = after + 407 | " population: gaussian("+$("#columnPopulation_"+i).val() +".."+ $("#columnPopulation_"+i+"_2").val() +")\n"+ 408 | " \n"; 409 | } 410 | } 411 | var after = after + 412 | "\n"+ 413 | " \n"+ 414 | "### Batch Ratio Distribution Specifications ###\n"+ 415 | " \n"+ 416 | "insert:\n"+ 417 | " partitions: fixed(1) # Our partition key is the domain so only insert one per batch\n"+ 418 | " \n"+ 419 | " select: fixed(1)/1000 # We have 1000 posts per domain so 1/1000 will allow 1 post per batch \n"+ 420 | " \n"+ 421 | " batchtype: UNLOGGED # Unlogged batches\n"+ 422 | " \n"+ 423 | " \n"+ 424 | "#\n"+ 425 | "# A list of queries you wish to run against the schema\n"+ 426 | "#\n"+ 427 | "queries:\n"; 428 | 429 | for (var i=0; i", 22 | "Partition":[ 23 | { 24 | "::size": "", 25 | 26 | "ownerAddress": "" 27 | } 28 | ] 29 | } 30 | ]; 31 | 32 | var columnsArray = [] 33 | 34 | 35 | var columnObject = {}; 36 | 37 | //remove the keys from keylessColumns -- a deep copy of columns 38 | keyList.sort(function(a, b){return b-a}) 39 | 40 | keylessColumns = columns.slice(); 41 | for (i=0;i0){ 52 | colName = "<"+columns[clusterKeyList[0]]+">"; 53 | for (i=1; i < clusterKeyList.length; i++){ 54 | colName = colName+":"+"<"+columns[clusterKeyList[i]]+">"; 55 | } 56 | colName = colName+":"; 57 | } 58 | var myKey = colName+keylessColumns[j]; 59 | var myValue = "<"+""+keylessColumns[j]+">"; 60 | columnObject[myKey]= myValue; 61 | } 62 | 63 | columnsArray.push(columnObject); 64 | 65 | rowObject = {} 66 | 67 | if (compKeyList.length ==0){ 68 | jdata = [ 69 | { 70 | "PartitionKey": "<" + columns[primaryKey] + ">", 71 | " ":columnsArray 72 | }] 73 | }else{ 74 | jdata = [] 75 | 76 | var rowKey = "<"+columns[compKeyList[0]]+">"; 77 | for (i=1;i"; 79 | } 80 | for (i=0;i