├── LICENSE
├── README.md
├── css
├── _notes
│ └── dwsync.xml
├── bootstrap-responsive.css
├── bootstrap-responsive.min.css
├── bootstrap.css
├── bootstrap.min.css
└── jquery-ui.css
├── getTicket.html
├── icon.png
├── index.html
├── js
├── bootstrap.js
├── bootstrap.min.js
├── captcha.js
├── data.js
├── get_data.js
├── input.js
├── irctc.js
├── jquery-1.9.1.js
├── jquery-ui.js
├── jquery.js
├── jquery.min.js
├── popup.js
├── serialize-0.2.js
├── stationCodes.js
├── ticket.js
└── trainNo.js
├── manifest.json
├── popup.html
└── ticket.html
/LICENSE:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devendrachaplot/TicketMaster/2e8bd6b09b2fc8f8ca2b40fd80c3a954f8413349/LICENSE
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | TicketMaster
2 | ============
3 | Quick Easy Automatic Ticket Booking on IRCTC (Including tatkal)
4 | Tired of failed bookings, try our new Chrome extension to book tickets. This extension takes in user ticket details for booking on the site IRCTC and does automated ticket booking. When your session expires, we loop it up unless you book your ticket successfully.
5 | Includes automatic captcha filling! ;)
6 |
7 | Download extension from: https://chrome.google.com/webstore/detail/ticketmaster/dcmkppkofblmhjmodckjhbmpamhnlgac
8 |
9 | Demo Video: http://www.youtube.com/watch?v=r4B78jQkq8I
10 |
11 | EDIT: The extension has been discontinued after IRCTC changed their website.
12 |
13 | Credits: Devendra Chaplot, Nishanth Dikkala, Priyank Chhipa, Rahul Gupta
14 |
--------------------------------------------------------------------------------
/css/_notes/dwsync.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/css/bootstrap-responsive.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * Bootstrap Responsive v2.0.3
3 | *
4 | * Copyright 2012 Twitter, Inc
5 | * Licensed under the Apache License v2.0
6 | * http://www.apache.org/licenses/LICENSE-2.0
7 | *
8 | * Designed and built with all the love in the world @twitter by @mdo and @fat.
9 | */
10 |
11 | .clearfix {
12 | *zoom: 1;
13 | }
14 |
15 | .clearfix:before,
16 | .clearfix:after {
17 | display: table;
18 | content: "";
19 | }
20 |
21 | .clearfix:after {
22 | clear: both;
23 | }
24 |
25 | .hide-text {
26 | font: 0/0 a;
27 | color: transparent;
28 | text-shadow: none;
29 | background-color: transparent;
30 | border: 0;
31 | }
32 |
33 | .input-block-level {
34 | display: block;
35 | width: 100%;
36 | min-height: 28px;
37 | -webkit-box-sizing: border-box;
38 | -moz-box-sizing: border-box;
39 | -ms-box-sizing: border-box;
40 | box-sizing: border-box;
41 | }
42 |
43 | .hidden {
44 | display: none;
45 | visibility: hidden;
46 | }
47 |
48 | .visible-phone {
49 | display: none !important;
50 | }
51 |
52 | .visible-tablet {
53 | display: none !important;
54 | }
55 |
56 | .hidden-desktop {
57 | display: none !important;
58 | }
59 |
60 | @media (max-width: 767px) {
61 | .visible-phone {
62 | display: inherit !important;
63 | }
64 | .hidden-phone {
65 | display: none !important;
66 | }
67 | .hidden-desktop {
68 | display: inherit !important;
69 | }
70 | .visible-desktop {
71 | display: none !important;
72 | }
73 | }
74 |
75 | @media (min-width: 768px) and (max-width: 979px) {
76 | .visible-tablet {
77 | display: inherit !important;
78 | }
79 | .hidden-tablet {
80 | display: none !important;
81 | }
82 | .hidden-desktop {
83 | display: inherit !important;
84 | }
85 | .visible-desktop {
86 | display: none !important ;
87 | }
88 | }
89 |
90 | @media (max-width: 480px) {
91 | .nav-collapse {
92 | -webkit-transform: translate3d(0, 0, 0);
93 | }
94 | .page-header h1 small {
95 | display: block;
96 | line-height: 18px;
97 | }
98 | input[type="checkbox"],
99 | input[type="radio"] {
100 | border: 1px solid #ccc;
101 | }
102 | .form-horizontal .control-group > label {
103 | float: none;
104 | width: auto;
105 | padding-top: 0;
106 | text-align: left;
107 | }
108 | .form-horizontal .controls {
109 | margin-left: 0;
110 | }
111 | .form-horizontal .control-list {
112 | padding-top: 0;
113 | }
114 | .form-horizontal .form-actions {
115 | padding-right: 10px;
116 | padding-left: 10px;
117 | }
118 | .modal {
119 | position: absolute;
120 | top: 10px;
121 | right: 10px;
122 | left: 10px;
123 | width: auto;
124 | margin: 0;
125 | }
126 | .modal.fade.in {
127 | top: auto;
128 | }
129 | .modal-header .close {
130 | padding: 10px;
131 | margin: -10px;
132 | }
133 | .carousel-caption {
134 | position: static;
135 | }
136 | }
137 |
138 | @media (max-width: 767px) {
139 | body {
140 | padding-right: 20px;
141 | padding-left: 20px;
142 | }
143 | .navbar-fixed-top,
144 | .navbar-fixed-bottom {
145 | margin-right: -20px;
146 | margin-left: -20px;
147 | }
148 | .container-fluid {
149 | padding: 0;
150 | }
151 | .dl-horizontal dt {
152 | float: none;
153 | width: auto;
154 | clear: none;
155 | text-align: left;
156 | }
157 | .dl-horizontal dd {
158 | margin-left: 0;
159 | }
160 | .container {
161 | width: auto;
162 | }
163 | .row-fluid {
164 | width: 100%;
165 | }
166 | .row,
167 | .thumbnails {
168 | margin-left: 0;
169 | }
170 | [class*="span"],
171 | .row-fluid [class*="span"] {
172 | display: block;
173 | float: none;
174 | width: auto;
175 | margin-left: 0;
176 | }
177 | .input-large,
178 | .input-xlarge,
179 | .input-xxlarge,
180 | input[class*="span"],
181 | select[class*="span"],
182 | textarea[class*="span"],
183 | .uneditable-input {
184 | display: block;
185 | width: 100%;
186 | min-height: 28px;
187 | -webkit-box-sizing: border-box;
188 | -moz-box-sizing: border-box;
189 | -ms-box-sizing: border-box;
190 | box-sizing: border-box;
191 | }
192 | .input-prepend input,
193 | .input-append input,
194 | .input-prepend input[class*="span"],
195 | .input-append input[class*="span"] {
196 | display: inline-block;
197 | width: auto;
198 | }
199 | }
200 |
201 | @media (min-width: 768px) and (max-width: 979px) {
202 | .row {
203 | margin-left: -20px;
204 | *zoom: 1;
205 | }
206 | .row:before,
207 | .row:after {
208 | display: table;
209 | content: "";
210 | }
211 | .row:after {
212 | clear: both;
213 | }
214 | [class*="span"] {
215 | float: left;
216 | margin-left: 20px;
217 | }
218 | .container,
219 | .navbar-fixed-top .container,
220 | .navbar-fixed-bottom .container {
221 | width: 724px;
222 | }
223 | .span12 {
224 | width: 724px;
225 | }
226 | .span11 {
227 | width: 662px;
228 | }
229 | .span10 {
230 | width: 600px;
231 | }
232 | .span9 {
233 | width: 538px;
234 | }
235 | .span8 {
236 | width: 476px;
237 | }
238 | .span7 {
239 | width: 414px;
240 | }
241 | .span6 {
242 | width: 352px;
243 | }
244 | .span5 {
245 | width: 290px;
246 | }
247 | .span4 {
248 | width: 228px;
249 | }
250 | .span3 {
251 | width: 166px;
252 | }
253 | .span2 {
254 | width: 104px;
255 | }
256 | .span1 {
257 | width: 42px;
258 | }
259 | .offset12 {
260 | margin-left: 764px;
261 | }
262 | .offset11 {
263 | margin-left: 702px;
264 | }
265 | .offset10 {
266 | margin-left: 640px;
267 | }
268 | .offset9 {
269 | margin-left: 578px;
270 | }
271 | .offset8 {
272 | margin-left: 516px;
273 | }
274 | .offset7 {
275 | margin-left: 454px;
276 | }
277 | .offset6 {
278 | margin-left: 392px;
279 | }
280 | .offset5 {
281 | margin-left: 330px;
282 | }
283 | .offset4 {
284 | margin-left: 268px;
285 | }
286 | .offset3 {
287 | margin-left: 206px;
288 | }
289 | .offset2 {
290 | margin-left: 144px;
291 | }
292 | .offset1 {
293 | margin-left: 82px;
294 | }
295 | .row-fluid {
296 | width: 100%;
297 | *zoom: 1;
298 | }
299 | .row-fluid:before,
300 | .row-fluid:after {
301 | display: table;
302 | content: "";
303 | }
304 | .row-fluid:after {
305 | clear: both;
306 | }
307 | .row-fluid [class*="span"] {
308 | display: block;
309 | float: left;
310 | width: 100%;
311 | min-height: 28px;
312 | margin-left: 2.762430939%;
313 | *margin-left: 2.709239449638298%;
314 | -webkit-box-sizing: border-box;
315 | -moz-box-sizing: border-box;
316 | -ms-box-sizing: border-box;
317 | box-sizing: border-box;
318 | }
319 | .row-fluid [class*="span"]:first-child {
320 | margin-left: 0;
321 | }
322 | .row-fluid .span12 {
323 | width: 99.999999993%;
324 | *width: 99.9468085036383%;
325 | }
326 | .row-fluid .span11 {
327 | width: 91.436464082%;
328 | *width: 91.38327259263829%;
329 | }
330 | .row-fluid .span10 {
331 | width: 82.87292817100001%;
332 | *width: 82.8197366816383%;
333 | }
334 | .row-fluid .span9 {
335 | width: 74.30939226%;
336 | *width: 74.25620077063829%;
337 | }
338 | .row-fluid .span8 {
339 | width: 65.74585634900001%;
340 | *width: 65.6926648596383%;
341 | }
342 | .row-fluid .span7 {
343 | width: 57.182320438000005%;
344 | *width: 57.129128948638304%;
345 | }
346 | .row-fluid .span6 {
347 | width: 48.618784527%;
348 | *width: 48.5655930376383%;
349 | }
350 | .row-fluid .span5 {
351 | width: 40.055248616%;
352 | *width: 40.0020571266383%;
353 | }
354 | .row-fluid .span4 {
355 | width: 31.491712705%;
356 | *width: 31.4385212156383%;
357 | }
358 | .row-fluid .span3 {
359 | width: 22.928176794%;
360 | *width: 22.874985304638297%;
361 | }
362 | .row-fluid .span2 {
363 | width: 14.364640883%;
364 | *width: 14.311449393638298%;
365 | }
366 | .row-fluid .span1 {
367 | width: 5.801104972%;
368 | *width: 5.747913482638298%;
369 | }
370 | input,
371 | textarea,
372 | .uneditable-input {
373 | margin-left: 0;
374 | }
375 | input.span12,
376 | textarea.span12,
377 | .uneditable-input.span12 {
378 | width: 714px;
379 | }
380 | input.span11,
381 | textarea.span11,
382 | .uneditable-input.span11 {
383 | width: 652px;
384 | }
385 | input.span10,
386 | textarea.span10,
387 | .uneditable-input.span10 {
388 | width: 590px;
389 | }
390 | input.span9,
391 | textarea.span9,
392 | .uneditable-input.span9 {
393 | width: 528px;
394 | }
395 | input.span8,
396 | textarea.span8,
397 | .uneditable-input.span8 {
398 | width: 466px;
399 | }
400 | input.span7,
401 | textarea.span7,
402 | .uneditable-input.span7 {
403 | width: 404px;
404 | }
405 | input.span6,
406 | textarea.span6,
407 | .uneditable-input.span6 {
408 | width: 342px;
409 | }
410 | input.span5,
411 | textarea.span5,
412 | .uneditable-input.span5 {
413 | width: 280px;
414 | }
415 | input.span4,
416 | textarea.span4,
417 | .uneditable-input.span4 {
418 | width: 218px;
419 | }
420 | input.span3,
421 | textarea.span3,
422 | .uneditable-input.span3 {
423 | width: 156px;
424 | }
425 | input.span2,
426 | textarea.span2,
427 | .uneditable-input.span2 {
428 | width: 94px;
429 | }
430 | input.span1,
431 | textarea.span1,
432 | .uneditable-input.span1 {
433 | width: 32px;
434 | }
435 | }
436 |
437 | @media (min-width: 1200px) {
438 | .row {
439 | margin-left: -30px;
440 | *zoom: 1;
441 | }
442 | .row:before,
443 | .row:after {
444 | display: table;
445 | content: "";
446 | }
447 | .row:after {
448 | clear: both;
449 | }
450 | [class*="span"] {
451 | float: left;
452 | margin-left: 30px;
453 | }
454 | .container,
455 | .navbar-fixed-top .container,
456 | .navbar-fixed-bottom .container {
457 | width: 1170px;
458 | }
459 | .span12 {
460 | width: 1170px;
461 | }
462 | .span11 {
463 | width: 1070px;
464 | }
465 | .span10 {
466 | width: 970px;
467 | }
468 | .span9 {
469 | width: 870px;
470 | }
471 | .span8 {
472 | width: 770px;
473 | }
474 | .span7 {
475 | width: 670px;
476 | }
477 | .span6 {
478 | width: 570px;
479 | }
480 | .span5 {
481 | width: 470px;
482 | }
483 | .span4 {
484 | width: 370px;
485 | }
486 | .span3 {
487 | width: 270px;
488 | }
489 | .span2 {
490 | width: 170px;
491 | }
492 | .span1 {
493 | width: 70px;
494 | }
495 | .offset12 {
496 | margin-left: 1230px;
497 | }
498 | .offset11 {
499 | margin-left: 1130px;
500 | }
501 | .offset10 {
502 | margin-left: 1030px;
503 | }
504 | .offset9 {
505 | margin-left: 930px;
506 | }
507 | .offset8 {
508 | margin-left: 830px;
509 | }
510 | .offset7 {
511 | margin-left: 730px;
512 | }
513 | .offset6 {
514 | margin-left: 630px;
515 | }
516 | .offset5 {
517 | margin-left: 530px;
518 | }
519 | .offset4 {
520 | margin-left: 430px;
521 | }
522 | .offset3 {
523 | margin-left: 330px;
524 | }
525 | .offset2 {
526 | margin-left: 230px;
527 | }
528 | .offset1 {
529 | margin-left: 130px;
530 | }
531 | .row-fluid {
532 | width: 100%;
533 | *zoom: 1;
534 | }
535 | .row-fluid:before,
536 | .row-fluid:after {
537 | display: table;
538 | content: "";
539 | }
540 | .row-fluid:after {
541 | clear: both;
542 | }
543 | .row-fluid [class*="span"] {
544 | display: block;
545 | float: left;
546 | width: 100%;
547 | min-height: 28px;
548 | margin-left: 2.564102564%;
549 | *margin-left: 2.510911074638298%;
550 | -webkit-box-sizing: border-box;
551 | -moz-box-sizing: border-box;
552 | -ms-box-sizing: border-box;
553 | box-sizing: border-box;
554 | }
555 | .row-fluid [class*="span"]:first-child {
556 | margin-left: 0;
557 | }
558 | .row-fluid .span12 {
559 | width: 100%;
560 | *width: 99.94680851063829%;
561 | }
562 | .row-fluid .span11 {
563 | width: 91.45299145300001%;
564 | *width: 91.3997999636383%;
565 | }
566 | .row-fluid .span10 {
567 | width: 82.905982906%;
568 | *width: 82.8527914166383%;
569 | }
570 | .row-fluid .span9 {
571 | width: 74.358974359%;
572 | *width: 74.30578286963829%;
573 | }
574 | .row-fluid .span8 {
575 | width: 65.81196581200001%;
576 | *width: 65.7587743226383%;
577 | }
578 | .row-fluid .span7 {
579 | width: 57.264957265%;
580 | *width: 57.2117657756383%;
581 | }
582 | .row-fluid .span6 {
583 | width: 48.717948718%;
584 | *width: 48.6647572286383%;
585 | }
586 | .row-fluid .span5 {
587 | width: 40.170940171000005%;
588 | *width: 40.117748681638304%;
589 | }
590 | .row-fluid .span4 {
591 | width: 31.623931624%;
592 | *width: 31.5707401346383%;
593 | }
594 | .row-fluid .span3 {
595 | width: 23.076923077%;
596 | *width: 23.0237315876383%;
597 | }
598 | .row-fluid .span2 {
599 | width: 14.529914530000001%;
600 | *width: 14.4767230406383%;
601 | }
602 | .row-fluid .span1 {
603 | width: 5.982905983%;
604 | *width: 5.929714493638298%;
605 | }
606 | input,
607 | textarea,
608 | .uneditable-input {
609 | margin-left: 0;
610 | }
611 | input.span12,
612 | textarea.span12,
613 | .uneditable-input.span12 {
614 | width: 1160px;
615 | }
616 | input.span11,
617 | textarea.span11,
618 | .uneditable-input.span11 {
619 | width: 1060px;
620 | }
621 | input.span10,
622 | textarea.span10,
623 | .uneditable-input.span10 {
624 | width: 960px;
625 | }
626 | input.span9,
627 | textarea.span9,
628 | .uneditable-input.span9 {
629 | width: 860px;
630 | }
631 | input.span8,
632 | textarea.span8,
633 | .uneditable-input.span8 {
634 | width: 760px;
635 | }
636 | input.span7,
637 | textarea.span7,
638 | .uneditable-input.span7 {
639 | width: 660px;
640 | }
641 | input.span6,
642 | textarea.span6,
643 | .uneditable-input.span6 {
644 | width: 560px;
645 | }
646 | input.span5,
647 | textarea.span5,
648 | .uneditable-input.span5 {
649 | width: 460px;
650 | }
651 | input.span4,
652 | textarea.span4,
653 | .uneditable-input.span4 {
654 | width: 360px;
655 | }
656 | input.span3,
657 | textarea.span3,
658 | .uneditable-input.span3 {
659 | width: 260px;
660 | }
661 | input.span2,
662 | textarea.span2,
663 | .uneditable-input.span2 {
664 | width: 160px;
665 | }
666 | input.span1,
667 | textarea.span1,
668 | .uneditable-input.span1 {
669 | width: 60px;
670 | }
671 | .thumbnails {
672 | margin-left: -30px;
673 | }
674 | .thumbnails > li {
675 | margin-left: 30px;
676 | }
677 | .row-fluid .thumbnails {
678 | margin-left: 0;
679 | }
680 | }
681 |
682 | @media (max-width: 979px) {
683 | body {
684 | padding-top: 0;
685 | }
686 | .navbar-fixed-top {
687 | position: static;
688 | margin-bottom: 18px;
689 | }
690 | .navbar-fixed-top .navbar-inner {
691 | padding: 5px;
692 | }
693 | .navbar .container {
694 | width: auto;
695 | padding: 0;
696 | }
697 | .navbar .brand {
698 | padding-right: 10px;
699 | padding-left: 10px;
700 | margin: 0 0 0 -5px;
701 | }
702 | .nav-collapse {
703 | clear: both;
704 | }
705 | .nav-collapse .nav {
706 | float: none;
707 | margin: 0 0 9px;
708 | }
709 | .nav-collapse .nav > li {
710 | float: none;
711 | }
712 | .nav-collapse .nav > li > a {
713 | margin-bottom: 2px;
714 | }
715 | .nav-collapse .nav > .divider-vertical {
716 | display: none;
717 | }
718 | .nav-collapse .nav .nav-header {
719 | color: #999999;
720 | text-shadow: none;
721 | }
722 | .nav-collapse .nav > li > a,
723 | .nav-collapse .dropdown-menu a {
724 | padding: 6px 15px;
725 | font-weight: bold;
726 | color: #999999;
727 | -webkit-border-radius: 3px;
728 | -moz-border-radius: 3px;
729 | border-radius: 3px;
730 | }
731 | .nav-collapse .btn {
732 | padding: 4px 10px 4px;
733 | font-weight: normal;
734 | -webkit-border-radius: 4px;
735 | -moz-border-radius: 4px;
736 | border-radius: 4px;
737 | }
738 | .nav-collapse .dropdown-menu li + li a {
739 | margin-bottom: 2px;
740 | }
741 | .nav-collapse .nav > li > a:hover,
742 | .nav-collapse .dropdown-menu a:hover {
743 | background-color: #222222;
744 | }
745 | .nav-collapse.in .btn-group {
746 | padding: 0;
747 | margin-top: 5px;
748 | }
749 | .nav-collapse .dropdown-menu {
750 | position: static;
751 | top: auto;
752 | left: auto;
753 | display: block;
754 | float: none;
755 | max-width: none;
756 | padding: 0;
757 | margin: 0 15px;
758 | background-color: transparent;
759 | border: none;
760 | -webkit-border-radius: 0;
761 | -moz-border-radius: 0;
762 | border-radius: 0;
763 | -webkit-box-shadow: none;
764 | -moz-box-shadow: none;
765 | box-shadow: none;
766 | }
767 | .nav-collapse .dropdown-menu:before,
768 | .nav-collapse .dropdown-menu:after {
769 | display: none;
770 | }
771 | .nav-collapse .dropdown-menu .divider {
772 | display: none;
773 | }
774 | .nav-collapse .navbar-form,
775 | .nav-collapse .navbar-search {
776 | float: none;
777 | padding: 9px 15px;
778 | margin: 9px 0;
779 | border-top: 1px solid #222222;
780 | border-bottom: 1px solid #222222;
781 | -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
782 | -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
783 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
784 | }
785 | .navbar .nav-collapse .nav.pull-right {
786 | float: none;
787 | margin-left: 0;
788 | }
789 | .nav-collapse,
790 | .nav-collapse.collapse {
791 | height: 0;
792 | overflow: hidden;
793 | }
794 | .navbar .btn-navbar {
795 | display: block;
796 | }
797 | .navbar-static .navbar-inner {
798 | padding-right: 10px;
799 | padding-left: 10px;
800 | }
801 | }
802 |
803 | @media (min-width: 980px) {
804 | .nav-collapse.collapse {
805 | height: auto !important;
806 | overflow: visible !important;
807 | }
808 | }
809 |
--------------------------------------------------------------------------------
/css/bootstrap-responsive.min.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * Bootstrap Responsive v2.0.3
3 | *
4 | * Copyright 2012 Twitter, Inc
5 | * Licensed under the Apache License v2.0
6 | * http://www.apache.org/licenses/LICENSE-2.0
7 | *
8 | * Designed and built with all the love in the world @twitter by @mdo and @fat.
9 | */.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:""}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:28px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.hidden{display:none;visibility:hidden}.visible-phone{display:none!important}.visible-tablet{display:none!important}.hidden-desktop{display:none!important}@media(max-width:767px){.visible-phone{display:inherit!important}.hidden-phone{display:none!important}.hidden-desktop{display:inherit!important}.visible-desktop{display:none!important}}@media(min-width:768px) and (max-width:979px){.visible-tablet{display:inherit!important}.hidden-tablet{display:none!important}.hidden-desktop{display:inherit!important}.visible-desktop{display:none!important}}@media(max-width:480px){.nav-collapse{-webkit-transform:translate3d(0,0,0)}.page-header h1 small{display:block;line-height:18px}input[type="checkbox"],input[type="radio"]{border:1px solid #ccc}.form-horizontal .control-group>label{float:none;width:auto;padding-top:0;text-align:left}.form-horizontal .controls{margin-left:0}.form-horizontal .control-list{padding-top:0}.form-horizontal .form-actions{padding-right:10px;padding-left:10px}.modal{position:absolute;top:10px;right:10px;left:10px;width:auto;margin:0}.modal.fade.in{top:auto}.modal-header .close{padding:10px;margin:-10px}.carousel-caption{position:static}}@media(max-width:767px){body{padding-right:20px;padding-left:20px}.navbar-fixed-top,.navbar-fixed-bottom{margin-right:-20px;margin-left:-20px}.container-fluid{padding:0}.dl-horizontal dt{float:none;width:auto;clear:none;text-align:left}.dl-horizontal dd{margin-left:0}.container{width:auto}.row-fluid{width:100%}.row,.thumbnails{margin-left:0}[class*="span"],.row-fluid [class*="span"]{display:block;float:none;width:auto;margin-left:0}.input-large,.input-xlarge,.input-xxlarge,input[class*="span"],select[class*="span"],textarea[class*="span"],.uneditable-input{display:block;width:100%;min-height:28px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.input-prepend input,.input-append input,.input-prepend input[class*="span"],.input-append input[class*="span"]{display:inline-block;width:auto}}@media(min-width:768px) and (max-width:979px){.row{margin-left:-20px;*zoom:1}.row:before,.row:after{display:table;content:""}.row:after{clear:both}[class*="span"]{float:left;margin-left:20px}.container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:724px}.span12{width:724px}.span11{width:662px}.span10{width:600px}.span9{width:538px}.span8{width:476px}.span7{width:414px}.span6{width:352px}.span5{width:290px}.span4{width:228px}.span3{width:166px}.span2{width:104px}.span1{width:42px}.offset12{margin-left:764px}.offset11{margin-left:702px}.offset10{margin-left:640px}.offset9{margin-left:578px}.offset8{margin-left:516px}.offset7{margin-left:454px}.offset6{margin-left:392px}.offset5{margin-left:330px}.offset4{margin-left:268px}.offset3{margin-left:206px}.offset2{margin-left:144px}.offset1{margin-left:82px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:28px;margin-left:2.762430939%;*margin-left:2.709239449638298%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .span12{width:99.999999993%;*width:99.9468085036383%}.row-fluid .span11{width:91.436464082%;*width:91.38327259263829%}.row-fluid .span10{width:82.87292817100001%;*width:82.8197366816383%}.row-fluid .span9{width:74.30939226%;*width:74.25620077063829%}.row-fluid .span8{width:65.74585634900001%;*width:65.6926648596383%}.row-fluid .span7{width:57.182320438000005%;*width:57.129128948638304%}.row-fluid .span6{width:48.618784527%;*width:48.5655930376383%}.row-fluid .span5{width:40.055248616%;*width:40.0020571266383%}.row-fluid .span4{width:31.491712705%;*width:31.4385212156383%}.row-fluid .span3{width:22.928176794%;*width:22.874985304638297%}.row-fluid .span2{width:14.364640883%;*width:14.311449393638298%}.row-fluid .span1{width:5.801104972%;*width:5.747913482638298%}input,textarea,.uneditable-input{margin-left:0}input.span12,textarea.span12,.uneditable-input.span12{width:714px}input.span11,textarea.span11,.uneditable-input.span11{width:652px}input.span10,textarea.span10,.uneditable-input.span10{width:590px}input.span9,textarea.span9,.uneditable-input.span9{width:528px}input.span8,textarea.span8,.uneditable-input.span8{width:466px}input.span7,textarea.span7,.uneditable-input.span7{width:404px}input.span6,textarea.span6,.uneditable-input.span6{width:342px}input.span5,textarea.span5,.uneditable-input.span5{width:280px}input.span4,textarea.span4,.uneditable-input.span4{width:218px}input.span3,textarea.span3,.uneditable-input.span3{width:156px}input.span2,textarea.span2,.uneditable-input.span2{width:94px}input.span1,textarea.span1,.uneditable-input.span1{width:32px}}@media(min-width:1200px){.row{margin-left:-30px;*zoom:1}.row:before,.row:after{display:table;content:""}.row:after{clear:both}[class*="span"]{float:left;margin-left:30px}.container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:1170px}.span12{width:1170px}.span11{width:1070px}.span10{width:970px}.span9{width:870px}.span8{width:770px}.span7{width:670px}.span6{width:570px}.span5{width:470px}.span4{width:370px}.span3{width:270px}.span2{width:170px}.span1{width:70px}.offset12{margin-left:1230px}.offset11{margin-left:1130px}.offset10{margin-left:1030px}.offset9{margin-left:930px}.offset8{margin-left:830px}.offset7{margin-left:730px}.offset6{margin-left:630px}.offset5{margin-left:530px}.offset4{margin-left:430px}.offset3{margin-left:330px}.offset2{margin-left:230px}.offset1{margin-left:130px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:28px;margin-left:2.564102564%;*margin-left:2.510911074638298%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.45299145300001%;*width:91.3997999636383%}.row-fluid .span10{width:82.905982906%;*width:82.8527914166383%}.row-fluid .span9{width:74.358974359%;*width:74.30578286963829%}.row-fluid .span8{width:65.81196581200001%;*width:65.7587743226383%}.row-fluid .span7{width:57.264957265%;*width:57.2117657756383%}.row-fluid .span6{width:48.717948718%;*width:48.6647572286383%}.row-fluid .span5{width:40.170940171000005%;*width:40.117748681638304%}.row-fluid .span4{width:31.623931624%;*width:31.5707401346383%}.row-fluid .span3{width:23.076923077%;*width:23.0237315876383%}.row-fluid .span2{width:14.529914530000001%;*width:14.4767230406383%}.row-fluid .span1{width:5.982905983%;*width:5.929714493638298%}input,textarea,.uneditable-input{margin-left:0}input.span12,textarea.span12,.uneditable-input.span12{width:1160px}input.span11,textarea.span11,.uneditable-input.span11{width:1060px}input.span10,textarea.span10,.uneditable-input.span10{width:960px}input.span9,textarea.span9,.uneditable-input.span9{width:860px}input.span8,textarea.span8,.uneditable-input.span8{width:760px}input.span7,textarea.span7,.uneditable-input.span7{width:660px}input.span6,textarea.span6,.uneditable-input.span6{width:560px}input.span5,textarea.span5,.uneditable-input.span5{width:460px}input.span4,textarea.span4,.uneditable-input.span4{width:360px}input.span3,textarea.span3,.uneditable-input.span3{width:260px}input.span2,textarea.span2,.uneditable-input.span2{width:160px}input.span1,textarea.span1,.uneditable-input.span1{width:60px}.thumbnails{margin-left:-30px}.thumbnails>li{margin-left:30px}.row-fluid .thumbnails{margin-left:0}}@media(max-width:979px){body{padding-top:0}.navbar-fixed-top{position:static;margin-bottom:18px}.navbar-fixed-top .navbar-inner{padding:5px}.navbar .container{width:auto;padding:0}.navbar .brand{padding-right:10px;padding-left:10px;margin:0 0 0 -5px}.nav-collapse{clear:both}.nav-collapse .nav{float:none;margin:0 0 9px}.nav-collapse .nav>li{float:none}.nav-collapse .nav>li>a{margin-bottom:2px}.nav-collapse .nav>.divider-vertical{display:none}.nav-collapse .nav .nav-header{color:#999;text-shadow:none}.nav-collapse .nav>li>a,.nav-collapse .dropdown-menu a{padding:6px 15px;font-weight:bold;color:#999;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.nav-collapse .btn{padding:4px 10px 4px;font-weight:normal;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.nav-collapse .dropdown-menu li+li a{margin-bottom:2px}.nav-collapse .nav>li>a:hover,.nav-collapse .dropdown-menu a:hover{background-color:#222}.nav-collapse.in .btn-group{padding:0;margin-top:5px}.nav-collapse .dropdown-menu{position:static;top:auto;left:auto;display:block;float:none;max-width:none;padding:0;margin:0 15px;background-color:transparent;border:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.nav-collapse .dropdown-menu:before,.nav-collapse .dropdown-menu:after{display:none}.nav-collapse .dropdown-menu .divider{display:none}.nav-collapse .navbar-form,.nav-collapse .navbar-search{float:none;padding:9px 15px;margin:9px 0;border-top:1px solid #222;border-bottom:1px solid #222;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1)}.navbar .nav-collapse .nav.pull-right{float:none;margin-left:0}.nav-collapse,.nav-collapse.collapse{height:0;overflow:hidden}.navbar .btn-navbar{display:block}.navbar-static .navbar-inner{padding-right:10px;padding-left:10px}}@media(min-width:980px){.nav-collapse.collapse{height:auto!important;overflow:visible!important}}
10 |
--------------------------------------------------------------------------------
/css/jquery-ui.css:
--------------------------------------------------------------------------------
1 | /*! jQuery UI - v1.10.3 - 2013-05-03
2 | * http://jqueryui.com
3 | * Includes: jquery.ui.core.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css
4 | * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana%2CArial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=highlight_soft&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=flat&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=glass&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=glass&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=glass&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
5 | * Copyright 2013 jQuery Foundation and other contributors Licensed MIT */
6 |
7 | /* Layout helpers
8 | ----------------------------------*/
9 | .ui-helper-hidden {
10 | display: none;
11 | }
12 | .ui-helper-hidden-accessible {
13 | border: 0;
14 | clip: rect(0 0 0 0);
15 | height: 1px;
16 | margin: -1px;
17 | overflow: hidden;
18 | padding: 0;
19 | position: absolute;
20 | width: 1px;
21 | }
22 | .ui-helper-reset {
23 | margin: 0;
24 | padding: 0;
25 | border: 0;
26 | outline: 0;
27 | line-height: 1.3;
28 | text-decoration: none;
29 | font-size: 100%;
30 | list-style: none;
31 | }
32 | .ui-helper-clearfix:before,
33 | .ui-helper-clearfix:after {
34 | content: "";
35 | display: table;
36 | border-collapse: collapse;
37 | }
38 | .ui-helper-clearfix:after {
39 | clear: both;
40 | }
41 | .ui-helper-clearfix {
42 | min-height: 0; /* support: IE7 */
43 | }
44 | .ui-helper-zfix {
45 | width: 100%;
46 | height: 100%;
47 | top: 0;
48 | left: 0;
49 | position: absolute;
50 | opacity: 0;
51 | filter:Alpha(Opacity=0);
52 | }
53 |
54 | .ui-front {
55 | z-index: 100;
56 | }
57 |
58 |
59 | /* Interaction Cues
60 | ----------------------------------*/
61 | .ui-state-disabled {
62 | cursor: default !important;
63 | }
64 |
65 |
66 | /* Icons
67 | ----------------------------------*/
68 |
69 | /* states and images */
70 | .ui-icon {
71 | display: block;
72 | text-indent: -99999px;
73 | overflow: hidden;
74 | background-repeat: no-repeat;
75 | }
76 |
77 |
78 | /* Misc visuals
79 | ----------------------------------*/
80 |
81 | /* Overlays */
82 | .ui-widget-overlay {
83 | position: fixed;
84 | top: 0;
85 | left: 0;
86 | width: 100%;
87 | height: 100%;
88 | }
89 | .ui-accordion .ui-accordion-header {
90 | display: block;
91 | cursor: pointer;
92 | position: relative;
93 | margin-top: 2px;
94 | padding: .5em .5em .5em .7em;
95 | min-height: 0; /* support: IE7 */
96 | }
97 | .ui-accordion .ui-accordion-icons {
98 | padding-left: 2.2em;
99 | }
100 | .ui-accordion .ui-accordion-noicons {
101 | padding-left: .7em;
102 | }
103 | .ui-accordion .ui-accordion-icons .ui-accordion-icons {
104 | padding-left: 2.2em;
105 | }
106 | .ui-accordion .ui-accordion-header .ui-accordion-header-icon {
107 | position: absolute;
108 | left: .5em;
109 | top: 50%;
110 | margin-top: -8px;
111 | }
112 | .ui-accordion .ui-accordion-content {
113 | padding: 1em 2.2em;
114 | border-top: 0;
115 | overflow: auto;
116 | }
117 | .ui-autocomplete {
118 | position: absolute;
119 | top: 0;
120 | left: 0;
121 | cursor: default;
122 | }
123 | .ui-button {
124 | display: inline-block;
125 | position: relative;
126 | padding: 0;
127 | line-height: normal;
128 | margin-right: .1em;
129 | cursor: pointer;
130 | vertical-align: middle;
131 | text-align: center;
132 | overflow: visible; /* removes extra width in IE */
133 | }
134 | .ui-button,
135 | .ui-button:link,
136 | .ui-button:visited,
137 | .ui-button:hover,
138 | .ui-button:active {
139 | text-decoration: none;
140 | }
141 | /* to make room for the icon, a width needs to be set here */
142 | .ui-button-icon-only {
143 | width: 2.2em;
144 | }
145 | /* button elements seem to need a little more width */
146 | button.ui-button-icon-only {
147 | width: 2.4em;
148 | }
149 | .ui-button-icons-only {
150 | width: 3.4em;
151 | }
152 | button.ui-button-icons-only {
153 | width: 3.7em;
154 | }
155 |
156 | /* button text element */
157 | .ui-button .ui-button-text {
158 | display: block;
159 | line-height: normal;
160 | }
161 | .ui-button-text-only .ui-button-text {
162 | padding: .4em 1em;
163 | }
164 | .ui-button-icon-only .ui-button-text,
165 | .ui-button-icons-only .ui-button-text {
166 | padding: .4em;
167 | text-indent: -9999999px;
168 | }
169 | .ui-button-text-icon-primary .ui-button-text,
170 | .ui-button-text-icons .ui-button-text {
171 | padding: .4em 1em .4em 2.1em;
172 | }
173 | .ui-button-text-icon-secondary .ui-button-text,
174 | .ui-button-text-icons .ui-button-text {
175 | padding: .4em 2.1em .4em 1em;
176 | }
177 | .ui-button-text-icons .ui-button-text {
178 | padding-left: 2.1em;
179 | padding-right: 2.1em;
180 | }
181 | /* no icon support for input elements, provide padding by default */
182 | input.ui-button {
183 | padding: .4em 1em;
184 | }
185 |
186 | /* button icon element(s) */
187 | .ui-button-icon-only .ui-icon,
188 | .ui-button-text-icon-primary .ui-icon,
189 | .ui-button-text-icon-secondary .ui-icon,
190 | .ui-button-text-icons .ui-icon,
191 | .ui-button-icons-only .ui-icon {
192 | position: absolute;
193 | top: 50%;
194 | margin-top: -8px;
195 | }
196 | .ui-button-icon-only .ui-icon {
197 | left: 50%;
198 | margin-left: -8px;
199 | }
200 | .ui-button-text-icon-primary .ui-button-icon-primary,
201 | .ui-button-text-icons .ui-button-icon-primary,
202 | .ui-button-icons-only .ui-button-icon-primary {
203 | left: .5em;
204 | }
205 | .ui-button-text-icon-secondary .ui-button-icon-secondary,
206 | .ui-button-text-icons .ui-button-icon-secondary,
207 | .ui-button-icons-only .ui-button-icon-secondary {
208 | right: .5em;
209 | }
210 |
211 | /* button sets */
212 | .ui-buttonset {
213 | margin-right: 7px;
214 | }
215 | .ui-buttonset .ui-button {
216 | margin-left: 0;
217 | margin-right: -.3em;
218 | }
219 |
220 | /* workarounds */
221 | /* reset extra padding in Firefox, see h5bp.com/l */
222 | input.ui-button::-moz-focus-inner,
223 | button.ui-button::-moz-focus-inner {
224 | border: 0;
225 | padding: 0;
226 | }
227 | .ui-datepicker {
228 | width: 17em;
229 | padding: .2em .2em 0;
230 | display: none;
231 | }
232 | .ui-datepicker .ui-datepicker-header {
233 | position: relative;
234 | padding: .2em 0;
235 | }
236 | .ui-datepicker .ui-datepicker-prev,
237 | .ui-datepicker .ui-datepicker-next {
238 | position: absolute;
239 | top: 2px;
240 | width: 1.8em;
241 | height: 1.8em;
242 | }
243 | .ui-datepicker .ui-datepicker-prev-hover,
244 | .ui-datepicker .ui-datepicker-next-hover {
245 | top: 1px;
246 | }
247 | .ui-datepicker .ui-datepicker-prev {
248 | left: 2px;
249 | }
250 | .ui-datepicker .ui-datepicker-next {
251 | right: 2px;
252 | }
253 | .ui-datepicker .ui-datepicker-prev-hover {
254 | left: 1px;
255 | }
256 | .ui-datepicker .ui-datepicker-next-hover {
257 | right: 1px;
258 | }
259 | .ui-datepicker .ui-datepicker-prev span,
260 | .ui-datepicker .ui-datepicker-next span {
261 | display: block;
262 | position: absolute;
263 | left: 50%;
264 | margin-left: -8px;
265 | top: 50%;
266 | margin-top: -8px;
267 | }
268 | .ui-datepicker .ui-datepicker-title {
269 | margin: 0 2.3em;
270 | line-height: 1.8em;
271 | text-align: center;
272 | }
273 | .ui-datepicker .ui-datepicker-title select {
274 | font-size: 1em;
275 | margin: 1px 0;
276 | }
277 | .ui-datepicker select.ui-datepicker-month-year {
278 | width: 100%;
279 | }
280 | .ui-datepicker select.ui-datepicker-month,
281 | .ui-datepicker select.ui-datepicker-year {
282 | width: 49%;
283 | }
284 | .ui-datepicker table {
285 | width: 100%;
286 | font-size: .9em;
287 | border-collapse: collapse;
288 | margin: 0 0 .4em;
289 | }
290 | .ui-datepicker th {
291 | padding: .7em .3em;
292 | text-align: center;
293 | font-weight: bold;
294 | border: 0;
295 | }
296 | .ui-datepicker td {
297 | border: 0;
298 | padding: 1px;
299 | }
300 | .ui-datepicker td span,
301 | .ui-datepicker td a {
302 | display: block;
303 | padding: .2em;
304 | text-align: right;
305 | text-decoration: none;
306 | }
307 | .ui-datepicker .ui-datepicker-buttonpane {
308 | background-image: none;
309 | margin: .7em 0 0 0;
310 | padding: 0 .2em;
311 | border-left: 0;
312 | border-right: 0;
313 | border-bottom: 0;
314 | }
315 | .ui-datepicker .ui-datepicker-buttonpane button {
316 | float: right;
317 | margin: .5em .2em .4em;
318 | cursor: pointer;
319 | padding: .2em .6em .3em .6em;
320 | width: auto;
321 | overflow: visible;
322 | }
323 | .ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
324 | float: left;
325 | }
326 |
327 | /* with multiple calendars */
328 | .ui-datepicker.ui-datepicker-multi {
329 | width: auto;
330 | }
331 | .ui-datepicker-multi .ui-datepicker-group {
332 | float: left;
333 | }
334 | .ui-datepicker-multi .ui-datepicker-group table {
335 | width: 95%;
336 | margin: 0 auto .4em;
337 | }
338 | .ui-datepicker-multi-2 .ui-datepicker-group {
339 | width: 50%;
340 | }
341 | .ui-datepicker-multi-3 .ui-datepicker-group {
342 | width: 33.3%;
343 | }
344 | .ui-datepicker-multi-4 .ui-datepicker-group {
345 | width: 25%;
346 | }
347 | .ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,
348 | .ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header {
349 | border-left-width: 0;
350 | }
351 | .ui-datepicker-multi .ui-datepicker-buttonpane {
352 | clear: left;
353 | }
354 | .ui-datepicker-row-break {
355 | clear: both;
356 | width: 100%;
357 | font-size: 0;
358 | }
359 |
360 | /* RTL support */
361 | .ui-datepicker-rtl {
362 | direction: rtl;
363 | }
364 | .ui-datepicker-rtl .ui-datepicker-prev {
365 | right: 2px;
366 | left: auto;
367 | }
368 | .ui-datepicker-rtl .ui-datepicker-next {
369 | left: 2px;
370 | right: auto;
371 | }
372 | .ui-datepicker-rtl .ui-datepicker-prev:hover {
373 | right: 1px;
374 | left: auto;
375 | }
376 | .ui-datepicker-rtl .ui-datepicker-next:hover {
377 | left: 1px;
378 | right: auto;
379 | }
380 | .ui-datepicker-rtl .ui-datepicker-buttonpane {
381 | clear: right;
382 | }
383 | .ui-datepicker-rtl .ui-datepicker-buttonpane button {
384 | float: left;
385 | }
386 | .ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,
387 | .ui-datepicker-rtl .ui-datepicker-group {
388 | float: right;
389 | }
390 | .ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,
391 | .ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header {
392 | border-right-width: 0;
393 | border-left-width: 1px;
394 | }
395 | .ui-dialog {
396 | position: absolute;
397 | top: 0;
398 | left: 0;
399 | padding: .2em;
400 | outline: 0;
401 | }
402 | .ui-dialog .ui-dialog-titlebar {
403 | padding: .4em 1em;
404 | position: relative;
405 | }
406 | .ui-dialog .ui-dialog-title {
407 | float: left;
408 | margin: .1em 0;
409 | white-space: nowrap;
410 | width: 90%;
411 | overflow: hidden;
412 | text-overflow: ellipsis;
413 | }
414 | .ui-dialog .ui-dialog-titlebar-close {
415 | position: absolute;
416 | right: .3em;
417 | top: 50%;
418 | width: 21px;
419 | margin: -10px 0 0 0;
420 | padding: 1px;
421 | height: 20px;
422 | }
423 | .ui-dialog .ui-dialog-content {
424 | position: relative;
425 | border: 0;
426 | padding: .5em 1em;
427 | background: none;
428 | overflow: auto;
429 | }
430 | .ui-dialog .ui-dialog-buttonpane {
431 | text-align: left;
432 | border-width: 1px 0 0 0;
433 | background-image: none;
434 | margin-top: .5em;
435 | padding: .3em 1em .5em .4em;
436 | }
437 | .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
438 | float: right;
439 | }
440 | .ui-dialog .ui-dialog-buttonpane button {
441 | margin: .5em .4em .5em 0;
442 | cursor: pointer;
443 | }
444 | .ui-dialog .ui-resizable-se {
445 | width: 12px;
446 | height: 12px;
447 | right: -5px;
448 | bottom: -5px;
449 | background-position: 16px 16px;
450 | }
451 | .ui-draggable .ui-dialog-titlebar {
452 | cursor: move;
453 | }
454 | .ui-menu {
455 | list-style: none;
456 | padding: 2px;
457 | margin: 0;
458 | display: block;
459 | outline: none;
460 | }
461 | .ui-menu .ui-menu {
462 | margin-top: -3px;
463 | position: absolute;
464 | }
465 | .ui-menu .ui-menu-item {
466 | margin: 0;
467 | padding: 0;
468 | width: 100%;
469 | /* support: IE10, see #8844 */
470 | list-style-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
471 | }
472 | .ui-menu .ui-menu-divider {
473 | margin: 5px -2px 5px -2px;
474 | height: 0;
475 | font-size: 0;
476 | line-height: 0;
477 | border-width: 1px 0 0 0;
478 | }
479 | .ui-menu .ui-menu-item a {
480 | text-decoration: none;
481 | display: block;
482 | padding: 2px .4em;
483 | line-height: 1.5;
484 | min-height: 0; /* support: IE7 */
485 | font-weight: normal;
486 | }
487 | .ui-menu .ui-menu-item a.ui-state-focus,
488 | .ui-menu .ui-menu-item a.ui-state-active {
489 | font-weight: normal;
490 | margin: -1px;
491 | }
492 |
493 | .ui-menu .ui-state-disabled {
494 | font-weight: normal;
495 | margin: .4em 0 .2em;
496 | line-height: 1.5;
497 | }
498 | .ui-menu .ui-state-disabled a {
499 | cursor: default;
500 | }
501 |
502 | /* icon support */
503 | .ui-menu-icons {
504 | position: relative;
505 | }
506 | .ui-menu-icons .ui-menu-item a {
507 | position: relative;
508 | padding-left: 2em;
509 | }
510 |
511 | /* left-aligned */
512 | .ui-menu .ui-icon {
513 | position: absolute;
514 | top: .2em;
515 | left: .2em;
516 | }
517 |
518 | /* right-aligned */
519 | .ui-menu .ui-menu-icon {
520 | position: static;
521 | float: right;
522 | }
523 | .ui-progressbar {
524 | height: 2em;
525 | text-align: left;
526 | overflow: hidden;
527 | }
528 | .ui-progressbar .ui-progressbar-value {
529 | margin: -1px;
530 | height: 100%;
531 | }
532 | .ui-progressbar .ui-progressbar-overlay {
533 | background: url("images/animated-overlay.gif");
534 | height: 100%;
535 | filter: alpha(opacity=25);
536 | opacity: 0.25;
537 | }
538 | .ui-progressbar-indeterminate .ui-progressbar-value {
539 | background-image: none;
540 | }
541 | .ui-resizable {
542 | position: relative;
543 | }
544 | .ui-resizable-handle {
545 | position: absolute;
546 | font-size: 0.1px;
547 | display: block;
548 | }
549 | .ui-resizable-disabled .ui-resizable-handle,
550 | .ui-resizable-autohide .ui-resizable-handle {
551 | display: none;
552 | }
553 | .ui-resizable-n {
554 | cursor: n-resize;
555 | height: 7px;
556 | width: 100%;
557 | top: -5px;
558 | left: 0;
559 | }
560 | .ui-resizable-s {
561 | cursor: s-resize;
562 | height: 7px;
563 | width: 100%;
564 | bottom: -5px;
565 | left: 0;
566 | }
567 | .ui-resizable-e {
568 | cursor: e-resize;
569 | width: 7px;
570 | right: -5px;
571 | top: 0;
572 | height: 100%;
573 | }
574 | .ui-resizable-w {
575 | cursor: w-resize;
576 | width: 7px;
577 | left: -5px;
578 | top: 0;
579 | height: 100%;
580 | }
581 | .ui-resizable-se {
582 | cursor: se-resize;
583 | width: 12px;
584 | height: 12px;
585 | right: 1px;
586 | bottom: 1px;
587 | }
588 | .ui-resizable-sw {
589 | cursor: sw-resize;
590 | width: 9px;
591 | height: 9px;
592 | left: -5px;
593 | bottom: -5px;
594 | }
595 | .ui-resizable-nw {
596 | cursor: nw-resize;
597 | width: 9px;
598 | height: 9px;
599 | left: -5px;
600 | top: -5px;
601 | }
602 | .ui-resizable-ne {
603 | cursor: ne-resize;
604 | width: 9px;
605 | height: 9px;
606 | right: -5px;
607 | top: -5px;
608 | }
609 | .ui-selectable-helper {
610 | position: absolute;
611 | z-index: 100;
612 | border: 1px dotted black;
613 | }
614 | .ui-slider {
615 | position: relative;
616 | text-align: left;
617 | }
618 | .ui-slider .ui-slider-handle {
619 | position: absolute;
620 | z-index: 2;
621 | width: 1.2em;
622 | height: 1.2em;
623 | cursor: default;
624 | }
625 | .ui-slider .ui-slider-range {
626 | position: absolute;
627 | z-index: 1;
628 | font-size: .7em;
629 | display: block;
630 | border: 0;
631 | background-position: 0 0;
632 | }
633 |
634 | /* For IE8 - See #6727 */
635 | .ui-slider.ui-state-disabled .ui-slider-handle,
636 | .ui-slider.ui-state-disabled .ui-slider-range {
637 | filter: inherit;
638 | }
639 |
640 | .ui-slider-horizontal {
641 | height: .8em;
642 | }
643 | .ui-slider-horizontal .ui-slider-handle {
644 | top: -.3em;
645 | margin-left: -.6em;
646 | }
647 | .ui-slider-horizontal .ui-slider-range {
648 | top: 0;
649 | height: 100%;
650 | }
651 | .ui-slider-horizontal .ui-slider-range-min {
652 | left: 0;
653 | }
654 | .ui-slider-horizontal .ui-slider-range-max {
655 | right: 0;
656 | }
657 |
658 | .ui-slider-vertical {
659 | width: .8em;
660 | height: 100px;
661 | }
662 | .ui-slider-vertical .ui-slider-handle {
663 | left: -.3em;
664 | margin-left: 0;
665 | margin-bottom: -.6em;
666 | }
667 | .ui-slider-vertical .ui-slider-range {
668 | left: 0;
669 | width: 100%;
670 | }
671 | .ui-slider-vertical .ui-slider-range-min {
672 | bottom: 0;
673 | }
674 | .ui-slider-vertical .ui-slider-range-max {
675 | top: 0;
676 | }
677 | .ui-spinner {
678 | position: relative;
679 | display: inline-block;
680 | overflow: hidden;
681 | padding: 0;
682 | vertical-align: middle;
683 | }
684 | .ui-spinner-input {
685 | border: none;
686 | background: none;
687 | color: inherit;
688 | padding: 0;
689 | margin: .2em 0;
690 | vertical-align: middle;
691 | margin-left: .4em;
692 | margin-right: 22px;
693 | }
694 | .ui-spinner-button {
695 | width: 16px;
696 | height: 50%;
697 | font-size: .5em;
698 | padding: 0;
699 | margin: 0;
700 | text-align: center;
701 | position: absolute;
702 | cursor: default;
703 | display: block;
704 | overflow: hidden;
705 | right: 0;
706 | }
707 | /* more specificity required here to overide default borders */
708 | .ui-spinner a.ui-spinner-button {
709 | border-top: none;
710 | border-bottom: none;
711 | border-right: none;
712 | }
713 | /* vertical centre icon */
714 | .ui-spinner .ui-icon {
715 | position: absolute;
716 | margin-top: -8px;
717 | top: 50%;
718 | left: 0;
719 | }
720 | .ui-spinner-up {
721 | top: 0;
722 | }
723 | .ui-spinner-down {
724 | bottom: 0;
725 | }
726 |
727 | /* TR overrides */
728 | .ui-spinner .ui-icon-triangle-1-s {
729 | /* need to fix icons sprite */
730 | background-position: -65px -16px;
731 | }
732 | .ui-tabs {
733 | position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
734 | padding: .2em;
735 | }
736 | .ui-tabs .ui-tabs-nav {
737 | margin: 0;
738 | padding: .2em .2em 0;
739 | }
740 | .ui-tabs .ui-tabs-nav li {
741 | list-style: none;
742 | float: left;
743 | position: relative;
744 | top: 0;
745 | margin: 1px .2em 0 0;
746 | border-bottom-width: 0;
747 | padding: 0;
748 | white-space: nowrap;
749 | }
750 | .ui-tabs .ui-tabs-nav li a {
751 | float: left;
752 | padding: .5em 1em;
753 | text-decoration: none;
754 | }
755 | .ui-tabs .ui-tabs-nav li.ui-tabs-active {
756 | margin-bottom: -1px;
757 | padding-bottom: 1px;
758 | }
759 | .ui-tabs .ui-tabs-nav li.ui-tabs-active a,
760 | .ui-tabs .ui-tabs-nav li.ui-state-disabled a,
761 | .ui-tabs .ui-tabs-nav li.ui-tabs-loading a {
762 | cursor: text;
763 | }
764 | .ui-tabs .ui-tabs-nav li a, /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
765 | .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a {
766 | cursor: pointer;
767 | }
768 | .ui-tabs .ui-tabs-panel {
769 | display: block;
770 | border-width: 0;
771 | padding: 1em 1.4em;
772 | background: none;
773 | }
774 | .ui-tooltip {
775 | padding: 8px;
776 | position: absolute;
777 | z-index: 9999;
778 | max-width: 300px;
779 | -webkit-box-shadow: 0 0 5px #aaa;
780 | box-shadow: 0 0 5px #aaa;
781 | }
782 | body .ui-tooltip {
783 | border-width: 2px;
784 | }
785 |
786 | /* Component containers
787 | ----------------------------------*/
788 | .ui-widget {
789 | font-family: Verdana,Arial,sans-serif;
790 | font-size: 1.1em;
791 | }
792 | .ui-widget .ui-widget {
793 | font-size: 1em;
794 | }
795 | .ui-widget input,
796 | .ui-widget select,
797 | .ui-widget textarea,
798 | .ui-widget button {
799 | font-family: Verdana,Arial,sans-serif;
800 | font-size: 1em;
801 | }
802 | .ui-widget-content {
803 | border: 1px solid #aaaaaa;
804 | background: #ffffff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x;
805 | color: #222222;
806 | }
807 | .ui-widget-content a {
808 | color: #222222;
809 | }
810 | .ui-widget-header {
811 | border: 1px solid #aaaaaa;
812 | background: #cccccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x;
813 | color: #222222;
814 | font-weight: bold;
815 | }
816 | .ui-widget-header a {
817 | color: #222222;
818 | }
819 |
820 | /* Interaction states
821 | ----------------------------------*/
822 | .ui-state-default,
823 | .ui-widget-content .ui-state-default,
824 | .ui-widget-header .ui-state-default {
825 | border: 1px solid #d3d3d3;
826 | background: #e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;
827 | font-weight: normal;
828 | color: #555555;
829 | }
830 | .ui-state-default a,
831 | .ui-state-default a:link,
832 | .ui-state-default a:visited {
833 | color: #555555;
834 | text-decoration: none;
835 | }
836 | .ui-state-hover,
837 | .ui-widget-content .ui-state-hover,
838 | .ui-widget-header .ui-state-hover,
839 | .ui-state-focus,
840 | .ui-widget-content .ui-state-focus,
841 | .ui-widget-header .ui-state-focus {
842 | border: 1px solid #999999;
843 | background: #dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x;
844 | font-weight: normal;
845 | color: #212121;
846 | }
847 | .ui-state-hover a,
848 | .ui-state-hover a:hover,
849 | .ui-state-hover a:link,
850 | .ui-state-hover a:visited {
851 | color: #212121;
852 | text-decoration: none;
853 | }
854 | .ui-state-active,
855 | .ui-widget-content .ui-state-active,
856 | .ui-widget-header .ui-state-active {
857 | border: 1px solid #aaaaaa;
858 | background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;
859 | font-weight: normal;
860 | color: #212121;
861 | }
862 | .ui-state-active a,
863 | .ui-state-active a:link,
864 | .ui-state-active a:visited {
865 | color: #212121;
866 | text-decoration: none;
867 | }
868 |
869 | /* Interaction Cues
870 | ----------------------------------*/
871 | .ui-state-highlight,
872 | .ui-widget-content .ui-state-highlight,
873 | .ui-widget-header .ui-state-highlight {
874 | border: 1px solid #fcefa1;
875 | background: #fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x;
876 | color: #363636;
877 | }
878 | .ui-state-highlight a,
879 | .ui-widget-content .ui-state-highlight a,
880 | .ui-widget-header .ui-state-highlight a {
881 | color: #363636;
882 | }
883 | .ui-state-error,
884 | .ui-widget-content .ui-state-error,
885 | .ui-widget-header .ui-state-error {
886 | border: 1px solid #cd0a0a;
887 | background: #fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x;
888 | color: #cd0a0a;
889 | }
890 | .ui-state-error a,
891 | .ui-widget-content .ui-state-error a,
892 | .ui-widget-header .ui-state-error a {
893 | color: #cd0a0a;
894 | }
895 | .ui-state-error-text,
896 | .ui-widget-content .ui-state-error-text,
897 | .ui-widget-header .ui-state-error-text {
898 | color: #cd0a0a;
899 | }
900 | .ui-priority-primary,
901 | .ui-widget-content .ui-priority-primary,
902 | .ui-widget-header .ui-priority-primary {
903 | font-weight: bold;
904 | }
905 | .ui-priority-secondary,
906 | .ui-widget-content .ui-priority-secondary,
907 | .ui-widget-header .ui-priority-secondary {
908 | opacity: .7;
909 | filter:Alpha(Opacity=70);
910 | font-weight: normal;
911 | }
912 | .ui-state-disabled,
913 | .ui-widget-content .ui-state-disabled,
914 | .ui-widget-header .ui-state-disabled {
915 | opacity: .35;
916 | filter:Alpha(Opacity=35);
917 | background-image: none;
918 | }
919 | .ui-state-disabled .ui-icon {
920 | filter:Alpha(Opacity=35); /* For IE8 - See #6059 */
921 | }
922 |
923 | /* Icons
924 | ----------------------------------*/
925 |
926 | /* states and images */
927 | .ui-icon {
928 | width: 16px;
929 | height: 16px;
930 | }
931 | .ui-icon,
932 | .ui-widget-content .ui-icon {
933 | background-image: url(images/ui-icons_222222_256x240.png);
934 | }
935 | .ui-widget-header .ui-icon {
936 | background-image: url(images/ui-icons_222222_256x240.png);
937 | }
938 | .ui-state-default .ui-icon {
939 | background-image: url(images/ui-icons_888888_256x240.png);
940 | }
941 | .ui-state-hover .ui-icon,
942 | .ui-state-focus .ui-icon {
943 | background-image: url(images/ui-icons_454545_256x240.png);
944 | }
945 | .ui-state-active .ui-icon {
946 | background-image: url(images/ui-icons_454545_256x240.png);
947 | }
948 | .ui-state-highlight .ui-icon {
949 | background-image: url(images/ui-icons_2e83ff_256x240.png);
950 | }
951 | .ui-state-error .ui-icon,
952 | .ui-state-error-text .ui-icon {
953 | background-image: url(images/ui-icons_cd0a0a_256x240.png);
954 | }
955 |
956 | /* positioning */
957 | .ui-icon-blank { background-position: 16px 16px; }
958 | .ui-icon-carat-1-n { background-position: 0 0; }
959 | .ui-icon-carat-1-ne { background-position: -16px 0; }
960 | .ui-icon-carat-1-e { background-position: -32px 0; }
961 | .ui-icon-carat-1-se { background-position: -48px 0; }
962 | .ui-icon-carat-1-s { background-position: -64px 0; }
963 | .ui-icon-carat-1-sw { background-position: -80px 0; }
964 | .ui-icon-carat-1-w { background-position: -96px 0; }
965 | .ui-icon-carat-1-nw { background-position: -112px 0; }
966 | .ui-icon-carat-2-n-s { background-position: -128px 0; }
967 | .ui-icon-carat-2-e-w { background-position: -144px 0; }
968 | .ui-icon-triangle-1-n { background-position: 0 -16px; }
969 | .ui-icon-triangle-1-ne { background-position: -16px -16px; }
970 | .ui-icon-triangle-1-e { background-position: -32px -16px; }
971 | .ui-icon-triangle-1-se { background-position: -48px -16px; }
972 | .ui-icon-triangle-1-s { background-position: -64px -16px; }
973 | .ui-icon-triangle-1-sw { background-position: -80px -16px; }
974 | .ui-icon-triangle-1-w { background-position: -96px -16px; }
975 | .ui-icon-triangle-1-nw { background-position: -112px -16px; }
976 | .ui-icon-triangle-2-n-s { background-position: -128px -16px; }
977 | .ui-icon-triangle-2-e-w { background-position: -144px -16px; }
978 | .ui-icon-arrow-1-n { background-position: 0 -32px; }
979 | .ui-icon-arrow-1-ne { background-position: -16px -32px; }
980 | .ui-icon-arrow-1-e { background-position: -32px -32px; }
981 | .ui-icon-arrow-1-se { background-position: -48px -32px; }
982 | .ui-icon-arrow-1-s { background-position: -64px -32px; }
983 | .ui-icon-arrow-1-sw { background-position: -80px -32px; }
984 | .ui-icon-arrow-1-w { background-position: -96px -32px; }
985 | .ui-icon-arrow-1-nw { background-position: -112px -32px; }
986 | .ui-icon-arrow-2-n-s { background-position: -128px -32px; }
987 | .ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
988 | .ui-icon-arrow-2-e-w { background-position: -160px -32px; }
989 | .ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
990 | .ui-icon-arrowstop-1-n { background-position: -192px -32px; }
991 | .ui-icon-arrowstop-1-e { background-position: -208px -32px; }
992 | .ui-icon-arrowstop-1-s { background-position: -224px -32px; }
993 | .ui-icon-arrowstop-1-w { background-position: -240px -32px; }
994 | .ui-icon-arrowthick-1-n { background-position: 0 -48px; }
995 | .ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
996 | .ui-icon-arrowthick-1-e { background-position: -32px -48px; }
997 | .ui-icon-arrowthick-1-se { background-position: -48px -48px; }
998 | .ui-icon-arrowthick-1-s { background-position: -64px -48px; }
999 | .ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
1000 | .ui-icon-arrowthick-1-w { background-position: -96px -48px; }
1001 | .ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
1002 | .ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
1003 | .ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
1004 | .ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
1005 | .ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
1006 | .ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
1007 | .ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
1008 | .ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
1009 | .ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
1010 | .ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
1011 | .ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
1012 | .ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
1013 | .ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
1014 | .ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
1015 | .ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
1016 | .ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
1017 | .ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
1018 | .ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
1019 | .ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
1020 | .ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
1021 | .ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
1022 | .ui-icon-arrow-4 { background-position: 0 -80px; }
1023 | .ui-icon-arrow-4-diag { background-position: -16px -80px; }
1024 | .ui-icon-extlink { background-position: -32px -80px; }
1025 | .ui-icon-newwin { background-position: -48px -80px; }
1026 | .ui-icon-refresh { background-position: -64px -80px; }
1027 | .ui-icon-shuffle { background-position: -80px -80px; }
1028 | .ui-icon-transfer-e-w { background-position: -96px -80px; }
1029 | .ui-icon-transferthick-e-w { background-position: -112px -80px; }
1030 | .ui-icon-folder-collapsed { background-position: 0 -96px; }
1031 | .ui-icon-folder-open { background-position: -16px -96px; }
1032 | .ui-icon-document { background-position: -32px -96px; }
1033 | .ui-icon-document-b { background-position: -48px -96px; }
1034 | .ui-icon-note { background-position: -64px -96px; }
1035 | .ui-icon-mail-closed { background-position: -80px -96px; }
1036 | .ui-icon-mail-open { background-position: -96px -96px; }
1037 | .ui-icon-suitcase { background-position: -112px -96px; }
1038 | .ui-icon-comment { background-position: -128px -96px; }
1039 | .ui-icon-person { background-position: -144px -96px; }
1040 | .ui-icon-print { background-position: -160px -96px; }
1041 | .ui-icon-trash { background-position: -176px -96px; }
1042 | .ui-icon-locked { background-position: -192px -96px; }
1043 | .ui-icon-unlocked { background-position: -208px -96px; }
1044 | .ui-icon-bookmark { background-position: -224px -96px; }
1045 | .ui-icon-tag { background-position: -240px -96px; }
1046 | .ui-icon-home { background-position: 0 -112px; }
1047 | .ui-icon-flag { background-position: -16px -112px; }
1048 | .ui-icon-calendar { background-position: -32px -112px; }
1049 | .ui-icon-cart { background-position: -48px -112px; }
1050 | .ui-icon-pencil { background-position: -64px -112px; }
1051 | .ui-icon-clock { background-position: -80px -112px; }
1052 | .ui-icon-disk { background-position: -96px -112px; }
1053 | .ui-icon-calculator { background-position: -112px -112px; }
1054 | .ui-icon-zoomin { background-position: -128px -112px; }
1055 | .ui-icon-zoomout { background-position: -144px -112px; }
1056 | .ui-icon-search { background-position: -160px -112px; }
1057 | .ui-icon-wrench { background-position: -176px -112px; }
1058 | .ui-icon-gear { background-position: -192px -112px; }
1059 | .ui-icon-heart { background-position: -208px -112px; }
1060 | .ui-icon-star { background-position: -224px -112px; }
1061 | .ui-icon-link { background-position: -240px -112px; }
1062 | .ui-icon-cancel { background-position: 0 -128px; }
1063 | .ui-icon-plus { background-position: -16px -128px; }
1064 | .ui-icon-plusthick { background-position: -32px -128px; }
1065 | .ui-icon-minus { background-position: -48px -128px; }
1066 | .ui-icon-minusthick { background-position: -64px -128px; }
1067 | .ui-icon-close { background-position: -80px -128px; }
1068 | .ui-icon-closethick { background-position: -96px -128px; }
1069 | .ui-icon-key { background-position: -112px -128px; }
1070 | .ui-icon-lightbulb { background-position: -128px -128px; }
1071 | .ui-icon-scissors { background-position: -144px -128px; }
1072 | .ui-icon-clipboard { background-position: -160px -128px; }
1073 | .ui-icon-copy { background-position: -176px -128px; }
1074 | .ui-icon-contact { background-position: -192px -128px; }
1075 | .ui-icon-image { background-position: -208px -128px; }
1076 | .ui-icon-video { background-position: -224px -128px; }
1077 | .ui-icon-script { background-position: -240px -128px; }
1078 | .ui-icon-alert { background-position: 0 -144px; }
1079 | .ui-icon-info { background-position: -16px -144px; }
1080 | .ui-icon-notice { background-position: -32px -144px; }
1081 | .ui-icon-help { background-position: -48px -144px; }
1082 | .ui-icon-check { background-position: -64px -144px; }
1083 | .ui-icon-bullet { background-position: -80px -144px; }
1084 | .ui-icon-radio-on { background-position: -96px -144px; }
1085 | .ui-icon-radio-off { background-position: -112px -144px; }
1086 | .ui-icon-pin-w { background-position: -128px -144px; }
1087 | .ui-icon-pin-s { background-position: -144px -144px; }
1088 | .ui-icon-play { background-position: 0 -160px; }
1089 | .ui-icon-pause { background-position: -16px -160px; }
1090 | .ui-icon-seek-next { background-position: -32px -160px; }
1091 | .ui-icon-seek-prev { background-position: -48px -160px; }
1092 | .ui-icon-seek-end { background-position: -64px -160px; }
1093 | .ui-icon-seek-start { background-position: -80px -160px; }
1094 | /* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
1095 | .ui-icon-seek-first { background-position: -80px -160px; }
1096 | .ui-icon-stop { background-position: -96px -160px; }
1097 | .ui-icon-eject { background-position: -112px -160px; }
1098 | .ui-icon-volume-off { background-position: -128px -160px; }
1099 | .ui-icon-volume-on { background-position: -144px -160px; }
1100 | .ui-icon-power { background-position: 0 -176px; }
1101 | .ui-icon-signal-diag { background-position: -16px -176px; }
1102 | .ui-icon-signal { background-position: -32px -176px; }
1103 | .ui-icon-battery-0 { background-position: -48px -176px; }
1104 | .ui-icon-battery-1 { background-position: -64px -176px; }
1105 | .ui-icon-battery-2 { background-position: -80px -176px; }
1106 | .ui-icon-battery-3 { background-position: -96px -176px; }
1107 | .ui-icon-circle-plus { background-position: 0 -192px; }
1108 | .ui-icon-circle-minus { background-position: -16px -192px; }
1109 | .ui-icon-circle-close { background-position: -32px -192px; }
1110 | .ui-icon-circle-triangle-e { background-position: -48px -192px; }
1111 | .ui-icon-circle-triangle-s { background-position: -64px -192px; }
1112 | .ui-icon-circle-triangle-w { background-position: -80px -192px; }
1113 | .ui-icon-circle-triangle-n { background-position: -96px -192px; }
1114 | .ui-icon-circle-arrow-e { background-position: -112px -192px; }
1115 | .ui-icon-circle-arrow-s { background-position: -128px -192px; }
1116 | .ui-icon-circle-arrow-w { background-position: -144px -192px; }
1117 | .ui-icon-circle-arrow-n { background-position: -160px -192px; }
1118 | .ui-icon-circle-zoomin { background-position: -176px -192px; }
1119 | .ui-icon-circle-zoomout { background-position: -192px -192px; }
1120 | .ui-icon-circle-check { background-position: -208px -192px; }
1121 | .ui-icon-circlesmall-plus { background-position: 0 -208px; }
1122 | .ui-icon-circlesmall-minus { background-position: -16px -208px; }
1123 | .ui-icon-circlesmall-close { background-position: -32px -208px; }
1124 | .ui-icon-squaresmall-plus { background-position: -48px -208px; }
1125 | .ui-icon-squaresmall-minus { background-position: -64px -208px; }
1126 | .ui-icon-squaresmall-close { background-position: -80px -208px; }
1127 | .ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
1128 | .ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
1129 | .ui-icon-grip-solid-vertical { background-position: -32px -224px; }
1130 | .ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
1131 | .ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
1132 | .ui-icon-grip-diagonal-se { background-position: -80px -224px; }
1133 |
1134 |
1135 | /* Misc visuals
1136 | ----------------------------------*/
1137 |
1138 | /* Corner radius */
1139 | .ui-corner-all,
1140 | .ui-corner-top,
1141 | .ui-corner-left,
1142 | .ui-corner-tl {
1143 | border-top-left-radius: 4px;
1144 | }
1145 | .ui-corner-all,
1146 | .ui-corner-top,
1147 | .ui-corner-right,
1148 | .ui-corner-tr {
1149 | border-top-right-radius: 4px;
1150 | }
1151 | .ui-corner-all,
1152 | .ui-corner-bottom,
1153 | .ui-corner-left,
1154 | .ui-corner-bl {
1155 | border-bottom-left-radius: 4px;
1156 | }
1157 | .ui-corner-all,
1158 | .ui-corner-bottom,
1159 | .ui-corner-right,
1160 | .ui-corner-br {
1161 | border-bottom-right-radius: 4px;
1162 | }
1163 |
1164 | /* Overlays */
1165 | .ui-widget-overlay {
1166 | background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;
1167 | opacity: .3;
1168 | filter: Alpha(Opacity=30);
1169 | }
1170 | .ui-widget-shadow {
1171 | margin: -8px 0 0 -8px;
1172 | padding: 8px;
1173 | background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;
1174 | opacity: .3;
1175 | filter: Alpha(Opacity=30);
1176 | border-radius: 8px;
1177 | }
1178 |
--------------------------------------------------------------------------------
/getTicket.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
19 |
20 |
--------------------------------------------------------------------------------
/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devendrachaplot/TicketMaster/2e8bd6b09b2fc8f8ca2b40fd80c3a954f8413349/icon.png
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
Ticket Master
5 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
41 |
42 |
43 |
56 |
57 |
110 |
111 |
Passenger Details
112 |
113 |
114 | | Name |
115 | Gender |
116 | Age |
117 | Berth Preference |
118 | Food Preference |
119 | ID Card Type |
120 | ID Card No. |
121 | Senior Citizen |
122 |
123 |
124 |
164 |
165 |
166 |
206 |
207 |
208 |
248 |
249 |
250 |
290 |
291 |
292 |
332 |
333 |
334 |
374 |
375 |
376 |
377 |
Mobile Number
378 |
379 |
380 |
381 |
382 |
383 |
384 |
385 |
--------------------------------------------------------------------------------
/js/bootstrap.min.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Bootstrap.js by @fat & @mdo
3 | * Copyright 2012 Twitter, Inc.
4 | * http://www.apache.org/licenses/LICENSE-2.0.txt
5 | */
6 | !function(a){a(function(){"use strict",a.support.transition=function(){var a=function(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"},c;for(c in b)if(a.style[c]!==undefined)return b[c]}();return a&&{end:a}}()})}(window.jQuery),!function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function f(){e.trigger("closed").remove()}var c=a(this),d=c.attr("data-target"),e;d||(d=c.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),e=a(d),b&&b.preventDefault(),e.length||(e=c.hasClass("alert")?c:c.parent()),e.trigger(b=a.Event("close"));if(b.isDefaultPrevented())return;e.removeClass("in"),a.support.transition&&e.hasClass("fade")?e.on(a.support.transition.end,f):f()},a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("alert");e||d.data("alert",e=new c(this)),typeof b=="string"&&e[b].call(d)})},a.fn.alert.Constructor=c,a(function(){a("body").on("click.alert.data-api",b,c.prototype.close)})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.button.defaults,c)};b.prototype.setState=function(a){var b="disabled",c=this.$element,d=c.data(),e=c.is("input")?"val":"html";a+="Text",d.resetText||c.data("resetText",c[e]()),c[e](d[a]||this.options[a]),setTimeout(function(){a=="loadingText"?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},b.prototype.toggle=function(){var a=this.$element.parent('[data-toggle="buttons-radio"]');a&&a.find(".active").removeClass("active"),this.$element.toggleClass("active")},a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("button"),f=typeof c=="object"&&c;e||d.data("button",e=new b(this,f)),c=="toggle"?e.toggle():c&&e.setState(c)})},a.fn.button.defaults={loadingText:"loading..."},a.fn.button.Constructor=b,a(function(){a("body").on("click.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle")})})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=c,this.options.slide&&this.slide(this.options.slide),this.options.pause=="hover"&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.prototype={cycle:function(b){return b||(this.paused=!1),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},to:function(b){var c=this.$element.find(".active"),d=c.parent().children(),e=d.index(c),f=this;if(b>d.length-1||b<0)return;return this.sliding?this.$element.one("slid",function(){f.to(b)}):e==b?this.pause().cycle():this.slide(b>e?"next":"prev",a(d[b]))},pause:function(a){return a||(this.paused=!0),clearInterval(this.interval),this.interval=null,this},next:function(){if(this.sliding)return;return this.slide("next")},prev:function(){if(this.sliding)return;return this.slide("prev")},slide:function(b,c){var d=this.$element.find(".active"),e=c||d[b](),f=this.interval,g=b=="next"?"left":"right",h=b=="next"?"first":"last",i=this,j=a.Event("slide");this.sliding=!0,f&&this.pause(),e=e.length?e:this.$element.find(".item")[h]();if(e.hasClass("active"))return;if(a.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(j);if(j.isDefaultPrevented())return;e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),this.$element.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid")},0)})}else{this.$element.trigger(j);if(j.isDefaultPrevented())return;d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return f&&this.cycle(),this}},a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("carousel"),f=a.extend({},a.fn.carousel.defaults,typeof c=="object"&&c);e||d.data("carousel",e=new b(this,f)),typeof c=="number"?e.to(c):typeof c=="string"||(c=f.slide)?e[c]():f.interval&&e.cycle()})},a.fn.carousel.defaults={interval:5e3,pause:"hover"},a.fn.carousel.Constructor=b,a(function(){a("body").on("click.carousel.data-api","[data-slide]",function(b){var c=a(this),d,e=a(c.attr("data-target")||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,"")),f=!e.data("modal")&&a.extend({},e.data(),c.data());e.carousel(f),b.preventDefault()})})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.collapse.defaults,c),this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.prototype={constructor:b,dimension:function(){var a=this.$element.hasClass("width");return a?"width":"height"},show:function(){var b,c,d,e;if(this.transitioning)return;b=this.dimension(),c=a.camelCase(["scroll",b].join("-")),d=this.$parent&&this.$parent.find("> .accordion-group > .in");if(d&&d.length){e=d.data("collapse");if(e&&e.transitioning)return;d.collapse("hide"),e||d.data("collapse",null)}this.$element[b](0),this.transition("addClass",a.Event("show"),"shown"),this.$element[b](this.$element[0][c])},hide:function(){var b;if(this.transitioning)return;b=this.dimension(),this.reset(this.$element[b]()),this.transition("removeClass",a.Event("hide"),"hidden"),this.$element[b](0)},reset:function(a){var b=this.dimension();return this.$element.removeClass("collapse")[b](a||"auto")[0].offsetWidth,this.$element[a!==null?"addClass":"removeClass"]("collapse"),this},transition:function(b,c,d){var e=this,f=function(){c.type=="show"&&e.reset(),e.transitioning=0,e.$element.trigger(d)};this.$element.trigger(c);if(c.isDefaultPrevented())return;this.transitioning=1,this.$element[b]("in"),a.support.transition&&this.$element.hasClass("collapse")?this.$element.one(a.support.transition.end,f):f()},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}},a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("collapse"),f=typeof c=="object"&&c;e||d.data("collapse",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.collapse.defaults={toggle:!0},a.fn.collapse.Constructor=b,a(function(){a("body").on("click.collapse.data-api","[data-toggle=collapse]",function(b){var c=a(this),d,e=c.attr("data-target")||b.preventDefault()||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""),f=a(e).data("collapse")?"toggle":c.data();a(e).collapse(f)})})}(window.jQuery),!function(a){function d(){a(b).parent().removeClass("open")}"use strict";var b='[data-toggle="dropdown"]',c=function(b){var c=a(b).on("click.dropdown.data-api",this.toggle);a("html").on("click.dropdown.data-api",function(){c.parent().removeClass("open")})};c.prototype={constructor:c,toggle:function(b){var c=a(this),e,f,g;if(c.is(".disabled, :disabled"))return;return f=c.attr("data-target"),f||(f=c.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,"")),e=a(f),e.length||(e=c.parent()),g=e.hasClass("open"),d(),g||e.toggleClass("open"),!1}},a.fn.dropdown=function(b){return this.each(function(){var d=a(this),e=d.data("dropdown");e||d.data("dropdown",e=new c(this)),typeof b=="string"&&e[b].call(d)})},a.fn.dropdown.Constructor=c,a(function(){a("html").on("click.dropdown.data-api",d),a("body").on("click.dropdown",".dropdown form",function(a){a.stopPropagation()}).on("click.dropdown.data-api",b,c.prototype.toggle)})}(window.jQuery),!function(a){function c(){var b=this,c=setTimeout(function(){b.$element.off(a.support.transition.end),d.call(b)},500);this.$element.one(a.support.transition.end,function(){clearTimeout(c),d.call(b)})}function d(a){this.$element.hide().trigger("hidden"),e.call(this)}function e(b){var c=this,d=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var e=a.support.transition&&d;this.$backdrop=a('
').appendTo(document.body),this.options.backdrop!="static"&&this.$backdrop.click(a.proxy(this.hide,this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),e?this.$backdrop.one(a.support.transition.end,b):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,a.proxy(f,this)):f.call(this)):b&&b()}function f(){this.$backdrop.remove(),this.$backdrop=null}function g(){var b=this;this.isShown&&this.options.keyboard?a(document).on("keyup.dismiss.modal",function(a){a.which==27&&b.hide()}):this.isShown||a(document).off("keyup.dismiss.modal")}"use strict";var b=function(b,c){this.options=c,this.$element=a(b).delegate('[data-dismiss="modal"]',"click.dismiss.modal",a.proxy(this.hide,this))};b.prototype={constructor:b,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var b=this,c=a.Event("show");this.$element.trigger(c);if(this.isShown||c.isDefaultPrevented())return;a("body").addClass("modal-open"),this.isShown=!0,g.call(this),e.call(this,function(){var c=a.support.transition&&b.$element.hasClass("fade");b.$element.parent().length||b.$element.appendTo(document.body),b.$element.show(),c&&b.$element[0].offsetWidth,b.$element.addClass("in"),c?b.$element.one(a.support.transition.end,function(){b.$element.trigger("shown")}):b.$element.trigger("shown")})},hide:function(b){b&&b.preventDefault();var e=this;b=a.Event("hide"),this.$element.trigger(b);if(!this.isShown||b.isDefaultPrevented())return;this.isShown=!1,a("body").removeClass("modal-open"),g.call(this),this.$element.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?c.call(this):d.call(this)}},a.fn.modal=function(c){return this.each(function(){var d=a(this),e=d.data("modal"),f=a.extend({},a.fn.modal.defaults,d.data(),typeof c=="object"&&c);e||d.data("modal",e=new b(this,f)),typeof c=="string"?e[c]():f.show&&e.show()})},a.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},a.fn.modal.Constructor=b,a(function(){a("body").on("click.modal.data-api",'[data-toggle="modal"]',function(b){var c=a(this),d,e=a(c.attr("data-target")||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,"")),f=e.data("modal")?"toggle":a.extend({},e.data(),c.data());b.preventDefault(),e.modal(f)})})}(window.jQuery),!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.enabled=!0,this.options.trigger!="manual"&&(e=this.options.trigger=="hover"?"mouseenter":"focus",f=this.options.trigger=="hover"?"mouseleave":"blur",this.$element.on(e,this.options.selector,a.proxy(this.enter,this)),this.$element.on(f,this.options.selector,a.proxy(this.leave,this))),this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(b){return b=a.extend({},a.fn[this.type].defaults,b,this.$element.data()),b.delay&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay}),b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)return c.show();clearTimeout(this.timeout),c.hoverState="in",this.timeout=setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)return c.hide();clearTimeout(this.timeout),c.hoverState="out",this.timeout=setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip(),this.setContent(),this.options.animation&&a.addClass("fade"),f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,b=/in/.test(f),a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body),c=this.getPosition(b),d=a[0].offsetWidth,e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).addClass("in")}},isHTML:function(a){return typeof a!="string"||a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3||/^(?:[^<]*<[\w\W]+>[^>]*$)/.exec(a)},setContent:function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.isHTML(b)?"html":"text"](b),a.removeClass("fade in top bottom left right")},hide:function(){function d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b),c.remove()})}var b=this,c=this.tip();c.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&a.attr("data-original-title",a.attr("title")||"").removeAttr("title")},hasContent:function(){return this.getTitle()},getPosition:function(b){return a.extend({},b?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title),a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(){this[this.tip().hasClass("in")?"hide":"show"]()}},a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.tooltip.Constructor=b,a.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'
',trigger:"hover",title:"",delay:0}}(window.jQuery),!function(a){"use strict";var b=function(a,b){this.init("popover",a,b)};b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype,{constructor:b,setContent:function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.isHTML(b)?"html":"text"](b),a.find(".popover-content > *")[this.isHTML(c)?"html":"text"](c),a.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var a,b=this.$element,c=this.options;return a=b.attr("data-content")||(typeof c.content=="function"?c.content.call(b[0]):c.content),a},tip:function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip}}),a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("popover"),f=typeof c=="object"&&c;e||d.data("popover",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.popover.Constructor=b,a.fn.popover.defaults=a.extend({},a.fn.tooltip.defaults,{placement:"right",content:"",template:'
'})}(window.jQuery),!function(a){function b(b,c){var d=a.proxy(this.process,this),e=a(b).is("body")?a(window):a(b),f;this.options=a.extend({},a.fn.scrollspy.defaults,c),this.$scrollElement=e.on("scroll.scroll.data-api",d),this.selector=(this.options.target||(f=a(b).attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=a("body"),this.refresh(),this.process()}"use strict",b.prototype={constructor:b,refresh:function(){var b=this,c;this.offsets=a([]),this.targets=a([]),c=this.$body.find(this.selector).map(function(){var b=a(this),c=b.data("target")||b.attr("href"),d=/^#\w/.test(c)&&a(c);return d&&c.length&&[[d.position().top,c]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},process:function(){var a=this.$scrollElement.scrollTop()+this.options.offset,b=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,c=b-this.$scrollElement.height(),d=this.offsets,e=this.targets,f=this.activeTarget,g;if(a>=c)return f!=(g=e.last()[0])&&this.activate(g);for(g=d.length;g--;)f!=e[g]&&a>=d[g]&&(!d[g+1]||a<=d[g+1])&&this.activate(e[g])},activate:function(b){var c,d;this.activeTarget=b,a(this.selector).parent(".active").removeClass("active"),d=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',c=a(d).parent("li").addClass("active"),c.parent(".dropdown-menu")&&(c=c.closest("li.dropdown").addClass("active")),c.trigger("activate")}},a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("scrollspy"),f=typeof c=="object"&&c;e||d.data("scrollspy",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.defaults={offset:10},a(function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(window.jQuery),!function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype={constructor:b,show:function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.attr("data-target"),e,f,g;d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,""));if(b.parent("li").hasClass("active"))return;e=c.find(".active a").last()[0],g=a.Event("show",{relatedTarget:e}),b.trigger(g);if(g.isDefaultPrevented())return;f=a(d),this.activate(b.parent("li"),c),this.activate(f,f.parent(),function(){b.trigger({type:"shown",relatedTarget:e})})},activate:function(b,c,d){function g(){e.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),f?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var e=c.find("> .active"),f=d&&a.support.transition&&e.hasClass("fade");f?e.one(a.support.transition.end,g):g(),e.removeClass("in")}},a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("tab");e||d.data("tab",e=new b(this)),typeof c=="string"&&e[c]()})},a.fn.tab.Constructor=b,a(function(){a("body").on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.typeahead.defaults,c),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.$menu=a(this.options.menu).appendTo("body"),this.source=this.options.source,this.shown=!1,this.listen()};b.prototype={constructor:b,select:function(){var a=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(a)).change(),this.hide()},updater:function(a){return a},show:function(){var b=a.extend({},this.$element.offset(),{height:this.$element[0].offsetHeight});return this.$menu.css({top:b.top+b.height,left:b.left}),this.$menu.show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(b){var c=this,d,e;return this.query=this.$element.val(),this.query?(d=a.grep(this.source,function(a){return c.matcher(a)}),d=this.sorter(d),d.length?this.render(d.slice(0,this.options.items)).show():this.shown?this.hide():this):this.shown?this.hide():this},matcher:function(a){return~a.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(a){var b=[],c=[],d=[],e;while(e=a.shift())e.toLowerCase().indexOf(this.query.toLowerCase())?~e.indexOf(this.query)?c.push(e):d.push(e):b.push(e);return b.concat(c,d)},highlighter:function(a){var b=this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");return a.replace(new RegExp("("+b+")","ig"),function(a,b){return"
"+b+""})},render:function(b){var c=this;return b=a(b).map(function(b,d){return b=a(c.options.item).attr("data-value",d),b.find("a").html(c.highlighter(d)),b[0]}),b.first().addClass("active"),this.$menu.html(b),this},next:function(b){var c=this.$menu.find(".active").removeClass("active"),d=c.next();d.length||(d=a(this.$menu.find("li")[0])),d.addClass("active")},prev:function(a){var b=this.$menu.find(".active").removeClass("active"),c=b.prev();c.length||(c=this.$menu.find("li").last()),c.addClass("active")},listen:function(){this.$element.on("blur",a.proxy(this.blur,this)).on("keypress",a.proxy(this.keypress,this)).on("keyup",a.proxy(this.keyup,this)),(a.browser.webkit||a.browser.msie)&&this.$element.on("keydown",a.proxy(this.keypress,this)),this.$menu.on("click",a.proxy(this.click,this)).on("mouseenter","li",a.proxy(this.mouseenter,this))},keyup:function(a){switch(a.keyCode){case 40:case 38:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}a.stopPropagation(),a.preventDefault()},keypress:function(a){if(!this.shown)return;switch(a.keyCode){case 9:case 13:case 27:a.preventDefault();break;case 38:if(a.type!="keydown")break;a.preventDefault(),this.prev();break;case 40:if(a.type!="keydown")break;a.preventDefault(),this.next()}a.stopPropagation()},blur:function(a){var b=this;setTimeout(function(){b.hide()},150)},click:function(a){a.stopPropagation(),a.preventDefault(),this.select()},mouseenter:function(b){this.$menu.find(".active").removeClass("active"),a(b.currentTarget).addClass("active")}},a.fn.typeahead=function(c){return this.each(function(){var d=a(this),e=d.data("typeahead"),f=typeof c=="object"&&c;e||d.data("typeahead",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.typeahead.defaults={source:[],items:8,menu:'',item:'
'},a.fn.typeahead.Constructor=b,a(function(){a("body").on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(b){var c=a(this);if(c.data("typeahead"))return;b.preventDefault(),c.typeahead(c.data())})})}(window.jQuery);
--------------------------------------------------------------------------------
/js/captcha.js:
--------------------------------------------------------------------------------
1 | var flagcaptcha = true;
2 | function captcha(){
3 | if(flagcaptcha){
4 | document.getElementsByTagName('body')[0].insertAdjacentHTML('beforeend','
');
5 | var canvas = document.getElementById('myCanvas');
6 | var ctx=canvas.getContext("2d");
7 | ctx.rotate(-0.075);
8 | ctx.transform(1, 0, -0.4, 1, 0, 0);
9 | flagcaptcha = false;
10 | }
11 | var canvas = document.getElementById('myCanvas');
12 | var ctx=canvas.getContext("2d");
13 | var img=document.getElementById("divImagePath");
14 | ctx.drawImage(img,-23,-13,130,50);
15 |
16 | // Read in pixel data
17 | var image = canvas.getContext('2d').getImageData(0, 0, canvas.width, canvas.height);
18 |
19 | // Convert to grayscale
20 | for (var x = 0; x < image.width; x++){
21 | for (var y = 0; y < image.height; y++){
22 | var i = x*4+y*4*image.width;
23 | var luma = Math.floor(
24 | image.data[i] * 299/1000 +
25 | image.data[i+1] * 587/1000 +
26 | image.data[i+2] * 114/1000
27 | //(image.data[i]+image.data[i+1]+image.data[i+2])/3
28 | );
29 | image.data[i] = luma;
30 | image.data[i+1] = luma;
31 | image.data[i+2] = luma;
32 | image.data[i+3] = 255;
33 | }
34 | }
35 | // Cut into blocks
36 | var blocks = new Array();
37 | var block_start = 0;
38 | var block_end = 0;
39 | var before_white = true;
40 | for (var x = 0; x < image.width; x++) {
41 | var white = true;
42 | var limit = 1;
43 | for (var y = 0; y < image.height; y++) {
44 | var i = x*4 + y*4*image.width
45 | var c = image.data[i];
46 | if (c < 140) {
47 | limit--;
48 | if(limit < 0){
49 | white = false;
50 | break;
51 | }
52 | }
53 | }
54 | if (before_white == true && white == false) {
55 | block_start = x;
56 | }
57 | if (before_white == false && white == true) {
58 | block_end = x - 1;
59 | var block = {start: block_start, end: block_end, image: {}, canvas: {}};
60 | blocks.push(block);
61 | }
62 | before_white = white;
63 | }
64 |
65 | // Clone each block
66 | for (var w = 0; w < blocks.length; w++) {
67 | blocks[w].image.width = image.width;
68 | blocks[w].image.height = image.height;
69 | blocks[w].image.data = new Uint8ClampedArray(image.data.length);
70 | for (var i = 0; i < image.data.length; i++) {
71 | blocks[w].image.data[i] = image.data[i];
72 | }
73 | }
74 |
75 | // Whiteout all other characters from each block
76 | for (var w = 0; w < blocks.length; w++) {
77 | for (var x = 0; x < image.width; x++) {
78 | if (x < blocks[w].start || x > blocks[w].end) {
79 | for (var y = 0; y < image.height; y++) {
80 | var i = x*4 + y*4*image.width
81 | blocks[w].image.data[i] = 255;
82 | blocks[w].image.data[i+1] = 255;
83 | blocks[w].image.data[i+2] = 255;
84 | }
85 | }
86 | }
87 | }
88 | // Crop each block, pad with whitespace to appropriate ratio, and resize to 60 x 50
89 | for (var w = 0; w < blocks.length; w++) {
90 | // We already have the x-boundaries, just need to find y-boundaries
91 | var y_min = 0;
92 | findmin:
93 | for (var y = 0; y < blocks[w].image.height; y++) {
94 | for (var x = 0; x < blocks[w].image.width; x++) {
95 | var i = x*4 + y*4*image.width
96 | if (blocks[w].image.data[i] < 200) {
97 | y_min = y;
98 | break findmin;
99 | }
100 | }
101 | }
102 | var y_max = 0;
103 | findmax:
104 | for (var y = blocks[w].image.height; y >= 0; y--) {
105 | for (var x = 0; x < blocks[w].image.width; x++) {
106 | var i = x*4 + y*4*image.width
107 | if (blocks[w].image.data[i] < 200) {
108 | y_max = y;
109 | break findmax;
110 | }
111 | }
112 | }
113 |
114 | // Pad and resize
115 | var cwidth = blocks[w].end - blocks[w].start + 1;
116 | var cheight = y_max - y_min + 1;
117 | var cratio = cwidth / cheight;
118 |
119 | var sx = blocks[w].start;
120 | var sy = y_min;
121 | var sw = blocks[w].end - blocks[w].start + 1;
122 | var sh = y_max - y_min + 1;
123 |
124 | var dimx = 15;
125 | var dimy = 18;
126 | var dimr = dimx / dimy;
127 | if ((cwidth / cheight) < dimr) {
128 | var dh = dimy;
129 | var dw = Math.round(cwidth * dimy / cheight);
130 | var dy = 0;
131 | var dx = Math.round((dimx - dw) / 2);
132 | }
133 | else if ((cwidth / cheight) > dimr) {
134 | var dw = dimx;
135 | var dh = Math.round(cheight * dimx / cwidth);
136 | var dx = 0;
137 | var dy = Math.round((dimy - dh) / 2);
138 | }
139 | else {
140 | var dh = dimy;
141 | var dw = dimx;
142 | var dy = 0;
143 | var dx = 0;
144 | }
145 | blocks[w].canvas = document.createElement('canvas');
146 | blocks[w].canvas.width = dimx;
147 | blocks[w].canvas.height = dimy;
148 | blocks[w].canvas.style.margin = "0 1px 0 0";
149 | blocks[w].canvas.getContext('2d').fillStyle="#ffffff";
150 | blocks[w].canvas.getContext('2d').fillRect(0,0,dimx,dimy);
151 | blocks[w].canvas.getContext('2d').drawImage(canvas, sx, sy, sw, sh, dx, dy, dw, dh);
152 | /*document.getElementsByTagName('body')[0].appendChild(blocks[w].canvas);
153 | var data1 = blocks[w].canvas.getContext('2d').getImageData(0,0,blocks[w].canvas.width,blocks[w].canvas.height);
154 | var tempstr = "";
155 | for(var z = 0;z < blocks[w].canvas.width*blocks[w].canvas.height*4;z += 4){
156 | tempstr += data1.data[z]+",";
157 | }
158 | console.log(tempstr);*/
159 | //console.log(blocks[w].canvas.getContext('2d').getImageData(0,0,blocks[w].canvas.width,blocks[w].canvas.height));
160 |
161 | }
162 |
163 | // Create an image with all letters and numbers - "ABCDEFGHIJKLMNOPQRSTUVWXYZ-1234567890"
164 | // Feed that image to the previous code thus far to get blocks of each character
165 |
166 | var code = "";
167 | for (var w = 0; w < blocks.length; w++){
168 | var minerror = 9876543210;
169 | var minchar = '?';
170 | for (var k in characters){
171 | var data1 = blocks[w].canvas.getContext('2d').getImageData(0,0,blocks[w].canvas.width,blocks[w].canvas.height);
172 | var temp = compare(data1.data, characters[k]);
173 | if(temp
| | | | | | ";
29 | fields += 1;
30 | document.getElementById('id').value=fields;
31 | } else {
32 | document.getElementById('add_button').disabled=true;
33 | }
34 | }
35 |
36 | function removeFormField(src) {
37 | if(fields > 1) {
38 | var row = $(src).parent().parent();
39 | row.parent().removeChild(row);
40 | fields -= 1;
41 | document.getElementById('add_button').disabled=false;
42 | }
43 | }
44 |
45 | function updateDOM(inputField) {
46 | // if the inputField ID string has been passed in, get the inputField object
47 | if (typeof inputField == "string") {
48 | inputField = document.getElementById(inputField);
49 | }
50 | inputField.setAttribute("value",inputField.value);
51 | }
52 |
53 | function validate() {
54 | var myform = document.forms["form1"];
55 | //formName being the name of the form
56 | for (i = 0; i < myform.length; i++) {
57 | inp= myform.elements[i];
58 | if(inp.type=="text" || inp.type=="password") {
59 | if (inp.value.length == 0){
60 | if (inp.name=="name[]") {
61 | alert("Please enter the name of guest");
62 | } else if (inp.name=="age[]") {
63 | alert("Please enter the age of guest");
64 | } else if (inp.name=="rel[]") {
65 | alert("Please enter the relationship with guest");
66 | } else {
67 | alert("Please enter value in field : " + inp.name);
68 | }
69 | return false;
70 | }
71 | }
72 | }
73 | }
74 |
75 | function savedata(counter, callback) {
76 | var login_data = $('#login_data').serializeArray();
77 | var ticket_data = $('#ticket_data').serializeArray();
78 | var pass1 = $('#pass1').serializeArray();
79 | var pass2 = $('#pass2').serializeArray();
80 | var pass3 = $('#pass3').serializeArray();
81 | var pass4 = $('#pass4').serializeArray();
82 | var pass5 = $('#pass5').serializeArray();
83 | var pass6 = $('#pass6').serializeArray();
84 |
85 | var loginStr = 'ticket'+counter+'_login';
86 | login_format_data = get_login_array(login_data);
87 | var ticketStr = "ticket"+counter+"_ticket";
88 | ticket_format_data = get_ticket_array(ticket_data);
89 | var passStr = "ticket"+counter+"_pass";
90 | pass_format_data = get_passenger_array(pass1, pass2, pass3, pass4, pass5, pass6);
91 |
92 | var data = {};
93 | data[loginStr] = login_format_data;
94 | data[ticketStr] = ticket_format_data;
95 | data[passStr] = pass_format_data;
96 |
97 | chrome.storage.sync.set(data, function() {
98 | callback();
99 | });
100 | }
101 |
102 | function saveform() {
103 | function storedata(counter){
104 | savedata(counter,function(){
105 | chrome.storage.sync.get('tickets',function(data){
106 | data['tickets'].push(counter);
107 | chrome.storage.sync.set({'tickets': data['tickets']}, function() {
108 | counter++;
109 | chrome.storage.sync.set({'ticketcounter': counter}, function() {
110 | alert("Ticket Saved with number : "+(counter-1));
111 | window.location = "\index.html"
112 | });
113 | });
114 | });
115 | });
116 | }
117 |
118 | chrome.storage.sync.get('ticketcounter', function(counter) {
119 | if(counter['ticketcounter'] > 1) {
120 | chrome.storage.sync.get('tickets',function(data){
121 | if(!$.isArray(data['tickets'])){
122 | chrome.storage.sync.set({'tickets': new Array()}, function() {
123 | storedata(counter['ticketcounter']);
124 | });
125 | }
126 | else{
127 | storedata(counter['ticketcounter']);
128 | }
129 | });
130 | } else {
131 | chrome.storage.sync.set({'ticketcounter': 1}, function() {
132 | counter = 1;
133 | chrome.storage.sync.get('tickets',function(data){
134 | if(!$.isArray(data['tickets'])){
135 | chrome.storage.sync.set({'tickets': new Array()}, function() {
136 | storedata(counter);
137 | });
138 | }
139 | else{
140 | storedata(counter);
141 | }
142 | });
143 | });
144 | }
145 | });
146 | }
147 |
148 | function get_login_array(login_array) {
149 | username = login_array.shift();
150 | password = login_array.shift();
151 | var login_detail = {
152 | "username": username.value,
153 | "password": password.value
154 | }
155 | return login_detail;
156 | }
157 |
158 | function get_ticket_array(ticket_array) {
159 | source = parseStation(ticket_array.shift().value);
160 | board_point = parseStation(ticket_array.shift().value);
161 | destination = parseStation(ticket_array.shift().value);
162 | date = ticket_array.shift();
163 | quota = ticket_array.shift();
164 | trainNo = parseStation(ticket_array.shift().value);
165 | class1 = ticket_array.shift();
166 | ticketType = ticket_array.shift();
167 | var ticket_detail = {
168 | "source": source,
169 | "boarding_point": board_point,
170 | "destination": destination,
171 | "date": date.value,
172 | "quota": quota.value,
173 | "trainNo": trainNo,
174 | "class": class1.value,
175 | "ticketType": ticketType.value
176 | }
177 | return ticket_detail;
178 | }
179 |
180 | function parseStation(nameString) {
181 | var code = nameString.split(' : ');
182 | return code[0];
183 | }
184 |
185 | function get_passenger_array(pass1, pass2, pass3, pass4, pass5, pass6) {
186 | pass1_json = get_passenger_json(pass1);
187 | pass2_json = get_passenger_json(pass2);
188 | pass3_json = get_passenger_json(pass3);
189 | pass4_json = get_passenger_json(pass4);
190 | pass5_json = get_passenger_json(pass5);
191 | pass6_json = get_passenger_json(pass6);
192 | var i = 1;
193 | var passengers = {};
194 | if(pass1_json != null) {
195 | passengers[i] = pass1_json;
196 | i++;
197 | }
198 | if(pass2_json != null) {
199 | passengers[i] = pass2_json;
200 | i++;
201 | }
202 | if(pass3_json != null) {
203 | passengers[i] = pass3_json;
204 | i++;
205 | }
206 | if(pass4_json != null) {
207 | passengers[i] = pass4_json;
208 | i++;
209 | }
210 | if(pass5_json != null) {
211 | passengers[i] = pass5_json;
212 | i++;
213 | }
214 | if(pass6_json != null) {
215 | passengers[i] = pass6_json;
216 | i++;
217 | }
218 | passengers['mobileNumber'] = $("input[name='mobileNumber']").val();
219 | /*var passengers = {
220 | 1: pass1_json,
221 | 2: pass2_json,
222 | 3: pass3_json,
223 | 4: pass4_json,
224 | 5: pass5_json,
225 | 6: pass6_json
226 | }*/
227 | return passengers;
228 | }
229 |
230 | function get_passenger_json(pass) {
231 | passName = pass.shift();
232 | if(passName.value != "") {
233 | sex = pass.shift();
234 | age = pass.shift();
235 | berth_preference = pass.shift();
236 | food_preference = pass.shift();
237 | idCardType = pass.shift();
238 | idCardNo = pass.shift();
239 | senior_citizen = pass.shift();
240 | if(senior_citizen) {
241 | var ticket_detail = {
242 | "name": passName.value,
243 | "sex": sex.value,
244 | "age": age.value,
245 | "berth_preference": berth_preference.value,
246 | "food_preference" : food_preference.value,
247 | "senior_citizen": senior_citizen.value,
248 | "idCardType": idCardType.value,
249 | "idCardNo": idCardNo.value
250 | }
251 | } else {
252 | var ticket_detail = {
253 | "name": passName.value,
254 | "sex": sex.value,
255 | "age": age.value,
256 | "berth_preference": berth_preference.value,
257 | "food_preference" : food_preference.value,
258 | "senior_citizen": "off",
259 | "idCardType": idCardType.value,
260 | "idCardNo": idCardNo.value
261 | }
262 | }
263 | return ticket_detail;
264 | } else {
265 | return null;
266 | }
267 | }
268 |
269 | function fillForm(counter){
270 | var loginStr = 'ticket'+counter+'_login';
271 | var ticketStr = "ticket"+counter+"_ticket";
272 | var passStr = "ticket"+counter+"_pass";
273 | var keys = [loginStr,ticketStr,passStr];
274 | chrome.storage.sync.get(keys, function(login_data) {
275 | //console.log(login_data);
276 | user = login_data[loginStr];
277 | ticketdetail = login_data[ticketStr];
278 | passdetail = login_data[passStr];
279 | $("#login_data #username").val(user['username']);
280 | $("#login_data #password").val(user['password']);
281 | $("#ticket_data #src").val(ticketdetail['source']);
282 | $("#ticket_data #dest").val(ticketdetail['destination']);
283 | $("#ticket_data #brdp").val(ticketdetail['boarding_point']);
284 | $("#ticket_data #book_date").val(ticketdetail['date']);
285 | $("#ticket_data #quota").val(ticketdetail['quota']);
286 | $("#ticket_data #trainNo").val(ticketdetail['trainNo']);
287 | $("#ticket_data #class").val(ticketdetail['class']);
288 | $("#ticket_data #ticketType").val(ticketdetail['ticketType']);
289 | for(var i in passdetail){
290 | if($.isNumeric(i)){
291 | $("#row"+i+" input[name='name']").val(passdetail[i]['name']);
292 | $("#row"+i+" input[name='age']").val(passdetail[i]['age']);
293 | $("#row"+i+" select[name='gender']").val(passdetail[i]['sex']);
294 | $("#row"+i+" select[name='berth']").val(passdetail[i]['berth_preference']);
295 | $("#row"+i+" select[name='food']").val(passdetail[i]['food_preference']);
296 | $("#row"+i+" select[name='idCardType']").val(passdetail[i]['idCardType']);
297 | $("#row"+i+" input[name='idCardNo']").val(passdetail[i]['idCardNo']);
298 | $("#row"+i+" input[name='senior']").prop('checked', (passdetail[i]['senior_citizen'] == "off")?false:true);
299 | }
300 | }
301 | $("input[name='mobileNumber']").val(passdetail['mobileNumber']);
302 | });
303 | }
304 |
305 | $(function() {
306 | $("#book_date").datepicker({
307 | changeMonth: true,
308 | changeYear: true,
309 | dateFormat: 'dd/m/yy',
310 | minDate: 0
311 | });
312 | });
313 |
314 | $(document).ready(function() {
315 | var counter = null;
316 | if(document.URL.match(/edit=([^&]+)/))
317 | counter = document.URL.match(/edit=([^&]+)/)[1];
318 | if(counter != null)
319 | fillForm(counter);
320 | $("#submit").click(function(){
321 | if(counter == null){
322 | saveform();
323 | }
324 | else{
325 | savedata(counter,function(){alert("Ticket updated successfully");});
326 | }
327 | });
328 | $("#submit1").click(function(){
329 | if(counter == null)
330 | saveform();
331 | else{
332 | savedata(counter,function(){alert("Ticket updated successfully");});
333 | }
334 | });
335 | //$("#add_button").click(function() {addInput();});
336 | //$(".remove_button").click(function() {removeFormField(this);});
337 | });
338 |
--------------------------------------------------------------------------------
/js/irctc.js:
--------------------------------------------------------------------------------
1 | javascript:void(document.oncontextmenu=null);
2 |
3 | var user = new Array();
4 | var detail = new Array();
5 | var ticketDetails = new Array();
6 |
7 | chrome.storage.local.get('bookticket',function(data){
8 | if(data['bookticket'] > 0){
9 | var counter = data['bookticket'];
10 | var loginStr = 'ticket'+counter+'_login';
11 | var ticketStr = "ticket"+counter+"_ticket";
12 | var passStr = "ticket"+counter+"_pass";
13 | var keys = [loginStr,ticketStr,passStr];
14 | chrome.storage.sync.get(keys, function(login_data) {
15 | //console.log(login_data);
16 | user = login_data[loginStr];
17 | detail = login_data[ticketStr];
18 | ticketDetails = login_data[passStr];
19 | ticketDetails['boardPoint'] = detail['boarding_point'];
20 | bookTicket();
21 | });
22 | }
23 | })
24 |
25 | function login(detail){
26 | $("input[name='userName']").val(detail['username']);
27 | $("input[name='password']").val(detail['password']);
28 | $("input#button").click();
29 | }
30 |
31 | function planMyTravel(detail){
32 | $("input[name='stationFrom']").val(detail['source']);
33 | $("input[name='stationTo']").val(detail['destination']);
34 | $("input[name='JDatee1']").val(detail['date']);
35 | var Date = detail['date'].split("/");
36 | $("select[name='day']").val(Date[0]);
37 | $("select[name='month']").val(Date[1]);
38 | $("select[name='year']").val(Date[2]);
39 | $("select[name='ticketType']").val('eticket');
40 | $("select[name='quota']").val(detail['quota']);
41 | $("#findTrain input").click();
42 | }
43 |
44 | function listOfTrains(detail){
45 | $('#plannerTrainListResult').parent().find('table > tbody > tr').each(function() {
46 | // alert("check!");
47 | if($(this).find('td:first-child').html().search(detail['trainNo']) >= 0){
48 | $(this).find('td input[value="'+detail['class']+'"]').click();
49 | // alert("found!");
50 | }
51 | });
52 | }
53 | //listOfTrains(trainDetails);
54 |
55 |
56 | function ticketConfirmation(detail){
57 | $("input[name='boardPoint1']").val(detail['boardPoint']);
58 | $("input[name='mobileNumber']").val(detail['mobileNumber']);
59 | for(var i in detail){
60 | if($.isNumeric(i)){
61 | var j = i-1;
62 | $("input[name='passengers["+j+"].passengerName']").val(detail[i]['name']);
63 | $("input[name='passengers["+j+"].passengerAge']").val(detail[i]['age']);
64 | $("select[name='passengers["+j+"].passengerSex']").val(detail[i]['sex']);
65 | $("select[name='passengers["+j+"].berthPreffer']").val(detail[i]['berth_preference']);
66 | $("select[name='passengers["+j+"].foodPreffer']").val(detail[i]['food_preference']);
67 | $("input[name='passengers["+j+"].seniorCitizen']").prop('checked', (detail[i]['senior_citizen'] == "off")?false:true);
68 | $("select[name='passengers["+j+"].idCardType']").val(detail[i]['idCardType']);
69 | $("input[name='passengers["+j+"].idCardNo']").val(detail[i]['idCardNo']);
70 | }
71 | }
72 | }
73 |
74 | function clickBook(){
75 | var timerbook = setInterval(function(){
76 | if(document.getElementById('submitButton0')){
77 | document.getElementById('submitButton0').click();
78 | clearInterval(timerbook);
79 | }
80 | if(document.documentElement.outerHTML.search("Session has Expired") >= 0)
81 | window.location.href="/";
82 | },1000);
83 | }
84 | //ticketConfirmation(ticketDetails);
85 |
86 | // planMyTravel(detail);
87 | function bookTicket(){
88 | if(document.documentElement.outerHTML.search("Session has Expired") >= 0 || document.documentElement.outerHTML.search("Online Reservation Error") >= 0 ){
89 | window.location.href="/";
90 | }
91 | else if(window.location.pathname.search('cgi-bin') < 0){
92 | login(user);
93 | }
94 | else if(window.location.pathname.search('planner.do') >= 0){
95 | var str = document.documentElement.outerHTML;
96 | if(str.search("Train Route
") >= 0){
97 | alert("TicketMaster : Please select correct station codes and click on Book");
98 | }
99 | // else if($(".ErrorMsg").length > 0 && $(".welcomealert").length <= 0){
100 | // alert("Some error occurred, please check ticket details again");
101 | // }
102 | else if(str.search(" List of Trains
") < 0){
103 | planMyTravel(detail);
104 | }
105 | else{
106 | listOfTrains(detail);
107 | var str = document.documentElement.outerHTML;
108 | if(str.search(">Availability ") >= 0){
109 | //alert("asdasd");
110 | clickBook();
111 | }
112 | }
113 | }
114 | else if(window.location.pathname.search('bookticket.do') >= 0){
115 | if($('input[value="Go"]').length > 0){
116 | ticketConfirmation(ticketDetails);
117 | var timercaptcha = setInterval(function(){
118 | var value = captcha();
119 | if(value != ""){
120 | $('input[name="captchaImage"]').val(value);
121 | $('input[value="Go"]').click();
122 | //clearInterval(timercaptcha);
123 | }
124 | },500);
125 | }
126 | else{
127 | if($('#payButton').css('display') != 'none')
128 | $('input[value="Make Payment"]').click();
129 | }
130 | }
131 | }
132 |
133 | //bookTicket();
--------------------------------------------------------------------------------
/js/popup.js:
--------------------------------------------------------------------------------
1 | var _gaq = _gaq || [];
2 | _gaq.push(['_setAccount', 'UA-43841023-1']);
3 | _gaq.push(['_trackPageview']);
4 |
5 | (function() {
6 | var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
7 | ga.src = 'https://ssl.google-analytics.com/ga.js';
8 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
9 | })();
10 |
11 | function addTickets() {
12 | chrome.storage.sync.get('tickets', function(data){
13 | data['tickets'].forEach(function(counter) {
14 | var ticketStr = "ticket"+counter+"_ticket";
15 | var keys = [ticketStr];
16 | chrome.storage.sync.get(keys, function(login_data) {
17 | detail = login_data[ticketStr];
18 | addHtml(detail, counter);
19 | });
20 | });
21 | });
22 | function addHtml(detail, counter) {
23 | currHtml = "