├── .gitignore ├── Pomidoro ├── css │ ├── app.css │ └── ratchet.css ├── img │ ├── hollywoodcat.png │ ├── icon-hamburger.png │ ├── icon-home.png │ ├── icon-messages.png │ ├── icon-profile.png │ ├── icon-settings.png │ └── icon-share.png ├── index.html ├── js │ ├── angular.min.js │ └── app.js └── views │ ├── RootControllerView.html │ ├── SettingsControllerView.html │ └── TheatersControllerView.html ├── README.md └── Serverside └── index.php /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | -------------------------------------------------------------------------------- /Pomidoro/css/app.css: -------------------------------------------------------------------------------- 1 | /* 2 | Pomidoro App 3 | app.css 4 | 5 | created by @sauliuz 6 | PopularOwl Labs // www.popularowl.com 7 | For tutorial on www.htmlcenter.com 8 | */ 9 | 10 | 11 | .slider { 12 | margin-bottom: 0; 13 | height: 150px; 14 | } 15 | 16 | .slider li img { 17 | width: 100%; 18 | } 19 | 20 | .form-wrapper { 21 | padding: 10px; 22 | } 23 | 24 | 25 | .movieimg { 26 | width: 365px; 27 | height: 282px; 28 | } -------------------------------------------------------------------------------- /Pomidoro/css/ratchet.css: -------------------------------------------------------------------------------- 1 | /** 2 | * ================================== 3 | * Ratchet v1.0.1 4 | * Licensed under The MIT License 5 | * http://opensource.org/licenses/MIT 6 | * ================================== 7 | */ 8 | 9 | /* Hard reset 10 | -------------------------------------------------- */ 11 | 12 | html, 13 | body, 14 | div, 15 | span, 16 | iframe, 17 | h1, 18 | h2, 19 | h3, 20 | h4, 21 | h5, 22 | h6, 23 | p, 24 | blockquote, 25 | pre, 26 | a, 27 | abbr, 28 | acronym, 29 | address, 30 | big, 31 | cite, 32 | code, 33 | del, 34 | dfn, 35 | em, 36 | img, 37 | ins, 38 | kbd, 39 | q, 40 | s, 41 | samp, 42 | small, 43 | strike, 44 | strong, 45 | sub, 46 | sup, 47 | tt, 48 | var, 49 | b, 50 | u, 51 | i, 52 | center, 53 | dl, 54 | dt, 55 | dd, 56 | ol, 57 | ul, 58 | li, 59 | fieldset, 60 | form, 61 | label, 62 | legend, 63 | table, 64 | caption, 65 | tbody, 66 | tfoot, 67 | thead, 68 | tr, 69 | th, 70 | td, 71 | article, 72 | aside, 73 | canvas, 74 | details, 75 | embed, 76 | figure, 77 | figcaption, 78 | footer, 79 | header, 80 | hgroup, 81 | menu, 82 | nav, 83 | output, 84 | section, 85 | summary, 86 | time, 87 | audio, 88 | video { 89 | padding: 0; 90 | margin: 0; 91 | border: 0; 92 | } 93 | 94 | /* Prevents iOS text size adjust after orientation change, without disabling (Thanks to @necolas) */ 95 | html { 96 | -webkit-text-size-adjust: 100%; 97 | -ms-text-size-adjust: 100%; 98 | } 99 | 100 | /* Base styles 101 | -------------------------------------------------- */ 102 | 103 | body { 104 | position: fixed; 105 | top: 0; 106 | right: 0; 107 | bottom: 0; 108 | left: 0; 109 | font: 14px/1.25 "Helvetica Neue", sans-serif; 110 | color: #222; 111 | background-color: #fff; 112 | } 113 | 114 | /* Universal link styling */ 115 | a { 116 | color: #0882f0; 117 | text-decoration: none; 118 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* Removes the dark touch outlines on links */ 119 | } 120 | 121 | /* Wrapper to be used around all content not in .bar-title and .bar-tab */ 122 | .content { 123 | position: fixed; 124 | top: 0; 125 | right: 0; 126 | bottom: 0; 127 | left: 0; 128 | overflow: auto; 129 | background-color: #fff; 130 | -webkit-transition-property: top, bottom; 131 | transition-property: top, bottom; 132 | -webkit-transition-duration: .2s, .2s; 133 | transition-duration: .2s, .2s; 134 | -webkit-transition-timing-function: linear, linear; 135 | transition-timing-function: linear, linear; 136 | -webkit-overflow-scrolling: touch; 137 | } 138 | 139 | /* Hack to force all relatively and absolutely positioned elements still render while scrolling 140 | Note: This is a bug for "-webkit-overflow-scrolling: touch" */ 141 | .content > * { 142 | -webkit-transform: translateZ(0px); 143 | transform: translateZ(0px); 144 | } 145 | 146 | /* Utility wrapper to pad in components like forms, block buttons and segmented-controllers so they're not full-bleed */ 147 | .content-padded { 148 | padding: 10px; 149 | } 150 | 151 | /* Pad top/bottom of content so it doesn't hide behind .bar-title and .bar-tab. 152 | Note: For these to work, content must come after both bars in the markup */ 153 | .bar-title ~ .content { 154 | top: 44px; 155 | } 156 | .bar-tab ~ .content { 157 | bottom: 51px; 158 | } 159 | .bar-header-secondary ~ .content { 160 | top: 88px; 161 | }/* General bar styles 162 | -------------------------------------------------- */ 163 | 164 | [class*="bar-"] { 165 | position: fixed; 166 | right: 0; 167 | left: 0; 168 | z-index: 10; 169 | height: 44px; 170 | padding: 5px; 171 | box-sizing: border-box; 172 | } 173 | 174 | /* Modifier class to dock any bar below .bar-title */ 175 | .bar-header-secondary { 176 | top: 45px; 177 | } 178 | 179 | /* Modifier class to dock any bar to bottom of viewport */ 180 | .bar-footer { 181 | bottom: 0; 182 | } 183 | 184 | /* Generic bar for wrapping buttons, segmented controllers, etc. */ 185 | .bar-standard { 186 | background-color: #f2f2f2; 187 | background-image: -webkit-linear-gradient(top, #f2f2f2 0, #e5e5e5 100%); 188 | background-image: linear-gradient(to bottom, #f2f2f2 0, #e5e5e5 100%); 189 | border-bottom: 1px solid #aaa; 190 | box-shadow: inset 0 1px 1px -1px #fff; 191 | } 192 | 193 | /* Flip border position to top for footer bars */ 194 | .bar-footer.bar-standard, 195 | .bar-footer-secondary.bar-standard { 196 | border-top: 1px solid #aaa; 197 | border-bottom-width: 0; 198 | } 199 | 200 | /* Title bar 201 | -------------------------------------------------- */ 202 | 203 | /* Bar docked to top of viewport for showing page title and actions */ 204 | .bar-title { 205 | top: 0; 206 | display: -webkit-box; 207 | display: box; 208 | background-color: #1eb0e9; 209 | background-image: -webkit-linear-gradient(top, #1eb0e9 0, #109adc 100%); 210 | background-image: linear-gradient(to bottom, #1eb0e9 0, #109adc 100%); 211 | border-bottom: 1px solid #0e5895; 212 | box-shadow: inset 0 1px 1px -1px rgba(255, 255, 255, .8); 213 | -webkit-box-orient: horizontal; 214 | box-orient: horizontal; 215 | } 216 | 217 | /* Centered text in the .bar-title */ 218 | .bar-title .title { 219 | position: absolute; 220 | top: 0; 221 | left: 0; 222 | display: block; 223 | width: 100%; 224 | font-size: 20px; 225 | font-weight: bold; 226 | line-height: 44px; 227 | color: #fff; 228 | text-align: center; 229 | text-shadow: 0 -1px rgba(0, 0, 0, .5); 230 | white-space: nowrap; 231 | } 232 | 233 | .bar-title > a:not([class*="button"]) { 234 | display: block; 235 | width: 100%; 236 | height: 100%; 237 | } 238 | 239 | /* Retain specified title color */ 240 | .bar-title .title a { 241 | color: inherit; 242 | } 243 | 244 | /* Tab bar 245 | -------------------------------------------------- */ 246 | 247 | /* Bar docked to bottom used for primary app navigation */ 248 | .bar-tab { 249 | bottom: 0; 250 | height: 50px; 251 | padding: 0; 252 | background-color: #393939; 253 | background-image: -webkit-linear-gradient(top, #393939 0, #2b2b2b 100%); 254 | background-image: linear-gradient(to bottom, #393939 0, #2b2b2b 100%); 255 | border-top: 1px solid #000; 256 | border-bottom-width: 0; 257 | box-shadow: inset 0 1px 1px -1px rgba(255, 255, 255, .6); 258 | } 259 | 260 | /* Wrapper for individual tab */ 261 | .tab-inner { 262 | display: -webkit-box; 263 | display: box; 264 | height: 100%; 265 | list-style: none; 266 | -webkit-box-orient: horizontal; 267 | box-orient: horizontal; 268 | } 269 | 270 | /* Navigational tab */ 271 | .tab-item { 272 | height: 100%; 273 | padding-top: 9px; 274 | text-align: center; 275 | box-sizing: border-box; 276 | -webkit-box-flex: 1; 277 | box-flex: 1; 278 | } 279 | 280 | /* Active state for tab */ 281 | .tab-item.active { 282 | box-shadow: inset 0 0 20px rgba(0, 0, 0, .5); 283 | } 284 | 285 | /* Icon for tab */ 286 | .tab-icon { 287 | display: block; 288 | height: 18px; 289 | margin: 0 auto; 290 | } 291 | 292 | /* Label for tab */ 293 | .tab-label { 294 | margin-top: 1px; 295 | font-size: 10px; 296 | font-weight: bold; 297 | color: #fff; 298 | text-shadow: 0 1px rgba(0, 0, 0, .3); 299 | } 300 | 301 | /* Buttons in title bars 302 | -------------------------------------------------- */ 303 | 304 | /* Generic style for all buttons in .bar-title */ 305 | .bar-title [class*="button"] { 306 | position: relative; 307 | z-index: 10; /* Places buttons over full width title */ 308 | font-size: 12px; 309 | line-height: 23px; 310 | color: #fff; 311 | text-shadow: 0 -1px 0 rgba(0, 0, 0, .3); 312 | background-color: #1eb0e9; 313 | background-image: -webkit-linear-gradient(top, #1eb0e9 0, #0984c6 100%); 314 | background-image: linear-gradient(to bottom, #1eb0e9 0, #0984c6 100%); 315 | border: 1px solid #0e5895; 316 | box-shadow: 0 1px rgba(255, 255, 255, .25); 317 | -webkit-box-flex: 0; 318 | box-flex: 0; 319 | } 320 | 321 | 322 | /* Hacky way to right align buttons outside of flex-box system 323 | Note: is only absolutely positioned button, would be better if flex-box had an "align right" option */ 324 | .bar-title .title + [class*="button"]:last-child, 325 | .bar-title .button + [class*="button"]:last-child, 326 | .bar-title [class*="button"].pull-right { 327 | position: absolute; 328 | top: 5px; 329 | right: 5px; 330 | } 331 | 332 | /* Override standard button active states */ 333 | .bar-title .button:active { 334 | color: #fff; 335 | background-color: #0876b1; 336 | } 337 | 338 | /* Directional buttons in title bars (thanks to @GregorAdams for solution - http://cssnerd.com/2011/11/30/the-best-pure-css3-ios-style-arrow-back-button/) 339 | -------------------------------------------------- */ 340 | 341 | /* Add relative positioning so :before content is positioned properly */ 342 | .bar-title .button-prev, 343 | .bar-title .button-next { 344 | position: relative; 345 | } 346 | 347 | /* Prev/next button base styles */ 348 | .bar-title .button-prev { 349 | margin-left: 7px; /* Push over to make room for :before content */ 350 | border-left: 0; 351 | border-bottom-left-radius: 10px 15px; 352 | border-top-left-radius: 10px 15px; 353 | } 354 | .bar-title .button-next { 355 | margin-right: 7px; /* Push over to make room for :before content */ 356 | border-right: 0; 357 | border-top-right-radius: 10px 15px; 358 | border-bottom-right-radius: 10px 15px; 359 | } 360 | 361 | /* Pointed part of directional button */ 362 | .bar-title .button-prev:before, 363 | .bar-title .button-next:before { 364 | position: absolute; 365 | top: 2px; 366 | width: 27px; 367 | height: 27px; 368 | border-radius: 30px 100px 2px 40px / 2px 40px 30px 100px; 369 | content: ''; 370 | box-shadow: inset 1px 0 #0e5895, inset 0 1px #0e5895; 371 | -webkit-mask-image: -webkit-gradient(linear, left top, right bottom, from(#000), color-stop(.33, #000), color-stop(.5, transparent), to(transparent)); 372 | mask-image: gradient(linear, left top, right bottom, from(#000), color-stop(.33, #000), color-stop(.5, transparent), to(transparent)); 373 | } 374 | .bar-title .button-prev:before { 375 | left: -5px; 376 | background-image: -webkit-gradient(linear, left bottom, right top, from(#0984c6), to(#1eb0e9)); 377 | background-image: gradient(linear, left bottom, right top, from(#0984c6), to(#1eb0e9)); 378 | border-left: 1.5px solid rgba(255, 255, 255, .25); 379 | -webkit-transform: rotate(-45deg) skew(-10deg, -10deg); 380 | transform: rotate(-45deg) skew(-10deg, -10deg); 381 | } 382 | .bar-title .button-next:before { 383 | right: -5px; 384 | background-image: -webkit-gradient(linear, left bottom, right top, from(#1eb0e9), to(#0984c6)); 385 | background-image: gradient(linear, left bottom, right top, from(#1eb0e9), to(#0984c6)); 386 | border-top: 1.5px solid rgba(255, 255, 255, .25); 387 | -webkit-transform: rotate(135deg) skew(-10deg, -10deg); 388 | transform: rotate(135deg) skew(-10deg, -10deg); 389 | } 390 | 391 | /* Active states for the directional buttons */ 392 | .bar-title .button-prev:active, 393 | .bar-title .button-next:active, 394 | .bar-title .button-prev:active:before, 395 | .bar-title .button-next:active:before { 396 | color: #fff; 397 | background-color: #0876b1; 398 | background-image: none; 399 | } 400 | .bar-title .button-prev:active:before, 401 | .bar-title .button-next:active:before { 402 | content: ''; 403 | } 404 | .bar-title .button-prev:active:before { 405 | box-shadow: inset 0 3px 3px rgba(0, 0, 0, .2); 406 | } 407 | .bar-title .button-next:active:before { 408 | box-shadow: inset 0 -3px 3px rgba(0, 0, 0, .2); 409 | } 410 | 411 | /* Block buttons in any bar 412 | -------------------------------------------------- */ 413 | 414 | /* Add proper padding and replace buttons normal dropshadow with a shine from bar */ 415 | [class*="bar"] .button-block { 416 | padding: 7px 0; 417 | margin-bottom: 0; 418 | box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4), 0 1px rgba(255, 255, 255, .8); 419 | } 420 | 421 | /* Override standard padding changes for .button-blocks */ 422 | [class*="bar"] .button-block:active { 423 | padding: 7px 0; 424 | } 425 | 426 | /* Segmented controller in any bar 427 | -------------------------------------------------- */ 428 | 429 | /* Remove standard segmented bottom margin */ 430 | [class*="bar-"] .segmented-controller { 431 | margin-bottom: 0; 432 | } 433 | 434 | /* Add margins between segmented controllers and buttons */ 435 | [class*="bar-"] .segmented-controller + [class*="button"], 436 | [class*="bar-"] [class*="button"] + .segmented-controller { 437 | margin-left: 5px; 438 | } 439 | 440 | /* Segmented controller in a title bar 441 | -------------------------------------------------- */ 442 | 443 | .bar-title .segmented-controller { 444 | line-height: 18px; 445 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3); 446 | background-color: #1eb0e9; 447 | background-image: -webkit-linear-gradient(top, #1eb0e9 0, #0984c6 100%); 448 | background-image: linear-gradient(to bottom, #1eb0e9 0, #0984c6 100%); 449 | border: 1px solid #0e5895; 450 | border-radius: 3px; 451 | box-shadow: 0 1px rgba(255, 255, 255, .25); 452 | -webkit-box-flex: 1; 453 | box-flex: 1; 454 | } 455 | 456 | /* Set color for tab border and highlight */ 457 | .bar-title .segmented-controller li { 458 | border-left: 1px solid #0e5895; 459 | box-shadow: inset 1px 0 rgba(255, 255, 255, .25); 460 | } 461 | 462 | /* Remove inset shadow from first tab or one to the right of the active tab */ 463 | .bar-title .segmented-controller .active + li, 464 | .bar-title .segmented-controller li:first-child { 465 | box-shadow: none; 466 | } 467 | 468 | /* Remove left-hand border from first tab */ 469 | .bar-title .segmented-controller li:first-child { 470 | border-left-width: 0; 471 | } 472 | 473 | /* Depressed state (active) */ 474 | .bar-title .segmented-controller li.active { 475 | background-color: #0082c4; 476 | box-shadow: inset 0 1px 6px rgba(0, 0, 0, .3); 477 | } 478 | 479 | /* Set color of links to white */ 480 | .bar-title .segmented-controller li > a { 481 | color: #fff; 482 | } 483 | 484 | 485 | /* Search forms in standard bar 486 | -------------------------------------------------- */ 487 | 488 | /* Position/size search bar within the bar */ 489 | .bar-standard input[type=search] { 490 | height: 32px; 491 | margin: 0; 492 | }/* Lists 493 | -------------------------------------------------- */ 494 | 495 | /* Remove usual bullet styles from list */ 496 | .list { 497 | margin-bottom: 10px; 498 | list-style: none; 499 | background-color: #fff; 500 | } 501 | 502 | /* Pad each list item and add dividers */ 503 | .list li { 504 | position: relative; 505 | padding: 20px 60px 20px 10px; /* Given extra right padding to accomodate counts, chevrons or buttons */ 506 | border-bottom: 1px solid rgba(0, 0, 0, .1); 507 | } 508 | 509 | /* Give top border to first list items */ 510 | .list li:first-child { 511 | border-top: 1px solid rgba(0, 0, 0, .1); 512 | } 513 | 514 | /* If a list of links, make sure the child takes up full list item tap area (want to avoid selecting child buttons though) */ 515 | .list li > a:not([class*="button"]) { 516 | position: relative; 517 | display: block; 518 | padding: inherit; 519 | margin: -20px -60px -20px -10px; 520 | color: inherit; 521 | } 522 | 523 | /* Inset list 524 | -------------------------------------------------- */ 525 | 526 | .list.inset { 527 | width: auto; 528 | margin-right: 10px; 529 | margin-left: 10px; 530 | border: 1px solid rgba(0, 0, 0, .1); 531 | border-radius: 6px; 532 | box-sizing: border-box; 533 | } 534 | 535 | /* Remove border from first/last standard list items to avoid double border at top/bottom of lists */ 536 | .list.inset li:first-child { 537 | border-top-width: 0; 538 | } 539 | .list.inset li:last-child { 540 | border-bottom-width: 0; 541 | } 542 | 543 | 544 | /* List dividers 545 | -------------------------------------------------- */ 546 | 547 | .list .list-divider { 548 | position: relative; 549 | top: -1px; 550 | padding-top: 6px; 551 | padding-bottom: 6px; 552 | font-size: 12px; 553 | font-weight: bold; 554 | line-height: 18px; 555 | text-shadow: 0 1px 0 rgba(255, 255, 255, .5); 556 | background-color: #f8f8f8; 557 | background-image: -webkit-linear-gradient(top, #f8f8f8 0, #eee 100%); 558 | background-image: linear-gradient(to bottom, #f8f8f8 0, #eee 100%); 559 | border-top: 1px solid rgba(0, 0, 0, .1); 560 | border-bottom: 1px solid rgba(0, 0, 0, .1); 561 | box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4); 562 | } 563 | 564 | /* Rounding first divider on inset lists and remove border on the top */ 565 | .list.inset .list-divider:first-child { 566 | top: 0; 567 | border-top-width: 0; 568 | border-radius: 6px 6px 0 0; 569 | } 570 | 571 | /* Rounding last divider on inset lists */ 572 | .list.inset .list-divider:last-child { 573 | border-radius: 0 0 6px 6px; 574 | } 575 | 576 | /* Right-aligned subcontent in lists (chevrons, buttons, counts and toggles) 577 | -------------------------------------------------- */ 578 | .list .chevron, 579 | .list [class*="button"], 580 | .list [class*="count"], 581 | .list .toggle { 582 | position: absolute; 583 | top: 50%; 584 | right: 10px; 585 | } 586 | 587 | /* Position chevrons/counts vertically centered on the right in list items */ 588 | .list .chevron, 589 | .list [class*="count"] { 590 | margin-top: -10px; /* Half height of chevron */ 591 | } 592 | 593 | /* Push count over if there's a sibling chevron */ 594 | .list .chevron + [class*="count"] { 595 | right: 30px; 596 | } 597 | 598 | /* Position buttons vertically centered on the right in list items */ 599 | .list [class*="button"] { 600 | left: auto; 601 | margin-top: -14px; /* Half height of button */ 602 | } 603 | 604 | .list .toggle { 605 | margin-top: -15px; /* Half height of toggle */ 606 | }/* Forms 607 | -------------------------------------------------- */ 608 | 609 | /* Force form elements to inherit font styles */ 610 | input, 611 | textarea, 612 | button, 613 | select { 614 | font-family: inherit; 615 | font-size: inherit; 616 | } 617 | 618 | /* Stretch inputs/textareas to full width and add height to maintain a consistent baseline */ 619 | select, 620 | textarea, 621 | input[type="text"], 622 | input[type=search], 623 | input[type="password"], 624 | input[type="datetime"], 625 | input[type="datetime-local"], 626 | input[type="date"], 627 | input[type="month"], 628 | input[type="time"], 629 | input[type="week"], 630 | input[type="number"], 631 | input[type="email"], 632 | input[type="url"], 633 | input[type="tel"], 634 | input[type="color"], 635 | .input-group { 636 | width: 100%; 637 | height: 40px; 638 | padding: 10px; 639 | margin-bottom: 10px; 640 | background-color: #fff; 641 | border: 1px solid rgba(0, 0, 0, .2); 642 | border-radius: 3px; 643 | box-shadow: 0 1px 1px rgba(255, 255, 255, .2), inset 0 1px 1px rgba(0, 0, 0, .1); 644 | -webkit-appearance: none; 645 | box-sizing: border-box; 646 | outline: none; 647 | } 648 | 649 | /* Fully round search input */ 650 | input[type=search] { 651 | height: 34px; 652 | font-size: 14px; 653 | border-radius: 30px; 654 | } 655 | 656 | /* Allow text area's height to grow larger than a normal input */ 657 | textarea { 658 | height: auto; 659 | } 660 | 661 | /* Style select button to look like part of the Ratchet's style */ 662 | select { 663 | height: auto; 664 | font-size: 14px; 665 | background-color: #f8f8f8; 666 | background-image: -webkit-linear-gradient(top, #f8f8f8 0%, #d4d4d4 100%); 667 | background-image: linear-gradient(to bottom, #f8f8f8 0%, #d4d4d4 100%); 668 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1); 669 | } 670 | 671 | 672 | /* Input groups (cluster multiple inputs together into a single group) 673 | -------------------------------------------------- */ 674 | 675 | /* Reset from initial form setup styles */ 676 | .input-group { 677 | width: auto; 678 | height: auto; 679 | padding: 0; 680 | } 681 | 682 | /* Remove spacing, borders, shadows and rounding since it all belongs on the .input-group not the input */ 683 | .input-group input { 684 | margin-bottom: 0; 685 | background-color: transparent; 686 | border: 0; 687 | border-bottom: 1px solid rgba(0, 0, 0, .2); 688 | border-radius: 0; 689 | box-shadow: none; 690 | } 691 | 692 | /* Remove bottom border on last input to avoid double bottom border */ 693 | .input-group input:last-child { 694 | border-bottom-width: 0; 695 | } 696 | 697 | /* Input groups with labels 698 | -------------------------------------------------- */ 699 | 700 | /* To use labels with input groups, wrap a label and an input in an .input-row */ 701 | .input-row { 702 | overflow: hidden; 703 | border-bottom: 1px solid rgba(0, 0, 0, .2); 704 | } 705 | 706 | /* Remove bottom border on last input-row to avoid double bottom border */ 707 | .input-row:last-child { 708 | border-bottom-width: 0; 709 | } 710 | 711 | /* Labels get floated left with a set percentage width */ 712 | .input-row label { 713 | float: left; 714 | width: 25%; 715 | padding: 11px 10px 9px 13px; /* Optimizing the baseline for mobile. */ 716 | font-weight: bold; 717 | } 718 | 719 | /* Actual inputs float to right of labels and also have a set percentage */ 720 | .input-row label + input { 721 | float: right; 722 | width: 65%; 723 | padding-left: 0; 724 | margin-bottom: 0; 725 | border-bottom: 0; 726 | }/* General button styles 727 | -------------------------------------------------- */ 728 | 729 | [class*="button"] { 730 | position: relative; 731 | display: inline-block; 732 | padding: 4px 12px; 733 | margin: 0; 734 | font-weight: bold; 735 | line-height: 18px; 736 | color: #333; 737 | text-align: center; 738 | text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); 739 | vertical-align: top; 740 | cursor: pointer; 741 | background-color: #f8f8f8; 742 | background-image: -webkit-linear-gradient(top, #f8f8f8 0, #d4d4d4 100%); 743 | background-image: linear-gradient(to bottom, #f8f8f8 0, #d4d4d4 100%); 744 | border: 1px solid rgba(0, 0, 0, .3); 745 | border-radius: 3px; 746 | box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4), 0 1px 2px rgba(0, 0, 0, .05); 747 | } 748 | 749 | /* Active */ 750 | [class*="button"]:active { 751 | padding-top: 5px; 752 | padding-bottom: 3px; 753 | color: #333; 754 | background-color: #ccc; 755 | background-image: none; 756 | box-shadow: inset 0 3px 3px rgba(0, 0, 0, .2); 757 | } 758 | 759 | /* Button modifiers 760 | -------------------------------------------------- */ 761 | 762 | /* Overriding styles for buttons with modifiers */ 763 | .button-main, 764 | .button-positive, 765 | .button-negative { 766 | color: #fff; 767 | text-shadow: 0 -1px 0 rgba(0, 0, 0, .3); 768 | } 769 | 770 | /* Main button */ 771 | .button-main { 772 | background-color: #1eafe7; 773 | background-image: -webkit-linear-gradient(top, #1eafe7 0, #1a97c8 100%); 774 | background-image: linear-gradient(to bottom, #1eafe7 0, #1a97c8 100%); 775 | border: 1px solid #117aaa; 776 | } 777 | 778 | /* Positive button */ 779 | .button-positive { 780 | background-color: #34ba15; 781 | background-image: -webkit-linear-gradient(top, #34ba15 0, #2da012 100%); 782 | background-image: linear-gradient(to bottom, #34ba15 0, #2da012 100%); 783 | border: 1px solid #278f0f; 784 | } 785 | 786 | /* Negative button */ 787 | .button-negative { 788 | background-color: #e71e1e; 789 | background-image: -webkit-linear-gradient(top, #e71e1e 0,#c71a1a 100%); 790 | background-image: linear-gradient(to bottom, #e71e1e 0, #c71a1a 100%); 791 | border: 1px solid #b51a1a; 792 | } 793 | 794 | /* Active state for buttons with modifiers */ 795 | .button-main:active, 796 | .button-positive:active, 797 | .button-negative:active { 798 | color: #fff; 799 | } 800 | .button-main:active { 801 | background-color: #0876b1; 802 | } 803 | .button-positive:active { 804 | background-color: #298f11; 805 | } 806 | .button-negative:active { 807 | background-color: #b21a1a; 808 | } 809 | 810 | /* Block level buttons (full width buttons) */ 811 | .button-block { 812 | display: block; 813 | padding: 11px 0 13px; 814 | margin-bottom: 10px; 815 | font-size: 16px; 816 | } 817 | 818 | /* Active state for block level buttons */ 819 | .button-block:active { 820 | padding: 12px 0; 821 | } 822 | 823 | /* Counts in buttons 824 | -------------------------------------------------- */ 825 | 826 | /* Generic styles for all counts within buttons */ 827 | [class*="button"] [class*="count"] { 828 | padding-top: 2px; 829 | padding-bottom: 2px; 830 | margin-right: -4px; 831 | margin-left: 4px; 832 | text-shadow: none; 833 | background-color: rgba(0, 0, 0, .2); 834 | box-shadow: inset 0 1px 1px -1px #000000, 0 1px 1px -1px #fff; 835 | } 836 | 837 | /* Position counts within block level buttons 838 | Note: These are absolutely positioned so that text of button isn't "pushed" by count and always 839 | stays at true center of button */ 840 | .button-block [class*="count"] { 841 | position: absolute; 842 | right: 0; 843 | padding-top: 4px; 844 | padding-bottom: 4px; 845 | margin-right: 10px; 846 | }/* Chevrons 847 | -------------------------------------------------- */ 848 | 849 | .chevron { 850 | display: block; 851 | height: 20px; 852 | } 853 | 854 | /* Base styles for both 1/2's of the chevron */ 855 | .chevron:before, 856 | .chevron:after { 857 | position: relative; 858 | display: block; 859 | width: 12px; 860 | height: 4px; 861 | background-color: #999; 862 | content: ''; 863 | } 864 | 865 | /* Position and rotate respective 1/2's of the chevron */ 866 | .chevron:before { 867 | top: 5px; 868 | -webkit-transform: rotate(45deg); 869 | transform: rotate(45deg); 870 | } 871 | .chevron:after { 872 | top: 7px; 873 | -webkit-transform: rotate(-45deg); 874 | transform: rotate(-45deg); 875 | }/* General count styles 876 | -------------------------------------------------- */ 877 | 878 | [class*="count"] { 879 | display: inline-block; 880 | padding: 4px 9px; 881 | font-size: 12px; 882 | font-weight: bold; 883 | line-height: 13px; 884 | color: #fff; 885 | background-color: rgba(0, 0, 0, .3); 886 | border-radius: 100px; 887 | } 888 | 889 | /* Count modifiers 890 | -------------------------------------------------- */ 891 | 892 | /* Overriding styles for counts with modifiers */ 893 | .count-main, 894 | .count-positive, 895 | .count-negative { 896 | color: #fff; 897 | text-shadow: 0 -1px 0 rgba(0, 0, 0, .3); 898 | } 899 | 900 | /* Main count */ 901 | .count-main { 902 | background-color: #1eafe7; 903 | background-image: -webkit-linear-gradient(top, #1eafe7 0, #1a97c8 100%); 904 | background-image: linear-gradient(to bottom, #1eafe7 0, #1a97c8 100%); 905 | } 906 | 907 | /* Positive count */ 908 | .count-positive { 909 | background-color: #34ba15; 910 | background-image: -webkit-linear-gradient(top, #34ba15 0, #2da012 100%); 911 | background-image: linear-gradient(to bottom, #34ba15 0, #2da012 100%); 912 | } 913 | 914 | /* Negative count */ 915 | .count-negative { 916 | background-color: #e71e1e; 917 | background-image: -webkit-linear-gradient(top, #e71e1e 0,#c71a1a 100%); 918 | background-image: linear-gradient(to bottom, #e71e1e 0, #c71a1a 100%); 919 | }/* Segmented controllers 920 | -------------------------------------------------- */ 921 | 922 | .segmented-controller { 923 | display: -webkit-box; 924 | display: box; 925 | margin-bottom: 10px; 926 | overflow: hidden; 927 | font-size: 12px; 928 | font-weight: bold; 929 | text-shadow: 0 1px rgba(255, 255, 255, .5); 930 | list-style: none; 931 | background-color: #f8f8f8; 932 | background-image: -webkit-linear-gradient(top, #f8f8f8 0, #d4d4d4 100%); 933 | background-image: linear-gradient(to bottom, #f8f8f8 0, #d4d4d4 100%); 934 | border: 1px solid #aaa; 935 | border-radius: 3px; 936 | box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 1px rgba(255, 255, 255, .8); 937 | -webkit-box-orient: horizontal; 938 | box-orient: horizontal; 939 | } 940 | 941 | /* Section within controller */ 942 | .segmented-controller li { 943 | overflow: hidden; 944 | text-align: center; 945 | white-space: nowrap; 946 | border-left: 1px solid #aaa; 947 | box-shadow: inset 1px 0 rgba(255, 255, 255, .5); 948 | -webkit-box-flex: 1; 949 | box-flex: 1; 950 | } 951 | 952 | /* Link that fills each section */ 953 | .segmented-controller li > a { 954 | display: block; 955 | padding: 8px 16px; 956 | overflow: hidden; 957 | line-height: 15px; 958 | color: #333; 959 | text-overflow: ellipsis; 960 | } 961 | 962 | /* Remove border-left and shadow from first section */ 963 | .segmented-controller li:first-child { 964 | border-left-width: 0; 965 | box-shadow: none; 966 | } 967 | 968 | /* Active segment of controller */ 969 | .segmented-controller li.active { 970 | background-color: #ccc; 971 | box-shadow: inset 0 1px 5px rgba(0, 0, 0, .3); 972 | } 973 | 974 | .segmented-controller-item { 975 | display: none; 976 | } 977 | 978 | .segmented-controller-item.active { 979 | display: block; 980 | }/* Popovers (to be used with popovers.js) 981 | -------------------------------------------------- */ 982 | 983 | .popover { 984 | position: fixed; 985 | top: 55px; 986 | left: 50%; 987 | z-index: 20; 988 | display: none; 989 | width: 280px; 990 | padding: 5px; 991 | margin-left: -146px; 992 | background-color: #555; 993 | background-image: -webkit-linear-gradient(top, #555 5%, #555 6%, #111 30%); 994 | background-image: linear-gradient(to bottom, #555 5%, #555 6%,#111 30%); 995 | border: 1px solid #111; 996 | border-radius: 6px; 997 | opacity: 0; 998 | box-shadow: inset 0 1px 1px -1px #fff, 0 3px 10px rgba(0, 0, 0, .3); 999 | -webkit-transform: translate3d(0, -15px, 0); 1000 | transform: translate3d(0, -15px, 0); 1001 | -webkit-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in-out; 1002 | transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out; 1003 | } 1004 | 1005 | /* Caret on top of popover using CSS triangles (thanks to @chriscoyier for solution) */ 1006 | .popover:before, 1007 | .popover:after { 1008 | position: absolute; 1009 | left: 50%; 1010 | width: 0; 1011 | height: 0; 1012 | content: ''; 1013 | } 1014 | .popover:before { 1015 | top: -20px; 1016 | margin-left: -21px; 1017 | border-right: 21px solid transparent; 1018 | border-bottom: 21px solid #111; 1019 | border-left: 21px solid transparent; 1020 | } 1021 | .popover:after { 1022 | top: -19px; 1023 | margin-left: -20px; 1024 | border-right: 20px solid transparent; 1025 | border-bottom: 20px solid #555; 1026 | border-left: 20px solid transparent; 1027 | } 1028 | 1029 | /* Wrapper for a title and buttons */ 1030 | .popover-header { 1031 | display: -webkit-box; 1032 | display: box; 1033 | height: 34px; 1034 | margin-bottom: 5px; 1035 | } 1036 | 1037 | /* Centered title for popover */ 1038 | .popover-header .title { 1039 | position: absolute; 1040 | top: 0; 1041 | left: 0; 1042 | width: 100%; 1043 | margin: 15px 0; 1044 | font-size: 16px; 1045 | font-weight: bold; 1046 | line-height: 12px; 1047 | color: #fff; 1048 | text-align: center; 1049 | text-shadow: 0 -1px rgba(0, 0, 0, .5); 1050 | } 1051 | 1052 | /* Generic style for all buttons in .popover-header */ 1053 | .popover-header [class*="button"] { 1054 | z-index: 25; 1055 | font-size: 12px; 1056 | line-height: 22px; 1057 | color: #fff; 1058 | text-shadow: 0 -1px 0 rgba(0, 0, 0, .3); 1059 | background-color: #454545; 1060 | background-image: -webkit-linear-gradient(top, #454545 0, #353535 100%); 1061 | background-image: linear-gradient(to bottom, #454545 0, #353535 100%); 1062 | border: 1px solid #111; 1063 | -webkit-box-flex: 0; 1064 | box-flex: 0; 1065 | } 1066 | 1067 | /* Hacky way to right align buttons outside of flex-box system 1068 | Note: is only absolutely positioned button, would be better if flex-box had an "align right" option */ 1069 | .popover-header .title + [class*="button"]:last-child, 1070 | .popover-header .button + [class*="button"]:last-child, 1071 | .popover-header [class*="button"].pull-right { 1072 | position: absolute; 1073 | top: 5px; 1074 | right: 5px; 1075 | } 1076 | 1077 | /* Active state for popover header buttons */ 1078 | .popover-header .button:active { 1079 | color: #fff; 1080 | background-color: #0876b1; 1081 | } 1082 | 1083 | /* Popover animation 1084 | -------------------------------------------------- */ 1085 | 1086 | .popover.visible { 1087 | opacity: 1; 1088 | -webkit-transform: translate3d(0, 0, 0); 1089 | transform: translate3d(0, 0, 0); 1090 | } 1091 | 1092 | /* Backdrop (used as invisible touch escape) 1093 | -------------------------------------------------- */ 1094 | 1095 | .backdrop { 1096 | position: fixed; 1097 | top: 0; 1098 | right: 0; 1099 | bottom: 0; 1100 | left: 0; 1101 | z-index: 10; 1102 | } 1103 | 1104 | /* Block level buttons in popovers 1105 | -------------------------------------------------- */ 1106 | 1107 | /* Positioning and giving darker border to look sharp against dark popover */ 1108 | .popover .button-block { 1109 | margin-bottom: 5px; 1110 | border: 1px solid #111; 1111 | } 1112 | 1113 | /* Remove extra margin on bottom of last button */ 1114 | .popover .button-block:last-child { 1115 | margin-bottom: 0; 1116 | } 1117 | 1118 | /* Lists in popovers 1119 | -------------------------------------------------- */ 1120 | 1121 | .popover .list { 1122 | width: auto; 1123 | max-height: 250px; 1124 | margin-right: 0; 1125 | margin-bottom: 0; 1126 | margin-left: 0; 1127 | overflow: auto; 1128 | background-color: #fff; 1129 | border: 1px solid #000; 1130 | border-radius: 3px; 1131 | -webkit-overflow-scrolling: touch; 1132 | }/* Modals 1133 | -------------------------------------------------- */ 1134 | .modal { 1135 | position: fixed; 1136 | top: 0; 1137 | opacity: 0; 1138 | z-index: 11; 1139 | width: 100%; 1140 | min-height: 100%; 1141 | overflow: hidden; 1142 | background-color: #fff; 1143 | -webkit-transform: translate3d(0, 100%, 0); 1144 | transform: translate3d(0, 100%, 0); 1145 | -webkit-transition: -webkit-transform .25s ease-in-out, opacity 1ms .25s; 1146 | transition: transform .25s ease-in-out, opacity 1ms .25s; 1147 | } 1148 | 1149 | /* Modal - When active 1150 | -------------------------------------------------- */ 1151 | .modal.active { 1152 | opacity: 1; 1153 | height: 100%; 1154 | -webkit-transition: -webkit-transform .25s ease-in-out; 1155 | transition: transform .25 ease-in-out; 1156 | -webkit-transform: translate3d(0, 0, 0); 1157 | transform: translate3d(0, 0, 0); 1158 | }/* Slider styles (to be used with sliders.js) 1159 | -------------------------------------------------- */ 1160 | 1161 | /* Width/height of slider */ 1162 | .slider, 1163 | .slider > li { 1164 | width: 100%; 1165 | height: 200px; 1166 | } 1167 | 1168 | /* Outer wrapper for slider */ 1169 | .slider { 1170 | overflow: hidden; 1171 | background-color: #000; 1172 | } 1173 | 1174 | /* Inner wrapper for slider (width of all slides together) */ 1175 | .slider > ul { 1176 | position: relative; 1177 | font-size: 0; /* Remove spaces from inline-block children */ 1178 | white-space: nowrap; 1179 | -webkit-transition: all 0 linear; 1180 | transition: all 0 linear; 1181 | } 1182 | 1183 | /* Individual slide */ 1184 | .slider > ul > li { 1185 | display: inline-block; 1186 | vertical-align: top; /* Ensure that li always aligns to top */ 1187 | width: 100%; 1188 | height: 100%; 1189 | } 1190 | 1191 | /* Required reset of font-size to same as standard body */ 1192 | .slider > ul > li > * { 1193 | font-size: 14px; 1194 | }/* Toggle styles (to be used with toggles.js) 1195 | -------------------------------------------------- */ 1196 | 1197 | .toggle { 1198 | position: relative; 1199 | width: 75px; 1200 | height: 28px; 1201 | background-color: #eee; 1202 | border: 1px solid #bbb; 1203 | border-radius: 20px; 1204 | box-shadow: inset 0 0 4px rgba(0, 0, 0, .1); 1205 | } 1206 | 1207 | /* Text indicating "on" or "off". Default is "off" */ 1208 | .toggle:before { 1209 | position: absolute; 1210 | right: 13px; 1211 | font-weight: bold; 1212 | line-height: 28px; 1213 | color: #777; 1214 | text-shadow: 0 1px #fff; 1215 | text-transform: uppercase; 1216 | content: "Off"; 1217 | } 1218 | 1219 | /* Sliding handle */ 1220 | .toggle-handle { 1221 | position: absolute; 1222 | top: -1px; 1223 | left: -1px; 1224 | z-index: 2; 1225 | width: 28px; 1226 | height: 28px; 1227 | background-color: #fff; 1228 | background-image: -webkit-linear-gradient(top, #fff 0, #f2f2f2 100%); 1229 | background-image: linear-gradient(to bottom, #fff 0, #f2f2f2 100%); 1230 | border: 1px solid rgba(0, 0, 0, .2); 1231 | border-radius: 100px; 1232 | -webkit-transition: -webkit-transform 0.1s ease-in-out, border 0.1s ease-in-out; 1233 | transition: transform 0.1s ease-in-out, border 0.1s ease-in-out; 1234 | } 1235 | 1236 | /* Active state for toggle */ 1237 | .toggle.active { 1238 | background-color: #19a8e4; 1239 | background-image: -webkit-linear-gradient(top, #088cd4 0, #19a8e4 100%); 1240 | background-image: linear-gradient(to bottom, #088cd4 0, #19a8e4 100%); 1241 | border: 1px solid #096c9d; 1242 | box-shadow: inset 0 0 15px rgba(255, 255, 255, .25); 1243 | } 1244 | 1245 | /* Active state for toggle handle */ 1246 | .toggle.active .toggle-handle { 1247 | border-color: #0a76ad; 1248 | -webkit-transform: translate3d(48px,0,0); 1249 | transform: translate3d(48px,0,0); 1250 | } 1251 | 1252 | /* Change "off" to "on" for active state */ 1253 | .toggle.active:before { 1254 | right: auto; 1255 | left: 15px; 1256 | color: #fff; 1257 | text-shadow: 0 -1px rgba(0, 0, 0, 0.25); 1258 | content: "On"; 1259 | }/* Push styles (to be used with push.js) 1260 | -------------------------------------------------- */ 1261 | 1262 | /* Fade animation */ 1263 | .content.fade { 1264 | left: 0; 1265 | opacity: 0; 1266 | -webkit-transition: opacity .2s ease-in-out; 1267 | transition: opacity .2s ease-in-out; 1268 | } 1269 | .content.fade.in { 1270 | opacity: 1; 1271 | } 1272 | 1273 | /* Slide animation */ 1274 | .content.slide { 1275 | -webkit-transform: translate3d(0, 0, 0); 1276 | transform: translate3d(0, 0, 0); 1277 | -webkit-transition: -webkit-transform .25s ease-in-out; 1278 | transition: transform .25s ease-in-out; 1279 | } 1280 | .content.slide.left { 1281 | -webkit-transform: translate3d(-100%, 0, 0); 1282 | transform: translate3d(-100%, 0, 0); 1283 | } 1284 | .content.slide.right { 1285 | -webkit-transform: translate3d(100%, 0, 0); 1286 | transform: translate3d(100%, 0, 0); 1287 | } -------------------------------------------------------------------------------- /Pomidoro/img/hollywoodcat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sauliuz/angularjs-mobile/dd83c3b41104f332f3b11825a8e2f5df36a71431/Pomidoro/img/hollywoodcat.png -------------------------------------------------------------------------------- /Pomidoro/img/icon-hamburger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sauliuz/angularjs-mobile/dd83c3b41104f332f3b11825a8e2f5df36a71431/Pomidoro/img/icon-hamburger.png -------------------------------------------------------------------------------- /Pomidoro/img/icon-home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sauliuz/angularjs-mobile/dd83c3b41104f332f3b11825a8e2f5df36a71431/Pomidoro/img/icon-home.png -------------------------------------------------------------------------------- /Pomidoro/img/icon-messages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sauliuz/angularjs-mobile/dd83c3b41104f332f3b11825a8e2f5df36a71431/Pomidoro/img/icon-messages.png -------------------------------------------------------------------------------- /Pomidoro/img/icon-profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sauliuz/angularjs-mobile/dd83c3b41104f332f3b11825a8e2f5df36a71431/Pomidoro/img/icon-profile.png -------------------------------------------------------------------------------- /Pomidoro/img/icon-settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sauliuz/angularjs-mobile/dd83c3b41104f332f3b11825a8e2f5df36a71431/Pomidoro/img/icon-settings.png -------------------------------------------------------------------------------- /Pomidoro/img/icon-share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sauliuz/angularjs-mobile/dd83c3b41104f332f3b11825a8e2f5df36a71431/Pomidoro/img/icon-share.png -------------------------------------------------------------------------------- /Pomidoro/index.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 49 | 50 | 51 | 52 |
53 | 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /Pomidoro/js/angular.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | AngularJS v1.1.5 3 | (c) 2010-2012 Google, Inc. http://angularjs.org 4 | License: MIT 5 | */ 6 | (function(M,T,p){'use strict';function lc(){var b=M.angular;M.angular=mc;return b}function Xa(b){return!b||typeof b.length!=="number"?!1:typeof b.hasOwnProperty!="function"&&typeof b.constructor!="function"?!0:b instanceof R||ga&&b instanceof ga||Ea.call(b)!=="[object Object]"||typeof b.callee==="function"}function n(b,a,c){var d;if(b)if(H(b))for(d in b)d!="prototype"&&d!="length"&&d!="name"&&b.hasOwnProperty(d)&&a.call(c,b[d],d);else if(b.forEach&&b.forEach!==n)b.forEach(a,c);else if(Xa(b))for(d= 7 | 0;d=0&&b.splice(c,1);return a}function V(b,a){if(sa(b)||b&&b.$evalAsync&&b.$watch)throw Error("Can't copy Window or Scope");if(a){if(b===a)throw Error("Can't copy equivalent objects or arrays");if(F(b))for(var c=a.length=0;c2?ka.call(arguments,2):[];return H(a)&&!(a instanceof RegExp)?c.length?function(){return arguments.length?a.apply(b,c.concat(ka.call(arguments,0))):a.apply(b,c)}:function(){return arguments.length?a.apply(b,arguments):a.call(b)}:a}function qc(b,a){var c=a;/^\$+/.test(b)?c=p:sa(a)?c="$WINDOW":a&&T===a?c="$DOCUMENT":a&&a.$evalAsync&& 13 | a.$watch&&(c="$SCOPE");return c}function ha(b,a){return JSON.stringify(b,qc,a?" ":null)}function ub(b){return E(b)?JSON.parse(b):b}function ua(b){b&&b.length!==0?(b=I(""+b),b=!(b=="f"||b=="0"||b=="false"||b=="no"||b=="n"||b=="[]")):b=!1;return b}function va(b){b=w(b).clone();try{b.html("")}catch(a){}var c=w("
").append(b).html();try{return b[0].nodeType===3?I(c):c.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(a,b){return"<"+I(b)})}catch(d){return I(c)}}function vb(b){var a={},c,d;n((b|| 14 | "").split("&"),function(b){b&&(c=b.split("="),d=decodeURIComponent(c[0]),a[d]=B(c[1])?decodeURIComponent(c[1]):!0)});return a}function wb(b){var a=[];n(b,function(b,d){a.push(wa(d,!0)+(b===!0?"":"="+wa(b,!0)))});return a.length?a.join("&"):""}function ab(b){return wa(b,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function wa(b,a){return encodeURIComponent(b).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,a?"%20":"+")}function rc(b, 15 | a){function c(a){a&&d.push(a)}var d=[b],e,g,i=["ng:app","ng-app","x-ng-app","data-ng-app"],f=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;n(i,function(a){i[a]=!0;c(T.getElementById(a));a=a.replace(":","\\:");b.querySelectorAll&&(n(b.querySelectorAll("."+a),c),n(b.querySelectorAll("."+a+"\\:"),c),n(b.querySelectorAll("["+a+"]"),c))});n(d,function(a){if(!e){var b=f.exec(" "+a.className+" ");b?(e=a,g=(b[2]||"").replace(/\s+/g,",")):n(a.attributes,function(b){if(!e&&i[b.name])e=a,g=b.value})}});e&&a(e,g?[g]:[])} 16 | function xb(b,a){var c=function(){b=w(b);a=a||[];a.unshift(["$provide",function(a){a.value("$rootElement",b)}]);a.unshift("ng");var c=yb(a);c.invoke(["$rootScope","$rootElement","$compile","$injector","$animator",function(a,b,c,d,e){a.$apply(function(){b.data("$injector",d);c(b)(a)});e.enabled(!0)}]);return c},d=/^NG_DEFER_BOOTSTRAP!/;if(M&&!d.test(M.name))return c();M.name=M.name.replace(d,"");Ha.resumeBootstrap=function(b){n(b,function(b){a.push(b)});c()}}function bb(b,a){a=a||"_";return b.replace(sc, 17 | function(b,d){return(d?a:"")+b.toLowerCase()})}function cb(b,a,c){if(!b)throw Error("Argument '"+(a||"?")+"' is "+(c||"required"));return b}function xa(b,a,c){c&&F(b)&&(b=b[b.length-1]);cb(H(b),a,"not a function, got "+(b&&typeof b=="object"?b.constructor.name||"Object":typeof b));return b}function tc(b){function a(a,b,e){return a[b]||(a[b]=e())}return a(a(b,"angular",Object),"module",function(){var b={};return function(d,e,g){e&&b.hasOwnProperty(d)&&(b[d]=null);return a(b,d,function(){function a(c, 18 | d,e){return function(){b[e||"push"]([c,d,arguments]);return m}}if(!e)throw Error("No module: "+d);var b=[],c=[],j=a("$injector","invoke"),m={_invokeQueue:b,_runBlocks:c,requires:e,name:d,provider:a("$provide","provider"),factory:a("$provide","factory"),service:a("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),animation:a("$animationProvider","register"),filter:a("$filterProvider","register"),controller:a("$controllerProvider","register"),directive:a("$compileProvider", 19 | "directive"),config:j,run:function(a){c.push(a);return this}};g&&j(g);return m})}})}function Ia(b){return b.replace(uc,function(a,b,d,e){return e?d.toUpperCase():d}).replace(vc,"Moz$1")}function db(b,a){function c(){var e;for(var b=[this],c=a,i,f,h,j,m,k;b.length;){i=b.shift();f=0;for(h=i.length;f 
"+b;a.removeChild(a.firstChild);eb(this,a.childNodes);this.remove()}else eb(this,b)}function fb(b){return b.cloneNode(!0)}function ya(b){zb(b);for(var a=0,b=b.childNodes||[];a-1}function Cb(b,a){a&&n(a.split(" "),function(a){b.className=U((" "+b.className+" ").replace(/[\n\t]/g," ").replace(" "+U(a)+" "," "))})}function Db(b,a){a&&n(a.split(" "),function(a){if(!La(b,a))b.className=U(b.className+" "+U(a))})}function eb(b,a){if(a)for(var a=!a.nodeName&&B(a.length)&&!sa(a)?a:[a],c=0;c 4096 bytes)!")}else{if(h.cookie!==D){D=h.cookie;d=D.split("; ");G={};for(f=0;f0&&(a=unescape(e.substring(0,j)),G[a]===p&&(G[a]=unescape(e.substring(j+1))))}return G}};f.defer=function(a,b){var c;o++;c=k(function(){delete u[c];e(a)},b||0);u[c]=!0;return c};f.defer.cancel=function(a){return u[a]?(delete u[a],l(a),e(q),!0):!1}}function Ec(){this.$get= 35 | ["$window","$log","$sniffer","$document",function(b,a,c,d){return new Dc(b,d,a,c)}]}function Fc(){this.$get=function(){function b(b,d){function e(a){if(a!=k){if(l){if(l==a)l=a.n}else l=a;g(a.n,a.p);g(a,k);k=a;k.n=null}}function g(a,b){if(a!=b){if(a)a.p=b;if(b)b.n=a}}if(b in a)throw Error("cacheId "+b+" taken");var i=0,f=t({},d,{id:b}),h={},j=d&&d.capacity||Number.MAX_VALUE,m={},k=null,l=null;return a[b]={put:function(a,b){var c=m[a]||(m[a]={key:a});e(c);if(!C(b))return a in h||i++,h[a]=b,i>j&&this.remove(l.key), 36 | b},get:function(a){var b=m[a];if(b)return e(b),h[a]},remove:function(a){var b=m[a];if(b){if(b==k)k=b.p;if(b==l)l=b.n;g(b.n,b.p);delete m[a];delete h[a];i--}},removeAll:function(){h={};i=0;m={};k=l=null},destroy:function(){m=f=h=null;delete a[b]},info:function(){return t({},f,{size:i})}}}var a={};b.info=function(){var b={};n(a,function(a,e){b[e]=a.info()});return b};b.get=function(b){return a[b]};return b}}function Gc(){this.$get=["$cacheFactory",function(b){return b("templates")}]}function Jb(b){var a= 37 | {},c="Directive",d=/^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,e=/(([\d\w\-_]+)(?:\:([^;]+))?;?)/,g="Template must have exactly one root element. was: ",i=/^\s*(https?|ftp|mailto|file):/;this.directive=function h(d,e){E(d)?(cb(e,"directive"),a.hasOwnProperty(d)||(a[d]=[],b.factory(d+c,["$injector","$exceptionHandler",function(b,c){var e=[];n(a[d],function(a){try{var g=b.invoke(a);if(H(g))g={compile:S(g)};else if(!g.compile&&g.link)g.compile=S(g.link);g.priority=g.priority||0;g.name=g.name||d;g.require= 38 | g.require||g.controller&&g.name;g.restrict=g.restrict||"A";e.push(g)}catch(h){c(h)}});return e}])),a[d].push(e)):n(d,rb(h));return this};this.urlSanitizationWhitelist=function(a){return B(a)?(i=a,this):i};this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope","$document",function(b,j,m,k,l,u,o,z,r){function y(a,b,c){a instanceof w||(a=w(a));n(a,function(b,c){b.nodeType==3&&b.nodeValue.match(/\S+/)&&(a[c]=w(b).wrap("").parent()[0])}); 39 | var d=W(a,b,a,c);return function(b,c){cb(b,"scope");for(var e=c?Ba.clone.call(a):a,j=0,g=e.length;js.priority)break;if(t=s.scope)O("isolated scope",K,s,J),L(t)&&(x(J,"ng-isolate-scope"),K=s),x(J,"ng-scope"),r=r||s;A=s.name;if(t=s.controller)q=q||{},O("'"+A+"' controller",q[A],s,J),q[A]=s;if(t=s.transclude)O("transclusion",G,s,J),G=s,l=s.priority,t=="element"?(Y=w(b),J=c.$$element=w(T.createComment(" "+A+": "+c[A]+" ")),b=J[0],ja(e,w(Y[0]),b),P=y(Y,d,l)):(Y=w(fb(b)).contents(), 46 | J.html(""),P=y(Y,d));if(s.template)if(O("template",W,s,J),W=s,t=H(s.template)?s.template(J,c):s.template,t=Lb(t),s.replace){Y=w("
"+U(t)+"
").contents();b=Y[0];if(Y.length!=1||b.nodeType!==1)throw Error(g+t);ja(e,J,b);A={$attr:{}};a=a.concat(v(b,a.splice(B+1,a.length-(B+1)),A));D(c,A);C=a.length}else J.html(t);if(s.templateUrl)O("template",W,s,J),W=s,k=$(a.splice(B,a.length-B),k,J,c,e,s.replace,P),C=a.length;else if(s.compile)try{na=s.compile(J,c,P),H(na)?h(null,na):na&&h(na.pre,na.post)}catch(I){m(I, 47 | va(J))}if(s.terminal)k.terminal=!0,l=Math.max(l,s.priority)}k.scope=r&&r.scope;k.transclude=G&&P;return k}function G(d,e,j,g){var l=!1;if(a.hasOwnProperty(e))for(var k,e=b.get(e+c),i=0,o=e.length;ik.priority)&&k.restrict.indexOf(j)!=-1)d.push(k),l=!0}catch(u){m(u)}return l}function D(a,b){var c=b.$attr,d=a.$attr,e=a.$$element;n(a,function(d,e){e.charAt(0)!="$"&&(b[e]&&(d+=(e==="style"?";":" ")+b[e]),a.$set(e,d,!0,c[e]))});n(b,function(b,j){j=="class"?(x(e,b),a["class"]= 48 | (a["class"]?a["class"]+" ":"")+b):j=="style"?e.attr("style",e.attr("style")+";"+b):j.charAt(0)!="$"&&!a.hasOwnProperty(j)&&(a[j]=b,d[j]=c[j])})}function $(a,b,c,d,e,j,h){var i=[],o,m,u=c[0],z=a.shift(),r=t({},z,{controller:null,templateUrl:null,transclude:null,scope:null}),z=H(z.templateUrl)?z.templateUrl(c,d):z.templateUrl;c.html("");k.get(z,{cache:l}).success(function(l){var k,z,l=Lb(l);if(j){z=w("
"+U(l)+"
").contents();k=z[0];if(z.length!=1||k.nodeType!==1)throw Error(g+l);l={$attr:{}}; 49 | ja(e,c,k);v(k,a,l);D(d,l)}else k=u,c.html(l);a.unshift(r);o=A(a,k,d,h);for(m=W(c[0].childNodes,h);i.length;){var ea=i.shift(),l=i.shift();z=i.shift();var x=i.shift(),y=k;l!==u&&(y=fb(k),ja(z,w(l),y));o(function(){b(m,ea,y,e,x)},ea,y,e,x)}i=null}).error(function(a,b,c,d){throw Error("Failed to load template: "+d.url);});return function(a,c,d,e,j){i?(i.push(c),i.push(d),i.push(e),i.push(j)):o(function(){b(m,c,d,e,j)},c,d,e,j)}}function K(a,b){return b.priority-a.priority}function O(a,b,c,d){if(b)throw Error("Multiple directives ["+ 50 | b.name+", "+c.name+"] asking for "+a+" on: "+va(d));}function P(a,b){var c=j(b,!0);c&&a.push({priority:0,compile:S(function(a,b){var d=b.parent(),e=d.data("$binding")||[];e.push(c);x(d.data("$binding",e),"ng-binding");a.$watch(c,function(a){b[0].nodeValue=a})})})}function s(a,b,c,d){var e=j(c,!0);e&&b.push({priority:100,compile:S(function(a,b,c){b=c.$$observers||(c.$$observers={});if(e=j(c[d],!0))c[d]=e(a),(b[d]||(b[d]=[])).$$inter=!0,(c.$$observers&&c.$$observers[d].$$scope||a).$watch(e,function(a){c.$set(d, 51 | a)})})})}function ja(a,b,c){var d=b[0],e=d.parentNode,j,g;if(a){j=0;for(g=a.length;j0){var e=O[0],f=e.text;if(f==a||f==b||f==c||f==d||!a&&!b&&!c&&!d)return e}return!1}function f(b, 69 | c,d,f){return(b=i(b,c,d,f))?(a&&!b.json&&e("is not valid json",b),O.shift(),b):!1}function h(a){f(a)||e("is unexpected, expecting ["+a+"]",i())}function j(a,b){return t(function(c,d){return a(c,d,b)},{constant:b.constant})}function m(a,b,c){return t(function(d,e){return a(d,e)?b(d,e):c(d,e)},{constant:a.constant&&b.constant&&c.constant})}function k(a,b,c){return t(function(d,e){return b(d,e,a,c)},{constant:a.constant&&c.constant})}function l(){for(var a=[];;)if(O.length>0&&!i("}",")",";","]")&&a.push(w()), 70 | !f(";"))return a.length==1?a[0]:function(b,c){for(var d,e=0;e","<=",">="))a=k(a,b.fn,x());return a}function n(){for(var a=v(),b;b=f("*","/","%");)a=k(a,b.fn,v());return a}function v(){var a;return f("+")?A():(a=f("-"))?k($,a.fn,v()):(a=f("!"))?j(a.fn,v()):A()}function A(){var a;if(f("("))a=w(),h(")");else if(f("["))a=G();else if(f("{"))a=D();else{var b=f();(a= 72 | b.fn)||e("not a primary expression",b);if(b.json)a.constant=a.literal=!0}for(var c;b=f("(","[",".");)b.text==="("?(a=s(a,c),c=null):b.text==="["?(c=a,a=ma(a)):b.text==="."?(c=a,a=ja(a)):e("IMPOSSIBLE");return a}function G(){var a=[],b=!0;if(g().text!="]"){do{var c=P();a.push(c);c.constant||(b=!1)}while(f(","))}h("]");return t(function(b,c){for(var d=[],e=0;e1;d++){var e=a.shift(),g=b[e];g||(g={},b[e]=g);b=g}return b[a.shift()]=c}function ib(b,a,c){if(!a)return b;for(var a=a.split("."),d,e=b,g=a.length,i=0;ia)for(b in g++,e)e.hasOwnProperty(b)&&!f.hasOwnProperty(b)&&(x--,delete e[b])}else e!==f&&(e=f,g++);return g}, 90 | function(){b(f,e,c)})},$digest:function(){var a,d,e,i,u=this.$$asyncQueue,o,z,r=b,n,x=[],p,v;g("$digest");do{z=!1;for(n=this;u.length;)try{n.$eval(u.shift())}catch(A){c(A)}do{if(i=n.$$watchers)for(o=i.length;o--;)try{if(a=i[o],(d=a.get(n))!==(e=a.last)&&!(a.eq?ia(d,e):typeof d=="number"&&typeof e=="number"&&isNaN(d)&&isNaN(e)))z=!0,a.last=a.eq?V(d):d,a.fn(d,e===f?d:e,n),r<5&&(p=4-r,x[p]||(x[p]=[]),v=H(a.exp)?"fn: "+(a.exp.name||a.exp.toString()):a.exp,v+="; newVal: "+ha(d)+"; oldVal: "+ha(e),x[p].push(v))}catch(G){c(G)}if(!(i= 91 | n.$$childHead||n!==this&&n.$$nextSibling))for(;n!==this&&!(i=n.$$nextSibling);)n=n.$parent}while(n=i);if(z&&!r--)throw h.$$phase=null,Error(b+" $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: "+ha(x));}while(z||u.length);h.$$phase=null},$destroy:function(){if(!(h==this||this.$$destroyed)){var a=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;if(a.$$childHead==this)a.$$childHead=this.$$nextSibling;if(a.$$childTail==this)a.$$childTail=this.$$prevSibling; 92 | if(this.$$prevSibling)this.$$prevSibling.$$nextSibling=this.$$nextSibling;if(this.$$nextSibling)this.$$nextSibling.$$prevSibling=this.$$prevSibling;this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null}},$eval:function(a,b){return d(a)(this,b)},$evalAsync:function(a){this.$$asyncQueue.push(a)},$apply:function(a){try{return g("$apply"),this.$eval(a)}catch(b){c(b)}finally{h.$$phase=null;try{h.$digest()}catch(d){throw c(d),d;}}},$on:function(a,b){var c=this.$$listeners[a]; 93 | c||(this.$$listeners[a]=c=[]);c.push(b);return function(){c[Ga(c,b)]=null}},$emit:function(a,b){var d=[],e,f=this,g=!1,i={name:a,targetScope:f,stopPropagation:function(){g=!0},preventDefault:function(){i.defaultPrevented=!0},defaultPrevented:!1},h=[i].concat(ka.call(arguments,1)),n,x;do{e=f.$$listeners[a]||d;i.currentScope=f;n=0;for(x=e.length;n7),hasEvent:function(a){if(a=="input"&&Z==9)return!1;if(C(c[a])){var b= 96 | e.createElement("div");c[a]="on"+a in b}return c[a]},csp:e.securityPolicy?e.securityPolicy.isActive:!1,vendorPrefix:g,transitions:h,animations:j}}]}function Zc(){this.$get=S(M)}function Wb(b){var a={},c,d,e;if(!b)return a;n(b.split("\n"),function(b){e=b.indexOf(":");c=I(U(b.substr(0,e)));d=U(b.substr(e+1));c&&(a[c]?a[c]+=", "+d:a[c]=d)});return a}function $c(b,a){var c=ad.exec(b);if(c==null)return!0;var d={protocol:c[2],host:c[4],port:N(c[6])||Oa[c[2]]||null,relativeProtocol:c[2]===p||c[2]===""}, 97 | c=jb.exec(a),c={protocol:c[1],host:c[3],port:N(c[5])||Oa[c[1]]||null};return(d.protocol==c.protocol||d.relativeProtocol)&&d.host==c.host&&(d.port==c.port||d.relativeProtocol&&c.port==Oa[c.protocol])}function Xb(b){var a=L(b)?b:p;return function(c){a||(a=Wb(b));return c?a[I(c)]||null:a}}function Yb(b,a,c){if(H(c))return c(b,a);n(c,function(c){b=c(b,a)});return b}function bd(){var b=/^\s*(\[|\{[^\{])/,a=/[\}\]]\s*$/,c=/^\)\]\}',?\n/,d={"Content-Type":"application/json;charset=utf-8"},e=this.defaults= 98 | {transformResponse:[function(d){E(d)&&(d=d.replace(c,""),b.test(d)&&a.test(d)&&(d=ub(d,!0)));return d}],transformRequest:[function(a){return L(a)&&Ea.apply(a)!=="[object File]"?ha(a):a}],headers:{common:{Accept:"application/json, text/plain, */*"},post:d,put:d,patch:d},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},g=this.interceptors=[],i=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(a,b,c,d,k,l){function u(a){function c(a){var b= 99 | t({},a,{data:Yb(a.data,a.headers,d.transformResponse)});return 200<=a.status&&a.status<300?b:k.reject(b)}var d={transformRequest:e.transformRequest,transformResponse:e.transformResponse},f={};t(d,a);d.headers=f;d.method=oa(d.method);t(f,e.headers.common,e.headers[I(d.method)],a.headers);(a=$c(d.url,b.url())?b.cookies()[d.xsrfCookieName||e.xsrfCookieName]:p)&&(f[d.xsrfHeaderName||e.xsrfHeaderName]=a);var g=[function(a){var b=Yb(a.data,Xb(f),a.transformRequest);C(a.data)&&delete f["Content-Type"];if(C(a.withCredentials)&& 100 | !C(e.withCredentials))a.withCredentials=e.withCredentials;return o(a,b,f).then(c,c)},p],j=k.when(d);for(n(y,function(a){(a.request||a.requestError)&&g.unshift(a.request,a.requestError);(a.response||a.responseError)&&g.push(a.response,a.responseError)});g.length;)var a=g.shift(),i=g.shift(),j=j.then(a,i);j.success=function(a){j.then(function(b){a(b.data,b.status,b.headers,d)});return j};j.error=function(a){j.then(null,function(b){a(b.data,b.status,b.headers,d)});return j};return j}function o(b,c,g){function j(a, 101 | b,c){n&&(200<=a&&a<300?n.put(s,[a,b,Wb(c)]):n.remove(s));i(b,a,c);d.$$phase||d.$apply()}function i(a,c,d){c=Math.max(c,0);(200<=c&&c<300?l.resolve:l.reject)({data:a,status:c,headers:Xb(d),config:b})}function h(){var a=Ga(u.pendingRequests,b);a!==-1&&u.pendingRequests.splice(a,1)}var l=k.defer(),o=l.promise,n,p,s=z(b.url,b.params);u.pendingRequests.push(b);o.then(h,h);if((b.cache||e.cache)&&b.cache!==!1&&b.method=="GET")n=L(b.cache)?b.cache:L(e.cache)?e.cache:r;if(n)if(p=n.get(s))if(p.then)return p.then(h, 102 | h),p;else F(p)?i(p[1],p[0],V(p[2])):i(p,200,{});else n.put(s,o);p||a(b.method,s,c,j,g,b.timeout,b.withCredentials,b.responseType);return o}function z(a,b){if(!b)return a;var c=[];nc(b,function(a,b){a==null||a==p||(F(a)||(a=[a]),n(a,function(a){L(a)&&(a=ha(a));c.push(wa(b)+"="+wa(a))}))});return a+(a.indexOf("?")==-1?"?":"&")+c.join("&")}var r=c("$http"),y=[];n(g,function(a){y.unshift(E(a)?l.get(a):l.invoke(a))});n(i,function(a,b){var c=E(a)?l.get(a):l.invoke(a);y.splice(b,0,{response:function(a){return c(k.when(a))}, 103 | responseError:function(a){return c(k.reject(a))}})});u.pendingRequests=[];(function(a){n(arguments,function(a){u[a]=function(b,c){return u(t(c||{},{method:a,url:b}))}})})("get","delete","head","jsonp");(function(a){n(arguments,function(a){u[a]=function(b,c,d){return u(t(d||{},{method:a,url:b,data:c}))}})})("post","put");u.defaults=e;return u}]}function cd(){this.$get=["$browser","$window","$document",function(b,a,c){return dd(b,ed,b.defer,a.angular.callbacks,c[0],a.location.protocol.replace(":",""))}]} 104 | function dd(b,a,c,d,e,g){function i(a,b){var c=e.createElement("script"),d=function(){e.body.removeChild(c);b&&b()};c.type="text/javascript";c.src=a;Z?c.onreadystatechange=function(){/loaded|complete/.test(c.readyState)&&d()}:c.onload=c.onerror=d;e.body.appendChild(c);return d}return function(e,h,j,m,k,l,u,o){function z(){p=-1;t&&t();v&&v.abort()}function r(a,d,e,f){var j=(h.match(jb)||["",g])[1];A&&c.cancel(A);t=v=null;d=j=="file"?e?200:404:d;a(d==1223?204:d,e,f);b.$$completeOutstandingRequest(q)} 105 | var p;b.$$incOutstandingRequestCount();h=h||b.url();if(I(e)=="jsonp"){var x="_"+(d.counter++).toString(36);d[x]=function(a){d[x].data=a};var t=i(h.replace("JSON_CALLBACK","angular.callbacks."+x),function(){d[x].data?r(m,200,d[x].data):r(m,p||-2);delete d[x]})}else{var v=new a;v.open(e,h,!0);n(k,function(a,b){a&&v.setRequestHeader(b,a)});v.onreadystatechange=function(){if(v.readyState==4){var a=v.getAllResponseHeaders(),b=["Cache-Control","Content-Language","Content-Type","Expires","Last-Modified", 106 | "Pragma"];a||(a="",n(b,function(b){var c=v.getResponseHeader(b);c&&(a+=b+": "+c+"\n")}));r(m,p||v.status,v.responseType?v.response:v.responseText,a)}};if(u)v.withCredentials=!0;if(o)v.responseType=o;v.send(j||"")}if(l>0)var A=c(z,l);else l&&l.then&&l.then(z)}}function fd(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"\u00a4", 107 | posSuf:"",negPre:"(\u00a4",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y", 108 | mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(b){return b===1?"one":"other"}}}}function gd(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(b,a,c,d){function e(e,f,h){var j=c.defer(),m=j.promise,k=B(h)&&!h,f=a.defer(function(){try{j.resolve(e())}catch(a){j.reject(a),d(a)}k||b.$apply()},f),h=function(){delete g[m.$$timeoutId]};m.$$timeoutId=f;g[f]=j;m.then(h,h);return m}var g={};e.cancel=function(b){return b&&b.$$timeoutId in 109 | g?(g[b.$$timeoutId].reject("canceled"),a.defer.cancel(b.$$timeoutId)):!1};return e}]}function Zb(b){function a(a,e){return b.factory(a+c,e)}var c="Filter";this.register=a;this.$get=["$injector",function(a){return function(b){return a.get(b+c)}}];a("currency",$b);a("date",ac);a("filter",hd);a("json",id);a("limitTo",jd);a("lowercase",kd);a("number",bc);a("orderBy",cc);a("uppercase",ld)}function hd(){return function(b,a,c){if(!F(b))return b;var d=[];d.check=function(a){for(var b=0;b-1}}var e=function(a,b){if(typeof b=="string"&&b.charAt(0)==="!")return!e(a,b.substr(1));switch(typeof a){case "boolean":case "number":case "string":return c(a,b);case "object":switch(typeof b){case "object":return c(a,b);default:for(var d in a)if(d.charAt(0)!=="$"&&e(a[d],b))return!0}return!1;case "array":for(d= 111 | 0;de+1?i="0":(f=i,j=!0)}if(!j){i=(i.split(ec)[1]||"").length;C(e)&&(e=Math.min(Math.max(a.minFrac,i), 113 | a.maxFrac));var i=Math.pow(10,e),b=Math.round(b*i)/i,b=(""+b).split(ec),i=b[0],b=b[1]||"",j=0,m=a.lgSize,k=a.gSize;if(i.length>=m+k)for(var j=i.length-m,l=0;l0||e>-c)e+=c;e===0&&c==-12&&(e=12);return nb(e,a,d)}}function Qa(b,a){return function(c,d){var e=c["get"+b](),g=oa(a?"SHORT"+b:b);return d[g][e]}}function ac(b){function a(a){var b;if(b=a.match(c)){var a=new Date(0),g=0,i=0,f=b[8]?a.setUTCFullYear:a.setFullYear,h=b[8]?a.setUTCHours:a.setHours;b[9]&&(g=N(b[9]+b[10]),i=N(b[9]+b[11]));f.call(a,N(b[1]),N(b[2])-1,N(b[3]));g=N(b[4]||0)-g;i=N(b[5]||0)-i;f= 115 | N(b[6]||0);b=Math.round(parseFloat("0."+(b[7]||0))*1E3);h.call(a,g,i,f,b)}return a}var c=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(c,e){var g="",i=[],f,h,e=e||"mediumDate",e=b.DATETIME_FORMATS[e]||e;E(c)&&(c=md.test(c)?N(c):a(c));Ya(c)&&(c=new Date(c));if(!ra(c))return c;for(;e;)(h=nd.exec(e))?(i=i.concat(ka.call(h,1)),e=i.pop()):(i.push(e),e=null);n(i,function(a){f=od[a];g+=f?f(c,b.DATETIME_FORMATS):a.replace(/(^'|'$)/g, 116 | "").replace(/''/g,"'")});return g}}function id(){return function(b){return ha(b,!0)}}function jd(){return function(b,a){if(!F(b)&&!E(b))return b;a=N(a);if(E(b))return a?a>=0?b.slice(0,a):b.slice(a,b.length):"";var c=[],d,e;a>b.length?a=b.length:a<-b.length&&(a=-b.length);a>0?(d=0,e=a):(d=b.length+a,e=b.length);for(;dl?(d.$setValidity("maxlength",!1),p):(d.$setValidity("maxlength",!0),a)};d.$parsers.push(e);d.$formatters.push(e)}}function ob(b,a){b="ngClass"+b;return aa(function(c,d,e){function g(b){if(a===!0||c.$index%2===a)h&&!ia(b,h)&&i(h),f(b);h=V(b)}function i(a){L(a)&&!F(a)&&(a=Za(a,function(a,b){if(a)return b}));d.removeClass(F(a)?a.join(" "):a)}function f(a){L(a)&&!F(a)&&(a=Za(a, 123 | function(a,b){if(a)return b}));a&&d.addClass(F(a)?a.join(" "):a)}var h=p;c.$watch(e[b],g,!0);e.$observe("class",function(){var a=c.$eval(e[b]);g(a,a)});b!=="ngClass"&&c.$watch("$index",function(d,g){var h=d&1;h!==g&1&&(h===a?f(c.$eval(e[b])):i(c.$eval(e[b])))})})}var I=function(b){return E(b)?b.toLowerCase():b},oa=function(b){return E(b)?b.toUpperCase():b},Z=N((/msie (\d+)/.exec(I(navigator.userAgent))||[])[1]),w,ga,ka=[].slice,Wa=[].push,Ea=Object.prototype.toString,mc=M.angular,Ha=M.angular||(M.angular= 124 | {}),Aa,hb,ba=["0","0","0"];q.$inject=[];qa.$inject=[];hb=Z<9?function(b){b=b.nodeName?b:b[0];return b.scopeName&&b.scopeName!="HTML"?oa(b.scopeName+":"+b.nodeName):b.nodeName}:function(b){return b.nodeName?b.nodeName:b[0].nodeName};var sc=/[A-Z]/g,pd={full:"1.1.5",major:1,minor:1,dot:5,codeName:"triangle-squarification"},Ka=R.cache={},Ja=R.expando="ng-"+(new Date).getTime(),wc=1,gc=M.document.addEventListener?function(b,a,c){b.addEventListener(a,c,!1)}:function(b,a,c){b.attachEvent("on"+a,c)},gb= 125 | M.document.removeEventListener?function(b,a,c){b.removeEventListener(a,c,!1)}:function(b,a,c){b.detachEvent("on"+a,c)},uc=/([\:\-\_]+(.))/g,vc=/^moz([A-Z])/,Ba=R.prototype={ready:function(b){function a(){c||(c=!0,b())}var c=!1;T.readyState==="complete"?setTimeout(a):(this.bind("DOMContentLoaded",a),R(M).bind("load",a))},toString:function(){var b=[];n(this,function(a){b.push(""+a)});return"["+b.join(", ")+"]"},eq:function(b){return b>=0?w(this[b]):w(this[this.length+b])},length:0,push:Wa,sort:[].sort, 126 | splice:[].splice},Na={};n("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(b){Na[I(b)]=b});var Gb={};n("input,select,option,textarea,button,form,details".split(","),function(b){Gb[oa(b)]=!0});n({data:Bb,inheritedData:Ma,scope:function(b){return Ma(b,"$scope")},controller:Eb,injector:function(b){return Ma(b,"$injector")},removeAttr:function(b,a){b.removeAttribute(a)},hasClass:La,css:function(b,a,c){a=Ia(a);if(B(c))b.style[a]=c;else{var d;Z<=8&&(d=b.currentStyle&&b.currentStyle[a], 127 | d===""&&(d="auto"));d=d||b.style[a];Z<=8&&(d=d===""?p:d);return d}},attr:function(b,a,c){var d=I(a);if(Na[d])if(B(c))c?(b[a]=!0,b.setAttribute(a,d)):(b[a]=!1,b.removeAttribute(d));else return b[a]||(b.attributes.getNamedItem(a)||q).specified?d:p;else if(B(c))b.setAttribute(a,c);else if(b.getAttribute)return b=b.getAttribute(a,2),b===null?p:b},prop:function(b,a,c){if(B(c))b[a]=c;else return b[a]},text:t(Z<9?function(b,a){if(b.nodeType==1){if(C(a))return b.innerText;b.innerText=a}else{if(C(a))return b.nodeValue; 128 | b.nodeValue=a}}:function(b,a){if(C(a))return b.textContent;b.textContent=a},{$dv:""}),val:function(b,a){if(C(a))return b.value;b.value=a},html:function(b,a){if(C(a))return b.innerHTML;for(var c=0,d=b.childNodes;c0||parseFloat(h[a+"Duration"])> 135 | 0)g="animation",i=a,j=Math.max(parseInt(h[g+"IterationCount"])||0,parseInt(h[i+"IterationCount"])||0,j);f=Math.max(x(h[g+"Delay"]),x(h[i+"Delay"]));g=Math.max(x(h[g+"Duration"]),x(h[i+"Duration"]));d=Math.max(f+j*g,d)}});e.setTimeout(v,d*1E3)}else v()}function v(){if(!v.run)v.run=!0,o(m,r,p),m.removeClass(w),m.removeClass(K),m.removeData(a)}var A=c.$eval(i.ngAnimate),w=A?L(A)?A[j]:A+"-"+j:"",D=d(w),A=D&&D.setup,$=D&&D.start,D=D&&D.cancel;if(w){var K=w+"-active";r||(r=p?p.parent():m.parent());if(!g.transitions&& 136 | !A&&!$||(r.inheritedData(a)||q).running)k(m,r,p),o(m,r,p);else{var O=m.data(a)||{};O.running&&((D||q)(m),O.done());m.data(a,{running:!0,done:v});m.addClass(w);k(m,r,p);if(m.length==0)return v();var P=(A||q)(m);e.setTimeout(t,1)}}else k(m,r,p),o(m,r,p)}}function m(a,c,d){d?d.after(a):c.append(a)}var k={};k.enter=j("enter",m,q);k.leave=j("leave",q,function(a){a.remove()});k.move=j("move",function(a,c,d){m(a,c,d)},q);k.show=j("show",function(a){a.css("display","")},q);k.hide=j("hide",q,function(a){a.css("display", 137 | "none")});k.animate=function(a,c){j(a,q,q)(c)};return k};i.enabled=function(a){if(arguments.length)c.running=!a;return!c.running};return i}]},Kb="Non-assignable model expression: ";Jb.$inject=["$provide"];var Ic=/^(x[\:\-_]|data[\:\-_])/i,jb=/^([^:]+):\/\/(\w+:{0,1}\w*@)?(\{?[\w\.-]*\}?)(:([0-9]+))?(\/[^\?#]*)?(\?([^#]*))?(#(.*))?$/,Pb=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,Oa={http:80,https:443,ftp:21};Rb.prototype=lb.prototype=Qb.prototype={$$replace:!1,absUrl:Pa("$$absUrl"),url:function(a,c){if(C(a))return this.$$url; 138 | var d=Pb.exec(a);d[1]&&this.path(decodeURIComponent(d[1]));if(d[2]||d[1])this.search(d[3]||"");this.hash(d[5]||"",c);return this},protocol:Pa("$$protocol"),host:Pa("$$host"),port:Pa("$$port"),path:Sb("$$path",function(a){return a.charAt(0)=="/"?a:"/"+a}),search:function(a,c){if(C(a))return this.$$search;B(c)?c===null?delete this.$$search[a]:this.$$search[a]=c:this.$$search=E(a)?vb(a):a;this.$$compose();return this},hash:Sb("$$hash",qa),replace:function(){this.$$replace=!0;return this}};var Da={"null":function(){return null}, 139 | "true":function(){return!0},"false":function(){return!1},undefined:q,"+":function(a,c,d,e){d=d(a,c);e=e(a,c);return B(d)?B(e)?d+e:d:B(e)?e:p},"-":function(a,c,d,e){d=d(a,c);e=e(a,c);return(B(d)?d:0)-(B(e)?e:0)},"*":function(a,c,d,e){return d(a,c)*e(a,c)},"/":function(a,c,d,e){return d(a,c)/e(a,c)},"%":function(a,c,d,e){return d(a,c)%e(a,c)},"^":function(a,c,d,e){return d(a,c)^e(a,c)},"=":q,"===":function(a,c,d,e){return d(a,c)===e(a,c)},"!==":function(a,c,d,e){return d(a,c)!==e(a,c)},"==":function(a, 140 | c,d,e){return d(a,c)==e(a,c)},"!=":function(a,c,d,e){return d(a,c)!=e(a,c)},"<":function(a,c,d,e){return d(a,c)":function(a,c,d,e){return d(a,c)>e(a,c)},"<=":function(a,c,d,e){return d(a,c)<=e(a,c)},">=":function(a,c,d,e){return d(a,c)>=e(a,c)},"&&":function(a,c,d,e){return d(a,c)&&e(a,c)},"||":function(a,c,d,e){return d(a,c)||e(a,c)},"&":function(a,c,d,e){return d(a,c)&e(a,c)},"|":function(a,c,d,e){return e(a,c)(a,c,d(a,c))},"!":function(a,c,d){return!d(a,c)}},Qc={n:"\n",f:"\u000c",r:"\r", 141 | t:"\t",v:"\u000b","'":"'",'"':'"'},mb={},ad=/^(([^:]+):)?\/\/(\w+:{0,1}\w*@)?([\w\.-]*)?(:([0-9]+))?(.*)$/,ed=M.XMLHttpRequest||function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(a){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(c){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(d){}throw Error("This browser does not support XMLHttpRequest.");};Zb.$inject=["$provide"];$b.$inject=["$locale"];bc.$inject=["$locale"];var ec=".",od={yyyy:Q("FullYear",4),yy:Q("FullYear", 142 | 2,0,!0),y:Q("FullYear",1),MMMM:Qa("Month"),MMM:Qa("Month",!0),MM:Q("Month",2,1),M:Q("Month",1,1),dd:Q("Date",2),d:Q("Date",1),HH:Q("Hours",2),H:Q("Hours",1),hh:Q("Hours",2,-12),h:Q("Hours",1,-12),mm:Q("Minutes",2),m:Q("Minutes",1),ss:Q("Seconds",2),s:Q("Seconds",1),sss:Q("Milliseconds",3),EEEE:Qa("Day"),EEE:Qa("Day",!0),a:function(a,c){return a.getHours()<12?c.AMPMS[0]:c.AMPMS[1]},Z:function(a){var a=-1*a.getTimezoneOffset(),c=a>=0?"+":"";c+=nb(Math[a>0?"floor":"ceil"](a/60),2)+nb(Math.abs(a%60), 143 | 2);return c}},nd=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,md=/^\d+$/;ac.$inject=["$locale"];var kd=S(I),ld=S(oa);cc.$inject=["$parse"];var rd=S({restrict:"E",compile:function(a,c){Z<=8&&(!c.href&&!c.name&&c.$set("href",""),a.append(T.createComment("IE fix")));return function(a,c){c.bind("click",function(a){c.attr("href")||a.preventDefault()})}}}),pb={};n(Na,function(a,c){var d=da("ng-"+c);pb[d]=function(){return{priority:100,compile:function(){return function(a, 144 | g,i){a.$watch(i[d],function(a){i.$set(c,!!a)})}}}}});n(["src","srcset","href"],function(a){var c=da("ng-"+a);pb[c]=function(){return{priority:99,link:function(d,e,g){g.$observe(c,function(c){c&&(g.$set(a,c),Z&&e.prop(a,g[a]))})}}}});var Ta={$addControl:q,$removeControl:q,$setValidity:q,$setDirty:q,$setPristine:q};fc.$inject=["$element","$attrs","$scope"];var Wa=function(a){return["$timeout",function(c){var d={name:"form",restrict:"E",controller:fc,compile:function(){return{pre:function(a,d,i,f){if(!i.action){var h= 145 | function(a){a.preventDefault?a.preventDefault():a.returnValue=!1};gc(d[0],"submit",h);d.bind("$destroy",function(){c(function(){gb(d[0],"submit",h)},0,!1)})}var j=d.parent().controller("form"),m=i.name||i.ngForm;m&&(a[m]=f);j&&d.bind("$destroy",function(){j.$removeControl(f);m&&(a[m]=p);t(f,Ta)})}}}};return a?t(V(d),{restrict:"EAC"}):d}]},sd=Wa(),td=Wa(!0),ud=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,vd=/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/, 146 | wd=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,hc={text:Va,number:function(a,c,d,e,g,i){Va(a,c,d,e,g,i);e.$parsers.push(function(a){var c=X(a);return c||wd.test(a)?(e.$setValidity("number",!0),a===""?null:c?a:parseFloat(a)):(e.$setValidity("number",!1),p)});e.$formatters.push(function(a){return X(a)?"":""+a});if(d.min){var f=parseFloat(d.min),a=function(a){return!X(a)&&ah?(e.$setValidity("max",!1),p):(e.$setValidity("max",!0),a)};e.$parsers.push(d);e.$formatters.push(d)}e.$formatters.push(function(a){return X(a)||Ya(a)?(e.$setValidity("number",!0),a):(e.$setValidity("number",!1),p)})},url:function(a,c,d,e,g,i){Va(a,c,d,e,g,i);a=function(a){return X(a)||ud.test(a)?(e.$setValidity("url",!0),a):(e.$setValidity("url",!1),p)};e.$formatters.push(a);e.$parsers.push(a)},email:function(a,c,d,e,g,i){Va(a,c,d,e,g,i);a=function(a){return X(a)||vd.test(a)? 148 | (e.$setValidity("email",!0),a):(e.$setValidity("email",!1),p)};e.$formatters.push(a);e.$parsers.push(a)},radio:function(a,c,d,e){C(d.name)&&c.attr("name",Fa());c.bind("click",function(){c[0].checked&&a.$apply(function(){e.$setViewValue(d.value)})});e.$render=function(){c[0].checked=d.value==e.$viewValue};d.$observe("value",e.$render)},checkbox:function(a,c,d,e){var g=d.ngTrueValue,i=d.ngFalseValue;E(g)||(g=!0);E(i)||(i=!1);c.bind("click",function(){a.$apply(function(){e.$setViewValue(c[0].checked)})}); 149 | e.$render=function(){c[0].checked=e.$viewValue};e.$formatters.push(function(a){return a===g});e.$parsers.push(function(a){return a?g:i})},hidden:q,button:q,submit:q,reset:q},ic=["$browser","$sniffer",function(a,c){return{restrict:"E",require:"?ngModel",link:function(d,e,g,i){i&&(hc[I(g.type)]||hc.text)(d,e,g,i,c,a)}}}],Sa="ng-valid",Ra="ng-invalid",pa="ng-pristine",Ua="ng-dirty",xd=["$scope","$exceptionHandler","$attrs","$element","$parse",function(a,c,d,e,g){function i(a,c){c=c?"-"+bb(c,"-"):""; 150 | e.removeClass((a?Ra:Sa)+c).addClass((a?Sa:Ra)+c)}this.$modelValue=this.$viewValue=Number.NaN;this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$name=d.name;var f=g(d.ngModel),h=f.assign;if(!h)throw Error(Kb+d.ngModel+" ("+va(e)+")");this.$render=q;var j=e.inheritedData("$formController")||Ta,m=0,k=this.$error={};e.addClass(pa);i(!0);this.$setValidity=function(a,c){if(k[a]!==!c){if(c){if(k[a]&&m--,!m)i(!0),this.$valid= 151 | !0,this.$invalid=!1}else i(!1),this.$invalid=!0,this.$valid=!1,m++;k[a]=!c;i(c,a);j.$setValidity(a,c,this)}};this.$setPristine=function(){this.$dirty=!1;this.$pristine=!0;e.removeClass(Ua).addClass(pa)};this.$setViewValue=function(d){this.$viewValue=d;if(this.$pristine)this.$dirty=!0,this.$pristine=!1,e.removeClass(pa).addClass(Ua),j.$setDirty();n(this.$parsers,function(a){d=a(d)});if(this.$modelValue!==d)this.$modelValue=d,h(a,d),n(this.$viewChangeListeners,function(a){try{a()}catch(d){c(d)}})}; 152 | var l=this;a.$watch(function(){var c=f(a);if(l.$modelValue!==c){var d=l.$formatters,e=d.length;for(l.$modelValue=c;e--;)c=d[e](c);if(l.$viewValue!==c)l.$viewValue=c,l.$render()}})}],yd=function(){return{require:["ngModel","^?form"],controller:xd,link:function(a,c,d,e){var g=e[0],i=e[1]||Ta;i.$addControl(g);c.bind("$destroy",function(){i.$removeControl(g)})}}},zd=S({require:"ngModel",link:function(a,c,d,e){e.$viewChangeListeners.push(function(){a.$eval(d.ngChange)})}}),jc=function(){return{require:"?ngModel", 153 | link:function(a,c,d,e){if(e){d.required=!0;var g=function(a){if(d.required&&(X(a)||a===!1))e.$setValidity("required",!1);else return e.$setValidity("required",!0),a};e.$formatters.push(g);e.$parsers.unshift(g);d.$observe("required",function(){g(e.$viewValue)})}}}},Ad=function(){return{require:"ngModel",link:function(a,c,d,e){var g=(a=/\/(.*)\//.exec(d.ngList))&&RegExp(a[1])||d.ngList||",";e.$parsers.push(function(a){var c=[];a&&n(a.split(g),function(a){a&&c.push(U(a))});return c});e.$formatters.push(function(a){return F(a)? 154 | a.join(", "):p})}}},Bd=/^(true|false|\d+)$/,Cd=function(){return{priority:100,compile:function(a,c){return Bd.test(c.ngValue)?function(a,c,g){g.$set("value",a.$eval(g.ngValue))}:function(a,c,g){a.$watch(g.ngValue,function(a){g.$set("value",a,!1)})}}}},Dd=aa(function(a,c,d){c.addClass("ng-binding").data("$binding",d.ngBind);a.$watch(d.ngBind,function(a){c.text(a==p?"":a)})}),Ed=["$interpolate",function(a){return function(c,d,e){c=a(d.attr(e.$attr.ngBindTemplate));d.addClass("ng-binding").data("$binding", 155 | c);e.$observe("ngBindTemplate",function(a){d.text(a)})}}],Fd=[function(){return function(a,c,d){c.addClass("ng-binding").data("$binding",d.ngBindHtmlUnsafe);a.$watch(d.ngBindHtmlUnsafe,function(a){c.html(a||"")})}}],Gd=ob("",!0),Hd=ob("Odd",0),Id=ob("Even",1),Jd=aa({compile:function(a,c){c.$set("ngCloak",p);a.removeClass("ng-cloak")}}),Kd=[function(){return{scope:!0,controller:"@"}}],Ld=["$sniffer",function(a){return{priority:1E3,compile:function(){a.csp=!0}}}],kc={};n("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress".split(" "), 156 | function(a){var c=da("ng-"+a);kc[c]=["$parse",function(d){return function(e,g,i){var f=d(i[c]);g.bind(I(a),function(a){e.$apply(function(){f(e,{$event:a})})})}}]});var Md=aa(function(a,c,d){c.bind("submit",function(){a.$apply(d.ngSubmit)})}),Nd=["$animator",function(a){return{transclude:"element",priority:1E3,terminal:!0,restrict:"A",compile:function(c,d,e){return function(c,d,f){var h=a(c,f),j,m;c.$watch(f.ngIf,function(a){j&&(h.leave(j),j=p);m&&(m.$destroy(),m=p);ua(a)&&(m=c.$new(),e(m,function(a){j= 157 | a;h.enter(a,d.parent(),d)}))})}}}}],Od=["$http","$templateCache","$anchorScroll","$compile","$animator",function(a,c,d,e,g){return{restrict:"ECA",terminal:!0,compile:function(i,f){var h=f.ngInclude||f.src,j=f.onload||"",m=f.autoscroll;return function(f,i,n){var o=g(f,n),p=0,r,t=function(){r&&(r.$destroy(),r=null);o.leave(i.contents(),i)};f.$watch(h,function(g){var h=++p;g?(a.get(g,{cache:c}).success(function(a){h===p&&(r&&r.$destroy(),r=f.$new(),o.leave(i.contents(),i),a=w("
").html(a).contents(), 158 | o.enter(a,i),e(a)(r),B(m)&&(!m||f.$eval(m))&&d(),r.$emit("$includeContentLoaded"),f.$eval(j))}).error(function(){h===p&&t()}),f.$emit("$includeContentRequested")):t()})}}}}],Pd=aa({compile:function(){return{pre:function(a,c,d){a.$eval(d.ngInit)}}}}),Qd=aa({terminal:!0,priority:1E3}),Rd=["$locale","$interpolate",function(a,c){var d=/{}/g;return{restrict:"EA",link:function(e,g,i){var f=i.count,h=g.attr(i.$attr.when),j=i.offset||0,m=e.$eval(h),k={},l=c.startSymbol(),p=c.endSymbol();n(m,function(a,e){k[e]= 159 | c(a.replace(d,l+f+"-"+j+p))});e.$watch(function(){var c=parseFloat(e.$eval(f));return isNaN(c)?"":(c in m||(c=a.pluralCat(c-j)),k[c](e,g,!0))},function(a){g.text(a)})}}}],Sd=["$parse","$animator",function(a,c){return{transclude:"element",priority:1E3,terminal:!0,compile:function(d,e,g){return function(d,e,h){var j=c(d,h),m=h.ngRepeat,k=m.match(/^\s*(.+)\s+in\s+(.*?)\s*(\s+track\s+by\s+(.+)\s*)?$/),l,p,o,z,r,t={$id:la};if(!k)throw Error("Expected ngRepeat in form of '_item_ in _collection_[ track by _id_]' but got '"+ 160 | m+"'.");h=k[1];o=k[2];(k=k[4])?(l=a(k),p=function(a,c,e){r&&(t[r]=a);t[z]=c;t.$index=e;return l(d,t)}):p=function(a,c){return la(c)};k=h.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/);if(!k)throw Error("'item' in 'item in collection' should be identifier or (key, value) but got '"+h+"'.");z=k[3]||k[1];r=k[2];var x={};d.$watchCollection(o,function(a){var c,h,k=e,l,o={},t,q,w,s,B,y,C=[];if(Xa(a))B=a;else{B=[];for(w in a)a.hasOwnProperty(w)&&w.charAt(0)!="$"&&B.push(w);B.sort()}t=B.length;h= 161 | C.length=B.length;for(c=0;c
").html(k).contents();o.enter(k,c);var k=g(k),m=d.current;l=m.scope=a.$new();if(m.controller)f.$scope= 166 | l,f=i(m.controller,f),m.controllerAs&&(l[m.controllerAs]=f),c.children().data("$ngControllerController",f);k(l);l.$emit("$viewContentLoaded");l.$eval(n);e()}else o.leave(c.contents(),c),l&&(l.$destroy(),l=null)}var l,n=m.onload||"",o=f(a,m);a.$on("$routeChangeSuccess",k);k()}}}],ae=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(c,d){d.type=="text/ng-template"&&a.put(d.id,c[0].text)}}}],be=S({terminal:!0}),ce=["$compile","$parse",function(a,c){var d=/^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w\d]*)|(?:\(\s*([\$\w][\$\w\d]*)\s*,\s*([\$\w][\$\w\d]*)\s*\)))\s+in\s+(.*?)(?:\s+track\s+by\s+(.*?))?$/, 167 | e={$setViewValue:q};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(a,c,d){var h=this,j={},m=e,k;h.databound=d.ngModel;h.init=function(a,c,d){m=a;k=d};h.addOption=function(c){j[c]=!0;m.$viewValue==c&&(a.val(c),k.parent()&&k.remove())};h.removeOption=function(a){this.hasOption(a)&&(delete j[a],m.$viewValue==a&&this.renderUnknownOption(a))};h.renderUnknownOption=function(c){c="? "+la(c)+" ?";k.val(c);a.prepend(k);a.val(c);k.prop("selected",!0)};h.hasOption= 168 | function(a){return j.hasOwnProperty(a)};c.$on("$destroy",function(){h.renderUnknownOption=q})}],link:function(e,i,f,h){function j(a,c,d,e){d.$render=function(){var a=d.$viewValue;e.hasOption(a)?(v.parent()&&v.remove(),c.val(a),a===""&&t.prop("selected",!0)):C(a)&&t?c.val(""):e.renderUnknownOption(a)};c.bind("change",function(){a.$apply(function(){v.parent()&&v.remove();d.$setViewValue(c.val())})})}function m(a,c,d){var e;d.$render=function(){var a=new za(d.$viewValue);n(c.find("option"),function(c){c.selected= 169 | B(a.get(c.value))})};a.$watch(function(){ia(e,d.$viewValue)||(e=V(d.$viewValue),d.$render())});c.bind("change",function(){a.$apply(function(){var a=[];n(c.find("option"),function(c){c.selected&&a.push(c.value)});d.$setViewValue(a)})})}function k(e,f,g){function i(){var a={"":[]},c=[""],d,h,q,v,s;q=g.$modelValue;v=u(e)||[];var z=l?qb(v):v,B,y,A;y={};s=!1;var C,D;if(o)if(t&&F(q)){s=new za([]);for(h=0;hA;)v.pop().element.remove()}for(;w.length>y;)w.pop()[0].element.remove()} 172 | var h;if(!(h=q.match(d)))throw Error("Expected ngOptions in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_ (track by _expr_)?' but got '"+q+"'.");var j=c(h[2]||h[1]),k=h[4]||h[6],l=h[5],m=c(h[3]||""),n=c(h[2]?h[1]:k),u=c(h[7]),t=h[8]?c(h[8]):null,w=[[{element:f,label:""}]];r&&(a(r)(e),r.removeClass("ng-scope"),r.remove());f.html("");f.bind("change",function(){e.$apply(function(){var a,c=u(e)||[],d={},h,i,j,m,q,r;if(o){i=[];m=0;for(r=w.length;m@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak{display:none;}ng\\:form{display:block;}'); 179 | -------------------------------------------------------------------------------- /Pomidoro/js/app.js: -------------------------------------------------------------------------------- 1 | // Pomidoro Mobile Application 2 | // app.js 3 | // 4 | // This is the main application .js file 5 | // with modules, controllers and router 6 | // 7 | // created by @sauliuz 8 | // PopularOwl Labs // www.popularowl.com 9 | // Visit www.htmlcenter.com 10 | // for more mobile application templates 11 | //////////////////////////////////////////// 12 | 13 | // Defining angular application model 14 | // for Pomidoro app 15 | // 16 | var pomidoroApp = angular.module('pomidoroApp',[]); 17 | 18 | 19 | ////////// ROUTING ///////////////////////// 20 | 21 | // Deffining $routeProvider for Pomidoro applicatiom module 22 | // 23 | pomidoroApp.config(function ($routeProvider) { 24 | $routeProvider 25 | 26 | // We are going to define routes, 27 | // controllers and templates associated 28 | // with these routes. 29 | // You can change these but make sure 30 | // you know what you are doing 31 | // 32 | 33 | // main route 34 | // 35 | .when('/', 36 | { 37 | controller: 'RootController', 38 | templateUrl: 'views/RootControllerView.html' 39 | }) 40 | 41 | // theaters list page 42 | // 43 | .when('/theaters', 44 | { 45 | controller: 'TheatersController', 46 | templateUrl: 'views/TheatersControllerView.html' 47 | 48 | }) 49 | 50 | // settings page 51 | // 52 | .when('/settings', 53 | { 54 | controller: 'SettingsController', 55 | templateUrl: 'views/SettingsControllerView.html' 56 | 57 | }) 58 | 59 | // if non of the above routes 60 | // are matched we are setting router 61 | // to redirect to the RootController 62 | .otherwise({ redirectTo: '/'}); 63 | 64 | }); 65 | 66 | pomidoroApp.config(function ($httpProvider){ 67 | $httpProvider.defaults.useXDomain = true; 68 | delete $httpProvider.defaults.headers.common['X-Requested-With']; 69 | }); 70 | 71 | 72 | ///////// CONTROLERS //////////////////////////// 73 | // Below we are going to define all the controllers 74 | // we have defined in the router 75 | // 76 | 77 | // RootController 78 | // 79 | pomidoroApp.controller('RootController', function($scope,recommendedMoviesFactory){ 80 | 81 | // Controller is going to set recommendedMovies 82 | // variable for the $scope object in order for view to 83 | // display its contents on the screen as html 84 | $scope.recommendedMovies = []; 85 | 86 | // Just a housekeeping. 87 | // In the init method we are declaring all the 88 | // neccesarry settings and assignments 89 | init(); 90 | 91 | 92 | function init(){ 93 | 94 | // As we need to wait for $http.get 95 | // request data to be ready we are 96 | // using .then on the promisse received 97 | // from factory 98 | recommendedMoviesFactory.getRecommended().then(function(data) { 99 | //this will execute when the 100 | //AJAX call completes. 101 | $scope.recommendedMovies = data.movies; 102 | $scope.ready = true; 103 | console.log(data.movies); 104 | }); 105 | }; 106 | 107 | }); 108 | 109 | // TheatersController 110 | // 111 | pomidoroApp.controller('TheatersController', function($scope,theatersFactory){ 112 | 113 | // This controller is going to set theaters 114 | // variable for the $scope object in order for view to 115 | // display its contents on the screen as html 116 | $scope.theaters = []; 117 | 118 | // Just a housekeeping. 119 | // In the init method we are declaring all the 120 | // neccesarry settings and assignments 121 | init(); 122 | 123 | function init(){ 124 | $scope.theaters = theatersFactory.getTheaters(); 125 | } 126 | }); 127 | 128 | // SettingsController 129 | // 130 | pomidoroApp.controller('SettingsController', function($scope){ 131 | // This controller is going just to serve the view 132 | }); 133 | 134 | 135 | ///////////// FACTORIES //////////////////////////// 136 | 137 | // Defining recommendedMovies factory 138 | // It has 5 recomended movies and 139 | // makes them awailable to controller 140 | // so it can pass values to the temmplate 141 | // 142 | pomidoroApp.factory('recommendedMoviesFactory', function($http){ 143 | var recommended = [ 144 | { name: 'World War Z', description: 'The story revolves around United Nations employee Gerry Lane (Pitt), who traverses the world in a race against time to stop a pandemic', img: 'img/wardwarz.png'}, 145 | { name: 'Star Trek Into Darkness', description: 'When the crew of the Enterprise is called back home, they find an unstoppable force of terror from within their own organization has detonated the fleet and everything it stands for', img: 'img/intodarkness.png'}, 146 | { name: 'The Iceman', description: 'Appearing to be living the American dream as a devoted husband and father in reality Kuklinski was a ruthless killer-for-hire.', img: 'img/wardwarz.png'}, 147 | { name: 'Iron Man 3', description: 'When Stark finds his personal world destroyed at his enemys hands, he embarks on a harrowing quest to find those responsible.', img: 'img/wardwarz.png'}, 148 | { name: 'Django Unchained', description: 'Set in the South two years before the Civil War, Django Unchained stars Jamie Foxx as Django', img: 'img/wardwarz.png'} 149 | 150 | ]; 151 | 152 | var factory = {}; 153 | factory.getRecommended = function(){ 154 | 155 | 156 | // This is the place for performing http communication 157 | // with 3rd party web services. 158 | var url = 'http://your.backend.url' 159 | 160 | return $http.get(url).then( function(response){ 161 | return response.data; 162 | }) 163 | 164 | } 165 | 166 | return factory; 167 | }); 168 | 169 | // Defining theatersFactory factory 170 | // In this example it has 5 movie theatres 171 | // but in real live application you would 172 | // want it to get this data from the web 173 | // service, based on the the movie selected 174 | // by user 175 | // 176 | pomidoroApp.factory('theatersFactory', function(){ 177 | var theaters = [ 178 | { name: 'Everyman Walton', address: '85-89 High Street London'}, 179 | { name: 'Ambassador Cinemas', address: 'Peacocks Centre Woking'}, 180 | { name: 'ODEON Kingston', address: 'larence Street Kingston Upon Thames'}, 181 | { name: 'Curzon Richmond', address: '3 Water Lane Richmond'}, 182 | { name: 'ODEON Studio Richmond', address: '6 Red Lion Street Richmond'} 183 | ]; 184 | 185 | var factory = {}; 186 | factory.getTheaters = function(){ 187 | 188 | // If performing http communication to receive 189 | // factory data, the best would be to put http 190 | // communication code here and return the results 191 | return theaters; 192 | } 193 | 194 | return factory; 195 | }); 196 | 197 | 198 | 199 | 200 | 201 | -------------------------------------------------------------------------------- /Pomidoro/views/RootControllerView.html: -------------------------------------------------------------------------------- 1 | 10 | 11 |
12 |

Pomidoro App

13 |
14 | 19 | 20 |
42 | 43 |
44 | 58 |
-------------------------------------------------------------------------------- /Pomidoro/views/SettingsControllerView.html: -------------------------------------------------------------------------------- 1 | 10 | 11 |
12 |

Settings

13 |
14 | 15 | 37 | 38 |
39 |
40 |
41 |
42 |
43 | 44 | 45 |
46 |
47 | 48 | 49 |
50 |
51 | 52 | 53 |
54 |
55 | Save changes 56 |
57 |
58 | 59 |
-------------------------------------------------------------------------------- /Pomidoro/views/TheatersControllerView.html: -------------------------------------------------------------------------------- 1 | 10 |
11 | 12 | Back 13 | 14 |

Find a theater

15 |
16 | 21 | 22 | 44 | 45 |
46 | 47 | 57 |
-------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # angularjs mobile web axample 2 | 3 | > this project is no longer actively maintained. its left on the Github as a reference to the tutorial and the example application which has received multiple likes from developer community. 4 | 5 | ### *Angularjs mobile application* 6 | 7 | Example AngularJS application with the use of Ratchet front end framework and featuring animated transitions and `$http` cummunication with 3rd party web services. For code samples see the [practical tutorial on htmlcenter](https://www.htmlcenter.com/blog/how-to-build-angularjs-based-native-mobile-application/). It includes example of primitive server backend coded in PHP as well. 8 | 9 | ### *To install:* 10 | Add the project files to `www` directory of your PhoneGap framework. 11 | Copy over the example `php` file on your backend server and update url paths to start exchanging data over HTTP. 12 | 13 | ### *Feedback:* 14 | created by [@sauliuz](https://twitter.com/sauliuz) and [@popularowl](https://www.popularowl.com) 15 | -------------------------------------------------------------------------------- /Serverside/index.php: -------------------------------------------------------------------------------- 1 |

". 86 | // $response_decoded['matches'][$i]['recipeName'].", it has ".count($response_decoded['matches'][$i]['ingredients'])." ingridients.

"; 87 | // } 88 | 89 | // echo $returnstring; 90 | 91 | 92 | ?> 93 | --------------------------------------------------------------------------------