Add version files and new GIF images for UI components
1109
modules/bootstrap/css/bootstrap-responsive.css
vendored
Normal file
9
modules/bootstrap/css/bootstrap-responsive.min.css
vendored
Normal file
6158
modules/bootstrap/css/bootstrap.css
vendored
Normal file
9
modules/bootstrap/css/bootstrap.min.css
vendored
Normal file
BIN
modules/bootstrap/img/glyphicons-halflings-white.png
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
BIN
modules/bootstrap/img/glyphicons-halflings.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
2276
modules/bootstrap/js/bootstrap.js
vendored
Normal file
6
modules/bootstrap/js/bootstrap.min.js
vendored
Normal file
BIN
modules/css/LKf8nhXsWg5ybwEGXk8UBQ.woff
Normal file
34
modules/css/blue.css
Normal file
@ -0,0 +1,34 @@
|
||||
/* ---- Gebo Admin blue theme ---- */
|
||||
|
||||
.navbar-inner {
|
||||
background: #3993ba;
|
||||
background: -moz-linear-gradient(top, #3993ba 0%, #067ead 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3993ba), color-stop(100%,#067ead));
|
||||
background: -webkit-linear-gradient(top, #3993ba 0%,#067ead 100%);
|
||||
background: -o-linear-gradient(top, #3993ba 0%,#067ead 100%);
|
||||
background: -ms-linear-gradient(top, #3993ba 0%,#067ead 100%);
|
||||
background: linear-gradient(top, #3993ba 0%,#067ead 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3993ba', endColorstr='#067ead',GradientType=0 );
|
||||
}
|
||||
.navbar .nav > li > a {
|
||||
color: #c1dce7;
|
||||
}
|
||||
.navbar .nav > li:hover > a {
|
||||
color:#fff;
|
||||
}
|
||||
.navbar .nav .active > a, .navbar .nav .active > a:hover {
|
||||
background: #206484 !important;
|
||||
}
|
||||
.navbar .divider-vertical {
|
||||
border-left-color:#2078A1;
|
||||
border-right-color:#3497C2;
|
||||
}
|
||||
.dropdown-menu li > a:hover, .dropdown-menu .active > a,
|
||||
.dropdown-menu .active > a:hover,
|
||||
.nav-list > .active > a, .nav-list > .active > a:hover,
|
||||
span.dynatree-active a {
|
||||
background: #48a6d2 !important;
|
||||
}
|
||||
|
||||
.table thead th {background-color:#ebf2f6 !important}
|
||||
.dataTables_wrapper th.sorting_asc,.dataTables_wrapper th.sorting_desc {background-color:#d4e3eb !important}
|
||||
39
modules/css/brown.css
Normal file
@ -0,0 +1,39 @@
|
||||
/* ---- Gebo Admin brown theme ---- */
|
||||
|
||||
.navbar-inner {
|
||||
background: #9b6e3b;
|
||||
background: -moz-linear-gradient(top, #9b6e3b 0%, #76542d 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9b6e3b), color-stop(100%,#76542d));
|
||||
background: -webkit-linear-gradient(top, #9b6e3b 0%,#76542d 100%);
|
||||
background: -o-linear-gradient(top, #9b6e3b 0%,#76542d 100%);
|
||||
background: -ms-linear-gradient(top, #9b6e3b 0%,#76542d 100%);
|
||||
background: linear-gradient(top, #9b6e3b 0%,#76542d 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9b6e3b', endColorstr='#76542d',GradientType=0 );
|
||||
}
|
||||
.navbar .nav > li > a {
|
||||
color: #efe3d5;
|
||||
}
|
||||
.navbar .nav > li:hover > a {
|
||||
color:#fff;
|
||||
}
|
||||
.navbar .nav .active > a, .navbar .nav .active > a:hover {
|
||||
background: #76542d !important;
|
||||
}
|
||||
.navbar .divider-vertical {
|
||||
border-left-color:#76542d;
|
||||
border-right-color:#bb884e;
|
||||
}
|
||||
.dropdown-menu li > a:hover, .dropdown-menu .active > a,
|
||||
.dropdown-menu .active > a:hover,
|
||||
.nav-list > .active > a, .nav-list > .active > a:hover,
|
||||
span.dynatree-active a {
|
||||
background: #b47f44 !important;
|
||||
}
|
||||
.ui-menu .ui-menu-item a.ui-state-hover,
|
||||
.ui-menu .ui-menu-item a.ui-state-active {
|
||||
background: #b47f44 !important;
|
||||
border-color:#b47f44 !important;
|
||||
}
|
||||
|
||||
.table thead th {background-color:#f8f3ee !important}
|
||||
.dataTables_wrapper th.sorting_asc,.dataTables_wrapper th.sorting_desc {background-color:#eee2d6 !important}
|
||||
39
modules/css/dark.css
Normal file
@ -0,0 +1,39 @@
|
||||
/* ---- Gebo Admin dark theme ---- */
|
||||
|
||||
.navbar-inner {
|
||||
background: #45484d;
|
||||
background: -moz-linear-gradient(top, #45484d 0%, #000000 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#45484d), color-stop(100%,#000000));
|
||||
background: -webkit-linear-gradient(top, #45484d 0%,#000000 100%);
|
||||
background: -o-linear-gradient(top, #45484d 0%,#000000 100%);
|
||||
background: -ms-linear-gradient(top, #45484d 0%,#000000 100%);
|
||||
background: linear-gradient(top, #45484d 0%,#000000 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#45484d', endColorstr='#000000',GradientType=0 );
|
||||
}
|
||||
.navbar .nav > li > a {
|
||||
color: #bababa;
|
||||
}
|
||||
.navbar .nav > li:hover > a {
|
||||
color:#fff;
|
||||
}
|
||||
.navbar .nav .active > a, .navbar .nav .active > a:hover {
|
||||
background: #555 !important;
|
||||
}
|
||||
.navbar .divider-vertical {
|
||||
border-left-color:#000;
|
||||
border-right-color:#3b3b3b;
|
||||
}
|
||||
.dropdown-menu li > a:hover, .dropdown-menu .active > a,
|
||||
.dropdown-menu .active > a:hover,
|
||||
.nav-list > .active > a, .nav-list > .active > a:hover,
|
||||
span.dynatree-active a {
|
||||
background: #5c778a !important;
|
||||
}
|
||||
.ui-menu .ui-menu-item a.ui-state-hover,
|
||||
.ui-menu .ui-menu-item a.ui-state-active {
|
||||
background: #5c778a !important;
|
||||
border-color:#5c778a !important;
|
||||
}
|
||||
|
||||
.table thead th {background-color:#f0f3f5 !important}
|
||||
.dataTables_wrapper th.sorting_asc,.dataTables_wrapper th.sorting_desc {background-color:#dce3e7 !important}
|
||||
39
modules/css/eastern_blue.css
Normal file
@ -0,0 +1,39 @@
|
||||
/* ---- Gebo Admin eastern blue theme ---- */
|
||||
|
||||
.navbar-inner {
|
||||
background: #37b0c9;
|
||||
background: -moz-linear-gradient(top, #37b0c9 0%, #1294af 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#37b0c9), color-stop(100%,#1294af));
|
||||
background: -webkit-linear-gradient(top, #37b0c9 0%,#1294af 100%);
|
||||
background: -o-linear-gradient(top, #37b0c9 0%,#1294af 100%);
|
||||
background: -ms-linear-gradient(top, #37b0c9 0%,#1294af 100%);
|
||||
background: linear-gradient(top, #37b0c9 0%,#1294af 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#37b0c9', endColorstr='#1294af',GradientType=0 );
|
||||
}
|
||||
.navbar .nav > li > a {
|
||||
color: #c7f0f9;
|
||||
}
|
||||
.navbar .nav > li:hover > a {
|
||||
color:#fff;
|
||||
}
|
||||
.navbar .nav .active > a, .navbar .nav .active > a:hover {
|
||||
background: #0f7a90 !important;
|
||||
}
|
||||
.navbar .divider-vertical {
|
||||
border-left-color:#0f7a90;
|
||||
border-right-color:#15aece;
|
||||
}
|
||||
.dropdown-menu li > a:hover, .dropdown-menu .active > a,
|
||||
.dropdown-menu .active > a:hover,
|
||||
.nav-list > .active > a, .nav-list > .active > a:hover,
|
||||
span.dynatree-active a {
|
||||
background: #1294af !important;
|
||||
}
|
||||
.ui-menu .ui-menu-item a.ui-state-hover,
|
||||
.ui-menu .ui-menu-item a.ui-state-active {
|
||||
background: #1294af !important;
|
||||
border-color:#1294af !important;
|
||||
}
|
||||
|
||||
.table thead th {background-color:#eaf5f8 !important}
|
||||
.dataTables_wrapper th.sorting_asc,.dataTables_wrapper th.sorting_desc {background-color:#d1e9f0 !important}
|
||||
6
modules/css/font.css
Normal file
@ -0,0 +1,6 @@
|
||||
@font-face {
|
||||
font-family: 'PT Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('PT Sans'), local('PTSans-Regular'), url(modules/css/LKf8nhXsWg5ybwEGXk8UBQ.woff) format('woff');
|
||||
}
|
||||
39
modules/css/green.css
Normal file
@ -0,0 +1,39 @@
|
||||
/* ---- Gebo Admin green theme ---- */
|
||||
|
||||
.navbar-inner {
|
||||
background: #83994c;
|
||||
background: -moz-linear-gradient(top, #83994c 0%, #627530 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#83994c), color-stop(100%,#627530));
|
||||
background: -webkit-linear-gradient(top, #83994c 0%,#627530 100%);
|
||||
background: -o-linear-gradient(top, #83994c 0%,#627530 100%);
|
||||
background: -ms-linear-gradient(top, #83994c 0%,#627530 100%);
|
||||
background: linear-gradient(top, #83994c 0%,#627530 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#83994c', endColorstr='#627530',GradientType=0 );
|
||||
}
|
||||
.navbar .nav > li > a {
|
||||
color: #dae5bf;
|
||||
}
|
||||
.navbar .nav > li:hover > a {
|
||||
color:#fff;
|
||||
}
|
||||
.navbar .nav .active > a, .navbar .nav .active > a:hover {
|
||||
background: #58692b !important;
|
||||
}
|
||||
.navbar .divider-vertical {
|
||||
border-left-color:#627530;
|
||||
border-right-color:#80993f;
|
||||
}
|
||||
.dropdown-menu li > a:hover, .dropdown-menu .active > a,
|
||||
.dropdown-menu .active > a:hover,
|
||||
.nav-list > .active > a, .nav-list > .active > a:hover,
|
||||
span.dynatree-active a {
|
||||
background: #6c8135 !important;
|
||||
}
|
||||
.ui-menu .ui-menu-item a.ui-state-hover,
|
||||
.ui-menu .ui-menu-item a.ui-state-active {
|
||||
background: #6c8135 !important;
|
||||
border-color:#6c8135 !important;
|
||||
}
|
||||
|
||||
.table thead th {background-color:#eff7ec !important}
|
||||
.dataTables_wrapper th.sorting_asc,.dataTables_wrapper th.sorting_desc {background-color:#dbedd4 !important}
|
||||
11
modules/css/ie.css
Normal file
@ -0,0 +1,11 @@
|
||||
/* ---- Gebo Admin ie fixes ---- */
|
||||
|
||||
.sidebar {position:fixed;top:40px;left:0;margin-left:0}
|
||||
.p_canvas {display:none}
|
||||
.modal-header .close {filter: alpha(opacity = 100);}
|
||||
.dataTables_filter {overflow:hidden}
|
||||
.row-fluid input[class*="span"],.row-fluid textarea[class*="span"],.row-fluid select[class*="span"] {display:inline;min-height:18px}
|
||||
.ui-spinner input, .ui-spinner input:focus {min-height:18px;padding-top:5px}
|
||||
.js #simple_wizard,.js #validate_wizard {visibility:visible}
|
||||
.step {border:none}
|
||||
input:focus,textarea:focus {border-color: #75b9f0}
|
||||
856
modules/css/style.css
Normal file
@ -0,0 +1,856 @@
|
||||
html {overflow-y: scroll}
|
||||
body {background-color: #f3f3f3;padding: 0}
|
||||
|
||||
html,body {height:100%}
|
||||
|
||||
/* fix for inputs inline shadow */
|
||||
input[type="text"], input[type="email"], input[type="search"], input[type="password"] {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
}
|
||||
/* no borders for buttons (ie7) */
|
||||
button {*border: none !important;*border-color: transparent !important}
|
||||
|
||||
a,button,input {outline:none !important}
|
||||
|
||||
/* webkit extra margin fix */
|
||||
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
||||
button {margin: 0px}
|
||||
}
|
||||
|
||||
/* hide all elements & show preloader */
|
||||
.js, .js body {overflow:hidden}
|
||||
.js body > * {visibility:hidden}
|
||||
.js #loading_layer {visibility:visible;display:block !important;position:absolute;top:0;left:0;width:100%;height:100%;background:#fff;z-index:10000}
|
||||
.js #loading_layer img {position:fixed;top:50%;left:50%;width:64px;height:10px;margin:-5px 0 0 -32px}
|
||||
.js .tab-pane {display:block !important}
|
||||
.js .hide {display: inherit}
|
||||
|
||||
/* external links */
|
||||
.external_link {background: url(modules/img/external_link.png) no-repeat right center;padding-right:12px}
|
||||
|
||||
/* main headings*/
|
||||
.heading {border-bottom: 1px solid #dcdcdc;margin-bottom: 18px;padding-bottom: 5px}
|
||||
.heading h1,.heading h2,.heading h3,h1.heading,h2.heading,h3.heading,.modal-header h3 {font-family: 'PT Sans', sans-serif;font-weight:400}
|
||||
.heading .btn {vertical-align:bottom;margin-left:10px}
|
||||
|
||||
/* fix for .label position */
|
||||
h1 + .label {margin:13px 10px 0 0}
|
||||
h2 + .label {margin:12px 10px 0 0}
|
||||
h3 + .label {margin:7px 10px 0 0}
|
||||
|
||||
/* element separation */
|
||||
.sepH_a {margin-bottom:5px}.sepH_b {margin-bottom:10px}.sepH_c {margin-bottom:20px}
|
||||
.sepV_a {margin-right:5px}.sepV_b {margin-right:10px}.sepV_c {margin-right:20px}
|
||||
.sepH_a_line {padding-bottom:6px;margin-bottom:18px;border-bottom:1px solid #dcdcdc}
|
||||
.sepH_no {margin-bottom:0}
|
||||
|
||||
.tac {text-align:center}
|
||||
.line_sep {border-bottom: 1px solid #dcdcdc;margin-bottom: 18px;padding-bottom: 5px}
|
||||
.sml_t {font-size:11px}
|
||||
.sml {font-size:11px;color:#9d9d9d}
|
||||
|
||||
/* accordion background animation */
|
||||
.accordion-toggle {
|
||||
-webkit-transition:background-color 0.2s ease-in-out;
|
||||
-moz-transition:background-color 0.2s ease-in-out;
|
||||
-o-transition:background-color 0.2s ease-in-out;
|
||||
transition:background-color 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
/* text-shadow */
|
||||
.ov_boxes .ov_text,.dshb_icoNav li a,.table th,.fc thead th{text-shadow: 1px 1px 0 #fff}
|
||||
.dataTables_wrapper .sorting_asc,.dataTables_wrapper .sorting_desc {text-shadow: 1px 1px 0 #eee}
|
||||
|
||||
/* Bootstrap adjustments */
|
||||
|
||||
[class^="icon-"], [class*=" icon-"] {margin-top:0}
|
||||
.btn-mini [class^="icon-"], btn-mini [class*=" icon-"] {margin-top:1px}
|
||||
|
||||
h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:700;color:inherit;text-rendering:optimizelegibility;margin:0}
|
||||
h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{font-weight:400;color:#999}
|
||||
h1{font-size:30px;line-height:36px}
|
||||
h2{font-size:24px;line-height:36px}
|
||||
h3{font-size:18px;line-height:27px}
|
||||
h4,h5,h6{line-height:18px}
|
||||
h6{font-size:11px;color:#999;text-transform:uppercase}
|
||||
h1 small,h2 small{font-size:18px}
|
||||
h3 small,h4{font-size:14px}
|
||||
h4 small,h5{font-size:12px}
|
||||
|
||||
.row-fluid div[class*="span"] {min-height:1px}
|
||||
form .row-fluid + .row-fluid {margin-top:10px !important}
|
||||
|
||||
.main_content .row-fluid + .row-fluid {margin-top: 30px}
|
||||
|
||||
.nav-pills + .nav-pills {margin-left: 10px;padding-left:10px;border-left: 1px solid #dcdcdc}
|
||||
.nav-pills > li > a {padding: 5px 8px}
|
||||
|
||||
.navbar-fixed-top, .navbar-fixed-bottom {z-index:999}
|
||||
.navbar-fixed-top .nav-collapse i {opacity:0.8}
|
||||
.navbar-fixed-top .nav-collapse li:hover i {opacity:1}
|
||||
.nav-list > li > a,.dropdown-menu li a {-webkit-border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;border-radius: 4px}
|
||||
.navbar-fixed-top .navHover:after {height:1px;width:100%;bottom:-1px;position:absolute;content:'';display:block}
|
||||
.navbar .nav > li > a.nav_condensed {padding-left:2px;padding-right:2px}
|
||||
|
||||
.pagination ul > li > div > a,.pagination ul > li > div > span {float: left;padding: 0 14px;line-height: 38px;text-decoration: none;background-color: #ffffff;border: 1px solid #dddddd;border-left-width: 0}
|
||||
.pagination ul > li > div > a:hover,.pagination ul > .active > div > a,.pagination ul > .active > div > span {background-color: #f5f5f5}
|
||||
.pagination ul > .active > div > a,.pagination ul > .active > div > span {color: #999999;cursor: default}
|
||||
.pagination ul > .disabled > div > span,.pagination ul > .disabled > div > a,.pagination ul > .disabled > div > a:hover {color: #999999;cursor: default;background-color: transparent}
|
||||
.pagination ul > li:first-child > div > a,.pagination ul > li:first-child > div > span {border-left-width: 1px;-webkit-border-radius: 3px 0 0 3px;-moz-border-radius: 3px 0 0 3px;border-radius: 3px 0 0 3px}
|
||||
.pagination ul > li:last-child > div > a,.pagination ul > li:last-child > div > span {-webkit-border-radius: 0 3px 3px 0;-moz-border-radius: 0 3px 3px 0;border-radius: 0 3px 3px 0}
|
||||
|
||||
.pagination {height:26px}
|
||||
.pagination a.active {background-color: #f5f5f5}
|
||||
.pagination a.active {color: #999;cursor: default}
|
||||
.pagination ul > li > a,.pagination ul > li > span,.pagination ul > li > div > a,.pagination ul > li > div > span {line-height: 24px;padding:0 10px}
|
||||
.pagination ul > li > div.page {display:inline}
|
||||
|
||||
.pager a {-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px;padding:4px 12px}
|
||||
|
||||
.label {cursor:default;font-size:11px;padding:2px 4px}
|
||||
.label-important,.badge-error {background: #C62626}
|
||||
.label-success,.badge-success {background: #70A415}
|
||||
.label-warning,.badge-warning {background: #F5AA1A}
|
||||
.label-info,.badge-info {background: #058DC7}
|
||||
|
||||
.alert .close {top:0}
|
||||
.alert-block p + p,.alert-block ul + p,.alert-block p + ul {margin-top:10px}
|
||||
.alert-block h4 + p,.alert-block h4 + ul {margin-top:5px}
|
||||
.icon-sw {width:16px;height:16px;display:inline-block;background-repeat: no-repeat;background-position: center center}
|
||||
|
||||
.well {-webkit-box-shadow: none;-moz-box-shadow: none;-ms-box-shadow: none;box-shadow: none}
|
||||
|
||||
.dropdown-menu li {padding:0 5px}
|
||||
.dropdown-menu li a {padding:3px 20px 3px 8px;position:relative}
|
||||
|
||||
.modal-footer {padding:7px 15px 8px}
|
||||
.modal {border:8px solid rgba(0, 0, 0, 0.5);-webkit-box-shadow: none;-moz-box-shadow: none;-ms-box-shadow: none;box-shadow: none}
|
||||
.modal-header {background:#e4e4e4;border-color:#d4d4d4;padding:5px 15px}
|
||||
.modal-header .close {margin-top:5px}
|
||||
.modal-body{padding:20px 15px}
|
||||
.modal-backdrop, .modal-backdrop.fade.in {opacity:.1;background:#777}
|
||||
|
||||
.main_content .accordion-heading .accordion-toggle {background-color:#f5f5f5;color:#222;text-decoration:none;background-image: url(modules/img/acc_icons.png);background-position: 98% 12px;background-repeat:no-repeat}
|
||||
.main_content .accordion-heading .accordion-toggle:hover {background-color:#e5e5e5}
|
||||
.main_content .accordion-heading .acc-in {background-position:98% -34px}
|
||||
|
||||
.btn-gebo {text-shadow: 0px -1px 0px #004f6f;color:#fff;background-color:#006d8d;background-image:-moz-linear-gradient(top, #1e8bab, #004f6f); background-image: -ms-linear-gradient(top, #1e8bab, #004f6f); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#1e8bab), to(#004f6f)); background-image: -webkit-linear-gradient(top, #1e8bab, #004f6f); background-image: -o-linear-gradient(top, #1e8bab, #004f6f); background-image: linear-gradient(top, #1e8bab, #004f6f); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1e8bab', endColorstr='#004f6f', GradientType=0); border-color: #006D8D #004f6f #004f6f #006D8D; border-color: rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.25); }
|
||||
.btn-gebo:hover, .btn-gebo:active, .btn-gebo.active, .btn-gebo.disabled, .btn-gebo[disabled] {background-color: #004f6f}
|
||||
.btn-gebo:hover {color:#fff;text-shadow: 0px -1px 0px #003151}
|
||||
.btn-gebo:focus {color: #fff;-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); border-color: #006D8D #004f6f #004f6f #006D8D; border-color: rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.25); }
|
||||
.btn-gebo.active, .btn-gebo:active { background-image: none;-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); color: #64d1f1; }
|
||||
|
||||
.table-striped tbody tr:nth-child(2n) td, .table-striped tbody tr:nth-child(2n) th {background: #fff}
|
||||
|
||||
.modal_box {background: #fff;padding:20px}
|
||||
.modal_box form {background: #fff}
|
||||
#colorbox ~ .bootstrap-timepicker,#colorbox ~ .colorpicker,#colorbox ~ .datepicker {z-index:10000}
|
||||
textarea, input {outline: none}
|
||||
|
||||
tr.rowlink td {cursor:pointer}
|
||||
tr.rowlink td.nolink {cursor:auto}
|
||||
.table tbody tr.rowlink:hover td {background-color: #efefef}
|
||||
a.rowlink {font: inherit;color: inherit;text-decoration: inherit}
|
||||
.navbar .nav > li > a:focus {color:#fff}
|
||||
.input-append .active, .input-prepend .active {border:none;background:none}
|
||||
|
||||
/* header */
|
||||
.navbar .brand {width: 200px;padding-bottom:0;padding-top:0;font: 100 18px/36px 'PT Sans', sans-serif;text-decoration:none;color: #fff;text-shadow:none}
|
||||
.navbar .brand i {margin-top:5px}
|
||||
.navbar .caret {opacity: .6;filter: alpha(opacity=60)}
|
||||
.navbar .user_menu {margin-left: 0}
|
||||
.navbar .user_menu .nb_boxes {margin:9px 0 0}
|
||||
.navbar .user_menu .nb_boxes .label {background: transparent;background:rgba(0,0,0,.2);padding:3px 4px}
|
||||
.navbar .user_menu .nb_boxes a {cursor:pointer;float:left;margin-right:8px}
|
||||
.navbar .user_menu .nb_boxes a:last-child {margin:0}
|
||||
.navbar .user_menu a.dropdown-toggle {white-space:nowrap}
|
||||
.navbar .user_menu .user_avatar {margin-right:6px;height:20px}
|
||||
.btn_menu {display:none}
|
||||
|
||||
/* main content */
|
||||
#maincontainer {background-image: url(../img/main_bg.gif);background-repeat:repeat-y;min-height:100%}
|
||||
#contentwrapper{float: left;width: 100%}
|
||||
.main_content{padding:64px 30px 30px;background:#fff;border-left:1px solid transparent;margin-left:240px}
|
||||
.main_content li{line-height:22px}
|
||||
|
||||
/* sidebar */
|
||||
.sidebar{margin-left:-100%;width:240px;float:left;position:relative}
|
||||
.sidebar_sep{background:#efefef;clear:both;float:none;height:5px;border-color:#ccc;border-style:solid;border-width:1px 0;margin:14px 0}
|
||||
.sidebar_switch{text-indent:-10000px;width:16px;position:fixed;left:220px;top:45px;height:14px;cursor:pointer;z-index:100;display:block;opacity:.5}
|
||||
.on_switch {background: url(../img/sidebar_switch.png) no-repeat 0 -19px}
|
||||
.off_switch {background: url(../img/sidebar_switch.png) no-repeat 0 -1px}
|
||||
.sidebar_inner form{padding:14px 0 9px 15px}
|
||||
.sidebar_inner form input{margin:0}
|
||||
|
||||
.sidebar_hidden .sidebar {display:none}
|
||||
.sidebar_hidden .sidebar_switch {left:4px;}
|
||||
.sidebar_hidden .main_content {margin:0;border-left:none}
|
||||
.sidebar_hidden {background: #fff}
|
||||
|
||||
.sidebar_hidden #maincontainer {background: #fff}
|
||||
.sidebar_info {width:180px;position:relative;left:30px;bottom:10px}
|
||||
.sidebar_info ul {padding:5px 10px;margin:0;font-size:11px;background:#fafafa;border:1px solid #e5e5e5;-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px}
|
||||
.sidebar_info ul li {line-height:26px;overflow:hidden;border-bottom:1px dashed #ccc}
|
||||
.sidebar_info ul li:last-child {border:none}
|
||||
.sidebar_info .act {float:right}
|
||||
|
||||
.sidebar .accordion {border-top: 1px solid #ccc;margin-bottom: 20px;margin-right:1px}
|
||||
.sidebar .accordion-heading {text-shadow: 1px 1px 0 #efefef;background: #e0e0e0;-webkit-box-shadow: inset 0px 1px 0px 0px #ececec;box-shadow: inset 0px 1px 0px 0px #ececec}
|
||||
.sidebar .accordion-heading a:hover {background-color: #cfcfcf}
|
||||
.sidebar .accordion-group{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;margin-bottom:0;border-color:#ccc;border-style:solid;border-width:0 0 1px}
|
||||
.sidebar .accordion-group a{color:#222;text-decoration:none!important}
|
||||
.sidebar .accordion-group .active a{color:#fff}
|
||||
.sidebar .accordion-group .accordion-heading a{color:#222}
|
||||
.sidebar .accordion-inner{border-top:1px solid #ccc;background:#fafafa}
|
||||
|
||||
.sdb_h_active a {background: url("../img/bullet_green.png") no-repeat 98% center}
|
||||
|
||||
/* login page */
|
||||
.login_page {overflow:auto}
|
||||
.login_page body {height:100%;max-width:inherit;margin:0 20px}
|
||||
.login_page .login_box {position:relative;top:40%;width:520px;margin:0 auto 0px;margin-top:-220px;background:#fff;border:1px solid #ccc;-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px;-webkit-box-shadow: 0 0 6px rgba(0,0,0,0.2);-moz-box-shadow: 0 0 6px rgba(0,0,0,0.2);-ms-box-shadow: 0 0 6px rgba(0,0,0,0.2);box-shadow: 0 0 6px rgba(0,0,0,0.2)}
|
||||
.login_page .top_b {text-shadow:0 1px 0 rgba(255,255,255,.5);font: 100 18px/42px 'PT Sans', sans-serif;height:42px;padding:0 20px;background: #e0e0e0;border-bottom:1px solid #ccc;-moz-border-radius-topleft: 6px;-moz-border-radius-topright: 6px;-moz-border-radius-bottomright: 0px;-moz-border-radius-bottomleft: 0px;-webkit-border-radius: 6px 6px 0px 0px;border-radius: 6px 6px 0px 0px;font-size:15px}
|
||||
.login_page .cnt_b {padding-top:20px;width:66%;margin:0 auto}
|
||||
.login_page form {margin-bottom:0}
|
||||
.login_page .btm_b {padding:12px 20px;border-top:1px solid #e7e7e7;background:#f7f7f7;-moz-border-radius-topleft: 0px;-moz-border-radius-topright: 0px;-moz-border-radius-bottomright: 6px;-moz-border-radius-bottomleft: 6px;-webkit-border-radius: 0px 0px 6px 6px;border-radius: 0px 0px 6px 6px}
|
||||
.login_page .links_b {width:100%;font-size:11px;text-align:center;position:absolute;bottom:-24px}
|
||||
.login_page .link_reg {font-size:11px;padding:5px 0 0;display:block}
|
||||
.alert-login {margin:10px 10px 0}
|
||||
|
||||
/* error pages */
|
||||
.error_page {background:#eee}
|
||||
.error_page,.error_page body,.error_page .error_box {height:100%}
|
||||
.error_page h1 {font-family: 'Jockey One', sans-serif;font-size: 52px;line-height:1.1;text-transform: uppercase;color: #067ead;text-shadow: 2px 2px 0px rgba(255,255,255,.5), 4px 4px 0px rgba(0,0,0,.1);margin-bottom:10px;padding:40px 0 0 300px}
|
||||
.error_page p {color:inherit;font-size:16px;line-height:24px;font-weight:200;margin-left:300px}
|
||||
.error_page .back_link {margin-left:300px}
|
||||
.error_page .error_box {background: url(../img/error_big.png) no-repeat 0 0;padding:0;width:72%;margin: 0 auto}
|
||||
|
||||
/* search page */
|
||||
.search_page .well {padding:10px 20px;line-height:26px}
|
||||
.search_page .well select {margin:0;width:auto}
|
||||
.search_page .search_panel {border:1px solid #e0e0e0;-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px;margin-bottom:20px}
|
||||
.search_page .search_item {border-bottom:1px solid #e0e0e0;padding:10px 20px 10px 30px;position:relative}
|
||||
.search_page .search_item:nth-child(even) {background:#f2f8fd}
|
||||
.search_page .search_item:last-child {border:none}
|
||||
.search_page .search_content {padding-left:110px}
|
||||
.search_page .search_content h4 {font-size:14px;margin-bottom:6px}
|
||||
.search_page .search_content h4 {vertical-align:text-top}
|
||||
.search_page .search_content strong {color:#666}
|
||||
.search_page .search_content small {color:#666;font-size:11px}
|
||||
.search_page .searchNb {position:absolute;top:10px;left:10px;color:#ccc;font-size:11px}
|
||||
.search_page .result_view a {opacity:0.3}
|
||||
.search_page .result_view a.active {opacity:1}
|
||||
|
||||
.search_page .box_view {border:none;margin-left:-1%}
|
||||
.search_page .box_view .search_item {margin-left:1%;border:1px solid #e0e0e0;height:200px;-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px;margin:0 0 1% 1%;float:left;width:32.333%;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;-ms-box-sizing: border-box;box-sizing: border-box}
|
||||
.search_page .box_view h4 {height:20px;overflow:hidden}
|
||||
.search_page .box_view .item_description {max-height:92px;overflow:hidden}
|
||||
.search_page .box_view .label {position:absolute;top:-9px;right:-6px}
|
||||
|
||||
.sidebar_filters {padding:30px 30px 20px}
|
||||
.sidebar_filters h3 {font-size:13px;color:#067EAD}
|
||||
.sidebar_filters .filter_items {padding:5px 10px 10px;margin-bottom:10px;border-bottom:1px dashed #ccc}
|
||||
|
||||
/* forms */
|
||||
.formRow:last-child input, .formRow:last-child textarea, .formRow:last-child select, .uneditable-input {margin-bottom: 0}
|
||||
.formRow small {display:block;font-size:11px;color:#999;line-height:14px}
|
||||
.formSep {margin-bottom:12px;padding-bottom:12px;border-bottom:1px dashed #dcdcdc}
|
||||
|
||||
.stacked select, .stacked input[type="text"],.stacked textarea {display:block}
|
||||
|
||||
.help-inline,.help-block {font-size:11px;margin:-4px 0 0 2px}
|
||||
|
||||
.form-horizontal .help-block {margin-top:2px}
|
||||
.form-horizontal .control-group {margin-bottom:14px}
|
||||
|
||||
input.focused {border-color: rgba(82,168,236,.8);-webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);-moz-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);outline: 0;z-index:2;position:relative}
|
||||
|
||||
.f_warning > label,.f_warning .help-block,.f_warning .help-inline{color:#c09853}
|
||||
.f_warning input,.f_warning select,.f_warning textarea{color:#c09853;border-color:#c09853}
|
||||
.f_warning input:focus,.f_warning select:focus,.f_warning textarea:focus{-webkit-box-shadow:0 0 6px #dbc59e;-moz-box-shadow:0 0 6px #dbc59e;box-shadow:0 0 6px #dbc59e;border-color:#a47e3c}
|
||||
.f_warning .input-prepend .add-on,.f_warning .input-append .add-on{color:#c09853;background-color:#fcf8e3;border-color:#c09853}
|
||||
|
||||
.f_error input,.f_error select,.f_error textarea{color:#b94a48;border-color:#b94a48}
|
||||
.f_error input:focus,.f_error select:focus,.f_error textarea:focus{-webkit-box-shadow:0 0 6px #d59392;-moz-box-shadow:0 0 6px #d59392;box-shadow:0 0 6px #d59392;border-color:#953b39}
|
||||
.f_error .input-prepend .add-on,.f_error .input-append .add-on{color:#b94a48;background-color:#f2dede;border-color:#b94a48}
|
||||
.f_error label.error {display:block;font-size:11px;font-weight:700;color:#C62626}
|
||||
input[type="text"] + label.error,input[type="password"] + label.error, select + label.error, textarea + label.error {margin-top:-6px}
|
||||
.f_error label.radio + label.error,.f_error label.checkbox + label.error {margin-top:5px}
|
||||
.input-prepend.f_error label.error,.input_append.f_error label.error {margin-top:4px}
|
||||
.control-group.f_error label.error {margin-top:2px}
|
||||
|
||||
.f_success > label,.f_success .help-block,.f_success .help-inline{color:#468847}
|
||||
.f_success input,.f_success select,.f_success textarea{color:#468847;border-color:#468847}
|
||||
.f_success input:focus,.f_success select:focus,.f_success textarea:focus{-webkit-box-shadow:0 0 6px #7aba7b;-moz-box-shadow:0 0 6px #7aba7b;box-shadow:0 0 6px #7aba7b;border-color:#356635}
|
||||
.f_success .input-prepend .add-on,.f_success .input-append .add-on{color:#468847;background-color:#dff0d8;border-color:#468847}
|
||||
|
||||
.ui-tooltip label {margin-bottom:0}
|
||||
.f_legend {font-size:16px;line-height:16px;padding-bottom:10px;margin-bottom:22px;border-bottom:1px solid #dcdcdc}
|
||||
.radio.inline, .checkbox.inline {margin-left:0 !important;margin-right:10px}
|
||||
|
||||
.f_req {font-size:13px;color:#ff0000;font-family: helvetica, arial, sans-serif}
|
||||
.form-horizontal .controls.text_line {line-height:25px}
|
||||
|
||||
.row-fluid input[class*="span"],.row-fluid textarea[class*="span"],.row-fluid select[class*="span"] {display:inline-block}
|
||||
.row-fluid input[class*="span"] + input[class*="span"], .row-fluid textarea[class*="span"] + textarea[class*="span"], .row-fluid select[class*="span"] + select[class*="span"] {display:block}
|
||||
|
||||
textarea {resize: none}
|
||||
|
||||
/* file upload */
|
||||
.btn.btn-file{overflow:hidden;position:relative;vertical-align:middle}
|
||||
.btn.btn-file > input[type=file]{width:100%;position:absolute;left:0;top:0;opacity:0;cursor:pointer}
|
||||
.fileupload{margin-bottom:9px}
|
||||
.fileupload .uneditable-input{display:inline-block;margin-bottom:0;vertical-align:middle;height:28px !important;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;-ms-box-sizing: border-box;box-sizing: border-box}
|
||||
.fileupload .thumbnail{overflow:hidden;display:inline-block;margin-bottom:5px;vertical-align:middle;text-align:center}
|
||||
.fileupload .thumbnail > img{display:block;vertical-align:middle;max-height:100%}
|
||||
.fileupload .btn{vertical-align:middle}
|
||||
.fileupload-exists .fileupload-new,.fileupload-new .fileupload-exists{display:none}
|
||||
.fileupload-inline .fileupload-controls{display:inline}
|
||||
.fileupload-new .input-append .btn-file{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}
|
||||
.fileupload .fileupload-preview {vertical-align:middle}
|
||||
.fileupload .close.fileupload-exists {vertical-align:middle}
|
||||
|
||||
/* input spinner */
|
||||
.ui-spinner button {height:14px;position:absolute;background:none;border:none;width:18px;padding:0;background: url(../img/spinner_arrows.gif) no-repeat 0 -100px;cursor:pointer}
|
||||
.ui-spinner .ui-spinner-up {top:0;right:0;background-position:0 0}
|
||||
.ui-spinner .ui-spinner-down {top:14px;right:0;background-position:0 -14px}
|
||||
.ui-spinner .ui-spinner-up:hover {background-position:-18px 0}
|
||||
.ui-spinner .ui-spinner-down:hover {background-position:-18px -14px}
|
||||
.ui-spinner input,.ui-spinner input:focus {display:block !important;margin:0 !important;padding:0;min-height:28px !important;height:28px !important;-webkit-box-shadow:none;-moz-box-shadow:none;-ms-box-shadow:none;box-shadow:none}
|
||||
.ui-spinner ul {margin:0}
|
||||
.ui-spinner li {line-height:28px}
|
||||
.ui-spinner{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);position:relative;margin-bottom:10px;font-size:13px;height:28px;line-height:28px;color:#555;background-color:#fff;border:1px solid #ccc;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;overflow:hidden;padding:0 24px 0 8px}
|
||||
.ui-spinner .ui-spinner-box {background: none;border: none !important}
|
||||
|
||||
/* animated progresbars */
|
||||
.pbar .ui-progressbar-value {display:block !important}
|
||||
.pbar {overflow: hidden}
|
||||
.percent,.elapsed {position:relative;text-align: right; font-size: 12px}
|
||||
|
||||
/* ul list styles */
|
||||
.list_a,.list_b,.list_c,.list_d {margin-left:0;list-style:none}
|
||||
.list_a li {background: url(../img/bullet_blue.png) no-repeat 3px 4px;padding-left:25px}
|
||||
.list_b li {background: url(../img/bullet_green.png) no-repeat 3px 4px;padding-left:25px}
|
||||
.list_c li {background: url(../img/bullet_orange.png) no-repeat 3px 4px;padding-left:25px}
|
||||
.list_d li {background: url(../img/bullet_red.png) no-repeat 3px 4px;padding-left:25px}
|
||||
|
||||
/* prettyprint <pre> block */
|
||||
.lit{color:#195f91}
|
||||
.fun{color:#dc322f}
|
||||
.str,.atv{color:#D14}
|
||||
.kwd,.linenums .tag{color:#1e347b}
|
||||
.typ,.atn,.dec,.var{color:teal}
|
||||
.pln{color:#48484c}
|
||||
.prettyprint{background-color:#f7f7f9;border:1px solid #e1e1e8;padding:8px}
|
||||
.prettyprint.linenums{-webkit-box-shadow:inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;-moz-box-shadow:inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;box-shadow:inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0}
|
||||
ol.linenums{margin:0 0 0 33px}
|
||||
ol.linenums li{padding-left:12px;color:#bebec5;line-height:18px;text-shadow:0 1px 0 #fff}
|
||||
.com,.pun,.opn,.clo{color:#93a1a1}
|
||||
|
||||
/* rowlink plugin */
|
||||
[data-rowlink] td, td[data-rowlink],[data-msg_rowlink] td, td[data-msg_rowlink] {cursor: pointer}
|
||||
[data-rowlink] td.nohref, td.nohref[data-rowlink], [data-msg_rowlink] td.nohref, td.nohref[data-msg_rowlink] {cursor:default}
|
||||
|
||||
/* actions links */
|
||||
.act{background:inherit;border:none;display:inline;color:#555;font-weight:700;-webkit-transition:text-shadow .1s linear;-moz-transition:text-shadow .1s linear;-ms-transition:text-shadow .1s linear;-o-transition:text-shadow .1s linear;transition:text-shadow .1s linear;padding:0}
|
||||
a.act:hover{color:#333;text-decoration:none;text-shadow:1px 1px 3px rgba(85,85,85,0.5)}
|
||||
.act-primary{color:#006dcc}
|
||||
a.act-primary:hover{color:#04c;text-shadow:1px 1px 3px rgba(0,109,204,0.5)}
|
||||
.act-info{color:#49afcd}
|
||||
a.act-info:hover{color:#2f96b4;text-shadow:1px 1px 3px rgba(75,175,206,0.5)}
|
||||
.act-success{color:#70A415}
|
||||
a.act-success:hover{color:#468847;text-shadow:1px 1px 3px rgba(81,164,81,0.5)}
|
||||
.act-warning{color:#F5AA1A}
|
||||
a.act-warning:hover{color:#f89406;text-shadow:1px 1px 3px rgba(192,152,84,0.5)}
|
||||
.act-danger{color:#C62626}
|
||||
a.act-danger:hover{color:#bd362f;text-shadow:1px 1px 3px rgba(185,72,70,0.5)}
|
||||
.act.disabled,.act[disabled]{color:#AAA;cursor:not-allowed}
|
||||
a.act.disabled:hover,.act[disabled]:hover{color:#AAA;text-shadow:none}
|
||||
.form-actions .act{line-height:30px}
|
||||
|
||||
/* tabs */
|
||||
.tabbable-bordered{-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}
|
||||
.tabbable-bordered > .nav-tabs {margin: 0}
|
||||
.tabbable-bordered .tab-content {border-color: #ddd;border-style:solid;border-width:0;overflow:auto;padding:18px 0 0}
|
||||
.tabbable-bordered > .tab-content{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;border-width:0 1px 1px;padding:20px 20px 10px}
|
||||
|
||||
/* dashboard icon navigation*/
|
||||
.dshb_icoNav {margin:0;text-align:center}
|
||||
.dshb_icoNav li {-webkit-box-shadow: inset 0px 1px 0px 0px #fff;box-shadow: inset 0px 1px 0px 0px #fff;text-align:center;list-style:none;display:inline-block;margin:0 5px 10px;background: #f9f9f9;background: -moz-linear-gradient(top, #f9f9f9 0%, #efefef 100%);background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f9f9f9), color-stop(100%,#efefef));background: -webkit-linear-gradient(top, #f9f9f9 0%,#efefef 100%);background: -o-linear-gradient(top, #f9f9f9 0%,#efefef 100%);background: -ms-linear-gradient(top, #f9f9f9 0%,#efefef 100%);background: linear-gradient(top, #f9f9f9 0%,#efefef 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f9f9f9', endColorstr='#efefef',GradientType=0 );border:1px solid #e2e2e2;-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px}
|
||||
.dshb_icoNav li:hover {border-color:#d2d2d2;-moz-box-shadow: 0 0 6px #ccc;-webkit-box-shadow: 0 0 6px #ccc;box-shadow: 0 0 6px #ccc}
|
||||
.dshb_icoNav li a {position:relative;display:block;padding:42px 8px 8px;width:88px;height:22px;font-size:12px;color:#222;background-repeat:no-repeat;background-position: center 10px}
|
||||
.dshb_icoNav li a:hover {text-decoration:none}
|
||||
.dshb_icoNav .label {position:absolute;right:-5px;top:-5px}
|
||||
.iconNav_left {text-align:left}
|
||||
.iconNav_right {text-align:right}
|
||||
|
||||
/* overview boxes (+small charts) */
|
||||
.ov_boxes {list-style: none;display: inline-block;margin:0 0 -20px;text-align:center}
|
||||
.ov_boxes li {-webkit-box-shadow: inset 0px 1px 0px 0px #fff;box-shadow: inset 0px 1px 0px 0px #fff;line-height:18px;background: #f9f9f9;background: -moz-linear-gradient(top, #f9f9f9 0%, #ededed 100%);background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f9f9f9), color-stop(100%,#ededed));background: -webkit-linear-gradient(top, #f9f9f9 0%,#ededed 100%);background: -o-linear-gradient(top, #f9f9f9 0%,#ededed 100%);background: -ms-linear-gradient(top, #f9f9f9 0%,#ededed 100%);background: linear-gradient(top, #f9f9f9 0%,#ededed 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f9f9f9', endColorstr='#ededed',GradientType=0 );border: 1px solid #e2e2e2;display: inline-block;margin:0 10px 10px;-webkit-border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;border-radius: 4px;padding: 0 10px}
|
||||
.ov_boxes .p_canvas{margin-right:12px;float:left;border-right:1px solid #dcdcdc;-webkit-box-shadow:1px 0 0 0 #fff;-moz-box-shadow:1px 0 0 0 #fff;box-shadow:1px 0 0 0 #fff;padding:10px 14px 6px 4px}
|
||||
.ov_boxes .ov_text{text-align:left;width:150px;font-size:12px;float:left;padding:9px 10px 7px 0}
|
||||
.ov_boxes .ov_text strong{font-size:16px;display:block}
|
||||
.p_canvas {width:50px}
|
||||
|
||||
/* widgets */
|
||||
.w-box {-webkit-box-shadow: 0px 1px 2px 0px #efefef;box-shadow: 0px 1px 2px 0px #efefef}
|
||||
.w-box + .w-box {margin-top:20px}
|
||||
.w-box-header {height:32px;line-height:32px;border:1px solid #ddd;padding:0 10px;background: #fbfbfb;background: -moz-linear-gradient(top, #fbfbfb 0%, #f1f1f1 100%);background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fbfbfb), color-stop(100%,#f1f1f1));background: -webkit-linear-gradient(top, #fbfbfb 0%,#f1f1f1 100%);background: -o-linear-gradient(top, #fbfbfb 0%,#f1f1f1 100%);background: -ms-linear-gradient(top, #fbfbfb 0%,#f1f1f1 100%); background: linear-gradient(top, #fbfbfb 0%,#f1f1f1 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fbfbfb', endColorstr='#f1f1f1',GradientType=0 );font-weight:700;color:#666;font-size:11px}
|
||||
.w-box-header .btn-group {margin-top:5px;line-height:1}
|
||||
.w-box-header .dropdown-menu {font-size:12px;left:auto;right:0}
|
||||
.w-box-header input {padding:2px;margin:-2px 0 0}
|
||||
.w-box-content {border:1px solid #ddd;border-top:none}
|
||||
.w-box-content.cnt_a {padding:10px}
|
||||
.w-box-content table,.w-box-content pre {margin-bottom:0}
|
||||
.w-box-content pre {-webkit-border-radius: 0 0 0 0;-moz-border-radius: 0 0 0 0;-ms-border-radius: 0 0 0 0;border-radius: 0 0 0 0;border:none}
|
||||
.w-box-content .no-th tr:first-child td {border-top:none}
|
||||
.w-box-content .gebo-upload {margin:0}
|
||||
.w-box-content .gebo-upload .plupload_filelist_header {border-top:none}
|
||||
.w-box-content .gebo-upload .plupload_filelist_footer {border-bottom:none}
|
||||
.w-box-content .nav-tabs {position:relative;top:-30px;margin-bottom:-18px;border-bottom:none}
|
||||
.w-box-content .nav-tabs {float:right;clear:both}
|
||||
.w-box-content .nav-tabs > li > a {padding:4px 6px;font-size:11px}
|
||||
.w-box-content .nav-tabs > li.active > a {background:#fff !important}
|
||||
.w-box-content .nav-tabs > li > a:hover {border-color:#ddd #ddd transparent;background: transparent}
|
||||
.w-box-content .tab-content {clear:both}
|
||||
.w-box-content .tab-pane {padding:0 10px 10px}
|
||||
.w-box-footer {border:1px solid #ddd;padding:8px 10px;background: #fdfdfd;border-top:none}
|
||||
.w-box-footer .pagination {margin:0; font-size:11px;height:22px}
|
||||
.w-box-footer .pagination a {line-height:20px}
|
||||
|
||||
.page-toolbar {background:#f5f8fa;border:1px solid #ddd;padding:4px;margin-bottom:15px;-webkit-border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;border-radius: 4px}
|
||||
|
||||
/* sortable/searchable list */
|
||||
.user_list {list-style: none;margin:0}
|
||||
.user_list li {padding:0 8px 8px;margin-bottom:8px;border-bottom: 1px dashed #dcdcdc;line-height:normal }
|
||||
.user_list small {font-size: 11px;color:#9b9b9b}
|
||||
|
||||
/* file manager */
|
||||
#kcfinder_iframe {height:500px;margin-bottom:30px;border:1px solid #adaba9}
|
||||
|
||||
/* icon list */
|
||||
.icon_list_a,.icon_list_b,.icon_list_c,.icon_list_d {list-style: none;margin:0 0 30px}
|
||||
.icon_list_a li,.icon_list_b li,.icon_list_d li {padding:4px 0;width:30px;text-align:center;border:1px solid #dcdcdc;float:left;margin:4px;-webkit-border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;border-radius: 4px}
|
||||
.icon_list_c li {padding:4px 0;width:40px;text-align:center;border:1px solid #dcdcdc;float:left;margin:4px;-webkit-border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;border-radius: 4px}
|
||||
|
||||
/* aditional icons */
|
||||
.icon-adt_trash,.icon-adt_atach,.icon-adt_enter {background: url(../img/adt-icons.png) no-repeat 0 0;width:16px;height:16px}
|
||||
.icon-adt_atach {background-position:0 0}
|
||||
.icon-adt_trash {background-position:0 -24px}
|
||||
.icon-adt_enter {background-position:0 -47px;width:12px;height:12px}
|
||||
|
||||
/* google maps */
|
||||
.company_add_form legend {margin-bottom:10px;font-size:15px}
|
||||
#g_map img { max-width: none; }
|
||||
#g_map label {display:inline;margin:0;color:#000;font-size: 11px;line-height:normal}
|
||||
|
||||
/* gallery grid */
|
||||
.wmk_grid > ul {list-style: none;margin:0;position:relative}
|
||||
.wmk_grid > ul > li {background-color: #fff;display: none;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;-ms-box-sizing: border-box;box-sizing: border-box}
|
||||
.wmk_grid > ul > li>a,.wmk_grid ul > li>a img {display: block}
|
||||
.wmk_grid > ul > li>a img {width:100%}
|
||||
.wmk_grid > ul > li p {color: #666;font-size: 12px;margin: 8px 4px 2px;overflow:hidden}
|
||||
.wmk_grid > ul > li p a {display:inline-block;margin-left:10px;float:right;opacity:.6}
|
||||
.wmk_grid > ul > li p a:hover {opacity:1}
|
||||
.wmk_grid > ul > li p span {overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block}
|
||||
.wmk_grid .thumbnail:hover {border-color:#0088CC}
|
||||
.wmk_grid .thumbnail>a {position:relative}
|
||||
.wmk_grid .thumbnail>a .vid_ico {position:absolute;top:10px;right:10px;display:block;width:16px;height:16px}
|
||||
.wmk_grid ul .self_vid .vid_ico {background: url(../img/vid_local.png) no-repeat 0 0}
|
||||
.wmk_grid .yt_vid .vid_ico {background: url(../img/vid_yt.png) no-repeat 0 0}
|
||||
.wmk_grid .vimeo_vid .vid_ico {background: url(../img/vid_vimeo.png) no-repeat 0 0}
|
||||
|
||||
/* small gallery grid */
|
||||
#small_grid > ul > li {width:120px}
|
||||
#small_grid > ul > li p {line-height:1.3}
|
||||
#small_grid > ul > li p span {font-size:11px}
|
||||
/* large gallery grid */
|
||||
#large_grid > ul > li,#mixed_grid > ul > li {width:220px}
|
||||
#large_grid > ul > li p span {width:70%}
|
||||
|
||||
.video-container {position: relative;padding-bottom: 55.75%;height: 0;overflow: hidden;background: rgba(0,0,0,.3)}
|
||||
.video-container iframe,.video-container object,.video-container embed {position: absolute;top: 0;left: 0;width: 100%;height: 100%}
|
||||
#cboxContent .video-js {width:640px !important;height:360px !important}
|
||||
|
||||
/* datatables */
|
||||
div.dataTables_length {text-align:left}
|
||||
div.dataTables_length select{width:75px}
|
||||
div.dataTables_filter {text-align:right}
|
||||
div.dataTables_filter label {float:none}
|
||||
div.dataTables_info{padding-top:8px}
|
||||
div.dataTables_paginate{float:right;margin:0}
|
||||
.dataTables_wrapper{position:relative;overflow:hidden}
|
||||
.dataTables_wrapper table.table {clear:both;margin-bottom:6px!important;max-width:inherit}
|
||||
.dataTables_wrapper table.table thead .sorting,table.table thead .sorting_asc,table.table thead .sorting_desc,table.table thead .sorting_asc_disabled,table.table thead .sorting_desc_disabled{cursor:hand;cursor:pointer}
|
||||
.dataTables_wrapper table.table thead .sorting{background: #e9f3f8 url(../lib/datatables/images/sort_both.png) no-repeat center right}
|
||||
.dataTables_wrapper table.table thead .sorting_asc{background: #e9f3f8 url(../lib/datatables/images/sort_asc.png) no-repeat center right}
|
||||
.dataTables_wrapper table.table thead .sorting_desc{background: #e9f3f8 url(../lib/datatables/images/sort_desc.png) no-repeat center right}
|
||||
.dataTables_wrapper table.table thead .sorting_asc_disabled{background: #e9f3f8 url(../lib/datatables/images/sort_asc_disabled.png) no-repeat center right}
|
||||
.dataTables_wrapper table.table thead .sorting_desc_disabled{background: #e9f3f8 url(../lib/datatables/images/sort_desc_disabled.png) no-repeat center right}
|
||||
.dataTables_wrapper table.dataTable th:active{outline:none}
|
||||
.dataTables_wrapper .row{margin:0 0 5px}
|
||||
.dataTables_wrapper select{min-height:inherit}
|
||||
.dataTables_wrapper table + .row{margin-bottom:0;margin-top:10px}
|
||||
.dataTables_scrollBody{-webkit-overflow-scrolling:touch}
|
||||
.dataTables_wrapper .top,.dataTables_wrapper .bottom{background-color:#f5f5f5;border:1px solid #CCC;padding:15px}
|
||||
.top .dataTables_info{float:none}
|
||||
.dataTables_empty{text-align:center!important;font-size:15px;background:#fff!important;padding:20px 0!important}
|
||||
.dataTables_scroll{clear:both;margin-bottom:10px}
|
||||
.dataTables_scrollHeadInner table.table-bordered{-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0;border-bottom:none}
|
||||
.dataTables_scrollHeadInner table.table-bordered,.dataTables_scrollHeadInner table.table-bordered thead{border-bottom:none}
|
||||
.dataTables_scrollBody table{border-top:none}
|
||||
.dataTables_processing{position:absolute;top:50%;margin-top:-24px;z-index:100;left:50%;width:250px;margin-left:-125px;border:1px solid #ddd;text-align:center;color:#000;background:#fff;font-size:15px!important;-webkit-box-shadow:0 0 4px rgba(0,0,0,0.2);-moz-box-shadow:0 0 4px rgba(0,0,0,0.2);-ms-box-shadow:0 0 4px rgba(0,0,0,0.2);box-shadow:0 0 4px rgba(0,0,0,0.2);padding:10px 0}
|
||||
.dataTables_wrapper .center{text-align:center}
|
||||
.dataTables_wrapper .details,.dataTables_wrapper .details:hover{background:#ddd!important}
|
||||
.dataTables_wrapper .details table td{background:#fff!important}
|
||||
.dataTables_scrollHeadInner table.table,.dataTables_wrapper .details table.table{margin:0!important}
|
||||
.dataTables_wrapper .dt_actions {float:left;margin-right:20px}
|
||||
.dataTables_empty {cursor:default}
|
||||
.dTableR {width:100% !important}
|
||||
.col_vis_menu {float:right}
|
||||
.dataTables_paginate {height:auto}
|
||||
.DTTT_collection_background {display:none}
|
||||
|
||||
|
||||
/* floating header list */
|
||||
.-list-container {height:400px}
|
||||
.-list-container dd,.-list-container li,.-list-container .-list-fakeheader {list-style:none;margin:0;padding:0 10px;line-height:34px;height:34px;border-bottom:1px solid #efefef;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
|
||||
.-list-container dt,.-list-container .list_heading,.-list-container .-list-fakeheader {line-height:34px;height:34px;padding:0 10px;border-bottom:none;background: #f9f9f9;background: -moz-linear-gradient(top, #f9f9f9 0%, #ececec 100%);background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f9f9f9), color-stop(100%,#ececec));background: -webkit-linear-gradient(top, #f9f9f9 0%,#ececec 100%);background: linear-gradient(top, #f9f9f9 0%,#ececec 100%);border-bottom: 1px solid #d6d6d6}
|
||||
.-list-container .list_heading h3 {font-size:13px;line-height:36px}
|
||||
.-list-container {border:1px solid #ccc;-webkit-border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;border-radius: 4px;margin:0;overflow-x:hidden}
|
||||
.ui-list {overflow:hidden}
|
||||
.ui-list ul {margin:0}
|
||||
#list-buttons {margin:0 0 6px}
|
||||
#list-buttons .btn {margin:0 4px 4px 0}
|
||||
.list-outer {position:relative;padding:30px 0}
|
||||
.slide-nav {cursor:pointer;position:absolute;left:50%;margin-left:-28px;height:14px;border-style:solid;border-color:#ccc;background:#f9f9f9;padding:5px 20px}
|
||||
.slide-up {top:5px;border-width:1px 1px 0;-webkit-border-radius: 4px 4px 0px 0px;border-radius: 4px 4px 0px 0px}
|
||||
.slide-down {bottom:5px;border-width:0px 1px 1px;-webkit-border-radius: 0px 0px 4px 4px;border-radius: 0px 0px 4px 4px}
|
||||
.slide-nav i {opacity:.6}
|
||||
.slide-nav:hover {background:#f0f0f0}
|
||||
.slide-nav:hover i {opacity:1}
|
||||
|
||||
/* responsive table */
|
||||
.mediaTableWrapper{position:relative}
|
||||
.mediaTableWrapperWithMenu{padding-top:48px}
|
||||
.mediaTableMenu li,.tableMenu li {padding:0 10px}
|
||||
.mediaTableMenu{position:absolute;top:0;left:0}
|
||||
.activeMediaTable th.optional,.activeMediaTable td.optional{display:none}
|
||||
@media (min-width: 1280px) {
|
||||
.activeMediaTable th.optional,.activeMediaTable td.optional{display:table-cell;_display:block}
|
||||
*+html .activeMediaTable th.optional,*+html .activeMediaTable td.optional{display:block}
|
||||
}
|
||||
@media (min-width: 980px) {
|
||||
.sidebar_hidden .activeMediaTable th.optional,.sidebar_hidden .activeMediaTable td.optional{display:table-cell;_display:block}
|
||||
*+html .sidebar_hidden .activeMediaTable th.optional,*+html .sidebar_hidden .activeMediaTable td.optional{display:block}
|
||||
}
|
||||
@media (min-width: 480px) and (max-width: 767px) {
|
||||
.activeMediaTable th.optional,.activeMediaTable td.optional{display:table-cell;_display:block}
|
||||
*+html .activeMediaTable th.optional,*+html .activeMediaTable td.optional{display:block}
|
||||
}
|
||||
|
||||
/* tables */
|
||||
.table_checkbox {width:13px}
|
||||
.table_vam th, .table_vam td {vertical-align: middle}
|
||||
.tab-content table.table {margin-bottom: 0 !important}
|
||||
|
||||
/* mailbox */
|
||||
.mbox .heading {padding-bottom:0}
|
||||
.mbox .heading .nav-tabs {margin-bottom:0;border-bottom:none}
|
||||
|
||||
.mbox .dataTables_wrapper .row {-webkit-box-shadow: inset 0px 1px 0px 0px #fefefe;box-shadow: inset 0px 1px 0px 0px #fefefe;margin:0;padding-bottom:10px;padding:8px 5px;border-width:1px 0;border-style:solid;border-color:#ddd;background:#f3f3f3}
|
||||
.mbox .dataTables_wrapper .row label {margin-bottom:0;line-height:28px}
|
||||
.mbox .dataTables_wrapper .row div.dataTables_info {padding-top:0;line-height:26px;color:#404040}
|
||||
.dataTables_wrapper table.mbox_table {margin:0 !important}
|
||||
.mbox_table tbody {color:#404040}
|
||||
.mbox_table .select_msg {margin-top:-2px;position:relative}
|
||||
.mbox_table .rowChecked td {background:#fffeed}
|
||||
.mbox .unread {font-weight:700}
|
||||
.js .mbox_star {display:none}
|
||||
.mbox_star {visibility:hidden;cursor:pointer}
|
||||
.mbox_star.splashy-star_full {visibility:visible}
|
||||
.mbox .pagination a {background:#fff}
|
||||
.mbox .pagination .disabled span, .pagination .disabled a, .pagination .disabled a:hover {background: transparent}
|
||||
.mbox .pagination .active a {background:#f5f5f5}
|
||||
|
||||
/* chat */
|
||||
.chat_box select {margin:0}
|
||||
.chat_box .chat_content {border:1px solid #ddd;-webkit-border-radius:6px;border-radius:6px}
|
||||
.chat_box .chat_message {margin-bottom:10px}
|
||||
.chat_box .chat_editor_box {margin:10px;border:1px solid #ddd;-webkit-border-radius:6px;border-radius:6px;min-height:40px}
|
||||
.chat_box .chat_editor_heading {height:20px;line-height:20px;padding:2px 8px 0}
|
||||
.chat_box .chat_editor_box textarea {border:none;margin:0;-webkit-box-shadow:none;box-shadow:none;-webkit-border-radius: 0px 0px 6px 6px;border-radius: 0px 0px 6px 6px}
|
||||
.chat_box .chat_editor_box .send_btns {margin:5px}
|
||||
.chat_box .chat_heading {-webkit-box-shadow: inset 0px 1px 0px 0px #fefefe;box-shadow: inset 0px 1px 0px 0px #fefefe;font-size:12px;font-weight:700;color:#444;padding:6px 12px;font-size:13px;height:21px;line-height:22px;background:#f4f4f4;border-bottom:1px solid #ddd;-webkit-border-radius: 6px 6px 0px 0px;border-radius: 6px 6px 0px 0px}
|
||||
.chat_box .chat_heading .chat_close {opacity:.8;cursor:pointer}
|
||||
.chat_box .msg_window {height:300px;overflow-y:auto;margin:5px 10px}
|
||||
.chat_box .chat_msg {margin:10px 5px}
|
||||
.chat_box .chat_msg .chat_msg_heading {font-size:11px;padding:0 5px}
|
||||
.chat_box .chat_msg .chat_msg_body {padding:4px 8px;border:1px solid #ddd;background:#fafafa;-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px}
|
||||
.chat_box .chat_msg .chat_msg_date {float:right}
|
||||
.chat_box .chat_msg .chat_user_name {color:#CC333F;font-weight:700}
|
||||
.chat_box .chat_msg p {margin:0}
|
||||
.chat_box .chat_sidebar {border:1px solid #ddd;-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px}
|
||||
.chat_box .chat_sidebar .chat_user_list {margin:0}
|
||||
.chat_box .chat_sidebar .chat_user_list li {list-style:none;border-bottom:1px solid #e6e6e6;overflow:hidden}
|
||||
.chat_box .chat_sidebar .chat_user_list li:last-child {border:none}
|
||||
.chat_box .chat_sidebar .chat_user_list li input {float:left;margin:15px 0 0 6px}
|
||||
.chat_box .chat_sidebar .chat_user_list li a {display:block;margin-left:16px;padding:5px 20px 5px 12px;line-height:32px}
|
||||
.chat_box .chat_sidebar .chat_user_list li a:hover {text-decoration:none}
|
||||
.chat_box .chat_sidebar .chat_user_list li img {vertical-align:top;-webkit-border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;border-radius: 4px;margin-right:5px;border:1px solid #ddd}
|
||||
.chat_box .chat_sidebar .chat_user_list li.online a {background: url(../img/bullet_green.png) no-repeat 98% center}
|
||||
.chat_box .chat_sidebar .chat_user_list li.offline a {background: url(../img/bullet_red.png) no-repeat 98% center;cursor:default}
|
||||
.chat_box .chat_sidebar .chat_user_list li.active {background-color:#ffffef}
|
||||
.chat_box .chat_sidebar .chat_user_list li a span {color:#888;font-size:11px}
|
||||
|
||||
/* Calculator */
|
||||
#calc {padding:10px 0 0}
|
||||
#calc input.btn {width:44px;text-align:center}
|
||||
#calc .control-group {padding-left:12px}
|
||||
|
||||
/* vcard */
|
||||
.vcard .thumbnail {float:left}
|
||||
.vcard > ul {list-style:none;margin:10px 0 0 120px;overflow:hidden}
|
||||
.vcard > ul > li:first-child {border-top:1px dashed #dcdcdc}
|
||||
.vcard > ul > li {padding:8px;border-bottom:1px dashed #dcdcdc;overflow:hidden}
|
||||
.vcard .item-key {float:left;color:#888}
|
||||
.vcard .vcard-item {margin-left:120px}
|
||||
.vcard .v-heading {background:#F0F9FF;font-weight:700}
|
||||
.vcard .v-heading span {font-weight:100;font-size:11px;color:#666}
|
||||
.vcard .item-list-more,.vcard .thumbnail.item-list-more {display:none}
|
||||
|
||||
|
||||
/* sidebar scroll */
|
||||
.antiScroll{display:inline-block;position:relative;overflow:hidden}
|
||||
.antiscroll-scrollbar{background:#bbb;background:rgba(0,0,0,0.5);-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;-webkit-box-shadow:0 0 1px #fff;-moz-box-shadow:0 0 1px #fff;box-shadow:0 0 1px #fff;position:absolute;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:linear 300ms opacity;-moz-transition:linear 300ms opacity;-o-transition:linear 300ms opacity}
|
||||
.antiscroll-scrollbar-shown{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)}
|
||||
.antiscroll-scrollbar-horizontal{height:7px;margin-left:2px;bottom:2px;left:0}
|
||||
.antiscroll-scrollbar-vertical{width:7px;margin:2px 0;left:2px;top:0}
|
||||
.antiscroll-inner{overflow-y:scroll}
|
||||
.antiScroll,.antiscroll-content,.antiscroll-inner{width:240px}
|
||||
.antiscroll-inner::-webkit-scrollbar,.antiscroll-inner::scrollbar{width:0;height:0}
|
||||
|
||||
/* document view */
|
||||
.doc_view {border:1px solid #ddd;-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px;margin-bottom:10px}
|
||||
.doc_view .doc_view_header dl {margin-bottom:0;-webkit-background-clip:border;-moz-background-clip:border-box;background-clip:border-box;background-color:#f8f8f8;padding:10px 10px 6px;margin-top:0;border-bottom:1px solid #ddd;-webkit-border-radius: 6px 6px 0 0;-moz-border-radius: 6px 6px 0 0;-ms-border-radius: 6px 6px 0 0;border-radius: 6px 6px 0 0}
|
||||
.doc_view .doc_view_header dd {margin-bottom:4px}
|
||||
.doc_view .doc_view_header dd,.doc_view .doc_view_header dt {line-height:20px}
|
||||
.doc_view .doc_view_content {padding:20px}
|
||||
.doc_view .doc_view_footer {line-height:28px;-webkit-background-clip:border;-moz-background-clip:border-box;background-clip:border-box;background-color:#f8f8f8;padding:8px 20px;border-top:1px solid #ddd;-webkit-border-radius: 0 0 6px 6px;-moz-border-radius: 0 0 6px 6px;-ms-border-radius: 0 0 6px 6px;border-radius: 0 0 6px 6px}
|
||||
|
||||
/* sortable elements */
|
||||
.ui-sortable-placeholder { border: 2px dashed #aaa;background:transparent;visibility: visible !important; height: 40px !important;margin-bottom:20px}
|
||||
.ui-sortable-helper {z-index:2100 !important}
|
||||
.ui-sortable-placeholder * { visibility: hidden; }
|
||||
.ui-sortable {min-height:40px !important}
|
||||
.ui-sortable .w-box-header {cursor:move}
|
||||
.sort-disabled .w-box-header {cursor:default}
|
||||
.sort_ph {background:#f8f8f8}
|
||||
|
||||
/* submenus */
|
||||
|
||||
.caret-right {display: inline-block;position:absolute;top: 8px;right: 10px;width: 0;height: 0;vertical-align: top;border-left: 4px solid #000;border-top: 4px solid transparent;border-bottom: 4px solid transparent;content: "";opacity: 0.6;filter: alpha(opacity=60)}
|
||||
.dropdown-menu .sub-menu {left: 100%;position: absolute;top: 0;visibility: hidden;margin-top: -1px}
|
||||
.dropdown-menu li {position:relative}
|
||||
.dropdown-menu .sub-open {visibility: visible;display: block}
|
||||
.navbar .sub-menu:before {border-bottom: 7px solid transparent;border-left: none;border-right: 7px solid rgba(0, 0, 0, 0.2);border-top: 7px solid transparent;left: -7px;top: 5px}
|
||||
.navbar .sub-menu:after {
|
||||
border-top: 6px solid transparent;
|
||||
border-left: none;
|
||||
border-right: 6px solid #fff;
|
||||
border-bottom: 6px solid transparent;
|
||||
left: 10px;
|
||||
top: 6px;
|
||||
left: -6px;
|
||||
}
|
||||
|
||||
.sub-dropdown > a:hover .caret-right, .sub-dropdown.active > a .caret-right, .sub-dropdown.active > a:hover .caret-right {border-left: 4px solid #fff;opacity:1;filter: alpha(opacity=100);}
|
||||
.navHover .dropdown-menu {display:block}
|
||||
.navHover > a:after {display:block;width:100%;content:'';height:2px;position:absolute;bottom:-3px}
|
||||
|
||||
/* blog */
|
||||
.blog_content .toolbar { border-width: 1px 0; border-style: dashed; border-color: #ddd; margin-bottom: 10px; padding: 4px 0; }
|
||||
.blog_content .toolbar-icons a { display: block; padding: 2px 4px; background: #777; margin-right: 4px; float: left; }
|
||||
.blog_content .toolbar .toolbar_text { font-size: 12px; line-height: 24px; padding: 0 5px; }
|
||||
.blog_content { padding: 10px }
|
||||
.blog_content .blog_item + .blog_item { margin-top: 30px }
|
||||
.blog_content .blog_item + .pagination { margin-top: 40px }
|
||||
.blog_content h1 { font-size: 26px; font-family: "PT Sans",sans-serif; font-weight: 300; margin-bottom: 10px; }
|
||||
.blog_content .media + p { margin-top: 10px }
|
||||
.blog_content .toolbar { padding: 4px; margin-bottom: 20px; }
|
||||
|
||||
/* to top */
|
||||
#toTop{display:none;text-decoration:none;position:fixed;bottom:10px;right:0;overflow:hidden;width:29px;height:32px;border:none;text-indent:100%;background:url(../img/ui.totop.png) no-repeat 0 0}
|
||||
#toTopHover{background:url(../img/ui.totop.png) no-repeat 0 -32px;width:29px;height:32px;display:block;overflow:hidden;float:left;opacity:0;-moz-opacity:0;filter:alpha(opacity=0)}
|
||||
#toTop:active,#toTop:focus{outline:none}
|
||||
|
||||
/* backgrounds */
|
||||
.ptrn_a .main_content {background-image: url(../img/bg_a.png)}
|
||||
.ptrn_b .main_content {background-image: url(../img/bg_b.png)}
|
||||
.ptrn_c .main_content {background-image: url(../img/bg_c.png)}
|
||||
.ptrn_d .main_content {background-image: url(../img/bg_d.png)}
|
||||
.ptrn_e .main_content {background-image: url(../img/bg_e.png)}
|
||||
|
||||
/* Style switcher */
|
||||
.ssw_trigger{position:fixed;top:62px;right:-1px;z-index:1001;text-decoration: none;font-size: 12px;color:#fff;width:15px;padding: 2px 3px;background:#333;display: block;-webkit-border-top-left-radius: 8px;-webkit-border-bottom-left-radius: 8px;-moz-border-radius-topleft: 8px;-moz-border-radius-bottomleft: 8px;border-top-left-radius: 8px;border-bottom-left-radius: 8px;border:1px solid transparent}
|
||||
.ssw_trigger.active {border-color:#555}
|
||||
.style_switcher {font-size:12px;z-index:1000;position:fixed;top:54px;right:0;display:none;background:#000;background: rgba(0,0,0,.8);border:1px solid #111;width: 180px;height: auto;padding: 30px 30px 30px 50px;color:#f5f5f5}
|
||||
.style_switcher p {margin:0 0 6px;font-weight:700}
|
||||
.style_item {display:block;margin-right:6px;height:20px;width:20px;border:2px solid #fff;float:left;text-indent:-9999px}
|
||||
.style_switcher .ptrn_def {background: #fff }
|
||||
|
||||
.style_switcher .ssw_ptrn_a {background: #fff url(../img/bg_a.png)}
|
||||
.style_switcher .ssw_ptrn_b {background: #fff url(../img/bg_b.png)}
|
||||
.style_switcher .ssw_ptrn_c {background: #fff url(../img/bg_c.png)}
|
||||
.style_switcher .ssw_ptrn_d {background: #fff url(../img/bg_d.png)}
|
||||
.style_switcher .ssw_ptrn_e {background: #fff url(../img/bg_e.png)}
|
||||
|
||||
.style_switcher .dark_theme {background:#000}
|
||||
.style_switcher .blue_theme {background:#067ead}
|
||||
.style_switcher .brown_theme {background:#b47f44}
|
||||
.style_switcher .green_theme {background:#8da452}
|
||||
.style_switcher .eastern_blue_theme {background:#1294af}
|
||||
.style_switcher .tamarillo_theme {background:#af2c36}
|
||||
.style_active {border-color:#6fd05b}
|
||||
.style_switcher label {color:#fff}
|
||||
|
||||
/* jquery 1.8, bootstrap 2.1 */
|
||||
body {font-size:13px;line-height:18px}
|
||||
h1, h2, h3, h4, h5, h6 {margin:0}
|
||||
h3 {line-height:27px;font-size:18px}
|
||||
label, input, button, select, textarea,
|
||||
select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input,
|
||||
.btn {font-size:13px}
|
||||
.navbar .nav > li > a {text-shadow:none;padding:9px 10px 11px}
|
||||
.navbar .nav li.dropdown.open > .dropdown-toggle, .navbar .nav li.dropdown.active > .dropdown-toggle, .navbar .nav li.dropdown.open.active > .dropdown-toggle {background:none;color:#fff}
|
||||
.navbar .nav li.dropdown .dropdown-toggle .caret, .navbar .nav li.dropdown.open .caret,
|
||||
.navbar .nav li.dropdown.open > .dropdown-toggle .caret, .navbar .nav li.dropdown.active > .dropdown-toggle .caret, .navbar .nav li.dropdown.open.active > .dropdown-toggle .caret {border-bottom-color: #fff !important;border-top-color: #fff !important}
|
||||
.nav .dropdown-toggle:hover .caret {opacity: 1;filter: alpha(opacity=100)}
|
||||
|
||||
/* editable elements */
|
||||
.editable-input .datepicker table tr td, .editable-input .datepicker table tr th {background:transparent}
|
||||
|
||||
/* invoice */
|
||||
.invoice_heading {font-size:32px;font-family: "PT Sans",sans-serif;}
|
||||
td.invoice_tar,th.invoice_tar {text-align:right}
|
||||
|
||||
/* media queries */
|
||||
|
||||
@media (min-width: 980px) {
|
||||
.sidebar {position:fixed;top:40px;left:0;margin-left:0}
|
||||
.navbar-fixed-top .nav-collapse {height:40px !important}
|
||||
.navbar .nav > li > a {padding-top:10px}
|
||||
/* fixed layout */
|
||||
.gebo-fixed {max-width:940px;margin:0 auto}
|
||||
.gebo-fixed header .container-fluid {max-width:940px;margin:0 auto}
|
||||
.gebo-fixed #maincontainer {border-right:1px solid #ccc;border-left:1px solid #ccc}
|
||||
.gebo-fixed .sidebar {left:50%;margin-left:-469px}
|
||||
.gebo-fixed .sidebar_switch {left:50%;margin-left:-250px}
|
||||
.gebo-fixed.sidebar_hidden .sidebar_switch {margin-left:-465px;left:50%}
|
||||
.gebo-fixed .search_page .box_view .search_item {width:48%;height:210px;margin:0 0 2% 2%}
|
||||
.gebo-fixed .activeMediaTable th.optional,.gebo-fixed .activeMediaTable td.optional{display:none}
|
||||
.gebo-fixed .brand {width:120px}
|
||||
|
||||
.sidebar_right #maincontainer {background-image: url(../img/main_bg_right.gif);background-position: right 0 }
|
||||
.sidebar_right .sidebar {left:auto;right:-1px}
|
||||
.sidebar_right .sidebar_switch {left:auto;right:6px}
|
||||
.sidebar_right .main_content {margin-right:240px;margin-left:0;border-left:none}
|
||||
.sidebar_right.sidebar_hidden #maincontainer {background: #fff}
|
||||
.sidebar_right.sidebar_hidden .main_content {margin:0}
|
||||
|
||||
.gebo-fixed.sidebar_right .sidebar {left:auto;right:50%;margin-left:0;margin-right:-470px}
|
||||
.gebo-fixed.sidebar_right .sidebar_switch {left:auto;right:50%;margin-left:0;margin-right:-465px}
|
||||
.gebo-fixed.sidebar_hidden.sidebar_right .sidebar_switch {laeft:auto;margin-left:0;margin-right:-465px;right:50%}
|
||||
.selectnav {display:none}
|
||||
}
|
||||
|
||||
@media (max-width: 1279px) {
|
||||
.search_page .box_view .search_item {width:49%}
|
||||
}
|
||||
|
||||
@media (max-width: 979px) {
|
||||
#maincontainer {background: #fff}
|
||||
.row > [class*="span"],.navbar-fixed-top {margin:0 !important}
|
||||
.navbar-fixed-top .container-fluid {padding:0 !important}
|
||||
.navbar .brand {width:auto;line-height:18px;margin:3px 0 6px 34px}
|
||||
.navbar .user_menu {padding-top:5px}
|
||||
.navbar .user_menu .dropdown-menu {margin:8px 10px 0 0}
|
||||
.navbar .user_menu > li > a {padding:0 10px 0 0}
|
||||
.navbar-inner {position:relative;z-index:990;min-height:28px}
|
||||
.nav-collapse a {color:#fff !important}
|
||||
.nav-collapse .dropdown-menu li {padding:0}
|
||||
.nav-collapse .dropdown-menu li a {font-weight:400}
|
||||
.nav-collapse .sub-menu {display:block;left:0;right:auto;position:relative;visibility:visible}
|
||||
.nav-collapse .caret-right {display:none}
|
||||
.btn-navbar {margin-top:2px !important;padding:2px 8px !important}
|
||||
.user_menu .dropdown {margin-left:10px}
|
||||
.main_content {margin:0 !important;border:none !important;padding:28px 14px 20px}
|
||||
.main_content .row-fluid + .row-fluid {margin-top:20px}
|
||||
.sidebar {height: 400px;position:absolute;top:39px;left:0;background:#f1f1f1;border-width:0 1px;border-style:solid;border-color:#ccc;margin:0;-webkit-box-shadow: 1px 1px 4px rgba(0,0,0,0.2);-moz-box-shadow: 1px 1px 4px rgba(0,0,0,0.2);box-shadow: 1px 1px 4px rgba(0,0,0,0.2);z-index:1000;-webkit-border-radius: 0px 5px 5px 0px;border-radius: 0px 5px 5px 0px}
|
||||
.sidebar:after {border-bottom: 6px solid #fff;border-left: 6px solid transparent;border-right: 6px solid transparent;content: "";display: inline-block;left: 15px;position: absolute;top: -6px}
|
||||
.sidebar_hidden .sidebar {border:none}
|
||||
.sidebar_switch {position:absolute;z-index:1000;left:5px !important;top:14px;padding:0 10px}
|
||||
.off_switch {background-position:center 1px}
|
||||
.on_switch {background-position:center -17px}
|
||||
.sidebar_inner {padding-bottom:0 !important}
|
||||
div.sticky-queue {z-index:10000;top:0}
|
||||
.btn_menu {display:block;clear:both;padding:8px 0 6px;border-top:1px solid rgba(255,255,255,.2);box-shadow: 0 -1px 0 rgba(0,0,0,.2);text-align:center;position:relative;top:4px;cursor:pointer}
|
||||
.btn_menu span {opacity:.8}
|
||||
.ssw_trigger {display:none}
|
||||
#mobile-nav {display:none}
|
||||
.selectnav {margin-left:20px;margin-bottom:0}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.row-fluid > [class*="span"] + [class*="span"] {margin-top:20px}
|
||||
.row-fluid input[class*="span"],.row-fluid textarea[class*="span"],.row-fluid select[class*="span"] {width:80%}
|
||||
.input-prepend, .input-append {margin-bottom:10px}
|
||||
form .row-fluid > [class*="span"] + [class*="span"] {margin-top:0}
|
||||
.login_page .content_b {margin: 0 20px}
|
||||
.search_page .box_view .search_item {width:99%;margin-bottom:3%}
|
||||
.error_page .error_box {background:none;width:100%}
|
||||
.error_page .error_box h1 {padding:40px 20px 0}
|
||||
.error_page .error_box p {margin:0 20px 10px}
|
||||
.error_page .error_box .back_link {margin:0 20px}
|
||||
.style_switcher {display:none}
|
||||
.dshb_icoNav {text-align:center}
|
||||
.dshb_icoNav li {float:none;display:inline-block}
|
||||
#cboxContent .video-js {width:100% !important;height:100% !important}
|
||||
.vcard > .thumbnail {display:none}
|
||||
.vcard > ul {margin:0}
|
||||
.item-list .thumbnail {float:none;display:inline-block;margin:0 10px 10px 0}
|
||||
.navbar .nav.pull-right {float:right}
|
||||
.selectnav {margin:5px auto 0;display:block;clear:both}
|
||||
.dataTables_wrapper table + .row > div {text-align:left}
|
||||
.dataTables_wrapper table + .row > div + div,.dataTables_wrapper .dataTables_scroll + .row > div + div {padding-top:10px}
|
||||
.dataTables_wrapper table + .row .dataTables_info {padding-top:0}
|
||||
.dataTables_wrapper table + .row .dataTables_info {padding-top:0}
|
||||
.dataTables_wrapper table + .row .dataTables_paginate,.dataTables_wrapper .dataTables_scroll + .row .dataTables_paginate {float:none}
|
||||
div.dataTables_filter {text-align:left}
|
||||
div.DTTT.btn-group {margin-bottom:5px}
|
||||
.col_vis_menu {float:left}
|
||||
.dataTables_wrapper {overflow-x:auto;padding-bottom:10px}
|
||||
.blog_content .media > a { float:none;margin-bottom:10px;display:block;margin-left:0 }
|
||||
}
|
||||
|
||||
@media (max-width: 479px) {
|
||||
.login_page .login_box {width:100%}
|
||||
.login_page .cnt_b {padding:20px 0;width:68%;margin:0 auto}
|
||||
.-list-container {height:300px}
|
||||
.ov_boxes li {padding:0 2px}
|
||||
.navbar .nav.pull-right {float:left;clear:both}
|
||||
.selectnav {display:inline-block}
|
||||
}
|
||||
|
||||
@media (min-width: 1681px) {
|
||||
body {max-width:1680px;margin:0 auto}
|
||||
header .container-fluid {max-width:1640px;margin:0 auto}
|
||||
#maincontainer {border-right:1px solid #ccc;border-left:1px solid #ccc}
|
||||
.main_content {border-left:none}
|
||||
.sidebar {left:50%;margin-left:-839px}
|
||||
.sidebar_switch {left:50%;margin-left:-620px}
|
||||
.sidebar_hidden .sidebar_switch {margin-left:-832px;left:50%}
|
||||
.sidebar_right .sidebar {right:50%;margin-left:0;margin-right:-840px}
|
||||
.sidebar_right .sidebar_switch {left:auto;right:50%;margin-left:0;margin-right:-836px}
|
||||
}
|
||||
39
modules/css/tamarillo.css
Normal file
@ -0,0 +1,39 @@
|
||||
/* ---- Gebo Admin tamarillo theme ---- */
|
||||
|
||||
.navbar-inner {
|
||||
background: #af2c36;
|
||||
background: -moz-linear-gradient(top, #af2c36 0%, #791e25 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#af2c36), color-stop(100%,#791e25));
|
||||
background: -webkit-linear-gradient(top, #af2c36 0%,#791e25 100%);
|
||||
background: -o-linear-gradient(top, #af2c36 0%,#791e25 100%);
|
||||
background: -ms-linear-gradient(top, #af2c36 0%,#791e25 100%);
|
||||
background: linear-gradient(top, #af2c36 0%,#791e25 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#af2c36', endColorstr='#791e25',GradientType=0 );
|
||||
}
|
||||
.navbar .nav > li > a {
|
||||
color: #f4d4d7;
|
||||
}
|
||||
.navbar .nav > li:hover > a {
|
||||
color:#fff;
|
||||
}
|
||||
.navbar .nav .active > a, .navbar .nav .active > a:hover {
|
||||
background: #94252e !important;
|
||||
}
|
||||
.navbar .divider-vertical {
|
||||
border-left-color:#791e25;
|
||||
border-right-color:#bd2f3a;
|
||||
}
|
||||
.dropdown-menu li > a:hover, .dropdown-menu .active > a,
|
||||
.dropdown-menu .active > a:hover,
|
||||
.nav-list > .active > a, .nav-list > .active > a:hover,
|
||||
span.dynatree-active a {
|
||||
background: #94252e !important;
|
||||
}
|
||||
.ui-menu .ui-menu-item a.ui-state-hover,
|
||||
.ui-menu .ui-menu-item a.ui-state-active {
|
||||
background: #94252e !important;
|
||||
border-color:#94252e !important;
|
||||
}
|
||||
|
||||
.table thead th {background-color:#f6eeef !important}
|
||||
.dataTables_wrapper th.sorting_asc,.dataTables_wrapper th.sorting_desc {background-color:#ead8da !important}
|
||||
179
modules/html.login
Normal file
@ -0,0 +1,179 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="login_page">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>DHTMLX Method Design 2014-12-09 by Culunvb</title>
|
||||
|
||||
|
||||
<link rel="stylesheet" href="modules/bootstrap/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="modules/bootstrap/css/bootstrap-responsive.min.css" />
|
||||
<link rel="stylesheet" href="modules/css/blue.css" />
|
||||
<link rel="stylesheet" href="modules/lib/qtip2/jquery.qtip.min.css" />
|
||||
<link rel="stylesheet" href="modules/css/style.css" />
|
||||
<link rel="shortcut icon" href="favicon.ico" />
|
||||
<link href='modules/css/font.css' rel='stylesheet' type='text/css'>
|
||||
</head>
|
||||
<body>
|
||||
<div class="login_box">
|
||||
<form action="?D.H.T.M.L.X" method="post" id="flogin">
|
||||
<input type="hidden" id="option" name="option" value="r/log"/>
|
||||
<div class="top_b">D.H.T.M.L.x Designer</div>
|
||||
<div class="alert alert-info alert-login">
|
||||
Clear username and password field to see validation.
|
||||
</div>
|
||||
<div class="cnt_b">
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-user"></i></span>
|
||||
<input type="text" id="txtuser" name="txtuser" placeholder="Username" value="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-lock"></i></span>
|
||||
<input type="password" id="txtpass" name="txtpass" placeholder="Password" value="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="formRow clearfix">
|
||||
<label class="checkbox"><input type="checkbox" /> Remember me</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btm_b clearfix">
|
||||
<button class="btn btn-inverse pull-right" type="submit">Sign In</button>
|
||||
<span class="link_reg"><a href="#reg_form">Not registered? Sign up here</a></span>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<form action="dashboard.html" method="post" id="pass_form" style="display:none">
|
||||
<div class="top_b">Can't sign in?</div>
|
||||
<div class="alert alert-info alert-login">
|
||||
Please enter your email address. You will receive a link to create a new password via email.
|
||||
</div>
|
||||
<div class="cnt_b">
|
||||
<div class="formRow clearfix">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on">@</span><input type="text" placeholder="Your email address" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btm_b tac">
|
||||
<button class="btn btn-inverse" type="submit">Request New Password</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<form action="dashboard.html" method="post" id="reg_form" style="display:none">
|
||||
<div class="top_b">Sign up to Gebo Admin</div>
|
||||
<div class="alert alert-login">
|
||||
By filling in the form bellow and clicking the "Sign Up" button, you accept and agree to <a data-toggle="modal" href="#terms">Terms of Service</a>.
|
||||
</div>
|
||||
<div id="terms" class="modal hide fade" style="display:none">
|
||||
<div class="modal-header">
|
||||
<a class="close" data-dismiss="modal">×</a>
|
||||
<h3>Terms and Conditions</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>
|
||||
Nulla sollicitudin pulvinar enim, vitae mattis velit venenatis vel. Nullam dapibus est quis lacus tristique consectetur. Morbi posuere vestibulum neque, quis dictum odio facilisis placerat. Sed vel diam ultricies tortor egestas vulputate. Aliquam lobortis felis at ligula elementum volutpat. Ut accumsan sollicitudin neque vitae bibendum. Suspendisse id ullamcorper tellus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vestibulum at augue lorem, at sagittis dolor. Curabitur lobortis justo ut urna gravida scelerisque. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam vitae ligula elit.
|
||||
Pellentesque tincidunt mollis erat ac iaculis. Morbi odio quam, suscipit at sagittis eget, commodo ut justo. Vestibulum auctor nibh id diam placerat dapibus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Suspendisse vel nunc sed tellus rhoncus consectetur nec quis nunc. Donec ultricies aliquam turpis in rhoncus. Maecenas convallis lorem ut nisl posuere tristique. Suspendisse auctor nibh in velit hendrerit rhoncus. Fusce at libero velit. Integer eleifend sem a orci blandit id condimentum ipsum vehicula. Quisque vehicula erat non diam pellentesque sed volutpat purus congue. Duis feugiat, nisl in scelerisque congue, odio ipsum cursus erat, sit amet blandit risus enim quis ante. Pellentesque sollicitudin consectetur risus, sed rutrum ipsum vulputate id. Sed sed blandit sem. Integer eleifend pretium metus, id mattis lorem tincidunt vitae. Donec aliquam lorem eu odio facilisis eu tempus augue volutpat.
|
||||
</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a data-dismiss="modal" class="btn" href="#">Close</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cnt_b">
|
||||
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-user"></i></span><input type="text" placeholder="Username" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-lock"></i></span><input type="text" placeholder="Password" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on">@</span><input type="text" placeholder="Your email address" />
|
||||
</div>
|
||||
<small>The e-mail address is not made public and will only be used if you wish to receive a new password.</small>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="btm_b tac">
|
||||
<button class="btn btn-inverse" type="submit">Sign Up</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="links_b links_btm clearfix">
|
||||
<span class="linkform"><a href="#pass_form">Forgot password?</a></span>
|
||||
<span class="linkform" style="display:none">Never mind, <a href="#login_form">send me back to the sign-in screen</a></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="js/jquery.min.js"></script>
|
||||
<script src="js/jquery-migrate.min.js"></script>
|
||||
<script src="js/jquery.actual.min.js"></script>
|
||||
<script src="lib/validation/jquery.validate.min.js"></script>
|
||||
<script src="bootstrap/js/bootstrap.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
|
||||
//* boxes animation
|
||||
form_wrapper = $('.login_box');
|
||||
function boxHeight() {
|
||||
form_wrapper.animate({ marginTop : ( - ( form_wrapper.height() / 2) - 24) },400);
|
||||
};
|
||||
form_wrapper.css({ marginTop : ( - ( form_wrapper.height() / 2) - 24) });
|
||||
$('.linkform a,.link_reg a').on('click',function(e){
|
||||
var target = $(this).attr('href'),
|
||||
target_height = $(target).actual('height');
|
||||
$(form_wrapper).css({
|
||||
'height' : form_wrapper.height()
|
||||
});
|
||||
$(form_wrapper.find('form:visible')).fadeOut(400,function(){
|
||||
form_wrapper.stop().animate({
|
||||
height : target_height,
|
||||
marginTop: ( - (target_height/2) - 24)
|
||||
},500,function(){
|
||||
$(target).fadeIn(400);
|
||||
$('.links_btm .linkform').toggle();
|
||||
$(form_wrapper).css({
|
||||
'height' : ''
|
||||
});
|
||||
});
|
||||
});
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
//* validation
|
||||
$('#login_form').validate({
|
||||
onkeyup: false,
|
||||
errorClass: 'error',
|
||||
validClass: 'valid',
|
||||
rules: {
|
||||
username: { required: true, minlength: 3 },
|
||||
password: { required: true, minlength: 3 }
|
||||
},
|
||||
highlight: function(element) {
|
||||
$(element).closest('div').addClass("f_error");
|
||||
setTimeout(function() {
|
||||
boxHeight()
|
||||
}, 200)
|
||||
},
|
||||
unhighlight: function(element) {
|
||||
$(element).closest('div').removeClass("f_error");
|
||||
setTimeout(function() {
|
||||
boxHeight()
|
||||
}, 200)
|
||||
},
|
||||
errorPlacement: function(error, element) {
|
||||
$(element).closest('div').append(error);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
179
modules/html.login.html
Normal file
@ -0,0 +1,179 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="login_page">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>DHTMLX Method Design 2014-12-09 by Culunvb</title>
|
||||
|
||||
|
||||
<link rel="stylesheet" href="modules/bootstrap/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="modules/bootstrap/css/bootstrap-responsive.min.css" />
|
||||
<link rel="stylesheet" href="modules/css/blue.css" />
|
||||
<link rel="stylesheet" href="modules/lib/qtip2/jquery.qtip.min.css" />
|
||||
<link rel="stylesheet" href="modules/css/style.css" />
|
||||
<link rel="shortcut icon" href="favicon.ico" />
|
||||
<link href='modules/css/font.css' rel='stylesheet' type='text/css'>
|
||||
</head>
|
||||
<body>
|
||||
<div class="login_box">
|
||||
<form action="?D.H.T.M.L.X" method="post" id="flogin">
|
||||
<input type="hidden" id="option" name="option" value="r/log"/>
|
||||
<div class="top_b">D.H.T.M.L.x Designer</div>
|
||||
<div class="alert alert-info alert-login">
|
||||
Clear username and password field to see validation.
|
||||
</div>
|
||||
<div class="cnt_b">
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-user"></i></span>
|
||||
<input type="text" id="txtuser" name="txtuser" placeholder="Username" value="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-lock"></i></span>
|
||||
<input type="password" id="txtpass" name="txtpass" placeholder="Password" value="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="formRow clearfix">
|
||||
<label class="checkbox"><input type="checkbox" /> Remember me</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btm_b clearfix">
|
||||
<button class="btn btn-inverse pull-right" type="submit">Sign In</button>
|
||||
<span class="link_reg"><a href="#reg_form">Not registered? Sign up here</a></span>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<form action="dashboard.html" method="post" id="pass_form" style="display:none">
|
||||
<div class="top_b">Can't sign in?</div>
|
||||
<div class="alert alert-info alert-login">
|
||||
Please enter your email address. You will receive a link to create a new password via email.
|
||||
</div>
|
||||
<div class="cnt_b">
|
||||
<div class="formRow clearfix">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on">@</span><input type="text" placeholder="Your email address" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btm_b tac">
|
||||
<button class="btn btn-inverse" type="submit">Request New Password</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<form action="dashboard.html" method="post" id="reg_form" style="display:none">
|
||||
<div class="top_b">Sign up to Gebo Admin</div>
|
||||
<div class="alert alert-login">
|
||||
By filling in the form bellow and clicking the "Sign Up" button, you accept and agree to <a data-toggle="modal" href="#terms">Terms of Service</a>.
|
||||
</div>
|
||||
<div id="terms" class="modal hide fade" style="display:none">
|
||||
<div class="modal-header">
|
||||
<a class="close" data-dismiss="modal">×</a>
|
||||
<h3>Terms and Conditions</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>
|
||||
Nulla sollicitudin pulvinar enim, vitae mattis velit venenatis vel. Nullam dapibus est quis lacus tristique consectetur. Morbi posuere vestibulum neque, quis dictum odio facilisis placerat. Sed vel diam ultricies tortor egestas vulputate. Aliquam lobortis felis at ligula elementum volutpat. Ut accumsan sollicitudin neque vitae bibendum. Suspendisse id ullamcorper tellus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vestibulum at augue lorem, at sagittis dolor. Curabitur lobortis justo ut urna gravida scelerisque. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam vitae ligula elit.
|
||||
Pellentesque tincidunt mollis erat ac iaculis. Morbi odio quam, suscipit at sagittis eget, commodo ut justo. Vestibulum auctor nibh id diam placerat dapibus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Suspendisse vel nunc sed tellus rhoncus consectetur nec quis nunc. Donec ultricies aliquam turpis in rhoncus. Maecenas convallis lorem ut nisl posuere tristique. Suspendisse auctor nibh in velit hendrerit rhoncus. Fusce at libero velit. Integer eleifend sem a orci blandit id condimentum ipsum vehicula. Quisque vehicula erat non diam pellentesque sed volutpat purus congue. Duis feugiat, nisl in scelerisque congue, odio ipsum cursus erat, sit amet blandit risus enim quis ante. Pellentesque sollicitudin consectetur risus, sed rutrum ipsum vulputate id. Sed sed blandit sem. Integer eleifend pretium metus, id mattis lorem tincidunt vitae. Donec aliquam lorem eu odio facilisis eu tempus augue volutpat.
|
||||
</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a data-dismiss="modal" class="btn" href="#">Close</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cnt_b">
|
||||
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-user"></i></span><input type="text" placeholder="Username" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-lock"></i></span><input type="text" placeholder="Password" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on">@</span><input type="text" placeholder="Your email address" />
|
||||
</div>
|
||||
<small>The e-mail address is not made public and will only be used if you wish to receive a new password.</small>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="btm_b tac">
|
||||
<button class="btn btn-inverse" type="submit">Sign Up</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="links_b links_btm clearfix">
|
||||
<span class="linkform"><a href="#pass_form">Forgot password?</a></span>
|
||||
<span class="linkform" style="display:none">Never mind, <a href="#login_form">send me back to the sign-in screen</a></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="js/jquery.min.js"></script>
|
||||
<script src="js/jquery-migrate.min.js"></script>
|
||||
<script src="js/jquery.actual.min.js"></script>
|
||||
<script src="lib/validation/jquery.validate.min.js"></script>
|
||||
<script src="bootstrap/js/bootstrap.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
|
||||
//* boxes animation
|
||||
form_wrapper = $('.login_box');
|
||||
function boxHeight() {
|
||||
form_wrapper.animate({ marginTop : ( - ( form_wrapper.height() / 2) - 24) },400);
|
||||
};
|
||||
form_wrapper.css({ marginTop : ( - ( form_wrapper.height() / 2) - 24) });
|
||||
$('.linkform a,.link_reg a').on('click',function(e){
|
||||
var target = $(this).attr('href'),
|
||||
target_height = $(target).actual('height');
|
||||
$(form_wrapper).css({
|
||||
'height' : form_wrapper.height()
|
||||
});
|
||||
$(form_wrapper.find('form:visible')).fadeOut(400,function(){
|
||||
form_wrapper.stop().animate({
|
||||
height : target_height,
|
||||
marginTop: ( - (target_height/2) - 24)
|
||||
},500,function(){
|
||||
$(target).fadeIn(400);
|
||||
$('.links_btm .linkform').toggle();
|
||||
$(form_wrapper).css({
|
||||
'height' : ''
|
||||
});
|
||||
});
|
||||
});
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
//* validation
|
||||
$('#login_form').validate({
|
||||
onkeyup: false,
|
||||
errorClass: 'error',
|
||||
validClass: 'valid',
|
||||
rules: {
|
||||
username: { required: true, minlength: 3 },
|
||||
password: { required: true, minlength: 3 }
|
||||
},
|
||||
highlight: function(element) {
|
||||
$(element).closest('div').addClass("f_error");
|
||||
setTimeout(function() {
|
||||
boxHeight()
|
||||
}, 200)
|
||||
},
|
||||
unhighlight: function(element) {
|
||||
$(element).closest('div').removeClass("f_error");
|
||||
setTimeout(function() {
|
||||
boxHeight()
|
||||
}, 200)
|
||||
},
|
||||
errorPlacement: function(error, element) {
|
||||
$(element).closest('div').append(error);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
79
modules/html.login.php
Normal file
@ -0,0 +1,79 @@
|
||||
<?php echo $cllib->HANDLE_VIEWSOURCE(102930);?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="login_page">
|
||||
<head><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<meta charset="utf-8">
|
||||
<?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<title><?=PROJECTID?></title>
|
||||
<?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
|
||||
<link rel="stylesheet" <?php echo $cllib->HANDLE_VIEWSOURCE(10293);?> href="modules/bootstrap/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" <?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>href="modules/bootstrap/css/bootstrap-responsive.min.css" />
|
||||
<link rel="stylesheet" href="modules/css/blue.css" />
|
||||
<link rel="stylesheet" href="modules/lib/qtip2/jquery.qtip.min.css" /><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<link rel="stylesheet" href="modules/css/style.css" /><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<link rel="shortcut icon" href="favicon.ico" />
|
||||
<link href='modules/css/font.css' rel='stylesheet' type='text/css'>
|
||||
</head>
|
||||
<body onContextMenu="return false;"><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<?php
|
||||
if(isset($_REQUEST['option']))
|
||||
{
|
||||
if($_REQUEST['option']=='err/400'){echo ERROR400;}
|
||||
if($_REQUEST['option']=='err/401'){echo ERROR401;}
|
||||
if($_REQUEST['option']=='err/402'){echo ERROR402;}
|
||||
if($_REQUEST['option']=='err/403'){echo ERROR403;}
|
||||
}
|
||||
?>
|
||||
|
||||
<div style="background-color: transparent;font-size:18pt;margin:12px 12px;color:#c7c5c5"><?=PROJECTNAME?></div><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<div style="background-color: transparent;font-size:9pt;margin:-10px 12px;color:#c7c5c5;position: absolute;z-index:9999;"><?=PROJECTDESCRIPTION?></div>
|
||||
<div class="login_box"><?php echo $cllib->HANDLE_VIEWSOURCE(102913);?>
|
||||
<!-- <div id="divlogo" style="position: absolute;z-index:100;margin-top:-45px;margin-left:-90px"><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<img src="themes/images/logo.png" /><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
</div>-->
|
||||
<form action="?<?=PROJECTID?>" method="post" id="flogin"><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<input type="hidden" id="option" name="option" value="r/log"/><?php echo $cllib->HANDLE_VIEWSOURCE(30293);?>
|
||||
<div class="top_b"><?=PROJECTID." ( ".PROJECTDESCRIPTION." )"?></div><?php echo $cllib->HANDLE_VIEWSOURCE(40293);?>
|
||||
<div style ="width:100%;">
|
||||
<img src="themes/images/tcelbglogin.png" alt="sol image" />
|
||||
</div>
|
||||
|
||||
<div class="cnt_b" style="margin-left:25px;"><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<div class="formRow"><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-user"></i></span><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<input type="text" id="txtuser" name="txtuser" placeholder="Username" value="" />
|
||||
</div><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
</div><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<div class="formRow">
|
||||
<div class="input-prepend"><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<span class="add-on"><i class="icon-lock"></i></span><?php echo $cllib->HANDLE_VIEWSOURCE(102932);?>
|
||||
<input type="password" id="txtpass" name="txtpass" placeholder="Password" value="" />
|
||||
</div>
|
||||
</div><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<div class="formRow clearfix"><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<label class="checkbox"><input type="checkbox" /> Remember me</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btm_b clearfix">
|
||||
<button class="btn btn-inverse pull-right" type="submit">Sign In</button>
|
||||
<span class="link_reg"><a href="#reg_form">Not registered? Sign up here</a></span>
|
||||
</div><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
</form>
|
||||
|
||||
|
||||
<div class="links_b links_btm clearfix"><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<span class="linkform"><a href="#pass_form">Forgot password?</a></span><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<span class="linkform" style="display:none">Never mind, <a href="#login_form">send me back to the sign-in screen</a></span><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
</div>
|
||||
</div><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
|
||||
<script <?php echo $cllib->HANDLE_VIEWSOURCE(10293);?> src="js/jquery.min.js"></script>
|
||||
<script src="js/jquery-migrate.min.js"></script><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<script src="js/jquery.actual.min.js"></script><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
<script src="lib/validation/jquery.validate.min.js"></script>
|
||||
<script src="bootstrap/js/bootstrap.min.js"></script><?php echo $cllib->HANDLE_VIEWSOURCE(10293);?>
|
||||
</body><?php echo $cllib->HANDLE_VIEWSOURCE(102933);?>
|
||||
</html>
|
||||
BIN
modules/img/acc_icons.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
modules/img/adt-icons.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
modules/img/ajax_loader.gif
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
modules/img/attach.png
Normal file
|
After Width: | Height: | Size: 620 B |
BIN
modules/img/bg_a.png
Normal file
|
After Width: | Height: | Size: 932 B |
BIN
modules/img/bg_b.png
Normal file
|
After Width: | Height: | Size: 132 KiB |
BIN
modules/img/bg_c.png
Normal file
|
After Width: | Height: | Size: 938 B |
BIN
modules/img/bg_d.png
Normal file
|
After Width: | Height: | Size: 240 B |
BIN
modules/img/bg_e.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
modules/img/blank.gif
Normal file
|
After Width: | Height: | Size: 49 B |
BIN
modules/img/bullet_blue.png
Normal file
|
After Width: | Height: | Size: 289 B |
BIN
modules/img/bullet_green.png
Normal file
|
After Width: | Height: | Size: 295 B |
BIN
modules/img/bullet_orange.png
Normal file
|
After Width: | Height: | Size: 283 B |
BIN
modules/img/bullet_red.png
Normal file
|
After Width: | Height: | Size: 287 B |
BIN
modules/img/details_close.png
Normal file
|
After Width: | Height: | Size: 170 B |
BIN
modules/img/details_open.png
Normal file
|
After Width: | Height: | Size: 228 B |
BIN
modules/img/error_big.png
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
modules/img/external_link.png
Normal file
|
After Width: | Height: | Size: 180 B |
249
modules/img/flags/flags.css
Normal file
@ -0,0 +1,249 @@
|
||||
[class^="flag-"],[class*=" flag-"] {display: inline-block;margin-top:2px;width: 16px;height: 11px;line-height: 11px;vertical-align: text-top;background-image: url("flags.png");background-repeat: no-repeat;*margin-right: .3em}
|
||||
[class^="flag-"]:last-child,[class*=" flag-"]:last-child {*margin-left: 0 }
|
||||
.flag-ad{background-position:0 0}
|
||||
.flag-ae{background-position:0 -31px}
|
||||
.flag-af{background-position:0 -62px}
|
||||
.flag-ag{background-position:0 -93px}
|
||||
.flag-ai{background-position:0 -124px}
|
||||
.flag-al{background-position:0 -155px}
|
||||
.flag-am{background-position:0 -186px}
|
||||
.flag-an{background-position:0 -217px}
|
||||
.flag-ao{background-position:0 -248px}
|
||||
.flag-ar{background-position:0 -279px}
|
||||
.flag-as{background-position:0 -310px}
|
||||
.flag-at{background-position:0 -341px}
|
||||
.flag-au{background-position:0 -372px}
|
||||
.flag-aw{background-position:0 -403px}
|
||||
.flag-ax{background-position:0 -434px}
|
||||
.flag-az{background-position:0 -465px}
|
||||
.flag-ba{background-position:0 -496px}
|
||||
.flag-bb{background-position:0 -527px}
|
||||
.flag-bd{background-position:0 -558px}
|
||||
.flag-be{background-position:0 -589px}
|
||||
.flag-bf{background-position:0 -620px}
|
||||
.flag-bg{background-position:0 -651px}
|
||||
.flag-bh{background-position:0 -682px}
|
||||
.flag-bi{background-position:0 -713px}
|
||||
.flag-bj{background-position:0 -744px}
|
||||
.flag-bm{background-position:0 -775px}
|
||||
.flag-bn{background-position:0 -806px}
|
||||
.flag-bo{background-position:0 -837px}
|
||||
.flag-br{background-position:0 -868px}
|
||||
.flag-bs{background-position:0 -899px}
|
||||
.flag-bt{background-position:0 -930px}
|
||||
.flag-bv{background-position:0 -961px}
|
||||
.flag-bw{background-position:0 -992px}
|
||||
.flag-by{background-position:0 -1023px}
|
||||
.flag-bz{background-position:0 -1054px}
|
||||
.flag-ca{background-position:0 -1085px}
|
||||
.flag-catalonia{background-position:0 -1116px}
|
||||
.flag-cc{background-position:0 -1147px}
|
||||
.flag-cd{background-position:0 -1178px}
|
||||
.flag-cf{background-position:0 -1209px}
|
||||
.flag-cg{background-position:0 -1240px}
|
||||
.flag-ch{background-position:2px -1271px}
|
||||
.flag-ci{background-position:0 -1302px}
|
||||
.flag-ck{background-position:0 -1333px}
|
||||
.flag-cl{background-position:0 -1364px}
|
||||
.flag-cm{background-position:0 -1395px}
|
||||
.flag-cn{background-position:0 -1426px}
|
||||
.flag-co{background-position:0 -1457px}
|
||||
.flag-cr{background-position:0 -1488px}
|
||||
.flag-cs{background-position:0 -1519px}
|
||||
.flag-cu{background-position:0 -1550px}
|
||||
.flag-cv{background-position:0 -1581px}
|
||||
.flag-cx{background-position:0 -1612px}
|
||||
.flag-cy{background-position:0 -1643px}
|
||||
.flag-cz{background-position:0 -1674px}
|
||||
.flag-de{background-position:0 -1705px}
|
||||
.flag-dj{background-position:0 -1736px}
|
||||
.flag-dk{background-position:0 -1767px}
|
||||
.flag-dm{background-position:0 -1798px}
|
||||
.flag-do{background-position:0 -1829px}
|
||||
.flag-dz{background-position:0 -1860px}
|
||||
.flag-ec{background-position:0 -1891px}
|
||||
.flag-ee{background-position:0 -1922px}
|
||||
.flag-eg{background-position:0 -1953px}
|
||||
.flag-eh{background-position:-36px 0}
|
||||
.flag-england{background-position:-36px -31px}
|
||||
.flag-er{background-position:-36px -62px}
|
||||
.flag-es{background-position:-36px -93px}
|
||||
.flag-et{background-position:-36px -124px}
|
||||
.flag-europeanunion{background-position:-36px -155px}
|
||||
.flag-fam{background-position:-36px -186px}
|
||||
.flag-fi{background-position:-36px -217px}
|
||||
.flag-fj{background-position:-36px -248px}
|
||||
.flag-fk{background-position:-36px -279px}
|
||||
.flag-fm{background-position:-36px -310px}
|
||||
.flag-fo{background-position:-36px -341px}
|
||||
.flag-fr{background-position:-36px -372px}
|
||||
.flag-ga{background-position:-36px -403px}
|
||||
.flag-gb{background-position:-36px -434px}
|
||||
.flag-gd{background-position:-36px -465px}
|
||||
.flag-ge{background-position:-36px -496px}
|
||||
.flag-gf{background-position:-36px -527px}
|
||||
.flag-gh{background-position:-36px -558px}
|
||||
.flag-gi{background-position:-36px -589px}
|
||||
.flag-gl{background-position:-36px -620px}
|
||||
.flag-gm{background-position:-36px -651px}
|
||||
.flag-gn{background-position:-36px -682px}
|
||||
.flag-gp{background-position:-36px -713px}
|
||||
.flag-gq{background-position:-36px -744px}
|
||||
.flag-gr{background-position:-36px -775px}
|
||||
.flag-gs{background-position:-36px -806px}
|
||||
.flag-gt{background-position:-36px -837px}
|
||||
.flag-gu{background-position:-36px -868px}
|
||||
.flag-gw{background-position:-36px -899px}
|
||||
.flag-gy{background-position:-36px -930px}
|
||||
.flag-hk{background-position:-36px -961px}
|
||||
.flag-hm{background-position:-36px -992px}
|
||||
.flag-hn{background-position:-36px -1023px}
|
||||
.flag-hr{background-position:-36px -1054px}
|
||||
.flag-ht{background-position:-36px -1085px}
|
||||
.flag-hu{background-position:-36px -1116px}
|
||||
.flag-id{background-position:-36px -1147px}
|
||||
.flag-ie{background-position:-36px -1178px}
|
||||
.flag-il{background-position:-36px -1209px}
|
||||
.flag-in{background-position:-36px -1240px}
|
||||
.flag-io{background-position:-36px -1271px}
|
||||
.flag-iq{background-position:-36px -1302px}
|
||||
.flag-ir{background-position:-36px -1333px}
|
||||
.flag-is{background-position:-36px -1364px}
|
||||
.flag-it{background-position:-36px -1395px}
|
||||
.flag-jm{background-position:-36px -1426px}
|
||||
.flag-jo{background-position:-36px -1457px}
|
||||
.flag-jp{background-position:-36px -1488px}
|
||||
.flag-ke{background-position:-36px -1519px}
|
||||
.flag-kg{background-position:-36px -1550px}
|
||||
.flag-kh{background-position:-36px -1581px}
|
||||
.flag-ki{background-position:-36px -1612px}
|
||||
.flag-km{background-position:-36px -1643px}
|
||||
.flag-kn{background-position:-36px -1674px}
|
||||
.flag-kp{background-position:-36px -1705px}
|
||||
.flag-kr{background-position:-36px -1736px}
|
||||
.flag-kw{background-position:-36px -1767px}
|
||||
.flag-ky{background-position:-36px -1798px}
|
||||
.flag-kz{background-position:-36px -1829px}
|
||||
.flag-la{background-position:-36px -1860px}
|
||||
.flag-lb{background-position:-36px -1891px}
|
||||
.flag-lc{background-position:-36px -1922px}
|
||||
.flag-li{background-position:-36px -1953px}
|
||||
.flag-lk{background-position:-72px 0}
|
||||
.flag-lr{background-position:-72px -31px}
|
||||
.flag-ls{background-position:-72px -62px}
|
||||
.flag-lt{background-position:-72px -93px}
|
||||
.flag-lu{background-position:-72px -124px}
|
||||
.flag-lv{background-position:-72px -155px}
|
||||
.flag-ly{background-position:-72px -186px}
|
||||
.flag-ma{background-position:-72px -217px}
|
||||
.flag-mc{background-position:-72px -248px}
|
||||
.flag-md{background-position:-72px -279px}
|
||||
.flag-me{background-position:-72px -310px}
|
||||
.flag-mg{background-position:-72px -342px}
|
||||
.flag-mh{background-position:-72px -373px}
|
||||
.flag-mk{background-position:-72px -404px}
|
||||
.flag-ml{background-position:-72px -435px}
|
||||
.flag-mm{background-position:-72px -466px}
|
||||
.flag-mn{background-position:-72px -497px}
|
||||
.flag-mo{background-position:-72px -528px}
|
||||
.flag-mp{background-position:-72px -559px}
|
||||
.flag-mq{background-position:-72px -590px}
|
||||
.flag-mr{background-position:-72px -621px}
|
||||
.flag-ms{background-position:-72px -652px}
|
||||
.flag-mt{background-position:-72px -683px}
|
||||
.flag-mu{background-position:-72px -714px}
|
||||
.flag-mv{background-position:-72px -745px}
|
||||
.flag-mw{background-position:-72px -776px}
|
||||
.flag-mx{background-position:-72px -807px}
|
||||
.flag-my{background-position:-72px -838px}
|
||||
.flag-mz{background-position:-72px -869px}
|
||||
.flag-na{background-position:-72px -900px}
|
||||
.flag-nc{background-position:-72px -931px}
|
||||
.flag-ne{background-position:-72px -962px}
|
||||
.flag-nf{background-position:-72px -993px}
|
||||
.flag-ng{background-position:-72px -1024px}
|
||||
.flag-ni{background-position:-72px -1055px}
|
||||
.flag-nl{background-position:-72px -1086px}
|
||||
.flag-no{background-position:-72px -1117px}
|
||||
.flag-np{background-position:-68px -1148px}
|
||||
.flag-nr{background-position:-72px -1179px}
|
||||
.flag-nu{background-position:-72px -1210px}
|
||||
.flag-nz{background-position:-72px -1241px}
|
||||
.flag-om{background-position:-72px -1272px}
|
||||
.flag-pa{background-position:-72px -1303px}
|
||||
.flag-pe{background-position:-72px -1334px}
|
||||
.flag-pf{background-position:-72px -1365px}
|
||||
.flag-pg{background-position:-72px -1396px}
|
||||
.flag-ph{background-position:-72px -1427px}
|
||||
.flag-pk{background-position:-72px -1458px}
|
||||
.flag-pl{background-position:-72px -1489px}
|
||||
.flag-pm{background-position:-72px -1520px}
|
||||
.flag-pn{background-position:-72px -1551px}
|
||||
.flag-pr{background-position:-72px -1582px}
|
||||
.flag-ps{background-position:-72px -1613px}
|
||||
.flag-pt{background-position:-72px -1644px}
|
||||
.flag-pw{background-position:-72px -1675px}
|
||||
.flag-py{background-position:-72px -1706px}
|
||||
.flag-qa{background-position:-72px -1737px}
|
||||
.flag-re{background-position:-72px -1768px}
|
||||
.flag-ro{background-position:-72px -1799px}
|
||||
.flag-rs{background-position:-72px -1830px}
|
||||
.flag-ru{background-position:-72px -1861px}
|
||||
.flag-rw{background-position:-72px -1892px}
|
||||
.flag-sa{background-position:-72px -1923px}
|
||||
.flag-sb{background-position:-72px -1954px}
|
||||
.flag-sc{background-position:-108px 0}
|
||||
.flag-scotland{background-position:-108px -31px}
|
||||
.flag-sd{background-position:-108px -62px}
|
||||
.flag-se{background-position:-108px -93px}
|
||||
.flag-sg{background-position:-108px -124px}
|
||||
.flag-sh{background-position:-108px -155px}
|
||||
.flag-si{background-position:-108px -186px}
|
||||
.flag-sj{background-position:-108px -217px}
|
||||
.flag-sk{background-position:-108px -248px}
|
||||
.flag-sl{background-position:-108px -279px}
|
||||
.flag-sm{background-position:-108px -310px}
|
||||
.flag-sn{background-position:-108px -341px}
|
||||
.flag-so{background-position:-108px -372px}
|
||||
.flag-sr{background-position:-108px -403px}
|
||||
.flag-st{background-position:-108px -434px}
|
||||
.flag-sv{background-position:-108px -465px}
|
||||
.flag-sy{background-position:-108px -496px}
|
||||
.flag-sz{background-position:-108px -527px}
|
||||
.flag-tc{background-position:-108px -558px}
|
||||
.flag-td{background-position:-108px -589px}
|
||||
.flag-tf{background-position:-108px -620px}
|
||||
.flag-tg{background-position:-108px -651px}
|
||||
.flag-th{background-position:-108px -682px}
|
||||
.flag-tj{background-position:-108px -713px}
|
||||
.flag-tk{background-position:-108px -744px}
|
||||
.flag-tl{background-position:-108px -775px}
|
||||
.flag-tm{background-position:-108px -806px}
|
||||
.flag-tn{background-position:-108px -837px}
|
||||
.flag-to{background-position:-108px -868px}
|
||||
.flag-tr{background-position:-108px -899px}
|
||||
.flag-tt{background-position:-108px -930px}
|
||||
.flag-tv{background-position:-108px -961px}
|
||||
.flag-tw{background-position:-108px -992px}
|
||||
.flag-tz{background-position:-108px -1023px}
|
||||
.flag-ua{background-position:-108px -1054px}
|
||||
.flag-ug{background-position:-108px -1085px}
|
||||
.flag-um{background-position:-108px -1116px}
|
||||
.flag-us{background-position:-108px -1147px}
|
||||
.flag-uy{background-position:-108px -1178px}
|
||||
.flag-uz{background-position:-108px -1209px}
|
||||
.flag-va{background-position:-108px -1240px}
|
||||
.flag-vc{background-position:-108px -1271px}
|
||||
.flag-ve{background-position:-108px -1302px}
|
||||
.flag-vg{background-position:-108px -1333px}
|
||||
.flag-vi{background-position:-108px -1364px}
|
||||
.flag-vn{background-position:-108px -1395px}
|
||||
.flag-vu{background-position:-108px -1426px}
|
||||
.flag-wales{background-position:-108px -1457px}
|
||||
.flag-wf{background-position:-108px -1488px}
|
||||
.flag-ws{background-position:-108px -1519px}
|
||||
.flag-ye{background-position:-108px -1550px}
|
||||
.flag-yt{background-position:-108px -1581px}
|
||||
.flag-za{background-position:-108px -1612px}
|
||||
.flag-zm{background-position:-108px -1643px}
|
||||
.flag-zw{background-position:-108px -1674px}
|
||||
BIN
modules/img/flags/flags.png
Normal file
|
After Width: | Height: | Size: 85 KiB |
BIN
modules/img/logo.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
modules/img/main_bg.gif
Normal file
|
After Width: | Height: | Size: 55 B |
BIN
modules/img/main_bg_right.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
modules/img/poster.jpg
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
modules/img/sidebar_switch.png
Normal file
|
After Width: | Height: | Size: 1022 B |
BIN
modules/img/spinner_arrows.gif
Normal file
|
After Width: | Height: | Size: 142 B |
365
modules/img/splashy/splashy.css
Normal file
@ -0,0 +1,365 @@
|
||||
[class^="splashy-"],[class*=" splashy-"] {margin-top:-1px;position:relative;display: inline-block;width: 16px;height: 16px;line-height: 16px;vertical-align: text-top;background-image: url("splashy.png");background-repeat: no-repeat;*margin-right: .3em}
|
||||
[class^="splashy-"]:last-child,[class*=" splashy-"]:last-child {*margin-left: 0 }
|
||||
.splashy-add{ background-position: 0 0}
|
||||
.splashy-add_outline{ background-position: 0 -21px}
|
||||
.splashy-add_small{ background-position: 0 -42px}
|
||||
.splashy-application_windows{ background-position: 0 -63px}
|
||||
.splashy-application_windows_add{ background-position: 0 -84px}
|
||||
.splashy-application_windows_down{ background-position: 0 -105px}
|
||||
.splashy-application_windows_edit{ background-position: 0 -126px; width: 16px; height: 14px; }
|
||||
.splashy-application_windows_locked{ background-position: 0 -145px}
|
||||
.splashy-application_windows_new{ background-position: 0 -166px}
|
||||
.splashy-application_windows_okay{ background-position: 0 -187px}
|
||||
.splashy-application_windows_remove{ background-position: 0 -208px}
|
||||
.splashy-application_windows_share{ background-position: 0 -229px}
|
||||
.splashy-application_windows_up{ background-position: 0 -250px}
|
||||
.splashy-application_windows_warning{ background-position: 0 -271px}
|
||||
.splashy-applications_windows{ background-position: 0 -292px}
|
||||
.splashy-arrow_large_down{ background-position: 0 -313px}
|
||||
.splashy-arrow_large_down_outline{ background-position: 0 -334px}
|
||||
.splashy-arrow_large_left{ background-position: 0 -355px}
|
||||
.splashy-arrow_large_left_outline{ background-position: 0 -376px}
|
||||
.splashy-arrow_large_right{ background-position: 0 -397px}
|
||||
.splashy-arrow_large_right_outline{ background-position: 0 -418px}
|
||||
.splashy-arrow_large_up{ background-position: 0 -439px}
|
||||
.splashy-arrow_large_up_outline{ background-position: 0 -460px}
|
||||
.splashy-arrow_medium_down{ background-position: 0 -481px}
|
||||
.splashy-arrow_medium_left{ background-position: 0 -502px}
|
||||
.splashy-arrow_medium_lower_left{ background-position: 0 -523px}
|
||||
.splashy-arrow_medium_lower_right{ background-position: 0 -544px}
|
||||
.splashy-arrow_medium_right{ background-position: 0 -565px}
|
||||
.splashy-arrow_medium_up{ background-position: 0 -586px}
|
||||
.splashy-arrow_medium_upper_left{ background-position: 0 -607px}
|
||||
.splashy-arrow_medium_upper_right{ background-position: 0 -628px}
|
||||
.splashy-arrow_small_down{ background-position: 0 -649px}
|
||||
.splashy-arrow_small_left{ background-position: 0 -670px}
|
||||
.splashy-arrow_small_right{ background-position: 0 -691px}
|
||||
.splashy-arrow_small_up{ background-position: 0 -712px}
|
||||
.splashy-arrow_state_blue_collapsed{ background-position: 0 -733px}
|
||||
.splashy-arrow_state_blue_expanded{ background-position: 0 -754px}
|
||||
.splashy-arrow_state_blue_left{ background-position: 0 -775px}
|
||||
.splashy-arrow_state_blue_right{ background-position: 0 -796px}
|
||||
.splashy-arrow_state_grey_collapsed{ background-position: 0 -817px}
|
||||
.splashy-arrow_state_grey_expanded{ background-position: 0 -838px}
|
||||
.splashy-arrow_state_grey_left{ background-position: 0 -859px}
|
||||
.splashy-arrow_state_grey_right{ background-position: 0 -880px}
|
||||
.splashy-box{ background-position: 0 -901px}
|
||||
.splashy-box_add{ background-position: 0 -922px}
|
||||
.splashy-box_edit{ background-position: 0 -943px; width: 15px; height: 16px; }
|
||||
.splashy-box_locked{ background-position: 0 -964px}
|
||||
.splashy-box_new{ background-position: 0 -985px}
|
||||
.splashy-box_okay{ background-position: 0 -1006px}
|
||||
.splashy-box_remove{ background-position: 0 -1027px}
|
||||
.splashy-box_share{ background-position: 0 -1048px}
|
||||
.splashy-box_warning{ background-position: 0 -1069px}
|
||||
.splashy-breadcrumb_separator_arrow_1_dot{ background-position: 0 -1090px}
|
||||
.splashy-breadcrumb_separator_arrow_2_dots{ background-position: 0 -1111px}
|
||||
.splashy-breadcrumb_separator_arrow_full{ background-position: 0 -1132px}
|
||||
.splashy-breadcrumb_separator_dark{ background-position: 0 -1153px}
|
||||
.splashy-breadcrumb_separator_light{ background-position: 0 -1174px}
|
||||
.splashy-bullet_blue{ background-position: 0 -1195px}
|
||||
.splashy-bullet_blue_arrow{ background-position: 0 -1216px}
|
||||
.splashy-bullet_blue_collapse{ background-position: 0 -1237px}
|
||||
.splashy-bullet_blue_collapse_small{ background-position: 0 -1258px}
|
||||
.splashy-bullet_blue_expand{ background-position: 0 -1279px}
|
||||
.splashy-bullet_blue_expand_small{ background-position: 0 -1300px}
|
||||
.splashy-bullet_blue_small{ background-position: 0 -1321px}
|
||||
.splashy-calendar_day{ background-position: 0 -1342px}
|
||||
.splashy-calendar_day_add{ background-position: 0 -1363px}
|
||||
.splashy-calendar_day_down{ background-position: 0 -1384px}
|
||||
.splashy-calendar_day_edit{ background-position: 0 -1405px; width: 16px; height: 14px; }
|
||||
.splashy-calendar_day_event{ background-position: 0 -1424px}
|
||||
.splashy-calendar_day_new{ background-position: 0 -1445px}
|
||||
.splashy-calendar_day_remove{ background-position: 0 -1466px}
|
||||
.splashy-calendar_day_up{ background-position: 0 -1487px}
|
||||
.splashy-calendar_month{ background-position: 0 -1508px}
|
||||
.splashy-calendar_month_add{ background-position: 0 -1529px}
|
||||
.splashy-calendar_month_down{ background-position: 0 -1550px}
|
||||
.splashy-calendar_month_edit{ background-position: 0 -1571px; width: 16px; height: 14px; }
|
||||
.splashy-calendar_month_new{ background-position: 0 -1590px}
|
||||
.splashy-calendar_month_remove{ background-position: 0 -1611px}
|
||||
.splashy-calendar_month_up{ background-position: 0 -1632px}
|
||||
.splashy-calendar_week{ background-position: 0 -1653px}
|
||||
.splashy-calendar_week_add{ background-position: 0 -1674px}
|
||||
.splashy-calendar_week_edit{ background-position: 0 -1695px; width: 16px; height: 14px; }
|
||||
.splashy-calendar_week_remove{ background-position: 0 -1714px}
|
||||
.splashy-cellphone{ background-position: 0 -1735px}
|
||||
.splashy-check{ background-position: 0 -1756px}
|
||||
.splashy-close{ background-position: 0 -1777px}
|
||||
.splashy-comment{ background-position: 0 -1798px}
|
||||
.splashy-comment_alert{ background-position: 0 -1819px}
|
||||
.splashy-comment_new_1{ background-position: 0 -1840px}
|
||||
.splashy-comment_new_2{ background-position: 0 -1861px}
|
||||
.splashy-comment_question{ background-position: 0 -1882px}
|
||||
.splashy-comment_reply{ background-position: 0 -1903px}
|
||||
.splashy-comments{ background-position: 0 -1924px}
|
||||
.splashy-comments_reply{ background-position: 0 -1945px}
|
||||
.splashy-comments_small{ background-position: 0 -1966px}
|
||||
.splashy-contact_blue{ background-position: 0 -1987px}
|
||||
.splashy-contact_blue_add{ background-position: -21px 0}
|
||||
.splashy-contact_blue_edit{ background-position: -21px -21px; width: 14px; height: 16px; }
|
||||
.splashy-contact_blue_new{ background-position: -21px -42px}
|
||||
.splashy-contact_blue_remove{ background-position: -21px -63px}
|
||||
.splashy-contact_grey{ background-position: -21px -84px}
|
||||
.splashy-contact_grey_add{ background-position: -21px -105px}
|
||||
.splashy-contact_grey_edit{ background-position: -21px -126px; width: 14px; height: 16px; }
|
||||
.splashy-contact_grey_new{ background-position: -21px -147px}
|
||||
.splashy-contact_grey_remove{ background-position: -21px -168px}
|
||||
.splashy-diamonds_1{ background-position: -21px -189px}
|
||||
.splashy-diamonds_2{ background-position: -21px -210px}
|
||||
.splashy-diamonds_3{ background-position: -21px -231px}
|
||||
.splashy-diamonds_4{ background-position: -21px -252px}
|
||||
.splashy-document_a4{ background-position: -21px -273px}
|
||||
.splashy-document_a4_add{ background-position: -21px -294px}
|
||||
.splashy-document_a4_blank{ background-position: -21px -315px}
|
||||
.splashy-document_a4_download{ background-position: -21px -336px}
|
||||
.splashy-document_a4_edit{ background-position: -21px -357px; width: 13px; height: 16px; }
|
||||
.splashy-document_a4_locked{ background-position: -21px -378px}
|
||||
.splashy-document_a4_marked{ background-position: -21px -399px}
|
||||
.splashy-document_a4_new{ background-position: -21px -420px}
|
||||
.splashy-document_a4_okay{ background-position: -21px -441px}
|
||||
.splashy-document_a4_remove{ background-position: -21px -462px}
|
||||
.splashy-document_a4_share{ background-position: -21px -483px}
|
||||
.splashy-document_a4_upload{ background-position: -21px -504px}
|
||||
.splashy-document_a4_warning{ background-position: -21px -525px}
|
||||
.splashy-document_copy{ background-position: -21px -546px}
|
||||
.splashy-document_letter{ background-position: -21px -567px}
|
||||
.splashy-document_letter_add{ background-position: -21px -588px}
|
||||
.splashy-document_letter_blank{ background-position: -21px -609px}
|
||||
.splashy-document_letter_download{ background-position: -21px -630px}
|
||||
.splashy-document_letter_edit{ background-position: -21px -651px; width: 14px; height: 16px; }
|
||||
.splashy-document_letter_locked{ background-position: -21px -672px}
|
||||
.splashy-document_letter_marked{ background-position: -21px -693px}
|
||||
.splashy-document_letter_new{ background-position: -21px -714px}
|
||||
.splashy-document_letter_okay{ background-position: -21px -735px}
|
||||
.splashy-document_letter_remove{ background-position: -21px -756px}
|
||||
.splashy-document_letter_share{ background-position: -21px -777px}
|
||||
.splashy-document_letter_upload{ background-position: -21px -798px}
|
||||
.splashy-document_letter_warning{ background-position: -21px -819px}
|
||||
.splashy-document_small{ background-position: -21px -839px}
|
||||
.splashy-document_small_download{ background-position: -21px -861px}
|
||||
.splashy-document_small_upload{ background-position: -21px -882px}
|
||||
.splashy-documents{ background-position: -21px -903px}
|
||||
.splashy-documents_add{ background-position: -21px -924px}
|
||||
.splashy-documents_edit{ background-position: -21px -945px; width: 14px; height: 16px; }
|
||||
.splashy-documents_locked{ background-position: -21px -966px}
|
||||
.splashy-documents_new{ background-position: -21px -987px}
|
||||
.splashy-documents_okay{ background-position: -21px -1008px}
|
||||
.splashy-documents_remove{ background-position: -21px -1029px}
|
||||
.splashy-documents_share{ background-position: -21px -1050px}
|
||||
.splashy-documents_warning{ background-position: -21px -1071px}
|
||||
.splashy-download{ background-position: -21px -1092px}
|
||||
.splashy-error{ background-position: -21px -1113px}
|
||||
.splashy-error_do_not{ background-position: -21px -1134px}
|
||||
.splashy-error_do_not_small{ background-position: -21px -1155px}
|
||||
.splashy-error_small{ background-position: -21px -1176px}
|
||||
.splashy-error_x{ background-position: -21px -1197px}
|
||||
.splashy-fish{ background-position: -21px -1218px}
|
||||
.splashy-folder_classic{ background-position: -21px -1239px}
|
||||
.splashy-folder_classic_add{ background-position: -21px -1260px}
|
||||
.splashy-folder_classic_add_simple{ background-position: -21px -1281px}
|
||||
.splashy-folder_classic_down{ background-position: -21px -1302px}
|
||||
.splashy-folder_classic_edit{ background-position: -21px -1323px; width: 15px; height: 13px; }
|
||||
.splashy-folder_classic_locked{ background-position: -21px -1341px}
|
||||
.splashy-folder_classic_opened{ background-position: -21px -1362px}
|
||||
.splashy-folder_classic_opened_stuffed{ background-position: -21px -1383px}
|
||||
.splashy-folder_classic_remove{ background-position: -21px -1404px}
|
||||
.splashy-folder_classic_remove_simple{ background-position: -21px -1425px}
|
||||
.splashy-folder_classic_stuffed{ background-position: -21px -1446px}
|
||||
.splashy-folder_classic_stuffed_add{ background-position: -21px -1467px}
|
||||
.splashy-folder_classic_stuffed_add_simple{ background-position: -21px -1488px}
|
||||
.splashy-folder_classic_stuffed_edit{ background-position: -21px -1507px; width: 15px; height: 15px; }
|
||||
.splashy-folder_classic_stuffed_locked{ background-position: -21px -1527px}
|
||||
.splashy-folder_classic_stuffed_remove{ background-position: -21px -1548px}
|
||||
.splashy-folder_classic_stuffed_remove_simple{ background-position: -21px -1569px}
|
||||
.splashy-folder_classic_type_document{ background-position: -21px -1590px}
|
||||
.splashy-folder_classic_type_image{ background-position: -21px -1611px}
|
||||
.splashy-folder_classic_type_music{ background-position: -21px -1632px}
|
||||
.splashy-folder_classic_up{ background-position: -21px -1653px}
|
||||
.splashy-folder_locked{ background-position: -21px -1674px}
|
||||
.splashy-folder_modernist{ background-position: -21px -1695px}
|
||||
.splashy-folder_modernist_add{ background-position: -21px -1716px}
|
||||
.splashy-folder_modernist_add_simple{ background-position: -21px -1737px}
|
||||
.splashy-folder_modernist_down{ background-position: -21px -1758px}
|
||||
.splashy-folder_modernist_edit{ background-position: -21px -1777px; width: 15px; height: 15px; }
|
||||
.splashy-folder_modernist_locked{ background-position: -21px -1797px}
|
||||
.splashy-folder_modernist_opened{ background-position: -21px -1818px}
|
||||
.splashy-folder_modernist_opened_stuffed{ background-position: -21px -1839px}
|
||||
.splashy-folder_modernist_remove{ background-position: -21px -1860px}
|
||||
.splashy-folder_modernist_remove_simple{ background-position: -21px -1881px}
|
||||
.splashy-folder_modernist_stuffed{ background-position: -21px -1902px}
|
||||
.splashy-folder_modernist_stuffed_add{ background-position: -21px -1923px}
|
||||
.splashy-folder_modernist_stuffed_add_simple{ background-position: -21px -1944px}
|
||||
.splashy-folder_modernist_stuffed_edit{ background-position: -21px -1963px; width: 15px; height: 15px; }
|
||||
.splashy-folder_modernist_stuffed_locked{ background-position: -21px -1983px}
|
||||
.splashy-folder_modernist_stuffed_remove{ background-position: -42px 0}
|
||||
.splashy-folder_modernist_stuffed_remove_simple{ background-position: -42px -21px}
|
||||
.splashy-folder_modernist_type_document{ background-position: -42px -42px}
|
||||
.splashy-folder_modernist_type_image{ background-position: -42px -63px}
|
||||
.splashy-folder_modernist_type_movie{ background-position: -42px -84px}
|
||||
.splashy-folder_modernist_type_music{ background-position: -42px -105px}
|
||||
.splashy-folder_modernist_up{ background-position: -42px -126px}
|
||||
.splashy-folder_remove{ background-position: -42px -147px}
|
||||
.splashy-folder_stuffed{ background-position: -42px -168px}
|
||||
.splashy-folder_stuffed_add{ background-position: -42px -189px}
|
||||
.splashy-folder_stuffed_locked{ background-position: -42px -210px}
|
||||
.splashy-folder_stuffed_remove{ background-position: -42px -231px}
|
||||
.splashy-gem_cancel_1{ background-position: -42px -252px}
|
||||
.splashy-gem_cancel_2{ background-position: -42px -273px}
|
||||
.splashy-gem_okay{ background-position: -42px -294px}
|
||||
.splashy-gem_options{ background-position: -42px -315px}
|
||||
.splashy-gem_remove{ background-position: -42px -336px}
|
||||
.splashy-group_blue{ background-position: -42px -357px}
|
||||
.splashy-group_blue_add{ background-position: -42px -378px}
|
||||
.splashy-group_blue_edit{ background-position: -42px -399px}
|
||||
.splashy-group_blue_new{ background-position: -42px -420px}
|
||||
.splashy-group_blue_remove{ background-position: -42px -441px}
|
||||
.splashy-group_green{ background-position: -42px -462px}
|
||||
.splashy-group_green_add{ background-position: -42px -483px}
|
||||
.splashy-group_green_edit{ background-position: -42px -504px}
|
||||
.splashy-group_green_new{ background-position: -42px -525px}
|
||||
.splashy-group_green_remove{ background-position: -42px -546px}
|
||||
.splashy-group_grey{ background-position: -42px -567px}
|
||||
.splashy-group_grey_add{ background-position: -42px -588px}
|
||||
.splashy-group_grey_edit{ background-position: -42px -609px}
|
||||
.splashy-group_grey_new{ background-position: -42px -630px}
|
||||
.splashy-group_grey_remove{ background-position: -42px -651px}
|
||||
.splashy-hcard{ background-position: -42px -672px}
|
||||
.splashy-hcard_add{ background-position: -42px -693px}
|
||||
.splashy-hcard_download{ background-position: -42px -714px}
|
||||
.splashy-hcard_edit{ background-position: -42px -733px; width: 16px; height: 15px; }
|
||||
.splashy-hcard_new{ background-position: -42px -753px}
|
||||
.splashy-hcard_remove{ background-position: -42px -774px}
|
||||
.splashy-hcard_up{ background-position: -42px -795px}
|
||||
.splashy-hcards{ background-position: -42px -816px}
|
||||
.splashy-hcards_add{ background-position: -42px -837px}
|
||||
.splashy-hcards_down{ background-position: -42px -858px}
|
||||
.splashy-hcards_edit{ background-position: -42px -879px; width: 16px; height: 14px; }
|
||||
.splashy-hcards_remove{ background-position: -42px -898px}
|
||||
.splashy-hcards_up{ background-position: -42px -919px}
|
||||
.splashy-heart{ background-position: -42px -940px}
|
||||
.splashy-heart_add{ background-position: -42px -961px}
|
||||
.splashy-heart_edit{ background-position: -42px -979px; width: 15px; height: 15px; }
|
||||
.splashy-heart_outline{ background-position: -42px -999px}
|
||||
.splashy-heart_remove{ background-position: -42px -1020px}
|
||||
.splashy-heart_up{ background-position: -42px -1041px}
|
||||
.splashy-help{ background-position: -42px -1062px}
|
||||
.splashy-home_green{ background-position: -42px -1083px}
|
||||
.splashy-home_grey{ background-position: -42px -1104px}
|
||||
.splashy-image_cultured{ background-position: -42px -1125px}
|
||||
.splashy-image_modernist{ background-position: -42px -1146px}
|
||||
.splashy-information{ background-position: -42px -1167px}
|
||||
.splashy-lock_large_locked{ background-position: -42px -1188px}
|
||||
.splashy-lock_large_unlocked{ background-position: -42px -1209px}
|
||||
.splashy-lock_small_locked{ background-position: -42px -1230px}
|
||||
.splashy-lock_small_unlocked{ background-position: -42px -1251px}
|
||||
.splashy-mail_light{ background-position: -42px -1272px}
|
||||
.splashy-mail_light_down{ background-position: -42px -1293px}
|
||||
.splashy-mail_light_left{ background-position: -42px -1314px}
|
||||
.splashy-mail_light_new_1{ background-position: -42px -1335px}
|
||||
.splashy-mail_light_new_2{ background-position: -42px -1356px}
|
||||
.splashy-mail_light_right{ background-position: -42px -1377px}
|
||||
.splashy-mail_light_stuffed{ background-position: -42px -1398px}
|
||||
.splashy-mail_light_up{ background-position: -42px -1419px}
|
||||
.splashy-map{ background-position: -42px -1440px}
|
||||
.splashy-marker_rounded_add{ background-position: -42px -1461px}
|
||||
.splashy-marker_rounded_blue{ background-position: -42px -1482px}
|
||||
.splashy-marker_rounded_edit{ background-position: -42px -1503px; width: 13px; height: 16px; }
|
||||
.splashy-marker_rounded_green{ background-position: -42px -1524px}
|
||||
.splashy-marker_rounded_grey_1{ background-position: -42px -1545px}
|
||||
.splashy-marker_rounded_grey_2{ background-position: -42px -1566px}
|
||||
.splashy-marker_rounded_grey_3{ background-position: -42px -1587px}
|
||||
.splashy-marker_rounded_grey_4{ background-position: -42px -1608px}
|
||||
.splashy-marker_rounded_grey_5{ background-position: -42px -1629px}
|
||||
.splashy-marker_rounded_light_blue{ background-position: -42px -1650px}
|
||||
.splashy-marker_rounded_new{ background-position: -42px -1671px}
|
||||
.splashy-marker_rounded_red{ background-position: -42px -1692px}
|
||||
.splashy-marker_rounded_remove{ background-position: -42px -1713px}
|
||||
.splashy-marker_rounded_violet{ background-position: -42px -1734px}
|
||||
.splashy-marker_rounded_yellow{ background-position: -42px -1755px}
|
||||
.splashy-marker_rounded_yellow_green{ background-position: -42px -1776px}
|
||||
.splashy-marker_rounded_yellow_orange{ background-position: -42px -1797px}
|
||||
.splashy-media_controls_dark_first{ background-position: -42px -1818px}
|
||||
.splashy-media_controls_dark_forward{ background-position: -42px -1839px}
|
||||
.splashy-media_controls_dark_last{ background-position: -42px -1860px}
|
||||
.splashy-media_controls_dark_pause{ background-position: -42px -1881px}
|
||||
.splashy-media_controls_dark_play{ background-position: -42px -1902px}
|
||||
.splashy-media_controls_dark_rewind{ background-position: -42px -1923px}
|
||||
.splashy-media_controls_dark_stop{ background-position: -42px -1944px}
|
||||
.splashy-media_controls_first_small{ background-position: -42px -1965px}
|
||||
.splashy-media_controls_forward_small{ background-position: -42px -1986px}
|
||||
.splashy-media_controls_last_small{ background-position: -63px 0}
|
||||
.splashy-media_controls_pause_small{ background-position: -63px -21px}
|
||||
.splashy-media_controls_play_small{ background-position: -63px -42px}
|
||||
.splashy-media_controls_rewind_small{ background-position: -63px -63px}
|
||||
.splashy-media_controls_stop_small{ background-position: -63px -84px}
|
||||
.splashy-menu{ background-position: -63px -105px}
|
||||
.splashy-menu_dropdown{ background-position: -63px -126px}
|
||||
.splashy-movie_play{ background-position: -63px -147px}
|
||||
.splashy-music_cd_blue_note{ background-position: -63px -168px}
|
||||
.splashy-music_green{ background-position: -63px -189px}
|
||||
.splashy-music_grey{ background-position: -63px -210px}
|
||||
.splashy-new_small{ background-position: -63px -231px}
|
||||
.splashy-okay{ background-position: -63px -252px}
|
||||
.splashy-okay_small{ background-position: -63px -273px}
|
||||
.splashy-pagination_1_first{ background-position: -63px -294px}
|
||||
.splashy-pagination_1_last{ background-position: -63px -315px}
|
||||
.splashy-pagination_1_next{ background-position: -63px -336px}
|
||||
.splashy-pagination_1_previous{ background-position: -63px -357px}
|
||||
.splashy-pencil{ background-position: -63px -378px}
|
||||
.splashy-pencil_small{ background-position: -63px -399px}
|
||||
.splashy-printer{ background-position: -63px -420px}
|
||||
.splashy-quanitity_capsule_1{ background-position: -63px -441px}
|
||||
.splashy-quantity_capsule_2{ background-position: -63px -462px}
|
||||
.splashy-quantity_capsule_3{ background-position: -63px -483px}
|
||||
.splashy-quantity_capsule_4{ background-position: -63px -504px}
|
||||
.splashy-quantity_capsule_5{ background-position: -63px -525px}
|
||||
.splashy-refresh{ background-position: -63px -546px}
|
||||
.splashy-refresh_backwards{ background-position: -63px -567px}
|
||||
.splashy-refresh_forward{ background-position: -63px -588px}
|
||||
.splashy-remove{ background-position: -63px -609px}
|
||||
.splashy-remove_minus_sign{ background-position: -63px -630px}
|
||||
.splashy-remove_minus_sign_outline{ background-position: -63px -651px}
|
||||
.splashy-remove_minus_sign_small{ background-position: -63px -672px}
|
||||
.splashy-remove_outline{ background-position: -63px -693px}
|
||||
.splashy-shield{ background-position: -63px -714px}
|
||||
.splashy-shield_chevrons{ background-position: -63px -735px}
|
||||
.splashy-shield_star{ background-position: -63px -756px}
|
||||
.splashy-slider_no_pointy_thing{ background-position: -63px -777px}
|
||||
.splashy-smiley_amused{ background-position: -63px -798px}
|
||||
.splashy-smiley_happy{ background-position: -63px -819px}
|
||||
.splashy-smiley_surprised{ background-position: -63px -840px}
|
||||
.splashy-sprocket_dark{ background-position: -63px -861px}
|
||||
.splashy-sprocket_light{ background-position: -63px -882px}
|
||||
.splashy-star_boxed_empty{ background-position: -63px -903px}
|
||||
.splashy-star_boxed_full{ background-position: -63px -924px}
|
||||
.splashy-star_boxed_half{ background-position: -63px -945px}
|
||||
.splashy-star_empty{ background-position: -63px -966px}
|
||||
.splashy-star_full{ background-position: -63px -987px}
|
||||
.splashy-star_half{ background-position: -63px -1008px}
|
||||
.splashy-tag{ background-position: -63px -1029px}
|
||||
.splashy-tag_add{ background-position: -63px -1050px}
|
||||
.splashy-tag_edit{ background-position: -63px -1071px}
|
||||
.splashy-tag_remove{ background-position: -63px -1092px}
|
||||
.splashy-thumb_down{ background-position: -63px -1113px}
|
||||
.splashy-thumb_up{ background-position: -63px -1134px}
|
||||
.splashy-ticket{ background-position: -63px -1155px}
|
||||
.splashy-ticket_add{ background-position: -63px -1176px}
|
||||
.splashy-ticket_remove{ background-position: -63px -1197px}
|
||||
.splashy-upload{ background-position: -63px -1218px}
|
||||
.splashy-view_list{ background-position: -63px -1239px}
|
||||
.splashy-view_list_with_thumbnail{ background-position: -63px -1260px}
|
||||
.splashy-view_outline{ background-position: -63px -1281px}
|
||||
.splashy-view_outline_detail{ background-position: -63px -1302px}
|
||||
.splashy-view_table{ background-position: -63px -1323px}
|
||||
.splashy-view_thumbnail{ background-position: -63px -1344px}
|
||||
.splashy-volume{ background-position: -63px -1365px}
|
||||
.splashy-volume_loud{ background-position: -63px -1386px}
|
||||
.splashy-volume_off{ background-position: -63px -1407px}
|
||||
.splashy-volume_quiet{ background-position: -63px -1428px}
|
||||
.splashy-warning{ background-position: -63px -1449px}
|
||||
.splashy-warning_triangle{ background-position: -63px -1470px}
|
||||
.splashy-warning_triangle_small{ background-position: -63px -1491px}
|
||||
.splashy-zoom{ background-position: -63px -1512px}
|
||||
.splashy-zoom_in{ background-position: -63px -1533px}
|
||||
.splashy-zoom_out{ background-position: -63px -1554px}
|
||||
BIN
modules/img/splashy/splashy.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
modules/img/ui.totop.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
modules/img/user_avatar.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
modules/img/vid_local.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
modules/img/vid_vimeo.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
modules/img/vid_yt.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
modules/img/vimeo.png
Normal file
|
After Width: | Height: | Size: 86 KiB |
134
modules/lib/CLEditor/jquery.cleditor.bbcode.js
Normal file
@ -0,0 +1,134 @@
|
||||
/**
|
||||
@preserve CLEditor BBCode Plugin v1.0.0
|
||||
http://premiumsoftware.net/cleditor
|
||||
requires CLEditor v1.3.0 or later
|
||||
|
||||
Copyright 2010, Chris Landowski, Premium Software, LLC
|
||||
Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
*/
|
||||
|
||||
// ==ClosureCompiler==
|
||||
// @compilation_level SIMPLE_OPTIMIZATIONS
|
||||
// @output_file_name jquery.cleditor.bbcode.min.js
|
||||
// ==/ClosureCompiler==
|
||||
|
||||
/*
|
||||
|
||||
The CLEditor useCSS optional parameter should be set to false for this plugin
|
||||
to function properly.
|
||||
|
||||
Supported HTML and BBCode Tags:
|
||||
|
||||
Bold <b>Hello</b>
|
||||
[b]Hello[/b]
|
||||
Italics <i>Hello</i>
|
||||
[i]Hello[/i]
|
||||
Underlined <u>Hello</u>
|
||||
[u]Hello[/u]
|
||||
Strikethrough <strike>Hello</strike>
|
||||
[s]Hello[/s]
|
||||
Unordered Lists <ul><li>Red</li><li>Blue</li><li>Green</li></ul>
|
||||
[list][*]Red[/*][*]Green[/*][*]Blue[/*][/list]
|
||||
Ordered Lists <ol><li>Red</li><li>Blue</li><li>Green</li></ol>
|
||||
[list=1][*]Red[/*][*]Green[/*][*]Blue[/*][/list]
|
||||
Images <img src="http://premiumsoftware.net/image.jpg">
|
||||
[img]http://premiumsoftware.net/image.jpg[/img]
|
||||
Links <a href="http://premiumsoftware.net">Premium Software</a>
|
||||
[url=http://premiumsoftware.net]Premium Software[/url]
|
||||
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
|
||||
// BBCode only supports a small subset of HTML, so remove
|
||||
// any toolbar buttons that are not currently supported.
|
||||
$.cleditor.defaultOptions.controls =
|
||||
"bold italic underline strikethrough removeformat | bullets numbering | " +
|
||||
"undo redo | image link unlink | cut copy paste pastetext | print source";
|
||||
|
||||
// Save the previously assigned callback handlers
|
||||
var oldAreaCallback = $.cleditor.defaultOptions.updateTextArea;
|
||||
var oldFrameCallback = $.cleditor.defaultOptions.updateFrame;
|
||||
|
||||
// Wireup the updateTextArea callback handler
|
||||
$.cleditor.defaultOptions.updateTextArea = function(html) {
|
||||
|
||||
// Fire the previously assigned callback handler
|
||||
if (oldAreaCallback)
|
||||
html = oldAreaCallback(html);
|
||||
|
||||
// Convert the HTML to BBCode
|
||||
return $.cleditor.convertHTMLtoBBCode(html);
|
||||
|
||||
}
|
||||
|
||||
// Wireup the updateFrame callback handler
|
||||
$.cleditor.defaultOptions.updateFrame = function(code) {
|
||||
|
||||
// Fire the previously assigned callback handler
|
||||
if (oldFrameCallback)
|
||||
code = oldFrameCallback(code);
|
||||
|
||||
// Convert the BBCode to HTML
|
||||
return $.cleditor.convertBBCodeToHTML(code);
|
||||
|
||||
}
|
||||
|
||||
// Expose the convertHTMLtoBBCode method
|
||||
$.cleditor.convertHTMLtoBBCode = function(html) {
|
||||
|
||||
$.each([
|
||||
[/[\r|\n]/g, ""],
|
||||
[/<br.*?>/gi, "\n"],
|
||||
[/<b>(.*?)<\/b>/gi, "[b]$1[/b]"],
|
||||
[/<strong>(.*?)<\/strong>/gi, "[b]$1[/b]"],
|
||||
[/<i>(.*?)<\/i>/gi, "[i]$1[/i]"],
|
||||
[/<em>(.*?)<\/em>/gi, "[i]$1[/i]"],
|
||||
[/<u>(.*?)<\/u>/gi, "[u]$1[/u]"],
|
||||
[/<ins>(.*?)<\/ins>/gi, "[u]$1[/u]"],
|
||||
[/<strike>(.*?)<\/strike>/gi, "[s]$1[/s]"],
|
||||
[/<del>(.*?)<\/del>/gi, "[s]$1[/s]"],
|
||||
[/<a.*?href="(.*?)".*?>(.*?)<\/a>/gi, "[url=$1]$2[/url]"],
|
||||
[/<img.*?src="(.*?)".*?>/gi, "[img]$1[/img]"],
|
||||
[/<ul>/gi, "[list]"],
|
||||
[/<\/ul>/gi, "[/list]"],
|
||||
[/<ol>/gi, "[list=1]"],
|
||||
[/<\/ol>/gi, "[/list]"],
|
||||
[/<li>/gi, "[*]"],
|
||||
[/<\/li>/gi, "[/*]"],
|
||||
[/<.*?>(.*?)<\/.*?>/g, "$1"]
|
||||
], function(index, item) {
|
||||
html = html.replace(item[0], item[1]);
|
||||
});
|
||||
|
||||
return html;
|
||||
|
||||
}
|
||||
|
||||
// Expose the convertBBCodeToHTML method
|
||||
$.cleditor.convertBBCodeToHTML = function(code) {
|
||||
|
||||
$.each([
|
||||
[/\r/g, ""],
|
||||
[/\n/g, "<br />"],
|
||||
[/\[b\](.*?)\[\/b\]/gi, "<b>$1</b>"],
|
||||
[/\[i\](.*?)\[\/i\]/gi, "<i>$1</i>"],
|
||||
[/\[u\](.*?)\[\/u\]/gi, "<u>$1</u>"],
|
||||
[/\[s\](.*?)\[\/s\]/gi, "<strike>$1</strike>"],
|
||||
[/\[url=(.*?)\](.*?)\[\/url\]/gi, "<a href=\"$1\">$2</a>"],
|
||||
[/\[img\](.*?)\[\/img\]/gi, "<img src=\"$1\">"],
|
||||
[/\[list\](.*?)\[\/list\]/gi, "<ul>$1</ul>"],
|
||||
[/\[list=1\](.*?)\[\/list\]/gi, "<ol>$1</ol>"],
|
||||
[/\[list\]/gi, "<ul>"],
|
||||
[/\[list=1\]/gi, "<ol>"],
|
||||
[/\[\*\](.*?)\[\/\*\]/g, "<li>$1</li>"],
|
||||
[/\[\*\]/g, "<li>"]
|
||||
], function(index, item) {
|
||||
code = code.replace(item[0], item[1]);
|
||||
});
|
||||
|
||||
return code;
|
||||
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
12
modules/lib/CLEditor/jquery.cleditor.bbcode.min.js
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
/*
|
||||
CLEditor BBCode Plugin v1.0.0
|
||||
http://premiumsoftware.net/cleditor
|
||||
requires CLEditor v1.3.0 or later
|
||||
|
||||
Copyright 2010, Chris Landowski, Premium Software, LLC
|
||||
Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
*/
|
||||
(function(b){b.cleditor.defaultOptions.controls="bold italic underline strikethrough removeformat | bullets numbering | undo redo | image link unlink | cut copy paste pastetext | print source";var d=b.cleditor.defaultOptions.updateTextArea,e=b.cleditor.defaultOptions.updateFrame;b.cleditor.defaultOptions.updateTextArea=function(a){if(d)a=d(a);return b.cleditor.convertHTMLtoBBCode(a)};b.cleditor.defaultOptions.updateFrame=function(a){if(e)a=e(a);return b.cleditor.convertBBCodeToHTML(a)};b.cleditor.convertHTMLtoBBCode=
|
||||
function(a){b.each([[/[\r|\n]/g,""],[/<br.*?>/gi,"\n"],[/<b>(.*?)<\/b>/gi,"[b]$1[/b]"],[/<strong>(.*?)<\/strong>/gi,"[b]$1[/b]"],[/<i>(.*?)<\/i>/gi,"[i]$1[/i]"],[/<em>(.*?)<\/em>/gi,"[i]$1[/i]"],[/<u>(.*?)<\/u>/gi,"[u]$1[/u]"],[/<ins>(.*?)<\/ins>/gi,"[u]$1[/u]"],[/<strike>(.*?)<\/strike>/gi,"[s]$1[/s]"],[/<del>(.*?)<\/del>/gi,"[s]$1[/s]"],[/<a.*?href="(.*?)".*?>(.*?)<\/a>/gi,"[url=$1]$2[/url]"],[/<img.*?src="(.*?)".*?>/gi,"[img]$1[/img]"],[/<ul>/gi,"[list]"],[/<\/ul>/gi,"[/list]"],[/<ol>/gi,"[list=1]"],
|
||||
[/<\/ol>/gi,"[/list]"],[/<li>/gi,"[*]"],[/<\/li>/gi,"[/*]"],[/<.*?>(.*?)<\/.*?>/g,"$1"]],function(f,c){a=a.replace(c[0],c[1])});return a};b.cleditor.convertBBCodeToHTML=function(a){b.each([[/\r/g,""],[/\n/g,"<br />"],[/\[b\](.*?)\[\/b\]/gi,"<b>$1</b>"],[/\[i\](.*?)\[\/i\]/gi,"<i>$1</i>"],[/\[u\](.*?)\[\/u\]/gi,"<u>$1</u>"],[/\[s\](.*?)\[\/s\]/gi,"<strike>$1</strike>"],[/\[url=(.*?)\](.*?)\[\/url\]/gi,'<a href="$1">$2</a>'],[/\[img\](.*?)\[\/img\]/gi,'<img src="$1">'],[/\[list\](.*?)\[\/list\]/gi,
|
||||
"<ul>$1</ul>"],[/\[list=1\](.*?)\[\/list\]/gi,"<ol>$1</ol>"],[/\[list\]/gi,"<ul>"],[/\[list=1\]/gi,"<ol>"],[/\[\*\](.*?)\[\/\*\]/g,"<li>$1</li>"],[/\[\*\]/g,"<li>"]],function(f,c){a=a.replace(c[0],c[1])});return a}})(jQuery);
|
||||
24
modules/lib/CLEditor/jquery.cleditor.css
Normal file
@ -0,0 +1,24 @@
|
||||
.cleditorMain {background-color:#fff;-webkit-border-radius: 6px;border-radius: 6px}
|
||||
.cleditorMain iframe {border:none; margin:0; padding:0}
|
||||
.cleditorMain textarea {border:none; margin:0; padding:0; overflow-y:scroll; font:10pt Arial,Verdana; resize:none; outline:none /* webkit grip focus */}
|
||||
.cleditorToolbar {background: #f2f2f2;padding:0 4px}
|
||||
.cleditorGroup {float:left; height:26px}
|
||||
.cleditorButton {float:left; width:24px; height:24px; margin:1px 0 1px 0; background: url('images/buttons.gif')}
|
||||
.cleditorDisabled {opacity:0.3; filter:alpha(opacity=30)}
|
||||
.cleditorDivider {float:left; width:1px; height:23px; margin:1px 0 1px 0; background:#CCC}
|
||||
.cleditorPopup {border:solid 1px #999; background-color:white; position:absolute; font:10pt Arial,Verdana; cursor:default; z-index:10000}
|
||||
.cleditorList div {padding:2px 4px 2px 4px}
|
||||
.cleditorList p,
|
||||
.cleditorList h1,
|
||||
.cleditorList h2,
|
||||
.cleditorList h3,
|
||||
.cleditorList h4,
|
||||
.cleditorList h5,
|
||||
.cleditorList h6,
|
||||
.cleditorList font {padding:0; margin:0; background-color:Transparent}
|
||||
.cleditorColor {width:150px; padding:1px 0 0 1px}
|
||||
.cleditorColor div {float:left; width:14px; height:14px; margin:0 1px 1px 0}
|
||||
.cleditorPrompt {background-color:#F6F7F9; padding:4px; font-size:8.5pt}
|
||||
.cleditorPrompt input,
|
||||
.cleditorPrompt textarea {font:8.5pt Arial,Verdana;}
|
||||
.cleditorMsg {background-color:#FDFCEE; width:150px; padding:4px; font-size:8.5pt}
|
||||
65
modules/lib/CLEditor/jquery.cleditor.icon.js
Normal file
@ -0,0 +1,65 @@
|
||||
/**
|
||||
@preserve CLEditor Icon Plugin v1.0
|
||||
http://premiumsoftware.net/cleditor
|
||||
requires CLEditor v1.2 or later
|
||||
|
||||
Copyright 2010, Chris Landowski, Premium Software, LLC
|
||||
Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
*/
|
||||
|
||||
// ==ClosureCompiler==
|
||||
// @compilation_level SIMPLE_OPTIMIZATIONS
|
||||
// @output_file_name jquery.cleditor.icon.min.js
|
||||
// ==/ClosureCompiler==
|
||||
|
||||
(function($) {
|
||||
|
||||
// Constants
|
||||
var FOLDER = $.cleditor.imagesPath() + "icons/",
|
||||
STRIP = "icons",
|
||||
EXT = ".gif",
|
||||
URL = "URL(" + FOLDER + STRIP + EXT + ")",
|
||||
BUTTON_COUNT = 12,
|
||||
BUTTON_WIDTH = 20,
|
||||
BUTTON_HEIGHT = 20;
|
||||
|
||||
// Define the icon button
|
||||
$.cleditor.buttons.icon = {
|
||||
name: "icon",
|
||||
css: {
|
||||
backgroundImage: URL,
|
||||
backgroundPosition: "2px 2px"
|
||||
},
|
||||
title: "Insert Icon",
|
||||
command: "insertimage",
|
||||
popupName: "Icon",
|
||||
popupHover: true,
|
||||
buttonClick: function(e, data) {
|
||||
$(data.popup).width(60);
|
||||
},
|
||||
popupClick: function(e, data) {
|
||||
var index = -parseInt(e.target.style.backgroundPosition) / BUTTON_WIDTH + 1;
|
||||
data.value = FOLDER + index + EXT;
|
||||
}
|
||||
};
|
||||
|
||||
// Build the popup content
|
||||
var $content = $("<div>");
|
||||
for (var x = 0; x < BUTTON_COUNT; x++) {
|
||||
$("<div>")
|
||||
.css({
|
||||
width: BUTTON_WIDTH,
|
||||
height: BUTTON_HEIGHT,
|
||||
backgroundImage: URL,
|
||||
backgroundPosition: x * -BUTTON_WIDTH
|
||||
})
|
||||
.css("float", "left") // closure comiler errors when float is mapped
|
||||
.appendTo($content);
|
||||
}
|
||||
$.cleditor.buttons.icon.popupContent = $content.children();
|
||||
|
||||
// Add the button to the default controls
|
||||
$.cleditor.defaultOptions.controls = $.cleditor.defaultOptions.controls
|
||||
.replace("| cut", "icon | cut");
|
||||
|
||||
})(jQuery);
|
||||
10
modules/lib/CLEditor/jquery.cleditor.icon.min.js
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
/*
|
||||
CLEditor Icon Plugin v1.0
|
||||
http://premiumsoftware.net/cleditor
|
||||
requires CLEditor v1.2 or later
|
||||
|
||||
Copyright 2010, Chris Landowski, Premium Software, LLC
|
||||
Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
*/
|
||||
(function(a){var d=a.cleditor.imagesPath()+"icons/",e="URL("+d+"icons.gif)";a.cleditor.buttons.icon={name:"icon",css:{backgroundImage:e,backgroundPosition:"2px 2px"},title:"Insert Icon",command:"insertimage",popupName:"Icon",popupHover:true,buttonClick:function(f,b){a(b.popup).width(60)},popupClick:function(f,b){var h=-parseInt(f.target.style.backgroundPosition)/20+1;b.value=d+h+".gif"}};for(var g=a("<div>"),c=0;c<12;c++)a("<div>").css({width:20,height:20,backgroundImage:e,backgroundPosition:c*-20}).css("float",
|
||||
"left").appendTo(g);a.cleditor.buttons.icon.popupContent=g.children();a.cleditor.defaultOptions.controls=a.cleditor.defaultOptions.controls.replace("| cut","icon | cut")})(jQuery);
|
||||
1132
modules/lib/CLEditor/jquery.cleditor.js
Normal file
31
modules/lib/CLEditor/jquery.cleditor.min.js
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
CLEditor WYSIWYG HTML Editor v1.3.0
|
||||
http://premiumsoftware.net/cleditor
|
||||
requires jQuery v1.4.2 or later
|
||||
|
||||
Copyright 2010, Chris Landowski, Premium Software, LLC
|
||||
Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
*/
|
||||
(function(e){function aa(a){var b=this,c=a.target,d=e.data(c,x),h=s[d],f=h.popupName,i=p[f];if(!(b.disabled||e(c).attr(n)==n)){var g={editor:b,button:c,buttonName:d,popup:i,popupName:f,command:h.command,useCSS:b.options.useCSS};if(h.buttonClick&&h.buttonClick(a,g)===false)return false;if(d=="source"){if(t(b)){delete b.range;b.$area.hide();b.$frame.show();c.title=h.title}else{b.$frame.hide();b.$area.show();c.title="Show Rich Text"}setTimeout(function(){u(b)},100)}else if(!t(b))if(f){var j=e(i);if(f==
|
||||
"url"){if(d=="link"&&M(b)===""){z(b,"A selection is required when inserting a link.",c);return false}j.children(":button").unbind(q).bind(q,function(){var k=j.find(":text"),o=e.trim(k.val());o!==""&&v(b,g.command,o,null,g.button);k.val("http://");r();w(b)})}else f=="pastetext"&&j.children(":button").unbind(q).bind(q,function(){var k=j.find("textarea"),o=k.val().replace(/\n/g,"<br />");o!==""&&v(b,g.command,o,null,g.button);k.val("");r();w(b)});if(c!==e.data(i,A)){N(b,i,c);return false}return}else if(d==
|
||||
"print")b.$frame[0].contentWindow.print();else if(!v(b,g.command,g.value,g.useCSS,c))return false;w(b)}}function O(a){a=e(a.target).closest("div");a.css(H,a.data(x)?"#FFF":"#FFC")}function P(a){e(a.target).closest("div").css(H,"transparent")}function ba(a){var b=a.data.popup,c=a.target;if(!(b===p.msg||e(b).hasClass(B))){var d=e.data(b,A),h=e.data(d,x),f=s[h],i=f.command,g,j=this.options.useCSS;if(h=="font")g=c.style.fontFamily.replace(/"/g,"");else if(h=="size"){if(c.tagName=="DIV")c=c.children[0];
|
||||
g=c.innerHTML}else if(h=="style")g="<"+c.tagName+">";else if(h=="color")g=Q(c.style.backgroundColor);else if(h=="highlight"){g=Q(c.style.backgroundColor);if(l)i="backcolor";else j=true}b={editor:this,button:d,buttonName:h,popup:b,popupName:f.popupName,command:i,value:g,useCSS:j};if(!(f.popupClick&&f.popupClick(a,b)===false)){if(b.command&&!v(this,b.command,b.value,b.useCSS,d))return false;r();w(this)}}}function C(a){for(var b=1,c=0,d=0;d<a.length;++d){b=(b+a.charCodeAt(d))%65521;c=(c+b)%65521}return c<<
|
||||
16|b}function R(a,b,c,d,h){if(p[a])return p[a];var f=e(m).hide().addClass(ca).appendTo("body");if(d)f.html(d);else if(a=="color"){b=b.colors.split(" ");b.length<10&&f.width("auto");e.each(b,function(i,g){e(m).appendTo(f).css(H,"#"+g)});c=da}else if(a=="font")e.each(b.fonts.split(","),function(i,g){e(m).appendTo(f).css("fontFamily",g).html(g)});else if(a=="size")e.each(b.sizes.split(","),function(i,g){e(m).appendTo(f).html("<font size="+g+">"+g+"</font>")});else if(a=="style")e.each(b.styles,function(i,
|
||||
g){e(m).appendTo(f).html(g[1]+g[0]+g[1].replace("<","</"))});else if(a=="url"){f.html('Enter URL:<br><input type=text value="http://" size=35><br><input type=button value="Submit">');c=B}else if(a=="pastetext"){f.html("Paste your content here and click submit.<br /><textarea cols=40 rows=3></textarea><br /><input type=button value=Submit>");c=B}if(!c&&!d)c=S;f.addClass(c);l&&f.attr(I,"on").find("div,font,p,h1,h2,h3,h4,h5,h6").attr(I,"on");if(f.hasClass(S)||h===true)f.children().hover(O,P);p[a]=f[0];
|
||||
return f[0]}function T(a,b){if(b){a.$area.attr(n,n);a.disabled=true}else{a.$area.removeAttr(n);delete a.disabled}try{if(l)a.doc.body.contentEditable=!b;else a.doc.designMode=!b?"on":"off"}catch(c){}u(a)}function v(a,b,c,d,h){D(a);if(!l){if(d===undefined||d===null)d=a.options.useCSS;a.doc.execCommand("styleWithCSS",0,d.toString())}d=true;var f;if(l&&b.toLowerCase()=="inserthtml")y(a).pasteHTML(c);else{try{d=a.doc.execCommand(b,0,c||null)}catch(i){f=i.description;d=false}d||("cutcopypaste".indexOf(b)>
|
||||
-1?z(a,"For security reasons, your browser does not support the "+b+" command. Try using the keyboard shortcut or context menu instead.",h):z(a,f?f:"Error executing the "+b+" command.",h))}u(a);return d}function w(a){setTimeout(function(){t(a)?a.$area.focus():a.$frame[0].contentWindow.focus();u(a)},0)}function y(a){if(l)return J(a).createRange();return J(a).getRangeAt(0)}function J(a){if(l)return a.doc.selection;return a.$frame[0].contentWindow.getSelection()}function Q(a){var b=/rgba?\((\d+), (\d+), (\d+)/.exec(a),
|
||||
c=a.split("");if(b)for(a=(b[1]<<16|b[2]<<8|b[3]).toString(16);a.length<6;)a="0"+a;return"#"+(a.length==6?a:c[1]+c[1]+c[2]+c[2]+c[3]+c[3])}function r(){e.each(p,function(a,b){e(b).hide().unbind(q).removeData(A)})}function U(){var a=e("link[href$='jquery.cleditor.css']").attr("href");return a.substr(0,a.length-19)+"images/"}function K(a){var b=a.$main,c=a.options;a.$frame&&a.$frame.remove();var d=a.$frame=e('<iframe frameborder="0" src="javascript:true;">').hide().appendTo(b),h=d[0].contentWindow,f=
|
||||
a.doc=h.document,i=e(f);f.open();f.write(c.docType+"<html>"+(c.docCSSFile===""?"":'<head><link rel="stylesheet" type="text/css" href="'+c.docCSSFile+'" /></head>')+'<body style="'+c.bodyStyle+'"></body></html>');f.close();l&&i.click(function(){w(a)});E(a);if(l){i.bind("beforedeactivate beforeactivate selectionchange keypress",function(g){if(g.type=="beforedeactivate")a.inactive=true;else if(g.type=="beforeactivate"){!a.inactive&&a.range&&a.range.length>1&&a.range.shift();delete a.inactive}else if(!a.inactive){if(!a.range)a.range=
|
||||
[];for(a.range.unshift(y(a));a.range.length>2;)a.range.pop()}});d.focus(function(){D(a)})}(e.browser.mozilla?i:e(h)).blur(function(){V(a,true)});i.click(r).bind("keyup mouseup",function(){u(a)});L?a.$area.show():d.show();e(function(){var g=a.$toolbar,j=g.children("div:last"),k=b.width();j=j.offset().top+j.outerHeight()-g.offset().top+1;g.height(j);j=(/%/.test(""+c.height)?b.height():parseInt(c.height))-j;d.width(k).height(j);a.$area.width(k).height(ea?j-2:j);T(a,a.disabled);u(a)})}function u(a){if(!L&&
|
||||
e.browser.webkit&&!a.focused){a.$frame[0].contentWindow.focus();window.focus();a.focused=true}var b=a.doc;if(l)b=y(a);var c=t(a);e.each(a.$toolbar.find("."+W),function(d,h){var f=e(h),i=e.cleditor.buttons[e.data(h,x)],g=i.command,j=true;if(a.disabled)j=false;else if(i.getEnabled){j=i.getEnabled({editor:a,button:h,buttonName:i.name,popup:p[i.popupName],popupName:i.popupName,command:i.command,useCSS:a.options.useCSS});if(j===undefined)j=true}else if((c||L)&&i.name!="source"||l&&(g=="undo"||g=="redo"))j=
|
||||
false;else if(g&&g!="print"){if(l&&g=="hilitecolor")g="backcolor";if(!l||g!="inserthtml")try{j=b.queryCommandEnabled(g)}catch(k){j=false}}if(j){f.removeClass(X);f.removeAttr(n)}else{f.addClass(X);f.attr(n,n)}})}function D(a){l&&a.range&&a.range[0].select()}function M(a){D(a);if(l)return y(a).text;return J(a).toString()}function z(a,b,c){var d=R("msg",a.options,fa);d.innerHTML=b;N(a,d,c)}function N(a,b,c){var d,h,f=e(b);if(c){var i=e(c);d=i.offset();h=--d.left;d=d.top+i.height()}else{i=a.$toolbar;
|
||||
d=i.offset();h=Math.floor((i.width()-f.width())/2)+d.left;d=d.top+i.height()-2}r();f.css({left:h,top:d}).show();if(c){e.data(b,A,c);f.bind(q,{popup:b},e.proxy(ba,a))}setTimeout(function(){f.find(":text,textarea").eq(0).focus().select()},100)}function t(a){return a.$area.is(":visible")}function E(a,b){var c=a.$area.val(),d=a.options,h=d.updateFrame,f=e(a.doc.body);if(h){var i=C(c);if(b&&a.areaChecksum==i)return;a.areaChecksum=i}c=h?h(c):c;c=c.replace(/<(?=\/?script)/ig,"<");if(d.updateTextArea)a.frameChecksum=
|
||||
C(c);if(c!=f.html()){f.html(c);e(a).triggerHandler(F)}}function V(a,b){var c=e(a.doc.body).html(),d=a.options,h=d.updateTextArea,f=a.$area;if(h){var i=C(c);if(b&&a.frameChecksum==i)return;a.frameChecksum=i}c=h?h(c):c;if(d.updateFrame)a.areaChecksum=C(c);if(c!=f.val()){f.val(c);e(a).triggerHandler(F)}}e.cleditor={defaultOptions:{width:500,height:250,controls:"bold italic underline strikethrough subscript superscript | font size style | color highlight removeformat | bullets numbering | outdent indent | alignleft center alignright justify | undo redo | rule image link unlink | cut copy paste pastetext | print source",
|
||||
colors:"FFF FCC FC9 FF9 FFC 9F9 9FF CFF CCF FCF CCC F66 F96 FF6 FF3 6F9 3FF 6FF 99F F9F BBB F00 F90 FC6 FF0 3F3 6CC 3CF 66C C6C 999 C00 F60 FC3 FC0 3C0 0CC 36F 63F C3C 666 900 C60 C93 990 090 399 33F 60C 939 333 600 930 963 660 060 366 009 339 636 000 300 630 633 330 030 033 006 309 303",fonts:"Arial,Arial Black,Comic Sans MS,Courier New,Narrow,Garamond,Georgia,Impact,Sans Serif,Serif,Tahoma,Trebuchet MS,Verdana",sizes:"1,2,3,4,5,6,7",styles:[["Paragraph","<p>"],["Header 1","<h1>"],["Header 2","<h2>"],
|
||||
["Header 3","<h3>"],["Header 4","<h4>"],["Header 5","<h5>"],["Header 6","<h6>"]],useCSS:false,docType:'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',docCSSFile:"",bodyStyle:"margin:4px; font:10pt Arial,Verdana; cursor:text"},buttons:{init:"bold,,|italic,,|underline,,|strikethrough,,|subscript,,|superscript,,|font,,fontname,|size,Font Size,fontsize,|style,,formatblock,|color,Font Color,forecolor,|highlight,Text Highlight Color,hilitecolor,color|removeformat,Remove Formatting,|bullets,,insertunorderedlist|numbering,,insertorderedlist|outdent,,|indent,,|alignleft,Align Text Left,justifyleft|center,,justifycenter|alignright,Align Text Right,justifyright|justify,,justifyfull|undo,,|redo,,|rule,Insert Horizontal Rule,inserthorizontalrule|image,Insert Image,insertimage,url|link,Insert Hyperlink,createlink,url|unlink,Remove Hyperlink,|cut,,|copy,,|paste,,|pastetext,Paste as Text,inserthtml,|print,,|source,Show Source"},
|
||||
imagesPath:function(){return U()}};e.fn.cleditor=function(a){var b=e([]);this.each(function(c,d){if(d.tagName=="TEXTAREA"){var h=e.data(d,Y);h||(h=new cleditor(d,a));b=b.add(h)}});return b};var H="backgroundColor",A="button",x="buttonName",F="change",Y="cleditor",q="click",n="disabled",m="<div>",I="unselectable",W="cleditorButton",X="cleditorDisabled",ca="cleditorPopup",S="cleditorList",da="cleditorColor",B="cleditorPrompt",fa="cleditorMsg",l=e.browser.msie,ea=/msie\s6/i.test(navigator.userAgent),
|
||||
L=/iphone|ipad|ipod/i.test(navigator.userAgent),p={},Z,s=e.cleditor.buttons;e.each(s.init.split("|"),function(a,b){var c=b.split(","),d=c[0];s[d]={stripIndex:a,name:d,title:c[1]===""?d.charAt(0).toUpperCase()+d.substr(1):c[1],command:c[2]===""?d:c[2],popupName:c[3]===""?d:c[3]}});delete s.init;cleditor=function(a,b){var c=this;c.options=b=e.extend({},e.cleditor.defaultOptions,b);var d=c.$area=e(a).hide().data(Y,c).blur(function(){E(c,true)}),h=c.$main=e(m).addClass("cleditorMain").width(b.width).height(b.height),
|
||||
f=c.$toolbar=e(m).addClass("cleditorToolbar").appendTo(h),i=e(m).addClass("cleditorGroup").appendTo(f);e.each(b.controls.split(" "),function(g,j){if(j==="")return true;if(j=="|"){e(m).addClass("cleditorDivider").appendTo(i);i=e(m).addClass("cleditorGroup").appendTo(f)}else{var k=s[j],o=e(m).data(x,k.name).addClass(W).attr("title",k.title).bind(q,e.proxy(aa,c)).appendTo(i).hover(O,P),G={};if(k.css)G=k.css;else if(k.image)G.backgroundImage="url("+U()+k.image+")";if(k.stripIndex)G.backgroundPosition=
|
||||
k.stripIndex*-24;o.css(G);l&&o.attr(I,"on");k.popupName&&R(k.popupName,b,k.popupClass,k.popupContent,k.popupHover)}});h.insertBefore(d).append(d);if(!Z){e(document).click(function(g){g=e(g.target);g.add(g.parents()).is("."+B)||r()});Z=true}/auto|%/.test(""+b.width+b.height)&&e(window).resize(function(){K(c)});K(c)};var $=cleditor.prototype;e.each([["clear",function(a){a.$area.val("");E(a)}],["disable",T],["execCommand",v],["focus",w],["hidePopups",r],["sourceMode",t,true],["refresh",K],["select",
|
||||
function(a){setTimeout(function(){t(a)?a.$area.select():v(a,"selectall")},0)}],["selectedHTML",function(a){D(a);a=y(a);if(l)return a.htmlText;var b=e("<layer>")[0];b.appendChild(a.cloneContents());return b.innerHTML},true],["selectedText",M,true],["showMessage",z],["updateFrame",E],["updateTextArea",V]],function(a,b){$[b[0]]=function(){for(var c=[this],d=0;d<arguments.length;d++)c.push(arguments[d]);c=b[1].apply(this,c);if(b[2])return c;return this}});$.change=function(a){var b=e(this);return a?b.bind(F,
|
||||
a):b.trigger(F)}})(jQuery);
|
||||
55
modules/lib/UItoTop/jquery.ui.totop.js
vendored
Normal file
@ -0,0 +1,55 @@
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| UItoTop jQuery Plugin 1.2 by Matt Varone
|
||||
| http://www.mattvarone.com/web-design/uitotop-jquery-plugin/
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
(function($){
|
||||
$.fn.UItoTop = function(options) {
|
||||
|
||||
var defaults = {
|
||||
text: 'To Top',
|
||||
min: 200,
|
||||
inDelay:600,
|
||||
outDelay:400,
|
||||
containerID: 'toTop',
|
||||
containerHoverID: 'toTopHover',
|
||||
scrollSpeed: 1200,
|
||||
easingType: 'linear'
|
||||
},
|
||||
settings = $.extend(defaults, options),
|
||||
containerIDhash = '#' + settings.containerID,
|
||||
containerHoverIDHash = '#'+settings.containerHoverID;
|
||||
|
||||
$('body').append('<a href="#" id="'+settings.containerID+'">'+settings.text+'</a>');
|
||||
$(containerIDhash).hide().on('click.UItoTop',function(){
|
||||
$('html, body').animate({scrollTop:0}, settings.scrollSpeed, settings.easingType);
|
||||
$('#'+settings.containerHoverID, this).stop().animate({'opacity': 0 }, settings.inDelay, settings.easingType);
|
||||
return false;
|
||||
})
|
||||
.prepend('<span id="'+settings.containerHoverID+'"></span>')
|
||||
.hover(function() {
|
||||
$(containerHoverIDHash, this).stop().animate({
|
||||
'opacity': 1
|
||||
}, 200, 'linear');
|
||||
}, function() {
|
||||
$(containerHoverIDHash, this).stop().animate({
|
||||
'opacity': 0
|
||||
}, 300, 'linear');
|
||||
});
|
||||
|
||||
$(window).scroll(function() {
|
||||
var sd = $(window).scrollTop();
|
||||
if(typeof document.body.style.maxHeight === "undefined") {
|
||||
$(containerIDhash).css({
|
||||
'position': 'absolute',
|
||||
'top': sd + $(window).height() - 50
|
||||
});
|
||||
}
|
||||
if ( sd > settings.min )
|
||||
$(containerIDhash).fadeIn(settings.inDelay);
|
||||
else
|
||||
$(containerIDhash).fadeOut(settings.Outdelay);
|
||||
});
|
||||
};
|
||||
})(jQuery);
|
||||
5
modules/lib/UItoTop/jquery.ui.totop.min.js
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
/* UItoTop jQuery Plugin 1.2 | Matt Varone | http://www.mattvarone.com/web-design/uitotop-jquery-plugin */
|
||||
(function($){$.fn.UItoTop=function(options){var defaults={text:'To Top',min:200,inDelay:600,outDelay:400,containerID:'toTop',containerHoverID:'toTopHover',scrollSpeed:1200,easingType:'linear'},settings=$.extend(defaults,options),containerIDhash='#'+settings.containerID,containerHoverIDHash='#'+settings.containerHoverID;$('body').append('<a href="#" id="'+settings.containerID+'">'+settings.text+'</a>');$(containerIDhash).hide().on('click.UItoTop',function(){$('html, body').animate({scrollTop:0},settings.scrollSpeed,settings.easingType);$('#'+settings.containerHoverID,this).stop().animate({'opacity':0},settings.inDelay,settings.easingType);return false;}).prepend('<span id="'+settings.containerHoverID+'"></span>').hover(function(){$(containerHoverIDHash,this).stop().animate({'opacity':1},200,'linear');},function(){$(containerHoverIDHash,this).stop().animate({'opacity':0},300,'linear');});$(window).scroll(function(){var sd=$(window).scrollTop();if(typeof document.body.style.maxHeight==="undefined"){$(containerIDhash).css({'position':'absolute','top':sd+$(window).height()-50});}
|
||||
if(sd>settings.min)
|
||||
$(containerIDhash).fadeIn(settings.inDelay);else
|
||||
$(containerIDhash).fadeOut(settings.Outdelay);});};})(jQuery);
|
||||
54
modules/lib/antiscroll/antiscroll.css
Normal file
@ -0,0 +1,54 @@
|
||||
.antiScroll {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.antiscroll-scrollbar {
|
||||
background: gray;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
-webkit-border-radius: 7px;
|
||||
-moz-border-radius: 7px;
|
||||
border-radius: 7px;
|
||||
-webkit-box-shadow: 0 0 1px #fff;
|
||||
-moz-box-shadow: 0 0 1px #fff;
|
||||
box-shadow: 0 0 1px #fff;
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
|
||||
-webkit-transition: linear 300ms opacity;
|
||||
-moz-transition: linear 300ms opacity;
|
||||
-o-transition: linear 300ms opacity;
|
||||
}
|
||||
|
||||
.antiscroll-scrollbar-shown {
|
||||
opacity: 1;
|
||||
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
|
||||
}
|
||||
|
||||
.antiscroll-scrollbar-horizontal {
|
||||
height: 7px;
|
||||
margin-left: 2px;
|
||||
bottom: 2px;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.antiscroll-scrollbar-vertical {
|
||||
width: 7px;
|
||||
margin-top: 2px;
|
||||
right: 2px;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.antiscroll-inner {
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.antiScroll,.antiscroll-content, .antiscroll-inner {
|
||||
width: 240px;
|
||||
}
|
||||
|
||||
.antiscroll-inner::-webkit-scrollbar, .antiscroll-inner::scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
439
modules/lib/antiscroll/antiscroll.js
Normal file
@ -0,0 +1,439 @@
|
||||
|
||||
(function ($) {
|
||||
|
||||
/**
|
||||
* Augment jQuery prototype.
|
||||
*/
|
||||
|
||||
$.fn.antiscroll = function (options) {
|
||||
return this.each(function () {
|
||||
if ($(this).data('antiscroll')) {
|
||||
$(this).data('antiscroll').destroy();
|
||||
}
|
||||
|
||||
$(this).data('antiscroll', new $.Antiscroll(this, options));
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Expose constructor.
|
||||
*/
|
||||
|
||||
$.Antiscroll = Antiscroll;
|
||||
|
||||
/**
|
||||
* Antiscroll pane constructor.
|
||||
*
|
||||
* @param {Element|jQuery} main pane
|
||||
* @parma {Object} options
|
||||
* @api public
|
||||
*/
|
||||
|
||||
function Antiscroll (el, opts) {
|
||||
this.el = $(el);
|
||||
this.options = opts || {};
|
||||
|
||||
this.x = false !== this.options.x;
|
||||
this.y = false !== this.options.y;
|
||||
this.padding = undefined == this.options.padding ? 2 : this.options.padding;
|
||||
|
||||
this.inner = this.el.find('.antiscroll-inner');
|
||||
this.inner.css({
|
||||
'width': '+=' + scrollbarSize()
|
||||
, 'height': '+=' + scrollbarSize()
|
||||
});
|
||||
|
||||
this.refresh();
|
||||
};
|
||||
|
||||
/**
|
||||
* refresh scrollbars
|
||||
*
|
||||
* @api public
|
||||
*/
|
||||
|
||||
Antiscroll.prototype.refresh = function() {
|
||||
var needHScroll = this.inner.get(0).scrollWidth > this.el.width()
|
||||
, needVScroll = this.inner.get(0).scrollHeight > this.el.height();
|
||||
|
||||
if (!this.horizontal && needHScroll && this.x) {
|
||||
this.horizontal = new Scrollbar.Horizontal(this);
|
||||
} else if (this.horizontal && !needHScroll) {
|
||||
this.horizontal.destroy();
|
||||
this.horizontal = null
|
||||
}
|
||||
|
||||
if (!this.vertical && needVScroll && this.y) {
|
||||
this.vertical = new Scrollbar.Vertical(this);
|
||||
} else if (this.vertical && !needVScroll) {
|
||||
this.vertical.destroy();
|
||||
this.vertical = null
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Cleans up.
|
||||
*
|
||||
* @return {Antiscroll} for chaining
|
||||
* @api public
|
||||
*/
|
||||
|
||||
Antiscroll.prototype.destroy = function () {
|
||||
if (this.horizontal) {
|
||||
this.horizontal.destroy();
|
||||
}
|
||||
if (this.vertical) {
|
||||
this.vertical.destroy();
|
||||
}
|
||||
return this;
|
||||
};
|
||||
|
||||
/**
|
||||
* Rebuild Antiscroll.
|
||||
*
|
||||
* @return {Antiscroll} for chaining
|
||||
* @api public
|
||||
*/
|
||||
|
||||
Antiscroll.prototype.rebuild = function () {
|
||||
this.destroy();
|
||||
this.inner.attr('style', '');
|
||||
Antiscroll.call(this, this.el, this.options);
|
||||
return this;
|
||||
};
|
||||
|
||||
/**
|
||||
* Scrollbar constructor.
|
||||
*
|
||||
* @param {Element|jQuery} element
|
||||
* @api public
|
||||
*/
|
||||
|
||||
function Scrollbar (pane) {
|
||||
this.pane = pane;
|
||||
this.pane.el.append(this.el);
|
||||
this.innerEl = this.pane.inner.get(0);
|
||||
|
||||
this.dragging = false;
|
||||
this.enter = false;
|
||||
this.shown = false;
|
||||
|
||||
// hovering
|
||||
this.pane.el.mouseenter($.proxy(this, 'mouseenter'));
|
||||
this.pane.el.mouseleave($.proxy(this, 'mouseleave'));
|
||||
|
||||
// dragging
|
||||
this.el.mousedown($.proxy(this, 'mousedown'));
|
||||
|
||||
// scrolling
|
||||
this.pane.inner.scroll($.proxy(this, 'scroll'));
|
||||
|
||||
// wheel -optional-
|
||||
this.pane.inner.bind('mousewheel', $.proxy(this, 'mousewheel'));
|
||||
|
||||
// show
|
||||
var initialDisplay = this.pane.options.initialDisplay;
|
||||
|
||||
if (initialDisplay !== false) {
|
||||
this.show();
|
||||
this.hiding = setTimeout($.proxy(this, 'hide'), parseInt(initialDisplay, 10) || 3000);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Cleans up.
|
||||
*
|
||||
* @return {Scrollbar} for chaining
|
||||
* @api public
|
||||
*/
|
||||
|
||||
Scrollbar.prototype.destroy = function () {
|
||||
this.el.remove();
|
||||
return this;
|
||||
};
|
||||
|
||||
/**
|
||||
* Called upon mouseenter.
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Scrollbar.prototype.mouseenter = function () {
|
||||
this.enter = true;
|
||||
this.show();
|
||||
};
|
||||
|
||||
/**
|
||||
* Called upon mouseleave.
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Scrollbar.prototype.mouseleave = function () {
|
||||
this.enter = false;
|
||||
|
||||
if (!this.dragging) {
|
||||
this.hide();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called upon wrap scroll.
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Scrollbar.prototype.scroll = function () {
|
||||
if (!this.shown) {
|
||||
this.show();
|
||||
if (!this.enter && !this.dragging) {
|
||||
this.hiding = setTimeout($.proxy(this, 'hide'), 1500);
|
||||
}
|
||||
}
|
||||
|
||||
this.update();
|
||||
};
|
||||
|
||||
/**
|
||||
* Called upon scrollbar mousedown.
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Scrollbar.prototype.mousedown = function (ev) {
|
||||
ev.preventDefault();
|
||||
|
||||
this.dragging = true;
|
||||
|
||||
this.startPageY = ev.pageY - parseInt(this.el.css('top'), 10);
|
||||
this.startPageX = ev.pageX - parseInt(this.el.css('left'), 10);
|
||||
|
||||
// prevent crazy selections on IE
|
||||
document.onselectstart = function () { return false; };
|
||||
|
||||
var pane = this.pane
|
||||
, move = $.proxy(this, 'mousemove')
|
||||
, self = this
|
||||
|
||||
$(document)
|
||||
.mousemove(move)
|
||||
.mouseup(function () {
|
||||
self.dragging = false;
|
||||
document.onselectstart = null;
|
||||
|
||||
$(document).unbind('mousemove', move);
|
||||
|
||||
if (!self.enter) {
|
||||
self.hide();
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
/**
|
||||
* Show scrollbar.
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Scrollbar.prototype.show = function (duration) {
|
||||
if (!this.shown) {
|
||||
this.update();
|
||||
this.el.addClass('antiscroll-scrollbar-shown');
|
||||
if (this.hiding) {
|
||||
clearTimeout(this.hiding);
|
||||
this.hiding = null;
|
||||
}
|
||||
this.shown = true;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Hide scrollbar.
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Scrollbar.prototype.hide = function () {
|
||||
var autoHide = this.pane.options.autoHide;
|
||||
if (autoHide !== false && this.shown) {
|
||||
// check for dragging
|
||||
this.el.removeClass('antiscroll-scrollbar-shown');
|
||||
this.shown = false;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Horizontal scrollbar constructor
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Scrollbar.Horizontal = function (pane) {
|
||||
this.el = $('<div class="antiscroll-scrollbar antiscroll-scrollbar-horizontal">');
|
||||
Scrollbar.call(this, pane);
|
||||
}
|
||||
|
||||
/**
|
||||
* Inherits from Scrollbar.
|
||||
*/
|
||||
|
||||
inherits(Scrollbar.Horizontal, Scrollbar);
|
||||
|
||||
/**
|
||||
* Updates size/position of scrollbar.
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Scrollbar.Horizontal.prototype.update = function () {
|
||||
var paneWidth = this.pane.el.width()
|
||||
, trackWidth = paneWidth - this.pane.padding * 2
|
||||
, innerEl = this.pane.inner.get(0)
|
||||
|
||||
this.el
|
||||
.css('width', trackWidth * paneWidth / innerEl.scrollWidth)
|
||||
.css('left', trackWidth * innerEl.scrollLeft / innerEl.scrollWidth)
|
||||
}
|
||||
|
||||
/**
|
||||
* Called upon drag.
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Scrollbar.Horizontal.prototype.mousemove = function (ev) {
|
||||
var trackWidth = this.pane.el.width() - this.pane.padding * 2
|
||||
, pos = ev.pageX - this.startPageX
|
||||
, barWidth = this.el.width()
|
||||
, innerEl = this.pane.inner.get(0)
|
||||
|
||||
// minimum top is 0, maximum is the track height
|
||||
var y = Math.min(Math.max(pos, 0), trackWidth - barWidth)
|
||||
|
||||
innerEl.scrollLeft = (innerEl.scrollWidth - this.pane.el.width())
|
||||
* y / (trackWidth - barWidth)
|
||||
};
|
||||
|
||||
/**
|
||||
* Called upon container mousewheel.
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Scrollbar.Horizontal.prototype.mousewheel = function (ev, delta, x, y) {
|
||||
if ((x < 0 && 0 == this.pane.inner.get(0).scrollLeft) ||
|
||||
(x > 0 && (this.innerEl.scrollLeft + Math.ceil(this.pane.el.width())
|
||||
== this.innerEl.scrollWidth))) {
|
||||
ev.preventDefault();
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Vertical scrollbar constructor
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Scrollbar.Vertical = function (pane) {
|
||||
this.el = $('<div class="antiscroll-scrollbar antiscroll-scrollbar-vertical">');
|
||||
Scrollbar.call(this, pane);
|
||||
};
|
||||
|
||||
/**
|
||||
* Inherits from Scrollbar.
|
||||
*/
|
||||
|
||||
inherits(Scrollbar.Vertical, Scrollbar);
|
||||
|
||||
/**
|
||||
* Updates size/position of scrollbar.
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Scrollbar.Vertical.prototype.update = function () {
|
||||
var paneHeight = this.pane.el.height()
|
||||
, trackHeight = paneHeight - this.pane.padding * 2
|
||||
, innerEl = this.innerEl
|
||||
|
||||
this.el
|
||||
.css('height', trackHeight * paneHeight / innerEl.scrollHeight)
|
||||
.css('top', trackHeight * innerEl.scrollTop / innerEl.scrollHeight)
|
||||
};
|
||||
|
||||
/**
|
||||
* Called upon drag.
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Scrollbar.Vertical.prototype.mousemove = function (ev) {
|
||||
var paneHeight = this.pane.el.height()
|
||||
, trackHeight = paneHeight - this.pane.padding * 2
|
||||
, pos = ev.pageY - this.startPageY
|
||||
, barHeight = this.el.height()
|
||||
, innerEl = this.innerEl
|
||||
|
||||
// minimum top is 0, maximum is the track height
|
||||
var y = Math.min(Math.max(pos, 0), trackHeight - barHeight)
|
||||
|
||||
innerEl.scrollTop = (innerEl.scrollHeight - paneHeight)
|
||||
* y / (trackHeight - barHeight)
|
||||
};
|
||||
|
||||
/**
|
||||
* Called upon container mousewheel.
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Scrollbar.Vertical.prototype.mousewheel = function (ev, delta, x, y) {
|
||||
if ((y > 0 && 0 == this.innerEl.scrollTop) ||
|
||||
(y < 0 && (this.innerEl.scrollTop + Math.ceil(this.pane.el.height())
|
||||
== this.innerEl.scrollHeight))) {
|
||||
ev.preventDefault();
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Cross-browser inheritance.
|
||||
*
|
||||
* @param {Function} constructor
|
||||
* @param {Function} constructor we inherit from
|
||||
* @api private
|
||||
*/
|
||||
|
||||
function inherits (ctorA, ctorB) {
|
||||
function f() {};
|
||||
f.prototype = ctorB.prototype;
|
||||
ctorA.prototype = new f;
|
||||
};
|
||||
|
||||
/**
|
||||
* Scrollbar size detection.
|
||||
*/
|
||||
|
||||
var size;
|
||||
|
||||
function scrollbarSize () {
|
||||
if (size === undefined) {
|
||||
var div = $(
|
||||
'<div class="antiscroll-inner" style="width:50px;height:50px;overflow-y:scroll;'
|
||||
+ 'position:absolute;top:-200px;left:-200px;"><div style="height:100px;width:100%">'
|
||||
+ '</div>'
|
||||
);
|
||||
|
||||
$('body').append(div);
|
||||
var w1 = $(div).innerWidth();
|
||||
var w2 = $('div', div).innerWidth();
|
||||
$(div).remove();
|
||||
|
||||
size = w1 - w2;
|
||||
}
|
||||
|
||||
return size;
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
9
modules/lib/antiscroll/antiscroll.min.js
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
(function(b){function f(a,e){this.el=b(a);this.options=e||{};this.x=!1!==this.options.x;this.y=!1!==this.options.y;this.padding=void 0==this.options.padding?2:this.options.padding;this.inner=this.el.find(".antiscroll-inner");this.inner.css({width:"+="+h(),height:"+="+h()});this.refresh()}function c(a){this.pane=a;this.pane.el.append(this.el);this.innerEl=this.pane.inner.get(0);this.shown=this.enter=this.dragging=!1;this.pane.el.mouseenter(b.proxy(this,"mouseenter"));this.pane.el.mouseleave(b.proxy(this,
|
||||
"mouseleave"));this.el.mousedown(b.proxy(this,"mousedown"));this.pane.inner.scroll(b.proxy(this,"scroll"));this.pane.inner.bind("mousewheel",b.proxy(this,"mousewheel"));a=this.pane.options.initialDisplay;!1!==a&&(this.show(),this.hiding=setTimeout(b.proxy(this,"hide"),parseInt(a,10)||3E3))}function j(a,e){function d(){}d.prototype=e.prototype;a.prototype=new d}function h(){if(void 0===g){var a=b('<div class="antiscroll-inner" style="width:50px;height:50px;overflow-y:scroll;position:absolute;top:-200px;left:-200px;"><div style="height:100px;width:100%"></div>');
|
||||
b("body").append(a);var e=b(a).innerWidth(),d=b("div",a).innerWidth();b(a).remove();g=e-d}return g}b.fn.antiscroll=function(a){return this.each(function(){b(this).data("antiscroll")&&b(this).data("antiscroll").destroy();b(this).data("antiscroll",new b.Antiscroll(this,a))})};b.Antiscroll=f;f.prototype.refresh=function(){var a=this.inner.get(0).scrollWidth>this.el.width(),e=this.inner.get(0).scrollHeight>this.el.height();!this.horizontal&&a&&this.x?this.horizontal=new c.Horizontal(this):this.horizontal&&
|
||||
!a&&(this.horizontal.destroy(),this.horizontal=null);!this.vertical&&e&&this.y?this.vertical=new c.Vertical(this):this.vertical&&!e&&(this.vertical.destroy(),this.vertical=null)};f.prototype.destroy=function(){this.horizontal&&this.horizontal.destroy();this.vertical&&this.vertical.destroy();return this};f.prototype.rebuild=function(){this.destroy();this.inner.attr("style","");f.call(this,this.el,this.options);return this};c.prototype.destroy=function(){this.el.remove();return this};c.prototype.mouseenter=
|
||||
function(){this.enter=!0;this.show()};c.prototype.mouseleave=function(){this.enter=!1;this.dragging||this.hide()};c.prototype.scroll=function(){this.shown||(this.show(),!this.enter&&!this.dragging&&(this.hiding=setTimeout(b.proxy(this,"hide"),1500)));this.update()};c.prototype.mousedown=function(a){a.preventDefault();this.dragging=!0;this.startPageY=a.pageY-parseInt(this.el.css("top"),10);this.startPageX=a.pageX-parseInt(this.el.css("left"),10);document.onselectstart=function(){return!1};var e=b.proxy(this,
|
||||
"mousemove"),d=this;b(document).mousemove(e).mouseup(function(){d.dragging=!1;document.onselectstart=null;b(document).unbind("mousemove",e);d.enter||d.hide()})};c.prototype.show=function(){this.shown||(this.update(),this.el.addClass("antiscroll-scrollbar-shown"),this.hiding&&(clearTimeout(this.hiding),this.hiding=null),this.shown=!0)};c.prototype.hide=function(){!1!==this.pane.options.autoHide&&this.shown&&(this.el.removeClass("antiscroll-scrollbar-shown"),this.shown=!1)};c.Horizontal=function(a){this.el=
|
||||
b('<div class="antiscroll-scrollbar antiscroll-scrollbar-horizontal">');c.call(this,a)};j(c.Horizontal,c);c.Horizontal.prototype.update=function(){var a=this.pane.el.width(),e=a-2*this.pane.padding,d=this.pane.inner.get(0);this.el.css("width",e*a/d.scrollWidth).css("left",e*d.scrollLeft/d.scrollWidth)};c.Horizontal.prototype.mousemove=function(a){var e=this.pane.el.width()-2*this.pane.padding,d=a.pageX-this.startPageX;a=this.el.width();var b=this.pane.inner.get(0),d=Math.min(Math.max(d,0),e-a);b.scrollLeft=
|
||||
(b.scrollWidth-this.pane.el.width())*d/(e-a)};c.Horizontal.prototype.mousewheel=function(a,b,d){if(0>d&&0==this.pane.inner.get(0).scrollLeft||0<d&&this.innerEl.scrollLeft+Math.ceil(this.pane.el.width())==this.innerEl.scrollWidth)return a.preventDefault(),!1};c.Vertical=function(a){this.el=b('<div class="antiscroll-scrollbar antiscroll-scrollbar-vertical">');c.call(this,a)};j(c.Vertical,c);c.Vertical.prototype.update=function(){var a=this.pane.el.height(),b=a-2*this.pane.padding,d=this.innerEl;this.el.css("height",
|
||||
b*a/d.scrollHeight).css("top",b*d.scrollTop/d.scrollHeight)};c.Vertical.prototype.mousemove=function(a){var b=this.pane.el.height(),d=b-2*this.pane.padding,c=a.pageY-this.startPageY;a=this.el.height();var f=this.innerEl,c=Math.min(Math.max(c,0),d-a);f.scrollTop=(f.scrollHeight-b)*c/(d-a)};c.Vertical.prototype.mousewheel=function(a,b,c,f){if(0<f&&0==this.innerEl.scrollTop||0>f&&this.innerEl.scrollTop+Math.ceil(this.pane.el.height())==this.innerEl.scrollHeight)return a.preventDefault(),!1};var g})(jQuery);
|
||||
304
modules/lib/antiscroll/index.html
Normal file
@ -0,0 +1,304 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Antiscroll - os x lion style cross-browser native scrolling on the web that gets out of the way</title>
|
||||
<link href="antiscroll.css" rel="stylesheet" />
|
||||
|
||||
<style>
|
||||
body {
|
||||
padding: 80px 100px;
|
||||
font: 14px/1.4 'helvetica neue', helvetica, arial, sans-serif;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.box {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.box, .box .antiscroll-inner {
|
||||
width: 250px;
|
||||
height: 250px;
|
||||
font: 14px Helvetica, Arial;
|
||||
}
|
||||
|
||||
.box-wrap {
|
||||
margin: 20px 40px;
|
||||
border: 1px solid #999;
|
||||
}
|
||||
|
||||
.box-inner {
|
||||
background: #eee;
|
||||
padding: 10px;
|
||||
color: #999;
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
}
|
||||
|
||||
.button {
|
||||
-webkit-user-select: none;
|
||||
display: block;
|
||||
background: #3b88d8;
|
||||
text-decoration: none;
|
||||
background: -o-linear-gradient(0% 100% 90deg, #377ad0, #52a8e8);
|
||||
background: -moz-linear-gradient(0% 100% 90deg, #377ad0, #52a8e8);
|
||||
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#52a8e8), to(#377ad0));
|
||||
border-top: 1px solid #4081af;
|
||||
border-right: 1px solid #2e69a3;
|
||||
border-bottom: 1px solid #20559a;
|
||||
border-left: 1px solid #2e69a3;
|
||||
-moz-border-radius: 16px;
|
||||
-webkit-border-radius: 16px;
|
||||
border-radius: 16px;
|
||||
-moz-box-shadow: inset 0 1px 0 0 #72b9eb, 0 1px 2px 0 #b3b3b3;
|
||||
-webkit-box-shadow: inset 0 1px 0 0 #72b9eb, 0 1px 2px 0 #b3b3b3;
|
||||
box-shadow: inset 0 1px 0 0 #72b9eb, 0 1px 2px 0 #b3b3b3;
|
||||
color: #fff;
|
||||
font-family: "lucida grande", sans-serif;
|
||||
font-size: 11px;
|
||||
font-weight: normal;
|
||||
line-height: 1;
|
||||
padding: 3px 0 5px 0;
|
||||
text-align: center;
|
||||
text-shadow: 0 -1px 1px #3275bc;
|
||||
width: 112px;
|
||||
-webkit-background-clip: padding-box;
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
background: #2a81d7;
|
||||
background: -o-linear-gradient(0% 100% 90deg, #206bcb, #3e9ee5);
|
||||
background: -moz-linear-gradient(0% 100% 90deg, #206bcb, #3e9ee5);
|
||||
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#3e9ee5), to(#206bcb));
|
||||
border-top: 1px solid #2a73a6;
|
||||
border-right: 1px solid #165899;
|
||||
border-bottom: 1px solid #07428f;
|
||||
border-left: 1px solid #165899;
|
||||
-moz-box-shadow: inset 0 1px 0 0 #62b1e9;
|
||||
-webkit-box-shadow: inset 0 1px 0 0 #62b1e9;
|
||||
cursor: pointer;
|
||||
text-shadow: 0 -1px 1px #1d62ab;
|
||||
-webkit-background-clip: padding-box;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.button:active {
|
||||
background: #3282d3;
|
||||
border: 1px solid #154c8c;
|
||||
border-bottom: 1px solid #0e408e;
|
||||
-moz-box-shadow: inset 0 0 6px 3px #1657b5, 0 1px 0 0 #fff;
|
||||
-webkit-box-shadow: inset 0 0 6px 3px #1657b5, 0 1px 0 0 #fff;
|
||||
box-shadow: inset 0 0 6px 3px #1657b5, 0 1px 0 0 #fff;
|
||||
text-shadow: 0 -1px 1px #2361a4;
|
||||
-webkit-background-clip: padding-box;
|
||||
}
|
||||
|
||||
ul#features {
|
||||
margin: 40px 0;
|
||||
padding: 0 20px;
|
||||
float: left;
|
||||
width: 600px;
|
||||
}
|
||||
|
||||
ul#features li {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 0 15px;
|
||||
}
|
||||
|
||||
ul li {
|
||||
margin: 0 5px;
|
||||
padding: 3px 0;
|
||||
}
|
||||
|
||||
.action {
|
||||
color: #0069d6;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.action:hover {
|
||||
color: #00438a;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script src="deps/jquery.js"></script>
|
||||
<script src="deps/jquery-mousewheel.js"></script>
|
||||
<script src="antiscroll.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
$(function () {
|
||||
scroller = $('.box-wrap').antiscroll().data('antiscroll');
|
||||
|
||||
$("#addRow").click(function() {
|
||||
$('.box-wrap tr:last').clone().appendTo('.box-wrap table');
|
||||
$("#rows b").text($(".box-wrap tr").length);
|
||||
scroller.refresh();
|
||||
});
|
||||
|
||||
$("#removeRow").click(function() {
|
||||
$('.box-wrap tr:last').remove();
|
||||
$("#rows b").text($(".box-wrap tr").length);
|
||||
scroller.refresh();
|
||||
});
|
||||
|
||||
$("#addCol").click(function() {
|
||||
$('.box-wrap tr').each(function(index, tr) {
|
||||
$('td:last', tr).clone().appendTo(tr);
|
||||
});
|
||||
$("#cols b").text($(".box-wrap tr:last td").length);
|
||||
scroller.refresh();
|
||||
});
|
||||
|
||||
$("#removeCol").click(function() {
|
||||
$('.box-wrap tr').find('td:last').remove();
|
||||
$("#cols b").text($(".box-wrap tr:last td").length);
|
||||
scroller.refresh();
|
||||
});
|
||||
|
||||
$("#rows b").text($(".box-wrap tr").length);
|
||||
$("#cols b").text($(".box-wrap tr:last td").length);
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="page">
|
||||
<h1>Antiscroll</h1>
|
||||
<p>os x lion style cross-browser native scrolling on the web that gets out of the way.</p>
|
||||
<ul id="features">
|
||||
<li>supports mousewheels, trackpads, other input devices natively.</li>
|
||||
<li>total size is <b>1kb</b> minified and gzipped.</li>
|
||||
<li>doesn't magically autowrap your elements with divs (manual wrapping is necessary, please see index.html demo).</li>
|
||||
<li>fade in/out controlled with CSS3 animations.</li>
|
||||
<li>shows scrollbars upon hovering.</li>
|
||||
<li>scrollbars are draggable.</li>
|
||||
<li>size of container can be dynamically adjusted and scrollbars will adapt.</li>
|
||||
<li>supports IE7+, Firefox 3+, Chrome, Safari, Opera</li>
|
||||
</ul>
|
||||
<div class="box-wrap antiscroll-wrap">
|
||||
<div class="box">
|
||||
<div class="antiscroll-inner">
|
||||
<div class="box-inner">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
<td>Body</td><td>Body</td><td>Body</td><td>Body</td><td>Body</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br style="clear: both">
|
||||
<a href="https://github.com/learnboost/antiscroll/downloads" class="button">Download</a>
|
||||
|
||||
<br />
|
||||
|
||||
<p id="rows"><b>X</b> rows</p>
|
||||
<ul>
|
||||
<li><a class="action" id="addRow" >Add row</a></li>
|
||||
<li><a class="action" id="removeRow">Remove row</a></li>
|
||||
</ul>
|
||||
|
||||
<p id="cols"><b>X</b> cols</p>
|
||||
</ul>
|
||||
<li><a class="action" id="addCol" >Add col</a></li>
|
||||
<li><a class="action" id="removeCol">Remove col</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
78
modules/lib/antiscroll/jquery-mousewheel.js
vendored
Normal file
@ -0,0 +1,78 @@
|
||||
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
|
||||
* Licensed under the MIT License (LICENSE.txt).
|
||||
*
|
||||
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
|
||||
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
|
||||
* Thanks to: Seamus Leahy for adding deltaX and deltaY
|
||||
*
|
||||
* Version: 3.0.4
|
||||
*
|
||||
* Requires: 1.2.2+
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
|
||||
var types = ['DOMMouseScroll', 'mousewheel'];
|
||||
|
||||
$.event.special.mousewheel = {
|
||||
setup: function() {
|
||||
if ( this.addEventListener ) {
|
||||
for ( var i=types.length; i; ) {
|
||||
this.addEventListener( types[--i], handler, false );
|
||||
}
|
||||
} else {
|
||||
this.onmousewheel = handler;
|
||||
}
|
||||
},
|
||||
|
||||
teardown: function() {
|
||||
if ( this.removeEventListener ) {
|
||||
for ( var i=types.length; i; ) {
|
||||
this.removeEventListener( types[--i], handler, false );
|
||||
}
|
||||
} else {
|
||||
this.onmousewheel = null;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
$.fn.extend({
|
||||
mousewheel: function(fn) {
|
||||
return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel");
|
||||
},
|
||||
|
||||
unmousewheel: function(fn) {
|
||||
return this.unbind("mousewheel", fn);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function handler(event) {
|
||||
var orgEvent = event || window.event, args = [].slice.call( arguments, 1 ), delta = 0, returnValue = true, deltaX = 0, deltaY = 0;
|
||||
event = $.event.fix(orgEvent);
|
||||
event.type = "mousewheel";
|
||||
|
||||
// Old school scrollwheel delta
|
||||
if ( event.wheelDelta ) { delta = event.wheelDelta/120; }
|
||||
if ( event.detail ) { delta = -event.detail/3; }
|
||||
|
||||
// New school multidimensional scroll (touchpads) deltas
|
||||
deltaY = delta;
|
||||
|
||||
// Gecko
|
||||
if ( orgEvent.axis !== undefined && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {
|
||||
deltaY = 0;
|
||||
deltaX = -1*delta;
|
||||
}
|
||||
|
||||
// Webkit
|
||||
if ( orgEvent.wheelDeltaY !== undefined ) { deltaY = orgEvent.wheelDeltaY/120; }
|
||||
if ( orgEvent.wheelDeltaX !== undefined ) { deltaX = -1*orgEvent.wheelDeltaX/120; }
|
||||
|
||||
// Add event and delta to the front of the arguments
|
||||
args.unshift(event, delta, deltaX, deltaY);
|
||||
|
||||
return $.event.handle.apply(this, args);
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
4
modules/lib/bootstrap-toggle-buttons/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
target/
|
||||
.idea
|
||||
.sass-cache/
|
||||
.DS_Store
|
||||
176
modules/lib/bootstrap-toggle-buttons/LICENSE
Normal file
@ -0,0 +1,176 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
6
modules/lib/bootstrap-toggle-buttons/README.md
Normal file
@ -0,0 +1,6 @@
|
||||
Bootstrap-toggle-buttons
|
||||
========================
|
||||
|
||||
Bootstrap-toggle-buttons has moved to https://github.com/nostalgiaz/bootstrap-switch
|
||||
|
||||
Old doc -> https://github.com/nostalgiaz/bootstrap-toggle-buttons/blob/master/README_OLD.md
|
||||
123
modules/lib/bootstrap-toggle-buttons/README_OLD.md
Normal file
@ -0,0 +1,123 @@
|
||||
Bootstrap-toggle-buttons
|
||||
========================
|
||||
|
||||
Demo
|
||||
----
|
||||
http://www.larentis.eu/bootstrap_toggle_buttons/
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
Just include Twitter Bootstrap, jQuery and Bootstrap Toggle Buttons CSS and Javascript
|
||||
``` html
|
||||
<link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet">
|
||||
<link href="bootstrap-toggle-buttons.css" rel="stylesheet">
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
|
||||
<script src="jquery.toggle.buttons.js"></script>
|
||||
```
|
||||
|
||||
Basic Example
|
||||
-------------
|
||||
|
||||
HTML
|
||||
``` html
|
||||
<div id="toggle-button">
|
||||
<input id="checkbox1" type="checkbox" value="value1" checked="checked">
|
||||
</div>
|
||||
```
|
||||
|
||||
JS
|
||||
``` javascript
|
||||
$('#toggle-button').toggleButtons();
|
||||
```
|
||||
|
||||
Full Example
|
||||
------------
|
||||
|
||||
HTML
|
||||
``` html
|
||||
<div id="toggle-button">
|
||||
<input id="checkbox1" type="checkbox" value="value1" checked="checked">
|
||||
</div>
|
||||
```
|
||||
|
||||
JS
|
||||
``` javascript
|
||||
$('#toggle-button').toggleButtons({
|
||||
onChange: function ($el, status, e) {
|
||||
// $el = $('#toggle-button');
|
||||
// status = [true, false], the value of the checkbox
|
||||
// e = the event
|
||||
console.log($el, status, e);
|
||||
},
|
||||
width: 100,
|
||||
height: 25,
|
||||
font: {
|
||||
'font-size': '20px',
|
||||
'font-style': 'italic'
|
||||
},
|
||||
animated: true,
|
||||
transitionspeed: 1, // Accepted values float or "percent" [ 1, 0.5, "150%" ]
|
||||
label: {
|
||||
enabled: "ON",
|
||||
disabled: "OFF"
|
||||
},
|
||||
style: {
|
||||
// Accepted values ["primary", "danger", "info", "success", "warning"] or nothing
|
||||
enabled: "primary",
|
||||
disabled: "danger",
|
||||
custom: {
|
||||
enabled: {
|
||||
background:"#FF00FF",
|
||||
gradient: "#D300D3",
|
||||
color: "#FFFFFF"
|
||||
},
|
||||
disabled: {
|
||||
background: "#FFAA00",
|
||||
gradient: "#DD9900",
|
||||
color: "#333333"
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$('#toggle-button').toggleButtons('toggleActivation'); // to toggle the disabled status
|
||||
```
|
||||
|
||||
Data Attributes Example
|
||||
-----------------------
|
||||
|
||||
HTML
|
||||
``` html
|
||||
<div id="data-attribute-toggle-button"
|
||||
data-toggleButton-width="170"
|
||||
data-toggleButton-transitionspeed="500%"
|
||||
data-toggleButton-style-custom-enabled-background="#FF0000"
|
||||
data-toggleButton-style-custom-enabled-gradient="#000000">
|
||||
<input type="checkbox" checked="checked">
|
||||
</div>
|
||||
```
|
||||
|
||||
JS
|
||||
``` javascript
|
||||
$('#data-attribute-toggle-button').toggleButtons();
|
||||
```
|
||||
|
||||
Toggle state
|
||||
------------
|
||||
JS
|
||||
``` javascript
|
||||
$('#my-toggle-button').toggleButtons('toggleState');
|
||||
```
|
||||
|
||||
Destroy
|
||||
-------
|
||||
JS
|
||||
``` javascript
|
||||
$('#my-toggle-button').toggleButtons('destroy');
|
||||
```
|
||||
|
||||
Like this project?
|
||||
------------------
|
||||
[](http://coderwall.com/nostalgia)
|
||||
24
modules/lib/chosen/LICENSE.md
Normal file
@ -0,0 +1,24 @@
|
||||
# Chosen, a Select Box Enhancer for jQuery and Protoype
|
||||
## by Patrick Filler for [Harvest](http://getharvest.com)
|
||||
|
||||
Available for use under the [MIT License](http://en.wikipedia.org/wiki/MIT_License)
|
||||
|
||||
Copyright (c) 2011 by Harvest
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
50
modules/lib/chosen/README.md
Normal file
@ -0,0 +1,50 @@
|
||||
# Chosen
|
||||
|
||||
Chosen is a library for making long, unwieldy select boxes more user friendly.
|
||||
|
||||
- jQuery support: 1.4+
|
||||
- Prototype support: 1.7+
|
||||
|
||||
For documentation, usage, and examples, see:
|
||||
http://harvesthq.github.com/chosen
|
||||
|
||||
### Contributing to Chosen
|
||||
|
||||
Contributions and pull requests are very welcome. Please follow these guidelines when submitting new code.
|
||||
|
||||
1. Make all changes in Coffeescript files, **not** JavaScript files.
|
||||
2. For feature changes, update both jQuery *and* Prototype versions
|
||||
3. Use `npm install -d` to install the correct development dependencies.
|
||||
4. Use `cake build` or `cake watch` to generate Chosen's JavaScript file and minified version.
|
||||
5. Don't touch the `VERSION` file
|
||||
6. Submit a Pull Request using GitHub.
|
||||
|
||||
### Using CoffeeScript & Cake
|
||||
|
||||
First, make sure you have the proper CoffeeScript / Cake set-up in place. We have added a package.json that makes this easy:
|
||||
|
||||
```
|
||||
npm install -d
|
||||
```
|
||||
|
||||
This will install `coffee-script` and `uglifyjs`.
|
||||
|
||||
Once you're configured, building the JavasScript from the command line is easy:
|
||||
|
||||
cake build # build Chosen from source
|
||||
cake watch # watch coffee/ for changes and build Chosen
|
||||
|
||||
If you're interested, you can find the recipes in Cakefile.
|
||||
|
||||
|
||||
### Chosen Credits
|
||||
|
||||
- Built by [Harvest](http://www.getharvest.com/). Want to work on projects like this? [We’re hiring](http://www.getharvest.com/careers)!
|
||||
- Concept and development by [Patrick Filler](http://www.patrickfiller.com/)
|
||||
- Design and CSS by [Matthew Lettini](http://matthewlettini.com/)
|
||||
|
||||
### Notable Forks
|
||||
|
||||
- [Chosen for MooTools](https://github.com/julesjanssen/chosen), by Jules Janssen
|
||||
- [Chosen Drupal 7 Module](http://drupal.org/project/chosen), by Pol Dell'Aiera, Arshad Chummun, Bart Feenstra, Kálmán Hosszu, etc.
|
||||
- [Chosen CakePHP Plugin](https://github.com/paulredmond/chosen-cakephp), by Paul Redmond
|
||||
1
modules/lib/chosen/VERSION
Normal file
@ -0,0 +1 @@
|
||||
0.9.12
|
||||
BIN
modules/lib/chosen/chosen-sprite.png
Normal file
|
After Width: | Height: | Size: 646 B |
BIN
modules/lib/chosen/chosen-sprite@2x.png
Normal file
|
After Width: | Height: | Size: 872 B |
378
modules/lib/chosen/chosen.css
Normal file
@ -0,0 +1,378 @@
|
||||
/* @group Base */
|
||||
.chzn-container {
|
||||
font-size: 13px;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
zoom: 1;
|
||||
*display: inline;
|
||||
}
|
||||
.chzn-container .chzn-drop {
|
||||
background: #fff;
|
||||
border: 1px solid #ccc;
|
||||
border-top: 0;
|
||||
position: absolute;
|
||||
top: 29px;
|
||||
left: 0;
|
||||
-webkit-box-shadow: 0 4px 5px rgba(0,0,0,.15);
|
||||
-moz-box-shadow : 0 4px 5px rgba(0,0,0,.15);
|
||||
box-shadow : 0 4px 5px rgba(0,0,0,.15);
|
||||
z-index: 1010;
|
||||
}
|
||||
/* @end */
|
||||
|
||||
/* @group Single Chosen */
|
||||
.chzn-container-single .chzn-single {
|
||||
background-color: #ffffff;
|
||||
-webkit-border-radius: 3px;
|
||||
-moz-border-radius : 3px;
|
||||
border-radius : 3px;
|
||||
-moz-background-clip : padding;
|
||||
-webkit-background-clip: padding-box;
|
||||
background-clip : padding-box;
|
||||
border: 1px solid #ccc;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
position: relative;
|
||||
height: 28px;
|
||||
line-height: 27px;
|
||||
padding: 0 0 0 8px;
|
||||
color: #444444;
|
||||
text-decoration: none;
|
||||
}
|
||||
.chzn-container-single .chzn-default {
|
||||
color: #999;
|
||||
}
|
||||
.chzn-container-single .chzn-single span {
|
||||
margin-right: 26px;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
-o-text-overflow: ellipsis;
|
||||
-ms-text-overflow: ellipsis;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.chzn-container-single .chzn-single abbr {
|
||||
display: block;
|
||||
position: absolute;
|
||||
right: 26px;
|
||||
top: 9px;
|
||||
width: 13px;
|
||||
height: 12px;
|
||||
font-size: 1px;
|
||||
background: url('chosen-sprite.png') -42px 1px no-repeat;
|
||||
}
|
||||
.chzn-container-single .chzn-single abbr:hover {
|
||||
background-position: -42px -10px;
|
||||
}
|
||||
.chzn-container-single.chzn-disabled .chzn-single abbr:hover {
|
||||
background-position: -42px -10px;
|
||||
}
|
||||
.chzn-container-single .chzn-single div {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
display: block;
|
||||
height: 100%;
|
||||
width: 18px;
|
||||
}
|
||||
.chzn-container-single .chzn-single div b {
|
||||
background: url('chosen-sprite.png') no-repeat 0px 5px;
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.chzn-container-single .chzn-search {
|
||||
padding: 3px 4px;
|
||||
position: relative;
|
||||
margin: 0;
|
||||
white-space: nowrap;
|
||||
z-index: 1010;
|
||||
}
|
||||
.chzn-container-single .chzn-search input {
|
||||
background: #fff url('chosen-sprite.png') no-repeat 100% -20px;
|
||||
background: url('chosen-sprite.png') no-repeat 100% -20px, -webkit-gradient(linear, 0 0, 0 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
|
||||
background: url('chosen-sprite.png') no-repeat 100% -20px, -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||
background: url('chosen-sprite.png') no-repeat 100% -20px, -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||
background: url('chosen-sprite.png') no-repeat 100% -20px, -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||
background: url('chosen-sprite.png') no-repeat 100% -20px, linear-gradient(#eeeeee 1%, #ffffff 15%);
|
||||
margin: 1px 0;
|
||||
padding: 3px 20px 2px 5px;
|
||||
outline: 0;
|
||||
border: 1px solid #aaa;
|
||||
font-family: sans-serif;
|
||||
font-size: 13px;
|
||||
min-height:13px;
|
||||
}
|
||||
.chzn-container-single .chzn-drop {
|
||||
-webkit-border-radius: 0 0 4px 4px;
|
||||
-moz-border-radius : 0 0 4px 4px;
|
||||
border-radius : 0 0 4px 4px;
|
||||
-moz-background-clip : padding;
|
||||
-webkit-background-clip: padding-box;
|
||||
background-clip : padding-box;
|
||||
margin-top:1px;
|
||||
}
|
||||
/* @end */
|
||||
|
||||
.chzn-container-single-nosearch .chzn-search input {
|
||||
position: absolute;
|
||||
left: -9000px;
|
||||
}
|
||||
|
||||
/* @group Multi Chosen */
|
||||
.chzn-container-multi .chzn-choices {
|
||||
background-color: #fff;
|
||||
border: 1px solid #ccc;
|
||||
-webkit-border-radius: 3px;
|
||||
-moz-border-radius: 3px;
|
||||
border-radius: 3px;
|
||||
margin: 0;
|
||||
padding: 0 5px 0 0;
|
||||
cursor: text;
|
||||
overflow: hidden;
|
||||
height: auto !important;
|
||||
height: 1%;
|
||||
position: relative;
|
||||
}
|
||||
.chzn-container-multi .chzn-choices li {
|
||||
float: left;
|
||||
list-style: none;
|
||||
}
|
||||
.chzn-container-multi .chzn-choices .search-field {
|
||||
white-space: nowrap;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.chzn-container-multi .chzn-choices .search-field input {
|
||||
color: #666;
|
||||
background: transparent !important;
|
||||
border: 0 !important;
|
||||
font-family: sans-serif;
|
||||
font-size: 100%;
|
||||
height: 16px;
|
||||
padding: 5px;
|
||||
margin: 1px 0;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: none;
|
||||
-moz-box-shadow : none;
|
||||
box-shadow : none;
|
||||
}
|
||||
.chzn-container-multi .chzn-choices .search-field .default {
|
||||
color: #999;
|
||||
}
|
||||
.chzn-container-multi .chzn-choices .search-choice {
|
||||
-webkit-border-radius: 3px;
|
||||
-moz-border-radius : 3px;
|
||||
border-radius : 3px;
|
||||
-moz-background-clip : padding;
|
||||
-webkit-background-clip: padding-box;
|
||||
background-clip : padding-box;
|
||||
background-color: #CEE5F5;
|
||||
color: #2B4F62;
|
||||
line-height: 13px;
|
||||
padding: 5px 20px 4px 5px;
|
||||
margin: 3px 0 3px 5px;
|
||||
position: relative;
|
||||
cursor: default;
|
||||
}
|
||||
.chzn-container-multi .chzn-choices .search-choice.search-choice-disabled {
|
||||
background-color: #e4e4e4;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0 );
|
||||
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
|
||||
background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||
background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||
background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||
background-image: -ms-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||
background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||
color: #666;
|
||||
border: 1px solid #cccccc;
|
||||
padding-right: 5px;
|
||||
}
|
||||
.chzn-container-multi .chzn-choices .search-choice-focus {
|
||||
background: #d4d4d4;
|
||||
}
|
||||
.chzn-container-multi .chzn-choices .search-choice .search-choice-close {
|
||||
display: block;
|
||||
position: absolute;
|
||||
right: 3px;
|
||||
top: 6px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
font-size: 1px;
|
||||
background: url('chosen-sprite.png') -42px 1px no-repeat;
|
||||
}
|
||||
.chzn-container-multi .chzn-choices .search-choice .search-choice-close:hover {
|
||||
background-position: -42px -10px;
|
||||
}
|
||||
.chzn-container-multi .chzn-choices .search-choice-focus .search-choice-close {
|
||||
background-position: -42px -10px;
|
||||
}
|
||||
/* @end */
|
||||
|
||||
/* @group Results */
|
||||
.chzn-container .chzn-results {
|
||||
margin: 0 4px 4px 0;
|
||||
max-height: 240px;
|
||||
padding: 0 0 0 4px;
|
||||
position: relative;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
.chzn-container-multi .chzn-results {
|
||||
margin: -1px 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
.chzn-container .chzn-results li {
|
||||
display: none;
|
||||
line-height: 15px;
|
||||
padding: 5px 6px;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.chzn-container .chzn-results .active-result {
|
||||
cursor: pointer;
|
||||
display: list-item;
|
||||
}
|
||||
.chzn-container .chzn-results .highlighted {
|
||||
background-color: #48A6D2;
|
||||
color: #fff;
|
||||
}
|
||||
.chzn-container .chzn-results li em {
|
||||
background: #feffde;
|
||||
font-style: normal;
|
||||
}
|
||||
.chzn-container .chzn-results .highlighted em {
|
||||
background: transparent;
|
||||
}
|
||||
.chzn-container .chzn-results .no-results {
|
||||
background: #f4f4f4;
|
||||
display: list-item;
|
||||
}
|
||||
.chzn-container .chzn-results .group-result {
|
||||
cursor: default;
|
||||
color: #999;
|
||||
font-weight: bold;
|
||||
}
|
||||
.chzn-container .chzn-results .group-option {
|
||||
padding-left: 15px;
|
||||
}
|
||||
.chzn-container-multi .chzn-drop .result-selected {
|
||||
display: none;
|
||||
}
|
||||
.chzn-container .chzn-results-scroll {
|
||||
background: white;
|
||||
margin: 0 4px;
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
width: 321px; /* This should by dynamic with js */
|
||||
z-index: 1;
|
||||
}
|
||||
.chzn-container .chzn-results-scroll span {
|
||||
display: inline-block;
|
||||
height: 17px;
|
||||
text-indent: -5000px;
|
||||
width: 9px;
|
||||
}
|
||||
.chzn-container .chzn-results-scroll-down {
|
||||
bottom: 0;
|
||||
}
|
||||
.chzn-container .chzn-results-scroll-down span {
|
||||
background: url('chosen-sprite.png') no-repeat -4px -3px;
|
||||
}
|
||||
.chzn-container .chzn-results-scroll-up span {
|
||||
background: url('chosen-sprite.png') no-repeat -22px -3px;
|
||||
}
|
||||
/* @end */
|
||||
|
||||
/* @group Active */
|
||||
.chzn-container-active .chzn-single {
|
||||
}
|
||||
.chzn-container-active .chzn-single-with-drop {
|
||||
border: 1px solid #aaa;
|
||||
-webkit-box-shadow: 0 1px 0 #fff inset;
|
||||
-moz-box-shadow : 0 1px 0 #fff inset;
|
||||
box-shadow : 0 1px 0 #fff inset;
|
||||
background-color: #fff;
|
||||
-webkit-border-bottom-left-radius : 0;
|
||||
-webkit-border-bottom-right-radius: 0;
|
||||
-moz-border-radius-bottomleft : 0;
|
||||
-moz-border-radius-bottomright: 0;
|
||||
border-bottom-left-radius : 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
.chzn-container-active .chzn-single-with-drop div {
|
||||
background: transparent;
|
||||
border-left: none;
|
||||
}
|
||||
.chzn-container-active .chzn-single-with-drop div b {
|
||||
background-position: -18px 5px;
|
||||
}
|
||||
.chzn-container-active .chzn-choices {
|
||||
|
||||
}
|
||||
.chzn-container-active .chzn-choices .search-field input {
|
||||
color: #111 !important;
|
||||
}
|
||||
/* @end */
|
||||
|
||||
/* @group Disabled Support */
|
||||
.chzn-disabled {
|
||||
cursor: default;
|
||||
opacity:0.5 !important;
|
||||
}
|
||||
.chzn-disabled .chzn-single {
|
||||
cursor: default;
|
||||
}
|
||||
.chzn-disabled .chzn-choices .search-choice .search-choice-close {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* @group Right to Left */
|
||||
.chzn-rtl { text-align: right; }
|
||||
.chzn-rtl .chzn-single { padding: 0 8px 0 0; overflow: visible; }
|
||||
.chzn-rtl .chzn-single span { margin-left: 26px; margin-right: 0; direction: rtl; }
|
||||
|
||||
.chzn-rtl .chzn-single div { left: 3px; right: auto; }
|
||||
.chzn-rtl .chzn-single abbr {
|
||||
left: 26px;
|
||||
right: auto;
|
||||
}
|
||||
.chzn-rtl .chzn-choices .search-field input { direction: rtl; }
|
||||
.chzn-rtl .chzn-choices li { float: right; }
|
||||
.chzn-rtl .chzn-choices .search-choice { padding: 3px 5px 3px 19px; margin: 3px 5px 3px 0; }
|
||||
.chzn-rtl .chzn-choices .search-choice .search-choice-close { left: 4px; right: auto; }
|
||||
.chzn-rtl.chzn-container-single .chzn-results { margin: 0 0 4px 4px; padding: 0 4px 0 0; }
|
||||
.chzn-rtl .chzn-results .group-option { padding-left: 0; padding-right: 15px; }
|
||||
.chzn-rtl.chzn-container-active .chzn-single-with-drop div { border-right: none; }
|
||||
.chzn-rtl .chzn-search input {
|
||||
background: #fff url('chosen-sprite.png') no-repeat -30px -20px;
|
||||
background: url('chosen-sprite.png') no-repeat -30px -20px, -webkit-gradient(linear, 0 0, 0 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
|
||||
background: url('chosen-sprite.png') no-repeat -30px -20px, -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||
background: url('chosen-sprite.png') no-repeat -30px -20px, -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||
background: url('chosen-sprite.png') no-repeat -30px -20px, -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||
background: url('chosen-sprite.png') no-repeat -30px -20px, linear-gradient(#eeeeee 1%, #ffffff 15%);
|
||||
padding: 4px 5px 4px 20px;
|
||||
direction: rtl;
|
||||
}
|
||||
.chzn-container-single.chzn-rtl .chzn-single div b {
|
||||
background-position: 6px 2px;
|
||||
}
|
||||
.chzn-container-single.chzn-rtl .chzn-single-with-drop div b {
|
||||
background-position: -12px 2px;
|
||||
}
|
||||
/* @end */
|
||||
|
||||
/* @group Retina compatibility */
|
||||
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi) {
|
||||
.chzn-rtl .chzn-search input, .chzn-container-single .chzn-single abbr, .chzn-container-single .chzn-single div b, .chzn-container-single .chzn-search input, .chzn-container-multi .chzn-choices .search-choice .search-choice-close, .chzn-container .chzn-results-scroll-down span, .chzn-container .chzn-results-scroll-up span {
|
||||
background-image: url('chosen-sprite@2x.png') !important;
|
||||
background-repeat: no-repeat !important;
|
||||
background-size: 52px 37px !important;
|
||||
}
|
||||
}
|
||||
/* @end */
|
||||
|
||||
.chzn-container, .chzn-container-single .chzn-drop,.chzn-container .chzn-drop {max-width:100%}
|
||||
.chzn-container-single .chzn-search input {max-width:94%}
|
||||
1089
modules/lib/chosen/chosen.jquery.js
Normal file
10
modules/lib/chosen/chosen.jquery.min.js
vendored
Normal file
318
modules/lib/colorbox/README.md
Normal file
@ -0,0 +1,318 @@
|
||||
## About ColorBox:
|
||||
A customizable lightbox plugin for jQuery. See the [project page](http://jacklmoore.com/colorbox/) for documentation and a demonstration, and the [FAQ](http://jacklmoore.com/colorbox/faq/) for solutions and examples to common issues. Released under the [MIT license](http://www.opensource.org/licenses/mit-license.php).
|
||||
|
||||
## Changelog:
|
||||
|
||||
### Version 1.3.19 - December 08 2011
|
||||
Files Changed:jquery.colorbox.js/jquery.colorbox-min.js, colorbox.css (all)
|
||||
|
||||
* Fixed bug related to using the 'fixed' property.
|
||||
* Optimized the setup procedure to be more efficient.
|
||||
* Removed $.colorbox.init() as it will no longer be needed (will self-init when called).
|
||||
* Removed use of $.browser.
|
||||
|
||||
### Version 1.3.18 - October 07 2011
|
||||
Files Changed:jquery.colorbox.js/jquery.colorbox-min.js, colorbox.css (all) and example 1's controls.png
|
||||
|
||||
* Fixed a regression where Flash content displayed in ColorBox would be reloaded if the browser window was resized.
|
||||
* Added safety check to make sure that ColorBox's markup is only added to the DOM a single time, even if $.colorbox.init() is called multiple times. This will allow site owners to manually initialize ColorBox if they need it before the DOM has finished loading.
|
||||
* Updated the example index.html files to be HTML5 compliant.
|
||||
* Changed the slideshow behavior so that it immediately moves to the next slide when the slideshow is started.
|
||||
* Minor regex bugfix to allow automatic detection of image URLs that include fragments.
|
||||
|
||||
### Version 1.3.17 - May 11 2011
|
||||
Files Changed:jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Added properties "top", "bottom", "left" and "right" to specify a position relative to the viewport, rather than using the default centering.
|
||||
* Added property "data" to specify GET or POST data when using Ajax. ColorBox's ajax functionality is handled by jQuery's .load() method, so the data property works the same way as it does with .load().
|
||||
* Added property "fixed" which can provide fixed positioning for ColorBox, rather than absolute positioning. This will allow ColorBox to remain in a fixed position within the visitors viewport, despite scrolling. IE6 support for this was not added, it will continue to use the default absolute positioning.
|
||||
* Fixed ClearType problem with IE7.
|
||||
* Minor fixes.
|
||||
|
||||
### Version 1.3.16 - March 01 2011
|
||||
Files Changed:jquery.colorbox.js/jquery.colorbox-min.js, colorbox.css (all) and example 4 background png files
|
||||
|
||||
* Better IE related transparency workarounds. IE7 and up now uses the same background image sprite as other browsers.
|
||||
* Added error handling for broken image links. A message will be displayed telling the user that the image could not be loaded.
|
||||
* Added new property: 'fastIframe' and set it to true by default. Setting to fastIframe:false will delay the loading graphic removal and onComplete event until iframe has completely loaded.
|
||||
* Ability to redefine $.colorbox.close (or prev, or next) at any time.
|
||||
|
||||
### Version 1.3.15 - October 27 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Minor fixes for specific cases.
|
||||
|
||||
### Version 1.3.14 - October 27 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* In IE6, closing an iframe when using HTTPS no longer generates a security warning.
|
||||
|
||||
### Version 1.3.13 - October 22 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Changed the index.html example files to use YouTube's new embedded link format.
|
||||
* By default, ColorBox returns focus to the element it was launched from once it closes. This can now be disabled by setting the 'returnFocus' property to false. Focus was causing problems for some users who had their anchor elements inside animated containers.
|
||||
* Minor bug fix involved in using a combination of slideshow and non-slideshow content.
|
||||
|
||||
### Version 1.3.12 - October 20 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Minor bug fix involved in preloading images when using a function as a value for the href property.
|
||||
|
||||
### Version 1.3.11 - October 19 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Fixed the slideshow functionality that broke with 1.3.10
|
||||
* The slideshow now respects the loop property.
|
||||
|
||||
### Version 1.3.10 - October 16 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Fixed compatibility with jQuery 1.4.3
|
||||
* The 'open' property now accepts a function as a value, like all of the other properties.
|
||||
* Preloading now loads the correct href for images when using a dynamic (function) value for the href property.
|
||||
* Fixed bug in Safari 3 for Win where ColorBox centered on the document, rather than the visitor's viewport.
|
||||
* May have fixed an issue in Opera 10.6+ where ColorBox would rarely/randomly freeze up while switching between photos in a group.
|
||||
* Some functionality better encapsulated & minor performance improvements.
|
||||
|
||||
### Version 1.3.9 - July 7 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js/ all colorbox.css (the core styles)
|
||||
|
||||
* Fixed a problem where iframed youtube videos would cause a security alert in IE.
|
||||
* More code is event driven now, making the source easier to grasp.
|
||||
* Removed some unnecessary style from the core CSS.
|
||||
|
||||
### Version 1.3.8 - June 21 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Fixed a bug in Chrome where it would sometimes render photos at 0 by 0 width and height (behavior introduced in recent update to Chrome).
|
||||
* Fixed a bug where the onClosed callback would fire twice (only affected 1.3.7).
|
||||
* Fixed a bug in IE7 that existed with some iframed websites that use JS to reposition the viewport caused ColorBox to move out of position.
|
||||
* Abstracted the identifiers (HTML ids & classes, and JS plugin name, method, and events) so that the plugin can be easily rebranded.
|
||||
* Small changes to improve either code readability or compression.
|
||||
|
||||
### Version 1.3.7 - June 13 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js/index.html
|
||||
|
||||
* $.colorbox can now be used for direct calls and accessing public methods. Example: $.colorbox.close();
|
||||
* Resize now accepts 'width', 'innerWidth', 'height' and 'innerHeight'. Example: $.colorbox.resize({width:"100%"})
|
||||
* Added option (loop:false) to disable looping in a group.
|
||||
* Added options (escKey:false, arrowKey:false) to disable esc-key and arrow-key bindings.
|
||||
* Added method for removing ColorBox from a document: $.colorbox.remove();
|
||||
* Fixed a bug where iframed URLs would be truncated if they contained an unencoded apostrophe.
|
||||
* Now uses the exact href specified on an anchor, rather than the version returned by 'this.href'. This was causing "#example" to be normalized to "http://domain/#example" which interfered with how some users were setting up links to inline content.
|
||||
* Changed example documents over to HTML5.
|
||||
|
||||
### Version 1.3.6 - Jan 13 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Small change to make ColorBox compatible with jQuery 1.4
|
||||
|
||||
### Version 1.3.5 - December 15 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Fixed a bug introduced in 1.3.4 with IE7's display of example 2 and 3, and auto-width in Opera.
|
||||
* Fixed a bug introduced in 1.3.4 where colorbox could not be launched by triggering an element's click event through JavaScript.
|
||||
* Minor refinements.
|
||||
|
||||
### Version 1.3.4 - December 5 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Event delegation is now used for elements that ColorBox is assigned to, rather than individual click events.
|
||||
* Additional callbacks have been added to represent other stages of ColorBox's lifecycle. Available callbacks, in order of their execution: onOpen, onLoad, onComplete, onCleanup, onClosed These take place at the same time as the event hooks, but will be better suited than the hooks for targeting specific instances of ColorBox.
|
||||
* Ajax content is now immediately added to the DOM to be more compatible if that content contains script tags.
|
||||
* Focus is now returned to the calling element on closing.
|
||||
* Fixed a bug where maxHeight and maxWidth did not work for non-photo content.
|
||||
* Direct calls no longer need 'open:true', it is assumed. Example: `$.fn.colorbox({html:'<p>Hi</p>'});`
|
||||
|
||||
### Version 1.3.3 - November 7 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Changed $.fn.colorbox.element() to return a jQuery object rather the DOM element.
|
||||
* jQuery.colorbox-min.js is compressed with Google's Closure Compiler rather than YUI Compressor.
|
||||
|
||||
### Version 1.3.2 - October 27 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Added 'innerWidth' and 'innerHeight' options to allow people to easily set the size dimensions for ColorBox, without having to anticipate the size of the borders and buttons.
|
||||
* Renamed 'scrollbars' option to 'scrolling' to be in keeping with the existing HTML attribute. The option now also applies to iframes.
|
||||
* Bug fix: In Safari, positioning occassionally incorrect when using '100%' dimensions.
|
||||
* Bug fix: In IE6, the background overlay is briefly not full size when first viewing.
|
||||
* Bug fix: In Firefox, opening ColorBox causes a split second shift with a small minority of webpage layouts.
|
||||
* Simplified code in a few areas.
|
||||
|
||||
### Version 1.3.1 - September 16 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js/colorbox.css/colorbox-ie.css(removed)
|
||||
|
||||
* Removed the IE-only stylesheets and conditional comments for example styles 1 & 4. All CSS is handled by a single CSS file for all examples.
|
||||
* Removed user-agent sniffing from the js and replaced it with feature detection. This will allow correct rendering for visitors masking their agent type.
|
||||
|
||||
### Version 1.3.0 - September 15 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js/colorbox.css
|
||||
|
||||
* Added $.fn.colorbox.resize() method to allow ColorBox to resize it's height if it's contents change.
|
||||
* Added 'scrollbars' option to allow users to turn off scrollbars when using the resize() method.
|
||||
* Renamed the 'resize' option to be less ambiguous. It's now 'scalePhotos'.
|
||||
* Renamed the 'cbox_close' event to be less ambiguous. It's now 'cbox_cleanup'. It is the first thing to happen in the close method while the 'cbox_closed' event is the last to happen.
|
||||
* Fixed a bug with the slideshow mouseover graphics that appeared after ColorBox is opened a 2nd time.
|
||||
* Fixed a bug where ClearType may not work in IE6&7 if using the fade transition.
|
||||
* Minor code optimizations to increase compression.
|
||||
|
||||
### Version 1.2.9 - August 7 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Minor change to enable use with $.getScript();
|
||||
* Minor change to the timing of the 'cbox_load' event so that it is more useful.
|
||||
* Added a direct link to a YouTube video to the examples.
|
||||
|
||||
### Version 1.2.8 - August 5 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Fixed a bug with the overlay in IE6
|
||||
* Fixed a bug where left & right keypress events might be prematurely unbound.
|
||||
|
||||
### Version 1.2.7 - July 31 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js, example stylesheets and background images (core styles have not changed and the updates will not affect existing user themes / old example themes)
|
||||
|
||||
* Code cleanup and reduction, better organization and documentation in the full source.
|
||||
* Added ability to use functions in place of static values for ColorBox's options (thanks Ken!).
|
||||
* Added an option for straight HTML. Example: `$.fn.colorbox({html:'<p>Howdy</p>', open:true})`
|
||||
* Added an event for the beginning of the closing process. This is in addition to the event that already existed for when ColorBox had completely closed. 'cbox_close' and 'cbox_closed' respectively.
|
||||
* Fixed a minor bug in IE6 that would cause a brief content shift in the parent document when opening ColorBox.
|
||||
* Fixed a minor bug in IE6 that would reveal select elements that had a hidden visibility after closing ColorBox.
|
||||
* The 'esc' key is unbound now when ColorBox is not open, to avoid any potential conflicts.
|
||||
* Used background sprites for examples 1 & 4. Put IE-only (non-sprite) background images in a separate folder.
|
||||
* Example themes 1, 3, & 4 received slight visual tweaks.
|
||||
* Optimized pngs for smaller file size.
|
||||
* Added slices, grid, and correct sizing to the Adobe Illustrator file, all theme files are now export ready!
|
||||
|
||||
### Version 1.2.6 - July 15 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Fixed a bug with fixed width/height images in Opera 9.64.
|
||||
* Fixed a bug with trying to set a value for rel during a direct call to ColorBox. Example: `$.fn.colorbox({rel:'foo', open:true});`
|
||||
* Changed how href/rel/title settings are determined to avoid users having to manually update ColorBox settings if they use JavaScript to update any of those attributes, after ColorBox has been defined.
|
||||
* Fixed a FF3 bug where the back button was disabled after closing an iframe.
|
||||
|
||||
### Version 1.2.5 - June 23 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Changed the point at which iframe srcs are set (to eliminate the need to refresh the iframe once it has been added to the DOM).
|
||||
* Removed unnecessary return values for a very slight code reduction.
|
||||
|
||||
### Version 1.2.4 - June 9 2009
|
||||
Files Changed: jquery.colorbox.js, jquery.colorbox-min.js
|
||||
|
||||
* Fixed an issue where ColorBox may not close completely if it is closed during a transition animation.
|
||||
* Minor code reduction.
|
||||
|
||||
### Version 1.2.3 - June 4 2009
|
||||
* Fixed a png transparency stacking issue in IE.
|
||||
* More accurate Ajax auto-sizing if the user was depending on the #cboxLoadedContent ID for CSS styling.
|
||||
* Added a public function for returning the current html element that ColorBox is associated with. Example use: var that = $.fn.colorbox.element();
|
||||
* Added bicubic scaling for resized images in the original IE7.
|
||||
* Removed the IE6 stylesheet and png files from Example 3. It now uses the same png file for the controls that the rest of the browsers use (an alpha transparency PNG8). This example now only has 2 graphics files and 1 stylesheet.
|
||||
|
||||
### Version 1.2.2 - May 28 2009
|
||||
* Fixed an issue with the 'resize' option.
|
||||
|
||||
### Version 1.2.1 - May 28 2009
|
||||
* Note: If you are upgrading, update your jquery.colorbox.js and colorbox.css files.
|
||||
* Added photo resizing.
|
||||
* Added a maximum width and maximum height. Example: {height:800, maxHeight:'100%'}, would allow the box to be a maximum potential height of 800px, instead of a fixed height of 800px. With maxHeight of 100% the height of ColorBox cannot exceed the height of the browser window.
|
||||
* Added 'rel' setting to add the ability to set an alternative rel for any ColorBox call. This allows the user to group any combination of elements together for a gallery, or to override an existing rel. attribute so those element are not grouped together, without having to alter their rel in the HTML.
|
||||
* Added a 'photo' setting to force ColorBox to display a link as a photo. Use this when automatic photo detection fails (such as using a url like 'photo.php' instead of 'photo.jpg', 'photo.jpg#1', or 'photo.jpg?pic=1')
|
||||
* Removed the need to ever create disposable elements to call colorbox on. ColorBox can now be called directly, without being associated with any existing element, by using the following format:
|
||||
`$.fn.colorbox({open:true, href:'yourLink.xxx'});`
|
||||
* ColorBox settings are now persistent and unique for each element. This allows for extremely flexible options for individual elements. You could use this to create a gallery in which each page in the gallery has different settings. One could be a photo with a fade transition, next could be an inline element with an elastic transition with a set width and height, etc.
|
||||
* For user callbacks, 'this' now refers to the element colorbox was opened from.
|
||||
* Fixed a minor grouping issue with IE6, when transition type is set to 'none'.
|
||||
* Added an Adobe Illustrator file that contains the borders and buttons used in the various examples.
|
||||
|
||||
### Version 1.2 - May 13 2009
|
||||
* Added a slideshow feature.
|
||||
* Added re-positioning on browser resize. If the browser is resized, ColorBox will recenter itself onscreen.
|
||||
* Added hooks for key events: cbox_open, cbox_load, cbox_complete, cbox_closed.
|
||||
* Fixed an IE transparency-stacking problem, where transparent PNGs would show through to the background overlay.
|
||||
* Fixed an IE iframe issue where the ifame might shift up and to the left under certain circumstances.
|
||||
* Fixed an IE6 bug where the loading overlay was not at full height.
|
||||
* Removed the delay in switching between same-sized gallery content when using transitions.
|
||||
* Changed how iframes are loaded to make it more compatible with iframed pages that use DOM dependent JavaScript.
|
||||
* Changed how the JS is structured to be better organized and increase compression. Increased documentation.
|
||||
* Changed CSS :hover states to a .hover class. This sidesteps a minor IE8 bug with css hover states and allows easier access to hover state user styles from the JavaScript.
|
||||
* Changed: elements added to the DOM have new ID's. The naming is more consistent and less likely to cause conflicts with existing website stylesheets. All stylesheets have been updated.
|
||||
* Changed the behavior for prev/next links so that ColorBox does not get hung up on broken links. A visitor can now skip through broken or long-loading links by clicking prev/next buttons.
|
||||
* Changed the naming of variables in the parameter map to be more concise and intuitive.
|
||||
* Removed colorbox.css. Combined the colorbox.css styles with jquery.colorbox.js: the css file was not large enough to warrant being a separate file.
|
||||
|
||||
### Version 1.1.6 - April 28 2009
|
||||
* Prevented the default action of the next & previous anchors and the left and right keys for gallery mode.
|
||||
* Fixed a bug where the title element was being added back to the DOM when closing ColorBox while using inline content.
|
||||
* Fixed a bug where IE7 would crash for example 2.
|
||||
* Smaller filesize: removed a small amount of unused code and rewrote the HTML injection with less syntax.
|
||||
* Added a public method for closing ColorBox: $.fn.colorbox.close(). This will allow iframe users to add an event to close ColorBox without having to create an additional function.
|
||||
|
||||
### Version 1.1.5 - April 11 2009
|
||||
* Fixed minor issues with exiting ColorBox.
|
||||
|
||||
### Version 1.1.4 - April 08 2009
|
||||
* Fixed a bug in the fade transition where ColorBox not close completely if instructed to close during the fade-in portion of the transition.
|
||||
|
||||
### Version 1.1.3 - April 06 2009
|
||||
* Fixed an IE6&7 issue with using ColorBox to display animated GIFs.
|
||||
|
||||
### Version 1.1.2 - April 05 2009
|
||||
* Added ability to change content when ColorBox is already open.
|
||||
* Added vertical photo centering now works for all browsers (this feature previously excluded IE6&7).
|
||||
* Added namespacing to the esc-key keydown event for people who want to disable it: "keydown.colorClose"
|
||||
* Added 'title' setting to add the ability to set an alternative title for any ColorBox call.
|
||||
* Fixed rollover navigation issue with IE8. (Added JS-based rollover state due to a browser-bug.)
|
||||
* Fixed an overflow issue for when the fixed width/height is smaller than the size of a photo.
|
||||
* Fixed a bug in the fade transition where the border would still come up if ColorBox was closed mid-transition.
|
||||
* Switch from JSMin to Yui Compressor for minification. Minified code now under 7KB.
|
||||
|
||||
### Version 1.1.1 - March 31 2009
|
||||
* More robust image detection regex. Now detects image file types with url fragments and/or query strings.
|
||||
* Added 'nofollow' exception to rel grouping.
|
||||
* Changed how images are loaded into the DOM to prevent premature size calculation by ColorBox.
|
||||
* Added timestamp to iframe name to prevent caching - this was a problem in some browsers if the user had multiple iframes and the visitor left the page and came back, or if they refreshed the page.
|
||||
|
||||
### Version 1.1.0 - March 21 2009
|
||||
* Animation is now much smoother and less resource intensive.
|
||||
* Added support for % sizing.
|
||||
* Callback option added.
|
||||
* Inline content now preserves JavaScript events, and changes made while ColorBox is open are also preserved.
|
||||
* Added 'href' setting to add the ability to set an alternative href for any anchor, or to assign the ColorBox event to non-anchors.
|
||||
Example: $('button').colorbox({'href':'process.php'})
|
||||
Example: $('a[href='http://msn.com']).colorbox({'href':'http://google.com', iframe:true});
|
||||
* Photos are now horizontally centered if they are smaller than the lightbox size. Also vertically centered for browsers newer than IE7.
|
||||
* Buttons in the examples are now included in the 'protected zone'. The lightbox will never expand it's borders or buttons beyond an accessible area of the screen.
|
||||
* Keypress events don't queue up by holding down the arrow keys.
|
||||
* Added option to close ColorBox by clicking on the background overlay.
|
||||
* Added 'none' transition setting.
|
||||
* Changed 'contentIframe' and 'contentInline' to 'inline' and 'iframe'. Removed 'contentAjax' because it is automatically assumed for non-image file types.
|
||||
* Changed 'contentWidth' and 'contentHeight' to 'fixedWidth' and 'fixedHeight'. These sizes now reflect the total size of the lightbox, not just the inner content. This is so users can accurately anticipate % sizes without fear of creating scrollbars.
|
||||
* Clicking on a photo will now switch to the next photo in a set.
|
||||
* Loading.gif is more stable in it's position.
|
||||
* Added a minified version.
|
||||
* Code passes JSLint.
|
||||
|
||||
### Version 1.0.5 - March 11 2009
|
||||
* Redo: Fixed a bug where IE would cut off the bottom portion of a photo, if the photo was larger than the document dimensions.
|
||||
|
||||
### Version 1.0.4 - March 10 2009
|
||||
* Added an option to allow users to automatically open the lightbox. Example usage: $(".colorbox").colorbox({open:true});
|
||||
* Fixed a bug where IE would cut off the bottom portion of a photo, if the photo was larger than the document dimensions.
|
||||
|
||||
### Version 1.0.3 - March 09 2009
|
||||
* Fixed vertical centering for Safari 3.0.x.
|
||||
|
||||
### Version 1.0.2 - March 06 2009
|
||||
* Corrected a typo.
|
||||
* Changed the content-type check so that it does not assume all links to photos should actually display photos. This allows for Ajax/inline/and iframe calls on anchors linking to picture file types.
|
||||
|
||||
### Version 1.0.1 - March 05 2009
|
||||
* Fixed keydown events (esc, left arrow, right arrow) for Webkit browsers.
|
||||
|
||||
### Version 1.0 - March 03 2009
|
||||
* First release
|
||||
50
modules/lib/colorbox/colorbox.css
Normal file
@ -0,0 +1,50 @@
|
||||
/*
|
||||
ColorBox Core Style:
|
||||
The following CSS is consistent between example themes and should not be altered.
|
||||
*/
|
||||
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
||||
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||
#cboxContent{position:relative;}
|
||||
#cboxLoadedContent{overflow:auto;}
|
||||
#cboxTitle{margin:0;}
|
||||
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
|
||||
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
||||
.cboxPhoto{float:left; margin:auto; border:0; display:block;}
|
||||
.cboxIframe{width:100%; height:100%; display:block; border:0;}
|
||||
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box;}
|
||||
|
||||
/*
|
||||
User Style:
|
||||
Change the following styles to modify the appearance of ColorBox. They are
|
||||
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||
*/
|
||||
#cboxOverlay{background:#777}
|
||||
#colorbox{}
|
||||
#cboxContent{margin-top:32px; overflow:visible;}
|
||||
.cboxIframe{background:#fff;}
|
||||
#cboxError{padding:50px; border:1px solid #ccc;}
|
||||
#cboxLoadedContent{border:8px solid rgba(0,0,0,.5);-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px;display:none}
|
||||
#cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
|
||||
#cboxLoadingOverlay{background: #000;background: rgba(0,0,0,.5);-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;border-radius: 6px}
|
||||
#cboxTitle{position:absolute; top:-22px; left:0; color:#000;background:#000;background: rgba(0,0,0,.5);-webkit-border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;border-radius: 4px;color:#fff;font-size:11px;padding:0 6px}
|
||||
#cboxCurrent{position:absolute; top:-22px; right:205px; text-indent:-9999px;}
|
||||
|
||||
#cboxPrevious, #cboxNext,#cboxSlideshow, #cboxClose{width:20px;height:20px;top:-22px;text-indent:-9999px; position:absolute; background: #fff url(images/controls.png) no-repeat 0 0; background: rgba(255,255,255,.6) url(images/controls.png) no-repeat 0 0;-webkit-border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;border-radius: 4px}
|
||||
#cboxPrevious:hover, #cboxNext:hover,#cboxSlideshow:hover, #cboxClose:hover {background-color: rgba(255,255,255,.8)}
|
||||
|
||||
#cboxPrevious{background-position:0 -1px; right:56px}
|
||||
#cboxPrevious:hover{background-position:0 -26px}
|
||||
#cboxNext{background-position:-25px -1px; right:32px}
|
||||
#cboxNext:hover{background-position:-25px -26px}
|
||||
|
||||
#cboxClose{background-position:-50px -1px;right:0}
|
||||
#cboxClose:hover{background-position:-50px -26px}
|
||||
|
||||
#cboxSlideshow {right:90px}
|
||||
.cboxSlideshow_on #cboxSlideshow{background-position:-75px -1px}
|
||||
.cboxSlideshow_on #cboxSlideshow:hover{background-position:-75px -26px}
|
||||
.cboxSlideshow_off #cboxSlideshow{background-position:-100px -1px}
|
||||
.cboxSlideshow_off #cboxSlideshow:hover{background-position:-100px -26px}
|
||||
|
||||
.cbox_content {background:#fff;padding:20px}
|
||||
993
modules/lib/colorbox/jquery.colorbox.js
Normal file
@ -0,0 +1,993 @@
|
||||
/*!
|
||||
jQuery ColorBox v1.3.34 - 2013-02-04
|
||||
(c) 2013 Jack Moore - jacklmoore.com/colorbox
|
||||
license: http://www.opensource.org/licenses/mit-license.php
|
||||
*/
|
||||
(function ($, document, window) {
|
||||
var
|
||||
// Default settings object.
|
||||
// See http://jacklmoore.com/colorbox for details.
|
||||
defaults = {
|
||||
transition: "elastic",
|
||||
speed: 300,
|
||||
width: false,
|
||||
initialWidth: "600",
|
||||
innerWidth: false,
|
||||
maxWidth: false,
|
||||
height: false,
|
||||
initialHeight: "450",
|
||||
innerHeight: false,
|
||||
maxHeight: false,
|
||||
scalePhotos: true,
|
||||
scrolling: true,
|
||||
inline: false,
|
||||
html: false,
|
||||
iframe: false,
|
||||
fastIframe: true,
|
||||
photo: false,
|
||||
href: false,
|
||||
title: false,
|
||||
rel: false,
|
||||
opacity: 0.9,
|
||||
preloading: true,
|
||||
className: false,
|
||||
|
||||
// alternate image paths for high-res displays
|
||||
retinaImage: false,
|
||||
retinaUrl: false,
|
||||
retinaSuffix: '@2x.$1',
|
||||
|
||||
// internationalization
|
||||
current: "image {current} of {total}",
|
||||
previous: "previous",
|
||||
next: "next",
|
||||
close: "close",
|
||||
xhrError: "This content failed to load.",
|
||||
imgError: "This image failed to load.",
|
||||
|
||||
open: false,
|
||||
returnFocus: true,
|
||||
reposition: true,
|
||||
loop: true,
|
||||
slideshow: false,
|
||||
slideshowAuto: true,
|
||||
slideshowSpeed: 2500,
|
||||
slideshowStart: "start slideshow",
|
||||
slideshowStop: "stop slideshow",
|
||||
photoRegex: /\.(gif|png|jp(e|g|eg)|bmp|ico)((#|\?).*)?$/i,
|
||||
|
||||
onOpen: false,
|
||||
onLoad: false,
|
||||
onComplete: false,
|
||||
onCleanup: false,
|
||||
onClosed: false,
|
||||
overlayClose: true,
|
||||
escKey: true,
|
||||
arrowKey: true,
|
||||
top: false,
|
||||
bottom: false,
|
||||
left: false,
|
||||
right: false,
|
||||
fixed: false,
|
||||
data: undefined
|
||||
},
|
||||
|
||||
// Abstracting the HTML and event identifiers for easy rebranding
|
||||
colorbox = 'colorbox',
|
||||
prefix = 'cbox',
|
||||
boxElement = prefix + 'Element',
|
||||
|
||||
// Events
|
||||
event_open = prefix + '_open',
|
||||
event_load = prefix + '_load',
|
||||
event_complete = prefix + '_complete',
|
||||
event_cleanup = prefix + '_cleanup',
|
||||
event_closed = prefix + '_closed',
|
||||
event_purge = prefix + '_purge',
|
||||
|
||||
// Special Handling for IE
|
||||
isIE = !$.support.leadingWhitespace, // IE6 to IE8
|
||||
isIE6 = isIE && !window.XMLHttpRequest, // IE6
|
||||
event_ie6 = prefix + '_IE6',
|
||||
|
||||
// Cached jQuery Object Variables
|
||||
$overlay,
|
||||
$box,
|
||||
$wrap,
|
||||
$content,
|
||||
$topBorder,
|
||||
$leftBorder,
|
||||
$rightBorder,
|
||||
$bottomBorder,
|
||||
$related,
|
||||
$window,
|
||||
$loaded,
|
||||
$loadingBay,
|
||||
$loadingOverlay,
|
||||
$title,
|
||||
$current,
|
||||
$slideshow,
|
||||
$next,
|
||||
$prev,
|
||||
$close,
|
||||
$groupControls,
|
||||
$events = $({}),
|
||||
|
||||
// Variables for cached values or use across multiple functions
|
||||
settings,
|
||||
interfaceHeight,
|
||||
interfaceWidth,
|
||||
loadedHeight,
|
||||
loadedWidth,
|
||||
element,
|
||||
index,
|
||||
photo,
|
||||
open,
|
||||
active,
|
||||
closing,
|
||||
loadingTimer,
|
||||
publicMethod,
|
||||
div = "div",
|
||||
className,
|
||||
init;
|
||||
|
||||
// ****************
|
||||
// HELPER FUNCTIONS
|
||||
// ****************
|
||||
|
||||
// Convience function for creating new jQuery objects
|
||||
function $tag(tag, id, css) {
|
||||
var element = document.createElement(tag);
|
||||
|
||||
if (id) {
|
||||
element.id = prefix + id;
|
||||
}
|
||||
|
||||
if (css) {
|
||||
element.style.cssText = css;
|
||||
}
|
||||
|
||||
return $(element);
|
||||
}
|
||||
|
||||
// Determine the next and previous members in a group.
|
||||
function getIndex(increment) {
|
||||
var
|
||||
max = $related.length,
|
||||
newIndex = (index + increment) % max;
|
||||
|
||||
return (newIndex < 0) ? max + newIndex : newIndex;
|
||||
}
|
||||
|
||||
// Convert '%' and 'px' values to integers
|
||||
function setSize(size, dimension) {
|
||||
return Math.round((/%/.test(size) ? ((dimension === 'x' ? $window.width() : $window.height()) / 100) : 1) * parseInt(size, 10));
|
||||
}
|
||||
|
||||
// Checks an href to see if it is a photo.
|
||||
// There is a force photo option (photo: true) for hrefs that cannot be matched by the regex.
|
||||
function isImage(url) {
|
||||
return settings.photo || settings.photoRegex.test(url);
|
||||
}
|
||||
|
||||
function retinaUrl(url) {
|
||||
return settings.retinaUrl && window.devicePixelRatio > 1 ? url.replace(settings.photoRegex, settings.retinaSuffix) : url;
|
||||
}
|
||||
|
||||
// Assigns function results to their respective properties
|
||||
function makeSettings() {
|
||||
var i,
|
||||
data = $.data(element, colorbox);
|
||||
|
||||
if (data == null) {
|
||||
settings = $.extend({}, defaults);
|
||||
if (console && console.log) {
|
||||
console.log('Error: cboxElement missing settings object');
|
||||
}
|
||||
} else {
|
||||
settings = $.extend({}, data);
|
||||
}
|
||||
|
||||
for (i in settings) {
|
||||
if ($.isFunction(settings[i]) && i.slice(0, 2) !== 'on') { // checks to make sure the function isn't one of the callbacks, they will be handled at the appropriate time.
|
||||
settings[i] = settings[i].call(element);
|
||||
}
|
||||
}
|
||||
|
||||
settings.rel = settings.rel || element.rel || $(element).data('rel') || 'nofollow';
|
||||
settings.href = settings.href || $(element).attr('href');
|
||||
settings.title = settings.title || element.title;
|
||||
|
||||
if (typeof settings.href === "string") {
|
||||
settings.href = $.trim(settings.href);
|
||||
}
|
||||
}
|
||||
|
||||
function trigger(event, callback) {
|
||||
// for external use
|
||||
$(document).trigger(event);
|
||||
|
||||
// for internal use
|
||||
$events.trigger(event);
|
||||
|
||||
if ($.isFunction(callback)) {
|
||||
callback.call(element);
|
||||
}
|
||||
}
|
||||
|
||||
// Slideshow functionality
|
||||
function slideshow() {
|
||||
var
|
||||
timeOut,
|
||||
className = prefix + "Slideshow_",
|
||||
click = "click." + prefix,
|
||||
clear,
|
||||
set,
|
||||
start,
|
||||
stop;
|
||||
|
||||
if (settings.slideshow && $related[1]) {
|
||||
clear = function () {
|
||||
clearTimeout(timeOut);
|
||||
};
|
||||
|
||||
set = function () {
|
||||
if (settings.loop || $related[index + 1]) {
|
||||
timeOut = setTimeout(publicMethod.next, settings.slideshowSpeed);
|
||||
}
|
||||
};
|
||||
|
||||
start = function () {
|
||||
$slideshow
|
||||
.html(settings.slideshowStop)
|
||||
.unbind(click)
|
||||
.one(click, stop);
|
||||
|
||||
$events
|
||||
.bind(event_complete, set)
|
||||
.bind(event_load, clear)
|
||||
.bind(event_cleanup, stop);
|
||||
|
||||
$box.removeClass(className + "off").addClass(className + "on");
|
||||
};
|
||||
|
||||
stop = function () {
|
||||
clear();
|
||||
|
||||
$events
|
||||
.unbind(event_complete, set)
|
||||
.unbind(event_load, clear)
|
||||
.unbind(event_cleanup, stop);
|
||||
|
||||
$slideshow
|
||||
.html(settings.slideshowStart)
|
||||
.unbind(click)
|
||||
.one(click, function () {
|
||||
publicMethod.next();
|
||||
start();
|
||||
});
|
||||
|
||||
$box.removeClass(className + "on").addClass(className + "off");
|
||||
};
|
||||
|
||||
if (settings.slideshowAuto) {
|
||||
start();
|
||||
} else {
|
||||
stop();
|
||||
}
|
||||
} else {
|
||||
$box.removeClass(className + "off " + className + "on");
|
||||
}
|
||||
}
|
||||
|
||||
function launch(target) {
|
||||
if (!closing) {
|
||||
|
||||
element = target;
|
||||
|
||||
makeSettings();
|
||||
|
||||
$related = $(element);
|
||||
|
||||
index = 0;
|
||||
|
||||
if (settings.rel !== 'nofollow') {
|
||||
$related = $('.' + boxElement).filter(function () {
|
||||
var data = $.data(this, colorbox),
|
||||
relRelated;
|
||||
|
||||
if (data) {
|
||||
relRelated = $(this).data('rel') || data.rel || this.rel;
|
||||
}
|
||||
|
||||
return (relRelated === settings.rel);
|
||||
});
|
||||
index = $related.index(element);
|
||||
|
||||
// Check direct calls to ColorBox.
|
||||
if (index === -1) {
|
||||
$related = $related.add(element);
|
||||
index = $related.length - 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (!open) {
|
||||
open = active = true; // Prevents the page-change action from queuing up if the visitor holds down the left or right keys.
|
||||
|
||||
// Show colorbox so the sizes can be calculated in older versions of jQuery
|
||||
$box.css({visibility:'hidden', display:'block'});
|
||||
|
||||
$loaded = $tag(div, 'LoadedContent', 'width:0; height:0; overflow:hidden').appendTo($content);
|
||||
|
||||
// Cache values needed for size calculations
|
||||
interfaceHeight = $topBorder.height() + $bottomBorder.height() + $content.outerHeight(true) - $content.height();//Subtraction needed for IE6
|
||||
interfaceWidth = $leftBorder.width() + $rightBorder.width() + $content.outerWidth(true) - $content.width();
|
||||
loadedHeight = $loaded.outerHeight(true);
|
||||
loadedWidth = $loaded.outerWidth(true);
|
||||
|
||||
if (settings.returnFocus) {
|
||||
$(element).blur();
|
||||
$events.one(event_closed, function () {
|
||||
$(element).focus();
|
||||
});
|
||||
}
|
||||
|
||||
$overlay.css({
|
||||
opacity: parseFloat(settings.opacity),
|
||||
cursor: settings.overlayClose ? "pointer" : "auto",
|
||||
visibility: 'visible'
|
||||
}).show();
|
||||
|
||||
// Opens inital empty ColorBox prior to content being loaded.
|
||||
settings.w = setSize(settings.initialWidth, 'x');
|
||||
settings.h = setSize(settings.initialHeight, 'y');
|
||||
publicMethod.position();
|
||||
|
||||
if (isIE6) {
|
||||
$window.bind('resize.' + event_ie6 + ' scroll.' + event_ie6, function () {
|
||||
$overlay.css({width: $window.width(), height: $window.height(), top: $window.scrollTop(), left: $window.scrollLeft()});
|
||||
}).trigger('resize.' + event_ie6);
|
||||
}
|
||||
|
||||
slideshow();
|
||||
|
||||
trigger(event_open, settings.onOpen);
|
||||
|
||||
$groupControls.add($title).hide();
|
||||
|
||||
$close.html(settings.close).show();
|
||||
}
|
||||
|
||||
publicMethod.load(true);
|
||||
}
|
||||
}
|
||||
|
||||
// ColorBox's markup needs to be added to the DOM prior to being called
|
||||
// so that the browser will go ahead and load the CSS background images.
|
||||
function appendHTML() {
|
||||
if (!$box && document.body) {
|
||||
init = false;
|
||||
|
||||
$window = $(window);
|
||||
$box = $tag(div).attr({id: colorbox, 'class': isIE ? prefix + (isIE6 ? 'IE6' : 'IE') : ''}).hide();
|
||||
$overlay = $tag(div, "Overlay", isIE6 ? 'position:absolute' : '').hide();
|
||||
$loadingOverlay = $tag(div, "LoadingOverlay").add($tag(div, "LoadingGraphic"));
|
||||
$wrap = $tag(div, "Wrapper");
|
||||
$content = $tag(div, "Content").append(
|
||||
$title = $tag(div, "Title"),
|
||||
$current = $tag(div, "Current"),
|
||||
$next = $tag(div, "Next"),
|
||||
$prev = $tag(div, "Previous"),
|
||||
$slideshow = $tag(div, "Slideshow"),
|
||||
$close = $tag(div, "Close")
|
||||
);
|
||||
|
||||
$wrap.append( // The 3x3 Grid that makes up ColorBox
|
||||
$tag(div).append(
|
||||
$tag(div, "TopLeft"),
|
||||
$topBorder = $tag(div, "TopCenter"),
|
||||
$tag(div, "TopRight")
|
||||
),
|
||||
$tag(div, false, 'clear:left').append(
|
||||
$leftBorder = $tag(div, "MiddleLeft"),
|
||||
$content,
|
||||
$rightBorder = $tag(div, "MiddleRight")
|
||||
),
|
||||
$tag(div, false, 'clear:left').append(
|
||||
$tag(div, "BottomLeft"),
|
||||
$bottomBorder = $tag(div, "BottomCenter"),
|
||||
$tag(div, "BottomRight")
|
||||
)
|
||||
).find('div div').css({'float': 'left'});
|
||||
|
||||
$loadingBay = $tag(div, false, 'position:absolute; width:9999px; visibility:hidden; display:none');
|
||||
|
||||
$groupControls = $next.add($prev).add($current).add($slideshow);
|
||||
|
||||
$(document.body).append($overlay, $box.append($wrap, $loadingBay));
|
||||
}
|
||||
}
|
||||
|
||||
// Add ColorBox's event bindings
|
||||
function addBindings() {
|
||||
function clickHandler(e) {
|
||||
// ignore non-left-mouse-clicks and clicks modified with ctrl / command, shift, or alt.
|
||||
// See: http://jacklmoore.com/notes/click-events/
|
||||
if (!(e.which > 1 || e.shiftKey || e.altKey || e.metaKey)) {
|
||||
e.preventDefault();
|
||||
launch(this);
|
||||
}
|
||||
}
|
||||
|
||||
if ($box) {
|
||||
if (!init) {
|
||||
init = true;
|
||||
|
||||
// Anonymous functions here keep the public method from being cached, thereby allowing them to be redefined on the fly.
|
||||
$next.click(function () {
|
||||
publicMethod.next();
|
||||
});
|
||||
$prev.click(function () {
|
||||
publicMethod.prev();
|
||||
});
|
||||
$close.click(function () {
|
||||
publicMethod.close();
|
||||
});
|
||||
$overlay.click(function () {
|
||||
if (settings.overlayClose) {
|
||||
publicMethod.close();
|
||||
}
|
||||
});
|
||||
|
||||
// Key Bindings
|
||||
$(document).bind('keydown.' + prefix, function (e) {
|
||||
var key = e.keyCode;
|
||||
if (open && settings.escKey && key === 27) {
|
||||
e.preventDefault();
|
||||
publicMethod.close();
|
||||
}
|
||||
if (open && settings.arrowKey && $related[1]) {
|
||||
if (key === 37) {
|
||||
e.preventDefault();
|
||||
$prev.click();
|
||||
} else if (key === 39) {
|
||||
e.preventDefault();
|
||||
$next.click();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if ($.isFunction($.fn.on)) {
|
||||
$(document).on('click.'+prefix, '.'+boxElement, clickHandler);
|
||||
} else { // For jQuery 1.3.x -> 1.6.x
|
||||
$('.'+boxElement).live('click.'+prefix, clickHandler);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Don't do anything if ColorBox already exists.
|
||||
if ($.colorbox) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Append the HTML when the DOM loads
|
||||
$(appendHTML);
|
||||
|
||||
|
||||
// ****************
|
||||
// PUBLIC FUNCTIONS
|
||||
// Usage format: $.fn.colorbox.close();
|
||||
// Usage from within an iframe: parent.$.fn.colorbox.close();
|
||||
// ****************
|
||||
|
||||
publicMethod = $.fn[colorbox] = $[colorbox] = function (options, callback) {
|
||||
var $this = this;
|
||||
|
||||
options = options || {};
|
||||
|
||||
appendHTML();
|
||||
|
||||
if (addBindings()) {
|
||||
if ($.isFunction($this)) { // assume a call to $.colorbox
|
||||
$this = $('<a/>');
|
||||
options.open = true;
|
||||
} else if (!$this[0]) { // colorbox being applied to empty collection
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (callback) {
|
||||
options.onComplete = callback;
|
||||
}
|
||||
|
||||
$this.each(function () {
|
||||
$.data(this, colorbox, $.extend({}, $.data(this, colorbox) || defaults, options));
|
||||
}).addClass(boxElement);
|
||||
|
||||
if (($.isFunction(options.open) && options.open.call($this)) || options.open) {
|
||||
launch($this[0]);
|
||||
}
|
||||
}
|
||||
|
||||
return $this;
|
||||
};
|
||||
|
||||
publicMethod.position = function (speed, loadedCallback) {
|
||||
var
|
||||
css,
|
||||
top = 0,
|
||||
left = 0,
|
||||
offset = $box.offset(),
|
||||
scrollTop,
|
||||
scrollLeft;
|
||||
|
||||
$window.unbind('resize.' + prefix);
|
||||
|
||||
// remove the modal so that it doesn't influence the document width/height
|
||||
$box.css({top: -9e4, left: -9e4});
|
||||
|
||||
scrollTop = $window.scrollTop();
|
||||
scrollLeft = $window.scrollLeft();
|
||||
|
||||
if (settings.fixed && !isIE6) {
|
||||
offset.top -= scrollTop;
|
||||
offset.left -= scrollLeft;
|
||||
$box.css({position: 'fixed'});
|
||||
} else {
|
||||
top = scrollTop;
|
||||
left = scrollLeft;
|
||||
$box.css({position: 'absolute'});
|
||||
}
|
||||
|
||||
// keeps the top and left positions within the browser's viewport.
|
||||
if (settings.right !== false) {
|
||||
left += Math.max($window.width() - settings.w - loadedWidth - interfaceWidth - setSize(settings.right, 'x'), 0);
|
||||
} else if (settings.left !== false) {
|
||||
left += setSize(settings.left, 'x');
|
||||
} else {
|
||||
left += Math.round(Math.max($window.width() - settings.w - loadedWidth - interfaceWidth, 0) / 2);
|
||||
}
|
||||
|
||||
if (settings.bottom !== false) {
|
||||
top += Math.max($window.height() - settings.h - loadedHeight - interfaceHeight - setSize(settings.bottom, 'y'), 0);
|
||||
} else if (settings.top !== false) {
|
||||
top += setSize(settings.top, 'y');
|
||||
} else {
|
||||
top += Math.round(Math.max($window.height() - settings.h - loadedHeight - interfaceHeight, 0) / 2);
|
||||
}
|
||||
|
||||
$box.css({top: offset.top, left: offset.left, visibility:'visible'});
|
||||
|
||||
// setting the speed to 0 to reduce the delay between same-sized content.
|
||||
speed = ($box.width() === settings.w + loadedWidth && $box.height() === settings.h + loadedHeight) ? 0 : speed || 0;
|
||||
|
||||
// this gives the wrapper plenty of breathing room so it's floated contents can move around smoothly,
|
||||
// but it has to be shrank down around the size of div#colorbox when it's done. If not,
|
||||
// it can invoke an obscure IE bug when using iframes.
|
||||
$wrap[0].style.width = $wrap[0].style.height = "9999px";
|
||||
|
||||
function modalDimensions(that) {
|
||||
$topBorder[0].style.width = $bottomBorder[0].style.width = $content[0].style.width = (parseInt(that.style.width,10) - interfaceWidth)+'px';
|
||||
$content[0].style.height = $leftBorder[0].style.height = $rightBorder[0].style.height = (parseInt(that.style.height,10) - interfaceHeight)+'px';
|
||||
}
|
||||
|
||||
css = {width: settings.w + loadedWidth + interfaceWidth, height: settings.h + loadedHeight + interfaceHeight, top: top, left: left};
|
||||
|
||||
if(speed===0){ // temporary workaround to side-step jQuery-UI 1.8 bug (http://bugs.jquery.com/ticket/12273)
|
||||
$box.css(css);
|
||||
}
|
||||
$box.dequeue().animate(css, {
|
||||
duration: speed,
|
||||
complete: function () {
|
||||
modalDimensions(this);
|
||||
|
||||
active = false;
|
||||
|
||||
// shrink the wrapper down to exactly the size of colorbox to avoid a bug in IE's iframe implementation.
|
||||
$wrap[0].style.width = (settings.w + loadedWidth + interfaceWidth) + "px";
|
||||
$wrap[0].style.height = (settings.h + loadedHeight + interfaceHeight) + "px";
|
||||
|
||||
if (settings.reposition) {
|
||||
setTimeout(function () { // small delay before binding onresize due to an IE8 bug.
|
||||
$window.bind('resize.' + prefix, publicMethod.position);
|
||||
}, 1);
|
||||
}
|
||||
|
||||
if (loadedCallback) {
|
||||
loadedCallback();
|
||||
}
|
||||
},
|
||||
step: function () {
|
||||
modalDimensions(this);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
publicMethod.resize = function (options) {
|
||||
if (open) {
|
||||
options = options || {};
|
||||
|
||||
if (options.width) {
|
||||
settings.w = setSize(options.width, 'x') - loadedWidth - interfaceWidth;
|
||||
}
|
||||
if (options.innerWidth) {
|
||||
settings.w = setSize(options.innerWidth, 'x');
|
||||
}
|
||||
$loaded.css({width: settings.w});
|
||||
|
||||
if (options.height) {
|
||||
settings.h = setSize(options.height, 'y') - loadedHeight - interfaceHeight;
|
||||
}
|
||||
if (options.innerHeight) {
|
||||
settings.h = setSize(options.innerHeight, 'y');
|
||||
}
|
||||
if (!options.innerHeight && !options.height) {
|
||||
$loaded.css({height: "auto"});
|
||||
settings.h = $loaded.height();
|
||||
}
|
||||
$loaded.css({height: settings.h});
|
||||
|
||||
publicMethod.position(settings.transition === "none" ? 0 : settings.speed);
|
||||
}
|
||||
};
|
||||
|
||||
publicMethod.prep = function (object) {
|
||||
if (!open) {
|
||||
return;
|
||||
}
|
||||
|
||||
var callback, speed = settings.transition === "none" ? 0 : settings.speed;
|
||||
|
||||
$loaded.empty().remove(); // Using empty first may prevent some IE7 issues.
|
||||
|
||||
$loaded = $tag(div, 'LoadedContent').append(object);
|
||||
|
||||
function getWidth() {
|
||||
settings.w = settings.w || $loaded.width();
|
||||
settings.w = settings.mw && settings.mw < settings.w ? settings.mw : settings.w;
|
||||
return settings.w;
|
||||
}
|
||||
function getHeight() {
|
||||
settings.h = settings.h || $loaded.height();
|
||||
settings.h = settings.mh && settings.mh < settings.h ? settings.mh : settings.h;
|
||||
return settings.h;
|
||||
}
|
||||
|
||||
$loaded.hide()
|
||||
.appendTo($loadingBay.show())// content has to be appended to the DOM for accurate size calculations.
|
||||
.css({width: getWidth(), overflow: settings.scrolling ? 'auto' : 'hidden'})
|
||||
.css({height: getHeight()})// sets the height independently from the width in case the new width influences the value of height.
|
||||
.prependTo($content);
|
||||
|
||||
$loadingBay.hide();
|
||||
|
||||
// floating the IMG removes the bottom line-height and fixed a problem where IE miscalculates the width of the parent element as 100% of the document width.
|
||||
|
||||
$(photo).css({'float': 'none'});
|
||||
|
||||
callback = function () {
|
||||
var total = $related.length,
|
||||
iframe,
|
||||
frameBorder = 'frameBorder',
|
||||
allowTransparency = 'allowTransparency',
|
||||
complete;
|
||||
|
||||
if (!open) {
|
||||
return;
|
||||
}
|
||||
|
||||
function removeFilter() {
|
||||
if (isIE) {
|
||||
$box[0].style.removeAttribute('filter');
|
||||
}
|
||||
}
|
||||
|
||||
complete = function () {
|
||||
clearTimeout(loadingTimer);
|
||||
$loadingOverlay.remove();
|
||||
trigger(event_complete, settings.onComplete);
|
||||
};
|
||||
|
||||
if (isIE) {
|
||||
//This fadeIn helps the bicubic resampling to kick-in.
|
||||
if (photo) {
|
||||
$loaded.fadeIn(100);
|
||||
}
|
||||
}
|
||||
|
||||
$title.html(settings.title).add($loaded).show();
|
||||
|
||||
if (total > 1) { // handle grouping
|
||||
if (typeof settings.current === "string") {
|
||||
$current.html(settings.current.replace('{current}', index + 1).replace('{total}', total)).show();
|
||||
}
|
||||
|
||||
$next[(settings.loop || index < total - 1) ? "show" : "hide"]().html(settings.next);
|
||||
$prev[(settings.loop || index) ? "show" : "hide"]().html(settings.previous);
|
||||
|
||||
if (settings.slideshow) {
|
||||
$slideshow.show();
|
||||
}
|
||||
|
||||
// Preloads images within a rel group
|
||||
if (settings.preloading) {
|
||||
$.each([getIndex(-1), getIndex(1)], function(){
|
||||
var src,
|
||||
img,
|
||||
i = $related[this],
|
||||
data = $.data(i, colorbox);
|
||||
|
||||
if (data && data.href) {
|
||||
src = data.href;
|
||||
if ($.isFunction(src)) {
|
||||
src = src.call(i);
|
||||
}
|
||||
} else {
|
||||
src = $(i).attr('href');
|
||||
}
|
||||
|
||||
if (src && (isImage(src) || data.photo)) {
|
||||
img = new Image();
|
||||
img.src = src;
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
$groupControls.hide();
|
||||
}
|
||||
|
||||
if (settings.iframe) {
|
||||
iframe = $tag('iframe')[0];
|
||||
|
||||
if (frameBorder in iframe) {
|
||||
iframe[frameBorder] = 0;
|
||||
}
|
||||
|
||||
if (allowTransparency in iframe) {
|
||||
iframe[allowTransparency] = "true";
|
||||
}
|
||||
|
||||
if (!settings.scrolling) {
|
||||
iframe.scrolling = "no";
|
||||
}
|
||||
|
||||
$(iframe)
|
||||
.attr({
|
||||
src: settings.href,
|
||||
name: (new Date()).getTime(), // give the iframe a unique name to prevent caching
|
||||
'class': prefix + 'Iframe',
|
||||
allowFullScreen : true, // allow HTML5 video to go fullscreen
|
||||
webkitAllowFullScreen : true,
|
||||
mozallowfullscreen : true
|
||||
})
|
||||
.one('load', complete)
|
||||
.appendTo($loaded);
|
||||
|
||||
$events.one(event_purge, function () {
|
||||
iframe.src = "//about:blank";
|
||||
});
|
||||
|
||||
if (settings.fastIframe) {
|
||||
$(iframe).trigger('load');
|
||||
}
|
||||
} else {
|
||||
complete();
|
||||
}
|
||||
|
||||
if (settings.transition === 'fade') {
|
||||
$box.fadeTo(speed, 1, removeFilter);
|
||||
} else {
|
||||
removeFilter();
|
||||
}
|
||||
};
|
||||
|
||||
if (settings.transition === 'fade') {
|
||||
$box.fadeTo(speed, 0, function () {
|
||||
publicMethod.position(0, callback);
|
||||
});
|
||||
} else {
|
||||
publicMethod.position(speed, callback);
|
||||
}
|
||||
};
|
||||
|
||||
publicMethod.load = function (launched) {
|
||||
var href, setResize, prep = publicMethod.prep, $inline;
|
||||
|
||||
active = true;
|
||||
|
||||
photo = false;
|
||||
|
||||
element = $related[index];
|
||||
|
||||
if (!launched) {
|
||||
makeSettings();
|
||||
}
|
||||
|
||||
if (className) {
|
||||
$box.add($overlay).removeClass(className);
|
||||
}
|
||||
if (settings.className) {
|
||||
$box.add($overlay).addClass(settings.className);
|
||||
}
|
||||
className = settings.className;
|
||||
|
||||
trigger(event_purge);
|
||||
|
||||
trigger(event_load, settings.onLoad);
|
||||
|
||||
settings.h = settings.height ?
|
||||
setSize(settings.height, 'y') - loadedHeight - interfaceHeight :
|
||||
settings.innerHeight && setSize(settings.innerHeight, 'y');
|
||||
|
||||
settings.w = settings.width ?
|
||||
setSize(settings.width, 'x') - loadedWidth - interfaceWidth :
|
||||
settings.innerWidth && setSize(settings.innerWidth, 'x');
|
||||
|
||||
// Sets the minimum dimensions for use in image scaling
|
||||
settings.mw = settings.w;
|
||||
settings.mh = settings.h;
|
||||
|
||||
// Re-evaluate the minimum width and height based on maxWidth and maxHeight values.
|
||||
// If the width or height exceed the maxWidth or maxHeight, use the maximum values instead.
|
||||
if (settings.maxWidth) {
|
||||
settings.mw = setSize(settings.maxWidth, 'x') - loadedWidth - interfaceWidth;
|
||||
settings.mw = settings.w && settings.w < settings.mw ? settings.w : settings.mw;
|
||||
}
|
||||
if (settings.maxHeight) {
|
||||
settings.mh = setSize(settings.maxHeight, 'y') - loadedHeight - interfaceHeight;
|
||||
settings.mh = settings.h && settings.h < settings.mh ? settings.h : settings.mh;
|
||||
}
|
||||
|
||||
href = settings.href;
|
||||
|
||||
loadingTimer = setTimeout(function () {
|
||||
$loadingOverlay.appendTo($content);
|
||||
}, 100);
|
||||
|
||||
if (settings.inline) {
|
||||
// Inserts an empty placeholder where inline content is being pulled from.
|
||||
// An event is bound to put inline content back when ColorBox closes or loads new content.
|
||||
$inline = $tag(div).hide().insertBefore($(href)[0]);
|
||||
|
||||
$events.one(event_purge, function () {
|
||||
$inline.replaceWith($loaded.children());
|
||||
});
|
||||
|
||||
prep($(href));
|
||||
} else if (settings.iframe) {
|
||||
// IFrame element won't be added to the DOM until it is ready to be displayed,
|
||||
// to avoid problems with DOM-ready JS that might be trying to run in that iframe.
|
||||
prep(" ");
|
||||
} else if (settings.html) {
|
||||
prep(settings.html);
|
||||
} else if (isImage(href)) {
|
||||
|
||||
href = retinaUrl(href);
|
||||
|
||||
$(photo = new Image())
|
||||
.addClass(prefix + 'Photo')
|
||||
.bind('error',function () {
|
||||
settings.title = false;
|
||||
prep($tag(div, 'Error').html(settings.imgError));
|
||||
})
|
||||
.one('load', function () {
|
||||
var percent;
|
||||
|
||||
if (settings.retinaImage && window.devicePixelRatio > 1) {
|
||||
photo.height = photo.height / window.devicePixelRatio;
|
||||
photo.width = photo.width / window.devicePixelRatio;
|
||||
}
|
||||
|
||||
if (settings.scalePhotos) {
|
||||
setResize = function () {
|
||||
photo.height -= photo.height * percent;
|
||||
photo.width -= photo.width * percent;
|
||||
};
|
||||
if (settings.mw && photo.width > settings.mw) {
|
||||
percent = (photo.width - settings.mw) / photo.width;
|
||||
setResize();
|
||||
}
|
||||
if (settings.mh && photo.height > settings.mh) {
|
||||
percent = (photo.height - settings.mh) / photo.height;
|
||||
setResize();
|
||||
}
|
||||
}
|
||||
|
||||
if (settings.h) {
|
||||
photo.style.marginTop = Math.max(settings.mh - photo.height, 0) / 2 + 'px';
|
||||
}
|
||||
|
||||
if ($related[1] && (settings.loop || $related[index + 1])) {
|
||||
photo.style.cursor = 'pointer';
|
||||
photo.onclick = function () {
|
||||
publicMethod.next();
|
||||
};
|
||||
}
|
||||
|
||||
if (isIE) {
|
||||
photo.style.msInterpolationMode = 'bicubic';
|
||||
}
|
||||
|
||||
setTimeout(function () { // A pause because Chrome will sometimes report a 0 by 0 size otherwise.
|
||||
prep(photo);
|
||||
}, 1);
|
||||
});
|
||||
|
||||
setTimeout(function () { // A pause because Opera 10.6+ will sometimes not run the onload function otherwise.
|
||||
photo.src = href;
|
||||
}, 1);
|
||||
} else if (href) {
|
||||
$loadingBay.load(href, settings.data, function (data, status) {
|
||||
prep(status === 'error' ? $tag(div, 'Error').html(settings.xhrError) : $(this).contents());
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// Navigates to the next page/image in a set.
|
||||
publicMethod.next = function () {
|
||||
if (!active && $related[1] && (settings.loop || $related[index + 1])) {
|
||||
index = getIndex(1);
|
||||
publicMethod.load();
|
||||
}
|
||||
};
|
||||
|
||||
publicMethod.prev = function () {
|
||||
if (!active && $related[1] && (settings.loop || index)) {
|
||||
index = getIndex(-1);
|
||||
publicMethod.load();
|
||||
}
|
||||
};
|
||||
|
||||
// Note: to use this within an iframe use the following format: parent.$.fn.colorbox.close();
|
||||
publicMethod.close = function () {
|
||||
if (open && !closing) {
|
||||
|
||||
closing = true;
|
||||
|
||||
open = false;
|
||||
|
||||
trigger(event_cleanup, settings.onCleanup);
|
||||
|
||||
$window.unbind('.' + prefix + ' .' + event_ie6);
|
||||
|
||||
$overlay.fadeTo(200, 0);
|
||||
|
||||
$box.stop().fadeTo(300, 0, function () {
|
||||
|
||||
$box.add($overlay).css({'opacity': 1, cursor: 'auto'}).hide();
|
||||
|
||||
trigger(event_purge);
|
||||
|
||||
$loaded.empty().remove(); // Using empty first may prevent some IE7 issues.
|
||||
|
||||
setTimeout(function () {
|
||||
closing = false;
|
||||
trigger(event_closed, settings.onClosed);
|
||||
}, 1);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// Removes changes ColorBox made to the document, but does not remove the plugin
|
||||
// from jQuery.
|
||||
publicMethod.remove = function () {
|
||||
$([]).add($box).add($overlay).remove();
|
||||
$box = null;
|
||||
$('.' + boxElement)
|
||||
.removeData(colorbox)
|
||||
.removeClass(boxElement);
|
||||
|
||||
$(document).unbind('click.'+prefix);
|
||||
};
|
||||
|
||||
// A method for fetching the current element ColorBox is referencing.
|
||||
// returns a jQuery object.
|
||||
publicMethod.element = function () {
|
||||
return $(element);
|
||||
};
|
||||
|
||||
publicMethod.settings = defaults;
|
||||
|
||||
}(jQuery, document, window));
|
||||
6
modules/lib/colorbox/jquery.colorbox.min.js
vendored
Normal file
520
modules/lib/colorpicker/bootstrap-colorpicker.js
vendored
Normal file
@ -0,0 +1,520 @@
|
||||
/* =========================================================
|
||||
* bootstrap-colorpicker.js
|
||||
* http://www.eyecon.ro/bootstrap-colorpicker
|
||||
* =========================================================
|
||||
* Copyright 2012 Stefan Petre
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* ========================================================= */
|
||||
|
||||
!function( $ ) {
|
||||
|
||||
// Color object
|
||||
|
||||
var Color = function(val) {
|
||||
this.value = {
|
||||
h: 1,
|
||||
s: 1,
|
||||
b: 1,
|
||||
a: 1
|
||||
};
|
||||
this.setColor(val);
|
||||
};
|
||||
|
||||
Color.prototype = {
|
||||
constructor: Color,
|
||||
|
||||
//parse a string to HSB
|
||||
setColor: function(val){
|
||||
val = val.toLowerCase();
|
||||
var that = this;
|
||||
$.each( CPGlobal.stringParsers, function( i, parser ) {
|
||||
var match = parser.re.exec( val ),
|
||||
values = match && parser.parse( match ),
|
||||
space = parser.space||'rgba';
|
||||
if ( values ) {
|
||||
if (space == 'hsla') {
|
||||
that.value = CPGlobal.RGBtoHSB.apply(null, CPGlobal.HSLtoRGB.apply(null, values));
|
||||
} else {
|
||||
that.value = CPGlobal.RGBtoHSB.apply(null, values);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
setHue: function(h) {
|
||||
this.value.h = 1- h;
|
||||
},
|
||||
|
||||
setSaturation: function(s) {
|
||||
this.value.s = s;
|
||||
},
|
||||
|
||||
setLightness: function(b) {
|
||||
this.value.b = 1- b;
|
||||
},
|
||||
|
||||
setAlpha: function(a) {
|
||||
this.value.a = parseInt((1 - a)*100, 10)/100;
|
||||
},
|
||||
|
||||
// HSBtoRGB from RaphaelJS
|
||||
// https://github.com/DmitryBaranovskiy/raphael/
|
||||
toRGB: function(h, s, b, a) {
|
||||
if (!h) {
|
||||
h = this.value.h;
|
||||
s = this.value.s;
|
||||
b = this.value.b;
|
||||
}
|
||||
h *= 360;
|
||||
var R, G, B, X, C;
|
||||
h = (h % 360) / 60;
|
||||
C = b * s;
|
||||
X = C * (1 - Math.abs(h % 2 - 1));
|
||||
R = G = B = b - C;
|
||||
|
||||
h = ~~h;
|
||||
R += [C, X, 0, 0, X, C][h];
|
||||
G += [X, C, C, X, 0, 0][h];
|
||||
B += [0, 0, X, C, C, X][h];
|
||||
return {
|
||||
r: Math.round(R*255),
|
||||
g: Math.round(G*255),
|
||||
b: Math.round(B*255),
|
||||
a: a||this.value.a
|
||||
};
|
||||
},
|
||||
|
||||
toHex: function(h, s, b, a){
|
||||
var rgb = this.toRGB(h, s, b, a);
|
||||
return '#'+((1 << 24) | (parseInt(rgb.r) << 16) | (parseInt(rgb.g) << 8) | parseInt(rgb.b)).toString(16).substr(1);
|
||||
},
|
||||
|
||||
toHSL: function(h, s, b, a){
|
||||
if (!h) {
|
||||
h = this.value.h;
|
||||
s = this.value.s;
|
||||
b = this.value.b;
|
||||
}
|
||||
var H = h,
|
||||
L = (2 - s) * b,
|
||||
S = s * b;
|
||||
if (L > 0 && L <= 1) {
|
||||
S /= L;
|
||||
} else {
|
||||
S /= 2 - L;
|
||||
}
|
||||
L /= 2;
|
||||
if (S > 1) {
|
||||
S = 1;
|
||||
}
|
||||
return {
|
||||
h: H,
|
||||
s: S,
|
||||
l: L,
|
||||
a: a||this.value.a
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
// Picker object
|
||||
|
||||
var Colorpicker = function(element, options){
|
||||
this.element = $(element);
|
||||
var format = options.format||this.element.data('color-format')||'hex';
|
||||
this.format = CPGlobal.translateFormats[format];
|
||||
this.isInput = this.element.is('input');
|
||||
this.component = this.element.is('.color') ? this.element.find('.add-on') : false;
|
||||
|
||||
this.picker = $(CPGlobal.template)
|
||||
.appendTo('body')
|
||||
.on('mousedown', $.proxy(this.mousedown, this));
|
||||
|
||||
if (this.isInput) {
|
||||
this.element.on({
|
||||
'focus': $.proxy(this.show, this),
|
||||
'keyup': $.proxy(this.update, this)
|
||||
});
|
||||
} else if (this.component){
|
||||
this.component.on({
|
||||
'click': $.proxy(this.show, this)
|
||||
});
|
||||
} else {
|
||||
this.element.on({
|
||||
'click': $.proxy(this.show, this)
|
||||
});
|
||||
}
|
||||
if (format == 'rgba' || format == 'hsla') {
|
||||
this.picker.addClass('alpha');
|
||||
this.alpha = this.picker.find('.colorpicker-alpha')[0].style;
|
||||
}
|
||||
|
||||
if (this.component){
|
||||
this.picker.find('.colorpicker-color').hide();
|
||||
this.preview = this.element.find('i')[0].style;
|
||||
} else {
|
||||
this.preview = this.picker.find('div:last')[0].style;
|
||||
}
|
||||
|
||||
this.base = this.picker.find('div:first')[0].style;
|
||||
this.update();
|
||||
};
|
||||
|
||||
Colorpicker.prototype = {
|
||||
constructor: Colorpicker,
|
||||
|
||||
show: function(e) {
|
||||
this.picker.show();
|
||||
this.height = this.component ? this.component.outerHeight() : this.element.outerHeight();
|
||||
this.place();
|
||||
$(window).on('resize', $.proxy(this.place, this));
|
||||
if (!this.isInput) {
|
||||
if (e) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
$(document).on({
|
||||
'mousedown': $.proxy(this.hide, this)
|
||||
});
|
||||
this.element.trigger({
|
||||
type: 'show',
|
||||
color: this.color
|
||||
});
|
||||
},
|
||||
|
||||
update: function(){
|
||||
this.color = new Color(this.isInput ? this.element.prop('value') : this.element.data('color'));
|
||||
this.picker.find('i')
|
||||
.eq(0).css({left: this.color.value.s*100, top: 100 - this.color.value.b*100}).end()
|
||||
.eq(1).css('top', 100 * (1 - this.color.value.h)).end()
|
||||
.eq(2).css('top', 100 * (1 - this.color.value.a));
|
||||
this.previewColor();
|
||||
},
|
||||
|
||||
hide: function(){
|
||||
this.picker.hide();
|
||||
$(window).off('resize', this.place);
|
||||
if (!this.isInput) {
|
||||
$(document).off({
|
||||
'mousedown': this.hide
|
||||
});
|
||||
if (this.component){
|
||||
this.element.find('input').prop('value', this.format.call(this));
|
||||
}
|
||||
this.element.data('color', this.format.call(this));
|
||||
} else {
|
||||
this.element.prop('value', this.format.call(this));
|
||||
}
|
||||
this.element.trigger({
|
||||
type: 'hide',
|
||||
color: this.color
|
||||
});
|
||||
},
|
||||
|
||||
place: function(){
|
||||
var offset = this.component ? this.component.offset() : this.element.offset();
|
||||
this.picker.css({
|
||||
top: offset.top + this.height,
|
||||
left: offset.left
|
||||
});
|
||||
},
|
||||
|
||||
//preview color change
|
||||
previewColor: function(){
|
||||
this.preview.backgroundColor = this.format.call(this);
|
||||
//set the color for brightness/saturation slider
|
||||
this.base.backgroundColor = this.color.toHex(this.color.value.h, 1, 1, 1);
|
||||
//set te color for alpha slider
|
||||
if (this.alpha) {
|
||||
this.alpha.backgroundColor = this.color.toHex();
|
||||
}
|
||||
},
|
||||
|
||||
pointer: null,
|
||||
|
||||
slider: null,
|
||||
|
||||
mousedown: function(e){
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
|
||||
var target = $(e.target);
|
||||
|
||||
//detect the slider and set the limits and callbacks
|
||||
var zone = target.closest('div');
|
||||
if (!zone.is('.colorpicker')) {
|
||||
if (zone.is('.colorpicker-saturation')) {
|
||||
this.slider = $.extend({}, CPGlobal.sliders['saturation']);
|
||||
}
|
||||
else if (zone.is('.colorpicker-hue')) {
|
||||
this.slider = $.extend({}, CPGlobal.sliders['hue']);
|
||||
}
|
||||
else if (zone.is('.colorpicker-alpha')) {
|
||||
this.slider = $.extend({}, CPGlobal.sliders['alpha']);
|
||||
}
|
||||
var offset = zone.offset();
|
||||
//reference to knob's style
|
||||
this.slider.knob = zone.find('i')[0].style;
|
||||
this.slider.left = e.pageX - offset.left;
|
||||
this.slider.top = e.pageY - offset.top;
|
||||
this.pointer = {
|
||||
left: e.pageX,
|
||||
top: e.pageY
|
||||
};
|
||||
//trigger mousemove to move the knob to the current position
|
||||
$(document).on({
|
||||
mousemove: $.proxy(this.mousemove, this),
|
||||
mouseup: $.proxy(this.mouseup, this)
|
||||
}).trigger('mousemove');
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
mousemove: function(e){
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
var left = Math.max(
|
||||
0,
|
||||
Math.min(
|
||||
this.slider.maxLeft,
|
||||
this.slider.left + ((e.pageX||this.pointer.left) - this.pointer.left)
|
||||
)
|
||||
);
|
||||
var top = Math.max(
|
||||
0,
|
||||
Math.min(
|
||||
this.slider.maxTop,
|
||||
this.slider.top + ((e.pageY||this.pointer.top) - this.pointer.top)
|
||||
)
|
||||
);
|
||||
this.slider.knob.left = left + 'px';
|
||||
this.slider.knob.top = top + 'px';
|
||||
if (this.slider.callLeft) {
|
||||
this.color[this.slider.callLeft].call(this.color, left/100);
|
||||
}
|
||||
if (this.slider.callTop) {
|
||||
this.color[this.slider.callTop].call(this.color, top/100);
|
||||
}
|
||||
this.previewColor();
|
||||
this.element.trigger({
|
||||
type: 'changeColor',
|
||||
color: this.color
|
||||
});
|
||||
return false;
|
||||
},
|
||||
|
||||
mouseup: function(e){
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
$(document).off({
|
||||
mousemove: this.mousemove,
|
||||
mouseup: this.mouseup
|
||||
});
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
$.fn.colorpicker = function ( option ) {
|
||||
return this.each(function () {
|
||||
var $this = $(this),
|
||||
data = $this.data('colorpicker'),
|
||||
options = typeof option == 'object' && option;
|
||||
if (!data) {
|
||||
$this.data('colorpicker', (data = new Colorpicker(this, $.extend({}, $.fn.colorpicker.defaults,options))));
|
||||
}
|
||||
if (typeof option == 'string') data[option]();
|
||||
});
|
||||
};
|
||||
|
||||
$.fn.colorpicker.defaults = {
|
||||
};
|
||||
|
||||
$.fn.colorpicker.Constructor = Colorpicker;
|
||||
|
||||
var CPGlobal = {
|
||||
|
||||
// translate a format from Color object to a string
|
||||
translateFormats: {
|
||||
'rgb': function(){
|
||||
var rgb = this.color.toRGB();
|
||||
return 'rgb('+rgb.r+','+rgb.g+','+rgb.b+')';
|
||||
},
|
||||
|
||||
'rgba': function(){
|
||||
var rgb = this.color.toRGB();
|
||||
return 'rgba('+rgb.r+','+rgb.g+','+rgb.b+','+rgb.a+')';
|
||||
},
|
||||
|
||||
'hsl': function(){
|
||||
var hsl = this.color.toHSL();
|
||||
return 'hsl('+Math.round(hsl.h*360)+','+Math.round(hsl.s*100)+'%,'+Math.round(hsl.l*100)+'%)';
|
||||
},
|
||||
|
||||
'hsla': function(){
|
||||
var hsl = this.color.toHSL();
|
||||
return 'hsla('+Math.round(hsl.h*360)+','+Math.round(hsl.s*100)+'%,'+Math.round(hsl.l*100)+'%,'+hsl.a+')';
|
||||
},
|
||||
|
||||
'hex': function(){
|
||||
return this.color.toHex();
|
||||
}
|
||||
},
|
||||
|
||||
sliders: {
|
||||
saturation: {
|
||||
maxLeft: 100,
|
||||
maxTop: 100,
|
||||
callLeft: 'setSaturation',
|
||||
callTop: 'setLightness'
|
||||
},
|
||||
|
||||
hue: {
|
||||
maxLeft: 0,
|
||||
maxTop: 100,
|
||||
callLeft: false,
|
||||
callTop: 'setHue'
|
||||
},
|
||||
|
||||
alpha: {
|
||||
maxLeft: 0,
|
||||
maxTop: 100,
|
||||
callLeft: false,
|
||||
callTop: 'setAlpha'
|
||||
}
|
||||
},
|
||||
|
||||
// HSBtoRGB from RaphaelJS
|
||||
// https://github.com/DmitryBaranovskiy/raphael/
|
||||
RGBtoHSB: function (r, g, b, a){
|
||||
r /= 255;
|
||||
g /= 255;
|
||||
b /= 255;
|
||||
|
||||
var H, S, V, C;
|
||||
V = Math.max(r, g, b);
|
||||
C = V - Math.min(r, g, b);
|
||||
H = (C == 0 ? null :
|
||||
V == r ? (g - b) / C :
|
||||
V == g ? (b - r) / C + 2 :
|
||||
(r - g) / C + 4
|
||||
);
|
||||
H = ((H + 360) % 6) * 60 / 360;
|
||||
S = C == 0 ? 0 : C / V;
|
||||
return {h: H||1, s: S, b: V, a: a||1};
|
||||
},
|
||||
|
||||
HueToRGB: function (p, q, h) {
|
||||
if (h < 0)
|
||||
h += 1;
|
||||
else if (h > 1)
|
||||
h -= 1;
|
||||
|
||||
if ((h * 6) < 1)
|
||||
return p + (q - p) * h * 6;
|
||||
else if ((h * 2) < 1)
|
||||
return q;
|
||||
else if ((h * 3) < 2)
|
||||
return p + (q - p) * ((2 / 3) - h) * 6;
|
||||
else
|
||||
return p;
|
||||
},
|
||||
|
||||
HSLtoRGB: function (h, s, l, a)
|
||||
{
|
||||
|
||||
if (s < 0)
|
||||
s = 0;
|
||||
|
||||
if (l <= 0.5)
|
||||
var q = l * (1 + s);
|
||||
else
|
||||
var q = l + s - (l * s);
|
||||
|
||||
var p = 2 * l - q;
|
||||
|
||||
var tr = h + (1 / 3);
|
||||
var tg = h;
|
||||
var tb = h - (1 / 3);
|
||||
|
||||
var r = Math.round(CPGlobal.HueToRGB(p, q, tr) * 255);
|
||||
var g = Math.round(CPGlobal.HueToRGB(p, q, tg) * 255);
|
||||
var b = Math.round(CPGlobal.HueToRGB(p, q, tb) * 255);
|
||||
return [r, g, b, a||1];
|
||||
},
|
||||
|
||||
// a set of RE's that can match strings and generate color tuples.
|
||||
// from John Resig color plugin
|
||||
// https://github.com/jquery/jquery-color/
|
||||
stringParsers: [
|
||||
{
|
||||
re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,
|
||||
parse: function( execResult ) {
|
||||
return [
|
||||
execResult[ 1 ],
|
||||
execResult[ 2 ],
|
||||
execResult[ 3 ],
|
||||
execResult[ 4 ]
|
||||
];
|
||||
}
|
||||
}, {
|
||||
re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,
|
||||
parse: function( execResult ) {
|
||||
return [
|
||||
2.55 * execResult[1],
|
||||
2.55 * execResult[2],
|
||||
2.55 * execResult[3],
|
||||
execResult[ 4 ]
|
||||
];
|
||||
}
|
||||
}, {
|
||||
re: /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,
|
||||
parse: function( execResult ) {
|
||||
return [
|
||||
parseInt( execResult[ 1 ], 16 ),
|
||||
parseInt( execResult[ 2 ], 16 ),
|
||||
parseInt( execResult[ 3 ], 16 )
|
||||
];
|
||||
}
|
||||
}, {
|
||||
re: /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/,
|
||||
parse: function( execResult ) {
|
||||
return [
|
||||
parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ),
|
||||
parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ),
|
||||
parseInt( execResult[ 3 ] + execResult[ 3 ], 16 )
|
||||
];
|
||||
}
|
||||
}, {
|
||||
re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,
|
||||
space: 'hsla',
|
||||
parse: function( execResult ) {
|
||||
return [
|
||||
execResult[1]/360,
|
||||
execResult[2] / 100,
|
||||
execResult[3] / 100,
|
||||
execResult[4]
|
||||
];
|
||||
}
|
||||
}
|
||||
],
|
||||
template: '<div class="colorpicker dropdown-menu">'+
|
||||
'<div class="colorpicker-saturation"><i><b></b></i></div>'+
|
||||
'<div class="colorpicker-hue"><i></i></div>'+
|
||||
'<div class="colorpicker-alpha"><i></i></div>'+
|
||||
'<div class="colorpicker-color"><div /></div>'+
|
||||
'</div>'
|
||||
};
|
||||
|
||||
}( window.jQuery )
|
||||
157
modules/lib/complexify/jquery.complexify.js
Normal file
@ -0,0 +1,157 @@
|
||||
/*
|
||||
http://github.com/danpalmer/jquery.complexify.js
|
||||
|
||||
This code is distributed under the WTFPL v2:
|
||||
*/
|
||||
(function ($) {
|
||||
|
||||
$.fn.extend({
|
||||
complexify: function(options, callback) {
|
||||
|
||||
var MIN_COMPLEXITY = 49; // 12 chars with Upper, Lower and Number
|
||||
var MAX_COMPLEXITY = 120; // 25 chars, all charsets
|
||||
var CHARSETS = [
|
||||
// Commonly Used
|
||||
////////////////////
|
||||
[0x0030, 0x0039], // Numbers
|
||||
[0x0041, 0x005A], // Uppercase
|
||||
[0x0061, 0x007A], // Lowercase
|
||||
[0x0021, 0x002F], // Punctuation
|
||||
[0x003A, 0x0040], // Punctuation
|
||||
[0x005B, 0x0060], // Punctuation
|
||||
[0x007B, 0x007E], // Punctuation
|
||||
// Everything Else
|
||||
////////////////////
|
||||
[0x0080, 0x00FF], // Latin-1 Supplement
|
||||
[0x0100, 0x017F], // Latin Extended-A
|
||||
[0x0180, 0x024F], // Latin Extended-B
|
||||
[0x0250, 0x02AF], // IPA Extensions
|
||||
[0x02B0, 0x02FF], // Spacing Modifier Letters
|
||||
[0x0300, 0x036F], // Combining Diacritical Marks
|
||||
[0x0370, 0x03FF], // Greek
|
||||
[0x0400, 0x04FF], // Cyrillic
|
||||
[0x0530, 0x058F], // Armenian
|
||||
[0x0590, 0x05FF], // Hebrew
|
||||
[0x0600, 0x06FF], // Arabic
|
||||
[0x0700, 0x074F], // Syriac
|
||||
[0x0780, 0x07BF], // Thaana
|
||||
[0x0900, 0x097F], // Devanagari
|
||||
[0x0980, 0x09FF], // Bengali
|
||||
[0x0A00, 0x0A7F], // Gurmukhi
|
||||
[0x0A80, 0x0AFF], // Gujarati
|
||||
[0x0B00, 0x0B7F], // Oriya
|
||||
[0x0B80, 0x0BFF], // Tamil
|
||||
[0x0C00, 0x0C7F], // Telugu
|
||||
[0x0C80, 0x0CFF], // Kannada
|
||||
[0x0D00, 0x0D7F], // Malayalam
|
||||
[0x0D80, 0x0DFF], // Sinhala
|
||||
[0x0E00, 0x0E7F], // Thai
|
||||
[0x0E80, 0x0EFF], // Lao
|
||||
[0x0F00, 0x0FFF], // Tibetan
|
||||
[0x1000, 0x109F], // Myanmar
|
||||
[0x10A0, 0x10FF], // Georgian
|
||||
[0x1100, 0x11FF], // Hangul Jamo
|
||||
[0x1200, 0x137F], // Ethiopic
|
||||
[0x13A0, 0x13FF], // Cherokee
|
||||
[0x1400, 0x167F], // Unified Canadian Aboriginal Syllabics
|
||||
[0x1680, 0x169F], // Ogham
|
||||
[0x16A0, 0x16FF], // Runic
|
||||
[0x1780, 0x17FF], // Khmer
|
||||
[0x1800, 0x18AF], // Mongolian
|
||||
[0x1E00, 0x1EFF], // Latin Extended Additional
|
||||
[0x1F00, 0x1FFF], // Greek Extended
|
||||
[0x2000, 0x206F], // General Punctuation
|
||||
[0x2070, 0x209F], // Superscripts and Subscripts
|
||||
[0x20A0, 0x20CF], // Currency Symbols
|
||||
[0x20D0, 0x20FF], // Combining Marks for Symbols
|
||||
[0x2100, 0x214F], // Letterlike Symbols
|
||||
[0x2150, 0x218F], // Number Forms
|
||||
[0x2190, 0x21FF], // Arrows
|
||||
[0x2200, 0x22FF], // Mathematical Operators
|
||||
[0x2300, 0x23FF], // Miscellaneous Technical
|
||||
[0x2400, 0x243F], // Control Pictures
|
||||
[0x2440, 0x245F], // Optical Character Recognition
|
||||
[0x2460, 0x24FF], // Enclosed Alphanumerics
|
||||
[0x2500, 0x257F], // Box Drawing
|
||||
[0x2580, 0x259F], // Block Elements
|
||||
[0x25A0, 0x25FF], // Geometric Shapes
|
||||
[0x2600, 0x26FF], // Miscellaneous Symbols
|
||||
[0x2700, 0x27BF], // Dingbats
|
||||
[0x2800, 0x28FF], // Braille Patterns
|
||||
[0x2E80, 0x2EFF], // CJK Radicals Supplement
|
||||
[0x2F00, 0x2FDF], // Kangxi Radicals
|
||||
[0x2FF0, 0x2FFF], // Ideographic Description Characters
|
||||
[0x3000, 0x303F], // CJK Symbols and Punctuation
|
||||
[0x3040, 0x309F], // Hiragana
|
||||
[0x30A0, 0x30FF], // Katakana
|
||||
[0x3100, 0x312F], // Bopomofo
|
||||
[0x3130, 0x318F], // Hangul Compatibility Jamo
|
||||
[0x3190, 0x319F], // Kanbun
|
||||
[0x31A0, 0x31BF], // Bopomofo Extended
|
||||
[0x3200, 0x32FF], // Enclosed CJK Letters and Months
|
||||
[0x3300, 0x33FF], // CJK Compatibility
|
||||
[0x3400, 0x4DB5], // CJK Unified Ideographs Extension A
|
||||
[0x4E00, 0x9FFF], // CJK Unified Ideographs
|
||||
[0xA000, 0xA48F], // Yi Syllables
|
||||
[0xA490, 0xA4CF], // Yi Radicals
|
||||
[0xAC00, 0xD7A3], // Hangul Syllables
|
||||
[0xD800, 0xDB7F], // High Surrogates
|
||||
[0xDB80, 0xDBFF], // High Private Use Surrogates
|
||||
[0xDC00, 0xDFFF], // Low Surrogates
|
||||
[0xE000, 0xF8FF], // Private Use
|
||||
[0xF900, 0xFAFF], // CJK Compatibility Ideographs
|
||||
[0xFB00, 0xFB4F], // Alphabetic Presentation Forms
|
||||
[0xFB50, 0xFDFF], // Arabic Presentation Forms-A
|
||||
[0xFE20, 0xFE2F], // Combining Half Marks
|
||||
[0xFE30, 0xFE4F], // CJK Compatibility Forms
|
||||
[0xFE50, 0xFE6F], // Small Form Variants
|
||||
[0xFE70, 0xFEFE], // Arabic Presentation Forms-B
|
||||
[0xFEFF, 0xFEFF], // Specials
|
||||
[0xFF00, 0xFFEF], // Halfwidth and Fullwidth Forms
|
||||
[0xFFF0, 0xFFFD] // Specials
|
||||
];
|
||||
|
||||
var defaults = {
|
||||
minimumChars: 8,
|
||||
strengthScaleFactor: 1
|
||||
};
|
||||
if($.isFunction(options) && !callback) {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options = $.extend(defaults, options);
|
||||
|
||||
function additionalComplexityForCharset(str, charset) {
|
||||
for (var i = str.length - 1; i >= 0; i--) {
|
||||
if (charset[0] <= str.charCodeAt(i) && str.charCodeAt(i) <= charset[1]) {
|
||||
return charset[1] - charset[0] + 1;
|
||||
};
|
||||
}; return 0;
|
||||
};
|
||||
|
||||
return this.each(function () {
|
||||
$(this).keyup(function () {
|
||||
var password = $(this).val();
|
||||
var complexity = 0, valid = false;
|
||||
|
||||
for (var i = CHARSETS.length - 1; i >= 0; i--) {
|
||||
complexity += additionalComplexityForCharset(password, CHARSETS[i]);
|
||||
}
|
||||
|
||||
// Use natural log to produce linear scale
|
||||
complexity = Math.log(Math.pow(complexity, password.length)) * (1/options.strengthScaleFactor);
|
||||
|
||||
valid = (complexity > MIN_COMPLEXITY && password.length >= options.minimumChars);
|
||||
|
||||
// Scale to percentage, so it can be used for a progress bar
|
||||
complexity = (complexity / MAX_COMPLEXITY) * 100;
|
||||
complexity = (complexity > 100) ? 100 : complexity;
|
||||
|
||||
callback.call(this, valid, complexity);
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
9
modules/lib/complexify/jquery.complexify.min.js
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
/*
|
||||
http://github.com/danpalmer/jquery.complexify.js
|
||||
This code is distributed under the WTFPL v2:
|
||||
*/
|
||||
(function($){$.fn.extend({complexify:function(options,callback){var MIN_COMPLEXITY=49;var MAX_COMPLEXITY=120;var CHARSETS=[[48,57],[65,90],[97,122],[33,47],[58,64],[91,96],[123,126],[128,255],[256,383],[384,591],[592,687],[688,767],[768,879],[880,1023],[1024,1279],[1328,1423],[1424,1535],[1536,1791],[1792,1871],[1920,1983],[2304,2431],[2432,2559],[2560,2687],[2688,2815],[2816,2943],[2944,3071],[3072,3199],[3200,3327],[3328,3455],[3456,3583],[3584,3711],[3712,3839],[3840,4095],[4096,4255],[4256,4351],
|
||||
[4352,4607],[4608,4991],[5024,5119],[5120,5759],[5760,5791],[5792,5887],[6016,6143],[6144,6319],[7680,7935],[7936,8191],[8192,8303],[8304,8351],[8352,8399],[8400,8447],[8448,8527],[8528,8591],[8592,8703],[8704,8959],[8960,9215],[9216,9279],[9280,9311],[9312,9471],[9472,9599],[9600,9631],[9632,9727],[9728,9983],[9984,10175],[10240,10495],[11904,12031],[12032,12255],[12272,12287],[12288,12351],[12352,12447],[12448,12543],[12544,12591],[12592,12687],[12688,12703],[12704,12735],[12800,13055],[13056,13311],
|
||||
[13312,19893],[19968,40959],[40960,42127],[42128,42191],[44032,55203],[55296,56191],[56192,56319],[56320,57343],[57344,63743],[63744,64255],[64256,64335],[64336,65023],[65056,65071],[65072,65103],[65104,65135],[65136,65278],[65279,65279],[65280,65519],[65520,65533]];var defaults={minimumChars:8,strengthScaleFactor:1};if($.isFunction(options)&&!callback){callback=options;options={}}options=$.extend(defaults,options);function additionalComplexityForCharset(str,charset){for(var i=str.length-1;i>=0;i--)if(charset[0]<=
|
||||
str.charCodeAt(i)&&str.charCodeAt(i)<=charset[1])return charset[1]-charset[0]+1;return 0}return this.each(function(){$(this).keyup(function(){var password=$(this).val();var complexity=0,valid=false;for(var i=CHARSETS.length-1;i>=0;i--)complexity+=additionalComplexityForCharset(password,CHARSETS[i]);complexity=Math.log(Math.pow(complexity,password.length))*(1/options.strengthScaleFactor);valid=complexity>MIN_COMPLEXITY&&password.length>=options.minimumChars;complexity=complexity/
|
||||
MAX_COMPLEXITY*100;complexity=complexity>100?100:complexity;callback.call(this,valid,complexity)})})}})})(jQuery);
|
||||
11
modules/lib/datatables/Readme.txt
Normal file
@ -0,0 +1,11 @@
|
||||
This DataTables plugin (v1.9.x) for jQuery was developed out of the desire to allow highly configurable access to HTML tables with advanced access features.
|
||||
|
||||
For detailed installation, usage and API instructions, please refer to the DataTables web-pages: http://www.datatables.net
|
||||
|
||||
Questions, feature requests and bug reports (etc) can all be asked on the DataTables forums: http://www.datatables.net/forums/
|
||||
|
||||
The DataTables source can be found in the media/js/ directory of this archive.
|
||||
|
||||
DataTables is released with dual licensing, using the GPL v2 (license-gpl2.txt) and an BSD style license (license-bsd.txt). You may select which of the two licenses you wish to use DataTables under. Please see the corresponding license file for details of these licenses. You are free to use, modify and distribute this software, but all copyright information must remain.
|
||||
|
||||
If you discover any bugs in DataTables, have any suggestions for improvements or even if you just like using it, please free to get in touch with me: www.datatables.net/contact
|
||||
233
modules/lib/datatables/jquery.dataTables.bootstrap.min.js
vendored
Normal file
@ -0,0 +1,233 @@
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, $.fn.dataTable.defaults, {
|
||||
"sDom": "<'dt-top-row'lf>r<'dt-wrapper't><'dt-row dt-bottom-row'ip>",
|
||||
"sPaginationType": "bootstrap",
|
||||
"oLanguage": {
|
||||
"sLengthMenu": "_MENU_",
|
||||
"sSearch": "_INPUT_"
|
||||
}
|
||||
} );
|
||||
|
||||
|
||||
/* Default class modification */
|
||||
$.extend( $.fn.dataTableExt.oStdClasses, {
|
||||
"sWrapper": "dataTables_wrapper form-inline"
|
||||
} );
|
||||
|
||||
|
||||
/* API method to get paging information */
|
||||
$.fn.dataTableExt.oApi.fnPagingInfo = function ( oSettings )
|
||||
{
|
||||
return {
|
||||
"iStart": oSettings._iDisplayStart,
|
||||
"iEnd": oSettings.fnDisplayEnd(),
|
||||
"iLength": oSettings._iDisplayLength,
|
||||
"iTotal": oSettings.fnRecordsTotal(),
|
||||
"iFilteredTotal": oSettings.fnRecordsDisplay(),
|
||||
"iPage": Math.ceil( oSettings._iDisplayStart / oSettings._iDisplayLength ),
|
||||
"iTotalPages": Math.ceil( oSettings.fnRecordsDisplay() / oSettings._iDisplayLength )
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
/* Bootstrap style pagination control */
|
||||
$.extend( $.fn.dataTableExt.oPagination, {
|
||||
"bootstrap": {
|
||||
"fnInit": function( oSettings, nPaging, fnDraw ) {
|
||||
var oLang = oSettings.oLanguage.oPaginate;
|
||||
var fnClickHandler = function ( e ) {
|
||||
e.preventDefault();
|
||||
if ( oSettings.oApi._fnPageChange(oSettings, e.data.action) ) {
|
||||
fnDraw( oSettings );
|
||||
}
|
||||
};
|
||||
|
||||
$(nPaging).addClass('pagination').append(
|
||||
'<ul>'+
|
||||
'<li class="prev disabled"><a href="#">'+oLang.sPrevious+'</a></li>'+
|
||||
'<li class="next disabled"><a href="#">'+oLang.sNext+'</a></li>'+
|
||||
'</ul>'
|
||||
);
|
||||
var els = $('a', nPaging);
|
||||
$(els[0]).bind( 'click.DT', { action: "previous" }, fnClickHandler );
|
||||
$(els[1]).bind( 'click.DT', { action: "next" }, fnClickHandler );
|
||||
},
|
||||
|
||||
"fnUpdate": function ( oSettings, fnDraw ) {
|
||||
var iListLength = 5;
|
||||
var oPaging = oSettings.oInstance.fnPagingInfo();
|
||||
var an = oSettings.aanFeatures.p;
|
||||
var i, j, sClass, iStart, iEnd, iHalf=Math.floor(iListLength/2);
|
||||
|
||||
if ( oPaging.iTotalPages < iListLength) {
|
||||
iStart = 1;
|
||||
iEnd = oPaging.iTotalPages;
|
||||
}
|
||||
else if ( oPaging.iPage <= iHalf ) {
|
||||
iStart = 1;
|
||||
iEnd = iListLength;
|
||||
} else if ( oPaging.iPage >= (oPaging.iTotalPages-iHalf) ) {
|
||||
iStart = oPaging.iTotalPages - iListLength + 1;
|
||||
iEnd = oPaging.iTotalPages;
|
||||
} else {
|
||||
iStart = oPaging.iPage - iHalf + 1;
|
||||
iEnd = iStart + iListLength - 1;
|
||||
}
|
||||
|
||||
for ( i=0, iLen=an.length ; i<iLen ; i++ ) {
|
||||
// Remove the middle elements
|
||||
$('li:gt(0)', an[i]).filter(':not(:last)').remove();
|
||||
|
||||
// Add the new list items and their event handlers
|
||||
for ( j=iStart ; j<=iEnd ; j++ ) {
|
||||
sClass = (j==oPaging.iPage+1) ? 'class="active"' : '';
|
||||
$('<li '+sClass+'><a href="#">'+j+'</a></li>')
|
||||
.insertBefore( $('li:last', an[i])[0] )
|
||||
.bind('click', function (e) {
|
||||
e.preventDefault();
|
||||
oSettings._iDisplayStart = (parseInt($('a', this).text(),10)-1) * oPaging.iLength;
|
||||
fnDraw( oSettings );
|
||||
} );
|
||||
}
|
||||
|
||||
// Add / remove disabled classes from the static elements
|
||||
if ( oPaging.iPage === 0 ) {
|
||||
$('li:first', an[i]).addClass('disabled');
|
||||
} else {
|
||||
$('li:first', an[i]).removeClass('disabled');
|
||||
}
|
||||
|
||||
if ( oPaging.iPage === oPaging.iTotalPages-1 || oPaging.iTotalPages === 0 ) {
|
||||
$('li:last', an[i]).addClass('disabled');
|
||||
} else {
|
||||
$('li:last', an[i]).removeClass('disabled');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
||||
/* Bootstrap style pagination control */
|
||||
$.extend( $.fn.dataTableExt.oPagination, {
|
||||
"bootstrap_full": {
|
||||
"fnInit": function( oSettings, nPaging, fnDraw ) {
|
||||
var oLang = oSettings.oLanguage.oPaginate;
|
||||
var fnClickHandler = function ( e ) {
|
||||
e.preventDefault();
|
||||
if ( oSettings.oApi._fnPageChange(oSettings, e.data.action) ) {
|
||||
fnDraw( oSettings );
|
||||
}
|
||||
};
|
||||
|
||||
$(nPaging).addClass('pagination').append(
|
||||
'<ul>'+
|
||||
'<li class="first disabled"><a href="#">'+oLang.sFirst+'</a></li>'+
|
||||
'<li class="prev disabled"><a href="#">'+oLang.sPrevious+'</a></li>'+
|
||||
'<li class="next disabled"><a href="#">'+oLang.sNext+'</a></li>'+
|
||||
'<li class="last disabled"><a href="#">'+oLang.sLast+'</a></li>'+
|
||||
'</ul>'
|
||||
);
|
||||
var els = $('a', nPaging);
|
||||
$(els[0]).bind( 'click.DT', { action: "first" }, fnClickHandler );
|
||||
$(els[1]).bind( 'click.DT', { action: "previous" }, fnClickHandler );
|
||||
$(els[2]).bind( 'click.DT', { action: "next" }, fnClickHandler );
|
||||
$(els[3]).bind( 'click.DT', { action: "last" }, fnClickHandler );
|
||||
},
|
||||
|
||||
"fnUpdate": function ( oSettings, fnDraw ) {
|
||||
var iListLength = 5;
|
||||
var oPaging = oSettings.oInstance.fnPagingInfo();
|
||||
var an = oSettings.aanFeatures.p;
|
||||
var i, j, sClass, iStart, iEnd, iHalf=Math.floor(iListLength/2);
|
||||
|
||||
if ( oPaging.iTotalPages < iListLength) {
|
||||
iStart = 1;
|
||||
iEnd = oPaging.iTotalPages;
|
||||
}
|
||||
else if ( oPaging.iPage <= iHalf ) {
|
||||
iStart = 1;
|
||||
iEnd = iListLength;
|
||||
} else if ( oPaging.iPage >= (oPaging.iTotalPages-iHalf) ) {
|
||||
iStart = oPaging.iTotalPages - iListLength + 1;
|
||||
iEnd = oPaging.iTotalPages;
|
||||
} else {
|
||||
iStart = oPaging.iPage - iHalf + 1;
|
||||
iEnd = iStart + iListLength - 1;
|
||||
}
|
||||
|
||||
for ( i=0, iLen=an.length ; i<iLen ; i++ ) {
|
||||
// Remove the middle elements
|
||||
$('li', an[i]).filter(":not(.first)").filter(":not(.last)").filter(":not(.prev)").filter(":not(.next)").remove();
|
||||
|
||||
// Add the new list items and their event handlers
|
||||
for ( j=iStart ; j<=iEnd ; j++ ) {
|
||||
sClass = (j==oPaging.iPage+1) ? 'class="active"' : '';
|
||||
$('<li '+sClass+'><a href="#">'+j+'</a></li>')
|
||||
.insertBefore( $('li.next', an[i])[0] )
|
||||
.bind('click', function (e) {
|
||||
e.preventDefault();
|
||||
oSettings._iDisplayStart = (parseInt($('a', this).text(),10)-1) * oPaging.iLength;
|
||||
fnDraw( oSettings );
|
||||
} );
|
||||
}
|
||||
|
||||
// Add / remove disabled classes from the static elements
|
||||
if ( oPaging.iPage === 0 ) {
|
||||
$('li.first', an[i]).addClass('disabled');
|
||||
$('li.prev', an[i]).addClass('disabled');
|
||||
} else {
|
||||
$('li.prev', an[i]).removeClass('disabled');
|
||||
$('li.first', an[i]).removeClass('disabled');
|
||||
}
|
||||
|
||||
if ( oPaging.iPage === oPaging.iTotalPages-1 || oPaging.iTotalPages === 0 ) {
|
||||
$('li.last', an[i]).addClass('disabled');
|
||||
$('li.next', an[i]).addClass('disabled');
|
||||
} else {
|
||||
$('li.next', an[i]).removeClass('disabled');
|
||||
$('li.last', an[i]).removeClass('disabled');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
||||
|
||||
/*
|
||||
* TableTools Bootstrap compatibility
|
||||
* Required TableTools 2.1+
|
||||
*/
|
||||
if ( $.fn.DataTable.TableTools ) {
|
||||
// Set the classes that TableTools uses to something suitable for Bootstrap
|
||||
$.extend( true, $.fn.DataTable.TableTools.classes, {
|
||||
"container": "DTTT btn-group",
|
||||
"buttons": {
|
||||
"normal": "btn",
|
||||
"disabled": "disabled"
|
||||
},
|
||||
"collection": {
|
||||
"container": "DTTT_dropdown dropdown-menu",
|
||||
"buttons": {
|
||||
"normal": "",
|
||||
"disabled": "disabled"
|
||||
}
|
||||
},
|
||||
"print": {
|
||||
"info": "DTTT_print_info modal"
|
||||
},
|
||||
"select": {
|
||||
"row": "active"
|
||||
}
|
||||
} );
|
||||
|
||||
// Have the collection use a bootstrap compatible dropdown
|
||||
$.extend( true, $.fn.DataTable.TableTools.DEFAULTS.oTags, {
|
||||
"collection": {
|
||||
"container": "ul",
|
||||
"button": "li",
|
||||
"liner": "a"
|
||||
}
|
||||
} );
|
||||
}
|
||||
|
||||
$.extend($.fn.dataTableExt.oPagination,{bootstrap_alt:{fnInit:function(d,e,b){var c=d.oLanguage.oPaginate,a=function(a){a.preventDefault();d.oApi._fnPageChange(d,a.data.action)&&b(d)};$(e).addClass("pagination").append('<ul><li class="first disabled"><a href="#"><< '+c.sFirst+'</a></li><li class="prev disabled"><a href="#">< '+c.sPrevious+'</a></li><li class="next disabled"><a href="#">'+c.sNext+' ></a></li><li class="last disabled"><a href="#">'+c.sLast+" >></a></li></ul>");e=$("a", e);$(e[0]).bind("click.DT",{action:"first"},a);$(e[1]).bind("click.DT",{action:"previous"},a);$(e[2]).bind("click.DT",{action:"next"},a);$(e[3]).bind("click.DT",{action:"last"},a)},fnUpdate:function(d,e){var b=d.oInstance.fnPagingInfo(),c=d.aanFeatures.p,a,g,i,f,h;a=Math.floor(2.5);5>b.iTotalPages?(f=1,h=b.iTotalPages):b.iPage<=a?(f=1,h=5):b.iPage>=b.iTotalPages-a?(f=b.iTotalPages-5+1,h=b.iTotalPages):(f=b.iPage-a+1,h=f+5-1);a=0;for(iLen=c.length;a<iLen;a++){$("li",c[a]).filter(":not(.first)").filter(":not(.last)").filter(":not(.prev)").filter(":not(.next)").remove(); var j=$(c[a]).find(".next");for(g=f;g<=h;g++)i=g==b.iPage+1?'class="active"':"",$("<li "+i+'><a href="#">'+g+"</a></li>").insertBefore(j).bind("click",function(a){a.preventDefault();d._iDisplayStart=(parseInt($("a",this).text(),10)-1)*b.iLength;e(d)});0===b.iPage?($("li.first",c[a]).addClass("disabled"),$("li.prev",c[a]).addClass("disabled")):($("li.first",c[a]).removeClass("disabled"),$("li.prev",c[a]).removeClass("disabled"));b.iPage===b.iTotalPages-1||0===b.iTotalPages?($("li.next",c[a]).addClass("disabled"), $("li.last",c[a]).addClass("disabled")):($("li.next",c[a]).removeClass("disabled"),$("li.last",c[a]).removeClass("disabled"))}}}});
|
||||
12099
modules/lib/datatables/jquery.dataTables.js
vendored
Normal file
155
modules/lib/datatables/jquery.dataTables.min.js
vendored
Normal file
@ -0,0 +1,155 @@
|
||||
/*
|
||||
* File: jquery.dataTables.min.js
|
||||
* Version: 1.9.4
|
||||
* Author: Allan Jardine (www.sprymedia.co.uk)
|
||||
* Info: www.datatables.net
|
||||
*
|
||||
* Copyright 2008-2012 Allan Jardine, all rights reserved.
|
||||
*
|
||||
* This source file is free software, under either the GPL v2 license or a
|
||||
* BSD style license, available at:
|
||||
* http://datatables.net/license_gpl2
|
||||
* http://datatables.net/license_bsd
|
||||
*
|
||||
* This source file is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
|
||||
*/
|
||||
(function(X,l,n){var L=function(h){var j=function(e){function o(a,b){var c=j.defaults.columns,d=a.aoColumns.length,c=h.extend({},j.models.oColumn,c,{sSortingClass:a.oClasses.sSortable,sSortingClassJUI:a.oClasses.sSortJUI,nTh:b?b:l.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[d],mData:c.mData?c.oDefaults:d});a.aoColumns.push(c);if(a.aoPreSearchCols[d]===n||null===a.aoPreSearchCols[d])a.aoPreSearchCols[d]=h.extend({},j.models.oSearch);else if(c=a.aoPreSearchCols[d],
|
||||
c.bRegex===n&&(c.bRegex=!0),c.bSmart===n&&(c.bSmart=!0),c.bCaseInsensitive===n)c.bCaseInsensitive=!0;m(a,d,null)}function m(a,b,c){var d=a.aoColumns[b];c!==n&&null!==c&&(c.mDataProp&&!c.mData&&(c.mData=c.mDataProp),c.sType!==n&&(d.sType=c.sType,d._bAutoType=!1),h.extend(d,c),p(d,c,"sWidth","sWidthOrig"),c.iDataSort!==n&&(d.aDataSort=[c.iDataSort]),p(d,c,"aDataSort"));var i=d.mRender?Q(d.mRender):null,f=Q(d.mData);d.fnGetData=function(a,b){var c=f(a,b);return d.mRender&&b&&""!==b?i(c,b,a):c};d.fnSetData=
|
||||
L(d.mData);a.oFeatures.bSort||(d.bSortable=!1);!d.bSortable||-1==h.inArray("asc",d.asSorting)&&-1==h.inArray("desc",d.asSorting)?(d.sSortingClass=a.oClasses.sSortableNone,d.sSortingClassJUI=""):-1==h.inArray("asc",d.asSorting)&&-1==h.inArray("desc",d.asSorting)?(d.sSortingClass=a.oClasses.sSortable,d.sSortingClassJUI=a.oClasses.sSortJUI):-1!=h.inArray("asc",d.asSorting)&&-1==h.inArray("desc",d.asSorting)?(d.sSortingClass=a.oClasses.sSortableAsc,d.sSortingClassJUI=a.oClasses.sSortJUIAscAllowed):-1==
|
||||
h.inArray("asc",d.asSorting)&&-1!=h.inArray("desc",d.asSorting)&&(d.sSortingClass=a.oClasses.sSortableDesc,d.sSortingClassJUI=a.oClasses.sSortJUIDescAllowed)}function k(a){if(!1===a.oFeatures.bAutoWidth)return!1;da(a);for(var b=0,c=a.aoColumns.length;b<c;b++)a.aoColumns[b].nTh.style.width=a.aoColumns[b].sWidth}function G(a,b){var c=r(a,"bVisible");return"number"===typeof c[b]?c[b]:null}function R(a,b){var c=r(a,"bVisible"),c=h.inArray(b,c);return-1!==c?c:null}function t(a){return r(a,"bVisible").length}
|
||||
function r(a,b){var c=[];h.map(a.aoColumns,function(a,i){a[b]&&c.push(i)});return c}function B(a){for(var b=j.ext.aTypes,c=b.length,d=0;d<c;d++){var i=b[d](a);if(null!==i)return i}return"string"}function u(a,b){for(var c=b.split(","),d=[],i=0,f=a.aoColumns.length;i<f;i++)for(var g=0;g<f;g++)if(a.aoColumns[i].sName==c[g]){d.push(g);break}return d}function M(a){for(var b="",c=0,d=a.aoColumns.length;c<d;c++)b+=a.aoColumns[c].sName+",";return b.length==d?"":b.slice(0,-1)}function ta(a,b,c,d){var i,f,
|
||||
g,e,w;if(b)for(i=b.length-1;0<=i;i--){var j=b[i].aTargets;h.isArray(j)||D(a,1,"aTargets must be an array of targets, not a "+typeof j);f=0;for(g=j.length;f<g;f++)if("number"===typeof j[f]&&0<=j[f]){for(;a.aoColumns.length<=j[f];)o(a);d(j[f],b[i])}else if("number"===typeof j[f]&&0>j[f])d(a.aoColumns.length+j[f],b[i]);else if("string"===typeof j[f]){e=0;for(w=a.aoColumns.length;e<w;e++)("_all"==j[f]||h(a.aoColumns[e].nTh).hasClass(j[f]))&&d(e,b[i])}}if(c){i=0;for(a=c.length;i<a;i++)d(i,c[i])}}function H(a,
|
||||
b){var c;c=h.isArray(b)?b.slice():h.extend(!0,{},b);var d=a.aoData.length,i=h.extend(!0,{},j.models.oRow);i._aData=c;a.aoData.push(i);for(var f,i=0,g=a.aoColumns.length;i<g;i++)c=a.aoColumns[i],"function"===typeof c.fnRender&&c.bUseRendered&&null!==c.mData?F(a,d,i,S(a,d,i)):F(a,d,i,v(a,d,i)),c._bAutoType&&"string"!=c.sType&&(f=v(a,d,i,"type"),null!==f&&""!==f&&(f=B(f),null===c.sType?c.sType=f:c.sType!=f&&"html"!=c.sType&&(c.sType="string")));a.aiDisplayMaster.push(d);a.oFeatures.bDeferRender||ea(a,
|
||||
d);return d}function ua(a){var b,c,d,i,f,g,e;if(a.bDeferLoading||null===a.sAjaxSource)for(b=a.nTBody.firstChild;b;){if("TR"==b.nodeName.toUpperCase()){c=a.aoData.length;b._DT_RowIndex=c;a.aoData.push(h.extend(!0,{},j.models.oRow,{nTr:b}));a.aiDisplayMaster.push(c);f=b.firstChild;for(d=0;f;){g=f.nodeName.toUpperCase();if("TD"==g||"TH"==g)F(a,c,d,h.trim(f.innerHTML)),d++;f=f.nextSibling}}b=b.nextSibling}i=T(a);d=[];b=0;for(c=i.length;b<c;b++)for(f=i[b].firstChild;f;)g=f.nodeName.toUpperCase(),("TD"==
|
||||
g||"TH"==g)&&d.push(f),f=f.nextSibling;c=0;for(i=a.aoColumns.length;c<i;c++){e=a.aoColumns[c];null===e.sTitle&&(e.sTitle=e.nTh.innerHTML);var w=e._bAutoType,o="function"===typeof e.fnRender,k=null!==e.sClass,n=e.bVisible,m,p;if(w||o||k||!n){g=0;for(b=a.aoData.length;g<b;g++)f=a.aoData[g],m=d[g*i+c],w&&"string"!=e.sType&&(p=v(a,g,c,"type"),""!==p&&(p=B(p),null===e.sType?e.sType=p:e.sType!=p&&"html"!=e.sType&&(e.sType="string"))),e.mRender?m.innerHTML=v(a,g,c,"display"):e.mData!==c&&(m.innerHTML=v(a,
|
||||
g,c,"display")),o&&(p=S(a,g,c),m.innerHTML=p,e.bUseRendered&&F(a,g,c,p)),k&&(m.className+=" "+e.sClass),n?f._anHidden[c]=null:(f._anHidden[c]=m,m.parentNode.removeChild(m)),e.fnCreatedCell&&e.fnCreatedCell.call(a.oInstance,m,v(a,g,c,"display"),f._aData,g,c)}}if(0!==a.aoRowCreatedCallback.length){b=0;for(c=a.aoData.length;b<c;b++)f=a.aoData[b],A(a,"aoRowCreatedCallback",null,[f.nTr,f._aData,b])}}function I(a,b){return b._DT_RowIndex!==n?b._DT_RowIndex:null}function fa(a,b,c){for(var b=J(a,b),d=0,a=
|
||||
a.aoColumns.length;d<a;d++)if(b[d]===c)return d;return-1}function Y(a,b,c,d){for(var i=[],f=0,g=d.length;f<g;f++)i.push(v(a,b,d[f],c));return i}function v(a,b,c,d){var i=a.aoColumns[c];if((c=i.fnGetData(a.aoData[b]._aData,d))===n)return a.iDrawError!=a.iDraw&&null===i.sDefaultContent&&(D(a,0,"Requested unknown parameter "+("function"==typeof i.mData?"{mData function}":"'"+i.mData+"'")+" from the data source for row "+b),a.iDrawError=a.iDraw),i.sDefaultContent;if(null===c&&null!==i.sDefaultContent)c=
|
||||
i.sDefaultContent;else if("function"===typeof c)return c();return"display"==d&&null===c?"":c}function F(a,b,c,d){a.aoColumns[c].fnSetData(a.aoData[b]._aData,d)}function Q(a){if(null===a)return function(){return null};if("function"===typeof a)return function(b,d,i){return a(b,d,i)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("["))){var b=function(a,d,i){var f=i.split("."),g;if(""!==i){var e=0;for(g=f.length;e<g;e++){if(i=f[e].match(U)){f[e]=f[e].replace(U,"");""!==f[e]&&(a=a[f[e]]);
|
||||
g=[];f.splice(0,e+1);for(var f=f.join("."),e=0,h=a.length;e<h;e++)g.push(b(a[e],d,f));a=i[0].substring(1,i[0].length-1);a=""===a?g:g.join(a);break}if(null===a||a[f[e]]===n)return n;a=a[f[e]]}}return a};return function(c,d){return b(c,d,a)}}return function(b){return b[a]}}function L(a){if(null===a)return function(){};if("function"===typeof a)return function(b,d){a(b,"set",d)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("["))){var b=function(a,d,i){var i=i.split("."),f,g,e=0;for(g=
|
||||
i.length-1;e<g;e++){if(f=i[e].match(U)){i[e]=i[e].replace(U,"");a[i[e]]=[];f=i.slice();f.splice(0,e+1);g=f.join(".");for(var h=0,j=d.length;h<j;h++)f={},b(f,d[h],g),a[i[e]].push(f);return}if(null===a[i[e]]||a[i[e]]===n)a[i[e]]={};a=a[i[e]]}a[i[i.length-1].replace(U,"")]=d};return function(c,d){return b(c,d,a)}}return function(b,d){b[a]=d}}function Z(a){for(var b=[],c=a.aoData.length,d=0;d<c;d++)b.push(a.aoData[d]._aData);return b}function ga(a){a.aoData.splice(0,a.aoData.length);a.aiDisplayMaster.splice(0,
|
||||
a.aiDisplayMaster.length);a.aiDisplay.splice(0,a.aiDisplay.length);y(a)}function ha(a,b){for(var c=-1,d=0,i=a.length;d<i;d++)a[d]==b?c=d:a[d]>b&&a[d]--; -1!=c&&a.splice(c,1)}function S(a,b,c){var d=a.aoColumns[c];return d.fnRender({iDataRow:b,iDataColumn:c,oSettings:a,aData:a.aoData[b]._aData,mDataProp:d.mData},v(a,b,c,"display"))}function ea(a,b){var c=a.aoData[b],d;if(null===c.nTr){c.nTr=l.createElement("tr");c.nTr._DT_RowIndex=b;c._aData.DT_RowId&&(c.nTr.id=c._aData.DT_RowId);c._aData.DT_RowClass&&
|
||||
(c.nTr.className=c._aData.DT_RowClass);for(var i=0,f=a.aoColumns.length;i<f;i++){var g=a.aoColumns[i];d=l.createElement(g.sCellType);d.innerHTML="function"===typeof g.fnRender&&(!g.bUseRendered||null===g.mData)?S(a,b,i):v(a,b,i,"display");null!==g.sClass&&(d.className=g.sClass);g.bVisible?(c.nTr.appendChild(d),c._anHidden[i]=null):c._anHidden[i]=d;g.fnCreatedCell&&g.fnCreatedCell.call(a.oInstance,d,v(a,b,i,"display"),c._aData,b,i)}A(a,"aoRowCreatedCallback",null,[c.nTr,c._aData,b])}}function va(a){var b,
|
||||
c,d;if(0!==h("th, td",a.nTHead).length){b=0;for(d=a.aoColumns.length;b<d;b++)if(c=a.aoColumns[b].nTh,c.setAttribute("role","columnheader"),a.aoColumns[b].bSortable&&(c.setAttribute("tabindex",a.iTabIndex),c.setAttribute("aria-controls",a.sTableId)),null!==a.aoColumns[b].sClass&&h(c).addClass(a.aoColumns[b].sClass),a.aoColumns[b].sTitle!=c.innerHTML)c.innerHTML=a.aoColumns[b].sTitle}else{var i=l.createElement("tr");b=0;for(d=a.aoColumns.length;b<d;b++)c=a.aoColumns[b].nTh,c.innerHTML=a.aoColumns[b].sTitle,
|
||||
c.setAttribute("tabindex","0"),null!==a.aoColumns[b].sClass&&h(c).addClass(a.aoColumns[b].sClass),i.appendChild(c);h(a.nTHead).html("")[0].appendChild(i);V(a.aoHeader,a.nTHead)}h(a.nTHead).children("tr").attr("role","row");if(a.bJUI){b=0;for(d=a.aoColumns.length;b<d;b++){c=a.aoColumns[b].nTh;i=l.createElement("div");i.className=a.oClasses.sSortJUIWrapper;h(c).contents().appendTo(i);var f=l.createElement("span");f.className=a.oClasses.sSortIcon;i.appendChild(f);c.appendChild(i)}}if(a.oFeatures.bSort)for(b=
|
||||
0;b<a.aoColumns.length;b++)!1!==a.aoColumns[b].bSortable?ia(a,a.aoColumns[b].nTh,b):h(a.aoColumns[b].nTh).addClass(a.oClasses.sSortableNone);""!==a.oClasses.sFooterTH&&h(a.nTFoot).children("tr").children("th").addClass(a.oClasses.sFooterTH);if(null!==a.nTFoot){c=N(a,null,a.aoFooter);b=0;for(d=a.aoColumns.length;b<d;b++)c[b]&&(a.aoColumns[b].nTf=c[b],a.aoColumns[b].sClass&&h(c[b]).addClass(a.aoColumns[b].sClass))}}function W(a,b,c){var d,i,f,g=[],e=[],h=a.aoColumns.length,j;c===n&&(c=!1);d=0;for(i=
|
||||
b.length;d<i;d++){g[d]=b[d].slice();g[d].nTr=b[d].nTr;for(f=h-1;0<=f;f--)!a.aoColumns[f].bVisible&&!c&&g[d].splice(f,1);e.push([])}d=0;for(i=g.length;d<i;d++){if(a=g[d].nTr)for(;f=a.firstChild;)a.removeChild(f);f=0;for(b=g[d].length;f<b;f++)if(j=h=1,e[d][f]===n){a.appendChild(g[d][f].cell);for(e[d][f]=1;g[d+h]!==n&&g[d][f].cell==g[d+h][f].cell;)e[d+h][f]=1,h++;for(;g[d][f+j]!==n&&g[d][f].cell==g[d][f+j].cell;){for(c=0;c<h;c++)e[d+c][f+j]=1;j++}g[d][f].cell.rowSpan=h;g[d][f].cell.colSpan=j}}}function x(a){var b=
|
||||
A(a,"aoPreDrawCallback","preDraw",[a]);if(-1!==h.inArray(!1,b))E(a,!1);else{var c,d,b=[],i=0,f=a.asStripeClasses.length;c=a.aoOpenRows.length;a.bDrawing=!0;a.iInitDisplayStart!==n&&-1!=a.iInitDisplayStart&&(a._iDisplayStart=a.oFeatures.bServerSide?a.iInitDisplayStart:a.iInitDisplayStart>=a.fnRecordsDisplay()?0:a.iInitDisplayStart,a.iInitDisplayStart=-1,y(a));if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++;else if(a.oFeatures.bServerSide){if(!a.bDestroying&&!wa(a))return}else a.iDraw++;if(0!==a.aiDisplay.length){var g=
|
||||
a._iDisplayStart;d=a._iDisplayEnd;a.oFeatures.bServerSide&&(g=0,d=a.aoData.length);for(;g<d;g++){var e=a.aoData[a.aiDisplay[g]];null===e.nTr&&ea(a,a.aiDisplay[g]);var j=e.nTr;if(0!==f){var o=a.asStripeClasses[i%f];e._sRowStripe!=o&&(h(j).removeClass(e._sRowStripe).addClass(o),e._sRowStripe=o)}A(a,"aoRowCallback",null,[j,a.aoData[a.aiDisplay[g]]._aData,i,g]);b.push(j);i++;if(0!==c)for(e=0;e<c;e++)if(j==a.aoOpenRows[e].nParent){b.push(a.aoOpenRows[e].nTr);break}}}else b[0]=l.createElement("tr"),a.asStripeClasses[0]&&
|
||||
(b[0].className=a.asStripeClasses[0]),c=a.oLanguage,f=c.sZeroRecords,1==a.iDraw&&null!==a.sAjaxSource&&!a.oFeatures.bServerSide?f=c.sLoadingRecords:c.sEmptyTable&&0===a.fnRecordsTotal()&&(f=c.sEmptyTable),c=l.createElement("td"),c.setAttribute("valign","top"),c.colSpan=t(a),c.className=a.oClasses.sRowEmpty,c.innerHTML=ja(a,f),b[i].appendChild(c);A(a,"aoHeaderCallback","header",[h(a.nTHead).children("tr")[0],Z(a),a._iDisplayStart,a.fnDisplayEnd(),a.aiDisplay]);A(a,"aoFooterCallback","footer",[h(a.nTFoot).children("tr")[0],
|
||||
Z(a),a._iDisplayStart,a.fnDisplayEnd(),a.aiDisplay]);i=l.createDocumentFragment();c=l.createDocumentFragment();if(a.nTBody){f=a.nTBody.parentNode;c.appendChild(a.nTBody);if(!a.oScroll.bInfinite||!a._bInitComplete||a.bSorted||a.bFiltered)for(;c=a.nTBody.firstChild;)a.nTBody.removeChild(c);c=0;for(d=b.length;c<d;c++)i.appendChild(b[c]);a.nTBody.appendChild(i);null!==f&&f.appendChild(a.nTBody)}A(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=!1;a.oFeatures.bServerSide&&(E(a,!1),
|
||||
a._bInitComplete||$(a))}}function aa(a){a.oFeatures.bSort?O(a,a.oPreviousSearch):a.oFeatures.bFilter?K(a,a.oPreviousSearch):(y(a),x(a))}function xa(a){var b=h("<div></div>")[0];a.nTable.parentNode.insertBefore(b,a.nTable);a.nTableWrapper=h('<div id="'+a.sTableId+'_wrapper" class="'+a.oClasses.sWrapper+'" role="grid"></div>')[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var c=a.nTableWrapper,d=a.sDom.split(""),i,f,g,e,w,o,k,m=0;m<d.length;m++){f=0;g=d[m];if("<"==g){e=h("<div></div>")[0];w=d[m+
|
||||
1];if("'"==w||'"'==w){o="";for(k=2;d[m+k]!=w;)o+=d[m+k],k++;"H"==o?o=a.oClasses.sJUIHeader:"F"==o&&(o=a.oClasses.sJUIFooter);-1!=o.indexOf(".")?(w=o.split("."),e.id=w[0].substr(1,w[0].length-1),e.className=w[1]):"#"==o.charAt(0)?e.id=o.substr(1,o.length-1):e.className=o;m+=k}c.appendChild(e);c=e}else if(">"==g)c=c.parentNode;else if("l"==g&&a.oFeatures.bPaginate&&a.oFeatures.bLengthChange)i=ya(a),f=1;else if("f"==g&&a.oFeatures.bFilter)i=za(a),f=1;else if("r"==g&&a.oFeatures.bProcessing)i=Aa(a),f=
|
||||
1;else if("t"==g)i=Ba(a),f=1;else if("i"==g&&a.oFeatures.bInfo)i=Ca(a),f=1;else if("p"==g&&a.oFeatures.bPaginate)i=Da(a),f=1;else if(0!==j.ext.aoFeatures.length){e=j.ext.aoFeatures;k=0;for(w=e.length;k<w;k++)if(g==e[k].cFeature){(i=e[k].fnInit(a))&&(f=1);break}}1==f&&null!==i&&("object"!==typeof a.aanFeatures[g]&&(a.aanFeatures[g]=[]),a.aanFeatures[g].push(i),c.appendChild(i))}b.parentNode.replaceChild(a.nTableWrapper,b)}function V(a,b){var c=h(b).children("tr"),d,i,f,g,e,j,o,k,m,p;a.splice(0,a.length);
|
||||
f=0;for(j=c.length;f<j;f++)a.push([]);f=0;for(j=c.length;f<j;f++){d=c[f];for(i=d.firstChild;i;){if("TD"==i.nodeName.toUpperCase()||"TH"==i.nodeName.toUpperCase()){k=1*i.getAttribute("colspan");m=1*i.getAttribute("rowspan");k=!k||0===k||1===k?1:k;m=!m||0===m||1===m?1:m;g=0;for(e=a[f];e[g];)g++;o=g;p=1===k?!0:!1;for(e=0;e<k;e++)for(g=0;g<m;g++)a[f+g][o+e]={cell:i,unique:p},a[f+g].nTr=d}i=i.nextSibling}}}function N(a,b,c){var d=[];c||(c=a.aoHeader,b&&(c=[],V(c,b)));for(var b=0,i=c.length;b<i;b++)for(var f=
|
||||
0,g=c[b].length;f<g;f++)if(c[b][f].unique&&(!d[f]||!a.bSortCellsTop))d[f]=c[b][f].cell;return d}function wa(a){if(a.bAjaxDataGet){a.iDraw++;E(a,!0);var b=Ea(a);ka(a,b);a.fnServerData.call(a.oInstance,a.sAjaxSource,b,function(b){Fa(a,b)},a);return!1}return!0}function Ea(a){var b=a.aoColumns.length,c=[],d,i,f,g;c.push({name:"sEcho",value:a.iDraw});c.push({name:"iColumns",value:b});c.push({name:"sColumns",value:M(a)});c.push({name:"iDisplayStart",value:a._iDisplayStart});c.push({name:"iDisplayLength",
|
||||
value:!1!==a.oFeatures.bPaginate?a._iDisplayLength:-1});for(f=0;f<b;f++)d=a.aoColumns[f].mData,c.push({name:"mDataProp_"+f,value:"function"===typeof d?"function":d});if(!1!==a.oFeatures.bFilter){c.push({name:"sSearch",value:a.oPreviousSearch.sSearch});c.push({name:"bRegex",value:a.oPreviousSearch.bRegex});for(f=0;f<b;f++)c.push({name:"sSearch_"+f,value:a.aoPreSearchCols[f].sSearch}),c.push({name:"bRegex_"+f,value:a.aoPreSearchCols[f].bRegex}),c.push({name:"bSearchable_"+f,value:a.aoColumns[f].bSearchable})}if(!1!==
|
||||
a.oFeatures.bSort){var e=0;d=null!==a.aaSortingFixed?a.aaSortingFixed.concat(a.aaSorting):a.aaSorting.slice();for(f=0;f<d.length;f++){i=a.aoColumns[d[f][0]].aDataSort;for(g=0;g<i.length;g++)c.push({name:"iSortCol_"+e,value:i[g]}),c.push({name:"sSortDir_"+e,value:d[f][1]}),e++}c.push({name:"iSortingCols",value:e});for(f=0;f<b;f++)c.push({name:"bSortable_"+f,value:a.aoColumns[f].bSortable})}return c}function ka(a,b){A(a,"aoServerParams","serverParams",[b])}function Fa(a,b){if(b.sEcho!==n){if(1*b.sEcho<
|
||||
a.iDraw)return;a.iDraw=1*b.sEcho}(!a.oScroll.bInfinite||a.oScroll.bInfinite&&(a.bSorted||a.bFiltered))&&ga(a);a._iRecordsTotal=parseInt(b.iTotalRecords,10);a._iRecordsDisplay=parseInt(b.iTotalDisplayRecords,10);var c=M(a),c=b.sColumns!==n&&""!==c&&b.sColumns!=c,d;c&&(d=u(a,b.sColumns));for(var i=Q(a.sAjaxDataProp)(b),f=0,g=i.length;f<g;f++)if(c){for(var e=[],h=0,j=a.aoColumns.length;h<j;h++)e.push(i[f][d[h]]);H(a,e)}else H(a,i[f]);a.aiDisplay=a.aiDisplayMaster.slice();a.bAjaxDataGet=!1;x(a);a.bAjaxDataGet=
|
||||
!0;E(a,!1)}function za(a){var b=a.oPreviousSearch,c=a.oLanguage.sSearch,c=-1!==c.indexOf("_INPUT_")?c.replace("_INPUT_",'<input type="text" />'):""===c?'<input type="text" />':c+' <input type="text" />',d=l.createElement("div");d.className=a.oClasses.sFilter;d.innerHTML="<label>"+c+"</label>";a.aanFeatures.f||(d.id=a.sTableId+"_filter");c=h('input[type="text"]',d);d._DT_Input=c[0];c.val(b.sSearch.replace('"',"""));c.bind("keyup.DT",function(){for(var c=a.aanFeatures.f,d=this.value===""?"":this.value,
|
||||
g=0,e=c.length;g<e;g++)c[g]!=h(this).parents("div.dataTables_filter")[0]&&h(c[g]._DT_Input).val(d);d!=b.sSearch&&K(a,{sSearch:d,bRegex:b.bRegex,bSmart:b.bSmart,bCaseInsensitive:b.bCaseInsensitive})});c.attr("aria-controls",a.sTableId).bind("keypress.DT",function(a){if(a.keyCode==13)return false});return d}function K(a,b,c){var d=a.oPreviousSearch,i=a.aoPreSearchCols,f=function(a){d.sSearch=a.sSearch;d.bRegex=a.bRegex;d.bSmart=a.bSmart;d.bCaseInsensitive=a.bCaseInsensitive};if(a.oFeatures.bServerSide)f(b);
|
||||
else{Ga(a,b.sSearch,c,b.bRegex,b.bSmart,b.bCaseInsensitive);f(b);for(b=0;b<a.aoPreSearchCols.length;b++)Ha(a,i[b].sSearch,b,i[b].bRegex,i[b].bSmart,i[b].bCaseInsensitive);Ia(a)}a.bFiltered=!0;h(a.oInstance).trigger("filter",a);a._iDisplayStart=0;y(a);x(a);la(a,0)}function Ia(a){for(var b=j.ext.afnFiltering,c=r(a,"bSearchable"),d=0,i=b.length;d<i;d++)for(var f=0,g=0,e=a.aiDisplay.length;g<e;g++){var h=a.aiDisplay[g-f];b[d](a,Y(a,h,"filter",c),h)||(a.aiDisplay.splice(g-f,1),f++)}}function Ha(a,b,c,
|
||||
d,i,f){if(""!==b)for(var g=0,b=ma(b,d,i,f),d=a.aiDisplay.length-1;0<=d;d--)i=Ja(v(a,a.aiDisplay[d],c,"filter"),a.aoColumns[c].sType),b.test(i)||(a.aiDisplay.splice(d,1),g++)}function Ga(a,b,c,d,i,f){d=ma(b,d,i,f);i=a.oPreviousSearch;c||(c=0);0!==j.ext.afnFiltering.length&&(c=1);if(0>=b.length)a.aiDisplay.splice(0,a.aiDisplay.length),a.aiDisplay=a.aiDisplayMaster.slice();else if(a.aiDisplay.length==a.aiDisplayMaster.length||i.sSearch.length>b.length||1==c||0!==b.indexOf(i.sSearch)){a.aiDisplay.splice(0,
|
||||
a.aiDisplay.length);la(a,1);for(b=0;b<a.aiDisplayMaster.length;b++)d.test(a.asDataSearch[b])&&a.aiDisplay.push(a.aiDisplayMaster[b])}else for(b=c=0;b<a.asDataSearch.length;b++)d.test(a.asDataSearch[b])||(a.aiDisplay.splice(b-c,1),c++)}function la(a,b){if(!a.oFeatures.bServerSide){a.asDataSearch=[];for(var c=r(a,"bSearchable"),d=1===b?a.aiDisplayMaster:a.aiDisplay,i=0,f=d.length;i<f;i++)a.asDataSearch[i]=na(a,Y(a,d[i],"filter",c))}}function na(a,b){var c=b.join(" ");-1!==c.indexOf("&")&&(c=h("<div>").html(c).text());
|
||||
return c.replace(/[\n\r]/g," ")}function ma(a,b,c,d){if(c)return a=b?a.split(" "):oa(a).split(" "),a="^(?=.*?"+a.join(")(?=.*?")+").*$",RegExp(a,d?"i":"");a=b?a:oa(a);return RegExp(a,d?"i":"")}function Ja(a,b){return"function"===typeof j.ext.ofnSearch[b]?j.ext.ofnSearch[b](a):null===a?"":"html"==b?a.replace(/[\r\n]/g," ").replace(/<.*?>/g,""):"string"===typeof a?a.replace(/[\r\n]/g," "):a}function oa(a){return a.replace(RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),
|
||||
"\\$1")}function Ca(a){var b=l.createElement("div");b.className=a.oClasses.sInfo;a.aanFeatures.i||(a.aoDrawCallback.push({fn:Ka,sName:"information"}),b.id=a.sTableId+"_info");a.nTable.setAttribute("aria-describedby",a.sTableId+"_info");return b}function Ka(a){if(a.oFeatures.bInfo&&0!==a.aanFeatures.i.length){var b=a.oLanguage,c=a._iDisplayStart+1,d=a.fnDisplayEnd(),i=a.fnRecordsTotal(),f=a.fnRecordsDisplay(),g;g=0===f?b.sInfoEmpty:b.sInfo;f!=i&&(g+=" "+b.sInfoFiltered);g+=b.sInfoPostFix;g=ja(a,g);
|
||||
null!==b.fnInfoCallback&&(g=b.fnInfoCallback.call(a.oInstance,a,c,d,i,f,g));a=a.aanFeatures.i;b=0;for(c=a.length;b<c;b++)h(a[b]).html(g)}}function ja(a,b){var c=a.fnFormatNumber(a._iDisplayStart+1),d=a.fnDisplayEnd(),d=a.fnFormatNumber(d),i=a.fnRecordsDisplay(),i=a.fnFormatNumber(i),f=a.fnRecordsTotal(),f=a.fnFormatNumber(f);a.oScroll.bInfinite&&(c=a.fnFormatNumber(1));return b.replace(/_START_/g,c).replace(/_END_/g,d).replace(/_TOTAL_/g,i).replace(/_MAX_/g,f)}function ba(a){var b,c,d=a.iInitDisplayStart;
|
||||
if(!1===a.bInitialised)setTimeout(function(){ba(a)},200);else{xa(a);va(a);W(a,a.aoHeader);a.nTFoot&&W(a,a.aoFooter);E(a,!0);a.oFeatures.bAutoWidth&&da(a);b=0;for(c=a.aoColumns.length;b<c;b++)null!==a.aoColumns[b].sWidth&&(a.aoColumns[b].nTh.style.width=q(a.aoColumns[b].sWidth));a.oFeatures.bSort?O(a):a.oFeatures.bFilter?K(a,a.oPreviousSearch):(a.aiDisplay=a.aiDisplayMaster.slice(),y(a),x(a));null!==a.sAjaxSource&&!a.oFeatures.bServerSide?(c=[],ka(a,c),a.fnServerData.call(a.oInstance,a.sAjaxSource,
|
||||
c,function(c){var f=a.sAjaxDataProp!==""?Q(a.sAjaxDataProp)(c):c;for(b=0;b<f.length;b++)H(a,f[b]);a.iInitDisplayStart=d;if(a.oFeatures.bSort)O(a);else{a.aiDisplay=a.aiDisplayMaster.slice();y(a);x(a)}E(a,false);$(a,c)},a)):a.oFeatures.bServerSide||(E(a,!1),$(a))}}function $(a,b){a._bInitComplete=!0;A(a,"aoInitComplete","init",[a,b])}function pa(a){var b=j.defaults.oLanguage;!a.sEmptyTable&&(a.sZeroRecords&&"No data available in table"===b.sEmptyTable)&&p(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&
|
||||
(a.sZeroRecords&&"Loading..."===b.sLoadingRecords)&&p(a,a,"sZeroRecords","sLoadingRecords")}function ya(a){if(a.oScroll.bInfinite)return null;var b='<select size="1" '+('name="'+a.sTableId+'_length"')+">",c,d,i=a.aLengthMenu;if(2==i.length&&"object"===typeof i[0]&&"object"===typeof i[1]){c=0;for(d=i[0].length;c<d;c++)b+='<option value="'+i[0][c]+'">'+i[1][c]+"</option>"}else{c=0;for(d=i.length;c<d;c++)b+='<option value="'+i[c]+'">'+i[c]+"</option>"}b+="</select>";i=l.createElement("div");a.aanFeatures.l||
|
||||
(i.id=a.sTableId+"_length");i.className=a.oClasses.sLength;i.innerHTML="<label>"+a.oLanguage.sLengthMenu.replace("_MENU_",b)+"</label>";h('select option[value="'+a._iDisplayLength+'"]',i).attr("selected",!0);h("select",i).bind("change.DT",function(){var b=h(this).val(),i=a.aanFeatures.l;c=0;for(d=i.length;c<d;c++)i[c]!=this.parentNode&&h("select",i[c]).val(b);a._iDisplayLength=parseInt(b,10);y(a);if(a.fnDisplayEnd()==a.fnRecordsDisplay()){a._iDisplayStart=a.fnDisplayEnd()-a._iDisplayLength;if(a._iDisplayStart<
|
||||
0)a._iDisplayStart=0}if(a._iDisplayLength==-1)a._iDisplayStart=0;x(a)});h("select",i).attr("aria-controls",a.sTableId);return i}function y(a){a._iDisplayEnd=!1===a.oFeatures.bPaginate?a.aiDisplay.length:a._iDisplayStart+a._iDisplayLength>a.aiDisplay.length||-1==a._iDisplayLength?a.aiDisplay.length:a._iDisplayStart+a._iDisplayLength}function Da(a){if(a.oScroll.bInfinite)return null;var b=l.createElement("div");b.className=a.oClasses.sPaging+a.sPaginationType;j.ext.oPagination[a.sPaginationType].fnInit(a,
|
||||
b,function(a){y(a);x(a)});a.aanFeatures.p||a.aoDrawCallback.push({fn:function(a){j.ext.oPagination[a.sPaginationType].fnUpdate(a,function(a){y(a);x(a)})},sName:"pagination"});return b}function qa(a,b){var c=a._iDisplayStart;if("number"===typeof b)a._iDisplayStart=b*a._iDisplayLength,a._iDisplayStart>a.fnRecordsDisplay()&&(a._iDisplayStart=0);else if("first"==b)a._iDisplayStart=0;else if("previous"==b)a._iDisplayStart=0<=a._iDisplayLength?a._iDisplayStart-a._iDisplayLength:0,0>a._iDisplayStart&&(a._iDisplayStart=
|
||||
0);else if("next"==b)0<=a._iDisplayLength?a._iDisplayStart+a._iDisplayLength<a.fnRecordsDisplay()&&(a._iDisplayStart+=a._iDisplayLength):a._iDisplayStart=0;else if("last"==b)if(0<=a._iDisplayLength){var d=parseInt((a.fnRecordsDisplay()-1)/a._iDisplayLength,10)+1;a._iDisplayStart=(d-1)*a._iDisplayLength}else a._iDisplayStart=0;else D(a,0,"Unknown paging action: "+b);h(a.oInstance).trigger("page",a);return c!=a._iDisplayStart}function Aa(a){var b=l.createElement("div");a.aanFeatures.r||(b.id=a.sTableId+
|
||||
"_processing");b.innerHTML=a.oLanguage.sProcessing;b.className=a.oClasses.sProcessing;a.nTable.parentNode.insertBefore(b,a.nTable);return b}function E(a,b){if(a.oFeatures.bProcessing)for(var c=a.aanFeatures.r,d=0,i=c.length;d<i;d++)c[d].style.visibility=b?"visible":"hidden";h(a.oInstance).trigger("processing",[a,b])}function Ba(a){if(""===a.oScroll.sX&&""===a.oScroll.sY)return a.nTable;var b=l.createElement("div"),c=l.createElement("div"),d=l.createElement("div"),i=l.createElement("div"),f=l.createElement("div"),
|
||||
g=l.createElement("div"),e=a.nTable.cloneNode(!1),j=a.nTable.cloneNode(!1),o=a.nTable.getElementsByTagName("thead")[0],k=0===a.nTable.getElementsByTagName("tfoot").length?null:a.nTable.getElementsByTagName("tfoot")[0],m=a.oClasses;c.appendChild(d);f.appendChild(g);i.appendChild(a.nTable);b.appendChild(c);b.appendChild(i);d.appendChild(e);e.appendChild(o);null!==k&&(b.appendChild(f),g.appendChild(j),j.appendChild(k));b.className=m.sScrollWrapper;c.className=m.sScrollHead;d.className=m.sScrollHeadInner;
|
||||
i.className=m.sScrollBody;f.className=m.sScrollFoot;g.className=m.sScrollFootInner;a.oScroll.bAutoCss&&(c.style.overflow="hidden",c.style.position="relative",f.style.overflow="hidden",i.style.overflow="auto");c.style.border="0";c.style.width="100%";f.style.border="0";d.style.width=""!==a.oScroll.sXInner?a.oScroll.sXInner:"100%";e.removeAttribute("id");e.style.marginLeft="0";a.nTable.style.marginLeft="0";null!==k&&(j.removeAttribute("id"),j.style.marginLeft="0");d=h(a.nTable).children("caption");0<
|
||||
d.length&&(d=d[0],"top"===d._captionSide?e.appendChild(d):"bottom"===d._captionSide&&k&&j.appendChild(d));""!==a.oScroll.sX&&(c.style.width=q(a.oScroll.sX),i.style.width=q(a.oScroll.sX),null!==k&&(f.style.width=q(a.oScroll.sX)),h(i).scroll(function(){c.scrollLeft=this.scrollLeft;if(k!==null)f.scrollLeft=this.scrollLeft}));""!==a.oScroll.sY&&(i.style.height=q(a.oScroll.sY));a.aoDrawCallback.push({fn:La,sName:"scrolling"});a.oScroll.bInfinite&&h(i).scroll(function(){if(!a.bDrawing&&h(this).scrollTop()!==
|
||||
0&&h(this).scrollTop()+h(this).height()>h(a.nTable).height()-a.oScroll.iLoadGap&&a.fnDisplayEnd()<a.fnRecordsDisplay()){qa(a,"next");y(a);x(a)}});a.nScrollHead=c;a.nScrollFoot=f;return b}function La(a){var b=a.nScrollHead.getElementsByTagName("div")[0],c=b.getElementsByTagName("table")[0],d=a.nTable.parentNode,i,f,g,e,j,o,k,m,p=[],n=[],l=null!==a.nTFoot?a.nScrollFoot.getElementsByTagName("div")[0]:null,R=null!==a.nTFoot?l.getElementsByTagName("table")[0]:null,r=a.oBrowser.bScrollOversize,s=function(a){k=
|
||||
a.style;k.paddingTop="0";k.paddingBottom="0";k.borderTopWidth="0";k.borderBottomWidth="0";k.height=0};h(a.nTable).children("thead, tfoot").remove();i=h(a.nTHead).clone()[0];a.nTable.insertBefore(i,a.nTable.childNodes[0]);g=a.nTHead.getElementsByTagName("tr");e=i.getElementsByTagName("tr");null!==a.nTFoot&&(j=h(a.nTFoot).clone()[0],a.nTable.insertBefore(j,a.nTable.childNodes[1]),o=a.nTFoot.getElementsByTagName("tr"),j=j.getElementsByTagName("tr"));""===a.oScroll.sX&&(d.style.width="100%",b.parentNode.style.width=
|
||||
"100%");var t=N(a,i);i=0;for(f=t.length;i<f;i++)m=G(a,i),t[i].style.width=a.aoColumns[m].sWidth;null!==a.nTFoot&&C(function(a){a.style.width=""},j);a.oScroll.bCollapse&&""!==a.oScroll.sY&&(d.style.height=d.offsetHeight+a.nTHead.offsetHeight+"px");i=h(a.nTable).outerWidth();if(""===a.oScroll.sX){if(a.nTable.style.width="100%",r&&(h("tbody",d).height()>d.offsetHeight||"scroll"==h(d).css("overflow-y")))a.nTable.style.width=q(h(a.nTable).outerWidth()-a.oScroll.iBarWidth)}else""!==a.oScroll.sXInner?a.nTable.style.width=
|
||||
q(a.oScroll.sXInner):i==h(d).width()&&h(d).height()<h(a.nTable).height()?(a.nTable.style.width=q(i-a.oScroll.iBarWidth),h(a.nTable).outerWidth()>i-a.oScroll.iBarWidth&&(a.nTable.style.width=q(i))):a.nTable.style.width=q(i);i=h(a.nTable).outerWidth();C(s,e);C(function(a){p.push(q(h(a).width()))},e);C(function(a,b){a.style.width=p[b]},g);h(e).height(0);null!==a.nTFoot&&(C(s,j),C(function(a){n.push(q(h(a).width()))},j),C(function(a,b){a.style.width=n[b]},o),h(j).height(0));C(function(a,b){a.innerHTML=
|
||||
"";a.style.width=p[b]},e);null!==a.nTFoot&&C(function(a,b){a.innerHTML="";a.style.width=n[b]},j);if(h(a.nTable).outerWidth()<i){g=d.scrollHeight>d.offsetHeight||"scroll"==h(d).css("overflow-y")?i+a.oScroll.iBarWidth:i;if(r&&(d.scrollHeight>d.offsetHeight||"scroll"==h(d).css("overflow-y")))a.nTable.style.width=q(g-a.oScroll.iBarWidth);d.style.width=q(g);a.nScrollHead.style.width=q(g);null!==a.nTFoot&&(a.nScrollFoot.style.width=q(g));""===a.oScroll.sX?D(a,1,"The table cannot fit into the current element which will cause column misalignment. The table has been drawn at its minimum possible width."):
|
||||
""!==a.oScroll.sXInner&&D(a,1,"The table cannot fit into the current element which will cause column misalignment. Increase the sScrollXInner value or remove it to allow automatic calculation")}else d.style.width=q("100%"),a.nScrollHead.style.width=q("100%"),null!==a.nTFoot&&(a.nScrollFoot.style.width=q("100%"));""===a.oScroll.sY&&r&&(d.style.height=q(a.nTable.offsetHeight+a.oScroll.iBarWidth));""!==a.oScroll.sY&&a.oScroll.bCollapse&&(d.style.height=q(a.oScroll.sY),r=""!==a.oScroll.sX&&a.nTable.offsetWidth>
|
||||
d.offsetWidth?a.oScroll.iBarWidth:0,a.nTable.offsetHeight<d.offsetHeight&&(d.style.height=q(a.nTable.offsetHeight+r)));r=h(a.nTable).outerWidth();c.style.width=q(r);b.style.width=q(r);c=h(a.nTable).height()>d.clientHeight||"scroll"==h(d).css("overflow-y");b.style.paddingRight=c?a.oScroll.iBarWidth+"px":"0px";null!==a.nTFoot&&(R.style.width=q(r),l.style.width=q(r),l.style.paddingRight=c?a.oScroll.iBarWidth+"px":"0px");h(d).scroll();if(a.bSorted||a.bFiltered)d.scrollTop=0}function C(a,b,c){for(var d=
|
||||
0,i=0,f=b.length,g,e;i<f;){g=b[i].firstChild;for(e=c?c[i].firstChild:null;g;)1===g.nodeType&&(c?a(g,e,d):a(g,d),d++),g=g.nextSibling,e=c?e.nextSibling:null;i++}}function Ma(a,b){if(!a||null===a||""===a)return 0;b||(b=l.body);var c,d=l.createElement("div");d.style.width=q(a);b.appendChild(d);c=d.offsetWidth;b.removeChild(d);return c}function da(a){var b=0,c,d=0,i=a.aoColumns.length,f,e,j=h("th",a.nTHead),o=a.nTable.getAttribute("width");e=a.nTable.parentNode;for(f=0;f<i;f++)a.aoColumns[f].bVisible&&
|
||||
(d++,null!==a.aoColumns[f].sWidth&&(c=Ma(a.aoColumns[f].sWidthOrig,e),null!==c&&(a.aoColumns[f].sWidth=q(c)),b++));if(i==j.length&&0===b&&d==i&&""===a.oScroll.sX&&""===a.oScroll.sY)for(f=0;f<a.aoColumns.length;f++)c=h(j[f]).width(),null!==c&&(a.aoColumns[f].sWidth=q(c));else{b=a.nTable.cloneNode(!1);f=a.nTHead.cloneNode(!0);d=l.createElement("tbody");c=l.createElement("tr");b.removeAttribute("id");b.appendChild(f);null!==a.nTFoot&&(b.appendChild(a.nTFoot.cloneNode(!0)),C(function(a){a.style.width=
|
||||
""},b.getElementsByTagName("tr")));b.appendChild(d);d.appendChild(c);d=h("thead th",b);0===d.length&&(d=h("tbody tr:eq(0)>td",b));j=N(a,f);for(f=d=0;f<i;f++){var k=a.aoColumns[f];k.bVisible&&null!==k.sWidthOrig&&""!==k.sWidthOrig?j[f-d].style.width=q(k.sWidthOrig):k.bVisible?j[f-d].style.width="":d++}for(f=0;f<i;f++)a.aoColumns[f].bVisible&&(d=Na(a,f),null!==d&&(d=d.cloneNode(!0),""!==a.aoColumns[f].sContentPadding&&(d.innerHTML+=a.aoColumns[f].sContentPadding),c.appendChild(d)));e.appendChild(b);
|
||||
""!==a.oScroll.sX&&""!==a.oScroll.sXInner?b.style.width=q(a.oScroll.sXInner):""!==a.oScroll.sX?(b.style.width="",h(b).width()<e.offsetWidth&&(b.style.width=q(e.offsetWidth))):""!==a.oScroll.sY?b.style.width=q(e.offsetWidth):o&&(b.style.width=q(o));b.style.visibility="hidden";Oa(a,b);i=h("tbody tr:eq(0)",b).children();0===i.length&&(i=N(a,h("thead",b)[0]));if(""!==a.oScroll.sX){for(f=d=e=0;f<a.aoColumns.length;f++)a.aoColumns[f].bVisible&&(e=null===a.aoColumns[f].sWidthOrig?e+h(i[d]).outerWidth():
|
||||
e+(parseInt(a.aoColumns[f].sWidth.replace("px",""),10)+(h(i[d]).outerWidth()-h(i[d]).width())),d++);b.style.width=q(e);a.nTable.style.width=q(e)}for(f=d=0;f<a.aoColumns.length;f++)a.aoColumns[f].bVisible&&(e=h(i[d]).width(),null!==e&&0<e&&(a.aoColumns[f].sWidth=q(e)),d++);i=h(b).css("width");a.nTable.style.width=-1!==i.indexOf("%")?i:q(h(b).outerWidth());b.parentNode.removeChild(b)}o&&(a.nTable.style.width=q(o))}function Oa(a,b){""===a.oScroll.sX&&""!==a.oScroll.sY?(h(b).width(),b.style.width=q(h(b).outerWidth()-
|
||||
a.oScroll.iBarWidth)):""!==a.oScroll.sX&&(b.style.width=q(h(b).outerWidth()))}function Na(a,b){var c=Pa(a,b);if(0>c)return null;if(null===a.aoData[c].nTr){var d=l.createElement("td");d.innerHTML=v(a,c,b,"");return d}return J(a,c)[b]}function Pa(a,b){for(var c=-1,d=-1,i=0;i<a.aoData.length;i++){var e=v(a,i,b,"display")+"",e=e.replace(/<.*?>/g,"");e.length>c&&(c=e.length,d=i)}return d}function q(a){if(null===a)return"0px";if("number"==typeof a)return 0>a?"0px":a+"px";var b=a.charCodeAt(a.length-1);
|
||||
return 48>b||57<b?a:a+"px"}function Qa(){var a=l.createElement("p"),b=a.style;b.width="100%";b.height="200px";b.padding="0px";var c=l.createElement("div"),b=c.style;b.position="absolute";b.top="0px";b.left="0px";b.visibility="hidden";b.width="200px";b.height="150px";b.padding="0px";b.overflow="hidden";c.appendChild(a);l.body.appendChild(c);b=a.offsetWidth;c.style.overflow="scroll";a=a.offsetWidth;b==a&&(a=c.clientWidth);l.body.removeChild(c);return b-a}function O(a,b){var c,d,i,e,g,k,o=[],m=[],p=
|
||||
j.ext.oSort,l=a.aoData,q=a.aoColumns,G=a.oLanguage.oAria;if(!a.oFeatures.bServerSide&&(0!==a.aaSorting.length||null!==a.aaSortingFixed)){o=null!==a.aaSortingFixed?a.aaSortingFixed.concat(a.aaSorting):a.aaSorting.slice();for(c=0;c<o.length;c++)if(d=o[c][0],i=R(a,d),e=a.aoColumns[d].sSortDataType,j.ext.afnSortData[e])if(g=j.ext.afnSortData[e].call(a.oInstance,a,d,i),g.length===l.length){i=0;for(e=l.length;i<e;i++)F(a,i,d,g[i])}else D(a,0,"Returned data sort array (col "+d+") is the wrong length");c=
|
||||
0;for(d=a.aiDisplayMaster.length;c<d;c++)m[a.aiDisplayMaster[c]]=c;var r=o.length,s;c=0;for(d=l.length;c<d;c++)for(i=0;i<r;i++){s=q[o[i][0]].aDataSort;g=0;for(k=s.length;g<k;g++)e=q[s[g]].sType,e=p[(e?e:"string")+"-pre"],l[c]._aSortData[s[g]]=e?e(v(a,c,s[g],"sort")):v(a,c,s[g],"sort")}a.aiDisplayMaster.sort(function(a,b){var c,d,e,i,f;for(c=0;c<r;c++){f=q[o[c][0]].aDataSort;d=0;for(e=f.length;d<e;d++)if(i=q[f[d]].sType,i=p[(i?i:"string")+"-"+o[c][1]](l[a]._aSortData[f[d]],l[b]._aSortData[f[d]]),0!==
|
||||
i)return i}return p["numeric-asc"](m[a],m[b])})}(b===n||b)&&!a.oFeatures.bDeferRender&&P(a);c=0;for(d=a.aoColumns.length;c<d;c++)e=q[c].sTitle.replace(/<.*?>/g,""),i=q[c].nTh,i.removeAttribute("aria-sort"),i.removeAttribute("aria-label"),q[c].bSortable?0<o.length&&o[0][0]==c?(i.setAttribute("aria-sort","asc"==o[0][1]?"ascending":"descending"),i.setAttribute("aria-label",e+("asc"==(q[c].asSorting[o[0][2]+1]?q[c].asSorting[o[0][2]+1]:q[c].asSorting[0])?G.sSortAscending:G.sSortDescending))):i.setAttribute("aria-label",
|
||||
e+("asc"==q[c].asSorting[0]?G.sSortAscending:G.sSortDescending)):i.setAttribute("aria-label",e);a.bSorted=!0;h(a.oInstance).trigger("sort",a);a.oFeatures.bFilter?K(a,a.oPreviousSearch,1):(a.aiDisplay=a.aiDisplayMaster.slice(),a._iDisplayStart=0,y(a),x(a))}function ia(a,b,c,d){Ra(b,{},function(b){if(!1!==a.aoColumns[c].bSortable){var e=function(){var d,e;if(b.shiftKey){for(var f=!1,h=0;h<a.aaSorting.length;h++)if(a.aaSorting[h][0]==c){f=!0;d=a.aaSorting[h][0];e=a.aaSorting[h][2]+1;a.aoColumns[d].asSorting[e]?
|
||||
(a.aaSorting[h][1]=a.aoColumns[d].asSorting[e],a.aaSorting[h][2]=e):a.aaSorting.splice(h,1);break}!1===f&&a.aaSorting.push([c,a.aoColumns[c].asSorting[0],0])}else 1==a.aaSorting.length&&a.aaSorting[0][0]==c?(d=a.aaSorting[0][0],e=a.aaSorting[0][2]+1,a.aoColumns[d].asSorting[e]||(e=0),a.aaSorting[0][1]=a.aoColumns[d].asSorting[e],a.aaSorting[0][2]=e):(a.aaSorting.splice(0,a.aaSorting.length),a.aaSorting.push([c,a.aoColumns[c].asSorting[0],0]));O(a)};a.oFeatures.bProcessing?(E(a,!0),setTimeout(function(){e();
|
||||
a.oFeatures.bServerSide||E(a,!1)},0)):e();"function"==typeof d&&d(a)}})}function P(a){var b,c,d,e,f,g=a.aoColumns.length,j=a.oClasses;for(b=0;b<g;b++)a.aoColumns[b].bSortable&&h(a.aoColumns[b].nTh).removeClass(j.sSortAsc+" "+j.sSortDesc+" "+a.aoColumns[b].sSortingClass);c=null!==a.aaSortingFixed?a.aaSortingFixed.concat(a.aaSorting):a.aaSorting.slice();for(b=0;b<a.aoColumns.length;b++)if(a.aoColumns[b].bSortable){f=a.aoColumns[b].sSortingClass;e=-1;for(d=0;d<c.length;d++)if(c[d][0]==b){f="asc"==c[d][1]?
|
||||
j.sSortAsc:j.sSortDesc;e=d;break}h(a.aoColumns[b].nTh).addClass(f);a.bJUI&&(f=h("span."+j.sSortIcon,a.aoColumns[b].nTh),f.removeClass(j.sSortJUIAsc+" "+j.sSortJUIDesc+" "+j.sSortJUI+" "+j.sSortJUIAscAllowed+" "+j.sSortJUIDescAllowed),f.addClass(-1==e?a.aoColumns[b].sSortingClassJUI:"asc"==c[e][1]?j.sSortJUIAsc:j.sSortJUIDesc))}else h(a.aoColumns[b].nTh).addClass(a.aoColumns[b].sSortingClass);f=j.sSortColumn;if(a.oFeatures.bSort&&a.oFeatures.bSortClasses){a=J(a);e=[];for(b=0;b<g;b++)e.push("");b=0;
|
||||
for(d=1;b<c.length;b++)j=parseInt(c[b][0],10),e[j]=f+d,3>d&&d++;f=RegExp(f+"[123]");var o;b=0;for(c=a.length;b<c;b++)j=b%g,d=a[b].className,o=e[j],j=d.replace(f,o),j!=d?a[b].className=h.trim(j):0<o.length&&-1==d.indexOf(o)&&(a[b].className=d+" "+o)}}function ra(a){if(a.oFeatures.bStateSave&&!a.bDestroying){var b,c;b=a.oScroll.bInfinite;var d={iCreate:(new Date).getTime(),iStart:b?0:a._iDisplayStart,iEnd:b?a._iDisplayLength:a._iDisplayEnd,iLength:a._iDisplayLength,aaSorting:h.extend(!0,[],a.aaSorting),
|
||||
oSearch:h.extend(!0,{},a.oPreviousSearch),aoSearchCols:h.extend(!0,[],a.aoPreSearchCols),abVisCols:[]};b=0;for(c=a.aoColumns.length;b<c;b++)d.abVisCols.push(a.aoColumns[b].bVisible);A(a,"aoStateSaveParams","stateSaveParams",[a,d]);a.fnStateSave.call(a.oInstance,a,d)}}function Sa(a,b){if(a.oFeatures.bStateSave){var c=a.fnStateLoad.call(a.oInstance,a);if(c){var d=A(a,"aoStateLoadParams","stateLoadParams",[a,c]);if(-1===h.inArray(!1,d)){a.oLoadedState=h.extend(!0,{},c);a._iDisplayStart=c.iStart;a.iInitDisplayStart=
|
||||
c.iStart;a._iDisplayEnd=c.iEnd;a._iDisplayLength=c.iLength;a.aaSorting=c.aaSorting.slice();a.saved_aaSorting=c.aaSorting.slice();h.extend(a.oPreviousSearch,c.oSearch);h.extend(!0,a.aoPreSearchCols,c.aoSearchCols);b.saved_aoColumns=[];for(d=0;d<c.abVisCols.length;d++)b.saved_aoColumns[d]={},b.saved_aoColumns[d].bVisible=c.abVisCols[d];A(a,"aoStateLoaded","stateLoaded",[a,c])}}}}function s(a){for(var b=0;b<j.settings.length;b++)if(j.settings[b].nTable===a)return j.settings[b];return null}function T(a){for(var b=
|
||||
[],a=a.aoData,c=0,d=a.length;c<d;c++)null!==a[c].nTr&&b.push(a[c].nTr);return b}function J(a,b){var c=[],d,e,f,g,h,j;e=0;var o=a.aoData.length;b!==n&&(e=b,o=b+1);for(f=e;f<o;f++)if(j=a.aoData[f],null!==j.nTr){e=[];for(d=j.nTr.firstChild;d;)g=d.nodeName.toLowerCase(),("td"==g||"th"==g)&&e.push(d),d=d.nextSibling;g=d=0;for(h=a.aoColumns.length;g<h;g++)a.aoColumns[g].bVisible?c.push(e[g-d]):(c.push(j._anHidden[g]),d++)}return c}function D(a,b,c){a=null===a?"DataTables warning: "+c:"DataTables warning (table id = '"+
|
||||
a.sTableId+"'): "+c;if(0===b)if("alert"==j.ext.sErrMode)alert(a);else throw Error(a);else X.console&&console.log&&console.log(a)}function p(a,b,c,d){d===n&&(d=c);b[c]!==n&&(a[d]=b[c])}function Ta(a,b){var c,d;for(d in b)b.hasOwnProperty(d)&&(c=b[d],"object"===typeof e[d]&&null!==c&&!1===h.isArray(c)?h.extend(!0,a[d],c):a[d]=c);return a}function Ra(a,b,c){h(a).bind("click.DT",b,function(b){a.blur();c(b)}).bind("keypress.DT",b,function(a){13===a.which&&c(a)}).bind("selectstart.DT",function(){return!1})}
|
||||
function z(a,b,c,d){c&&a[b].push({fn:c,sName:d})}function A(a,b,c,d){for(var b=a[b],e=[],f=b.length-1;0<=f;f--)e.push(b[f].fn.apply(a.oInstance,d));null!==c&&h(a.oInstance).trigger(c,d);return e}function Ua(a){var b=h('<div style="position:absolute; top:0; left:0; height:1px; width:1px; overflow:hidden"><div style="position:absolute; top:1px; left:1px; width:100px; overflow:scroll;"><div id="DT_BrowserTest" style="width:100%; height:10px;"></div></div></div>')[0];l.body.appendChild(b);a.oBrowser.bScrollOversize=
|
||||
100===h("#DT_BrowserTest",b)[0].offsetWidth?!0:!1;l.body.removeChild(b)}function Va(a){return function(){var b=[s(this[j.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return j.ext.oApi[a].apply(this,b)}}var U=/\[.*?\]$/,Wa=X.JSON?JSON.stringify:function(a){var b=typeof a;if("object"!==b||null===a)return"string"===b&&(a='"'+a+'"'),a+"";var c,d,e=[],f=h.isArray(a);for(c in a)d=a[c],b=typeof d,"string"===b?d='"'+d+'"':"object"===b&&null!==d&&(d=Wa(d)),e.push((f?"":'"'+c+'":')+d);return(f?
|
||||
"[":"{")+e+(f?"]":"}")};this.$=function(a,b){var c,d,e=[],f;d=s(this[j.ext.iApiIndex]);var g=d.aoData,o=d.aiDisplay,k=d.aiDisplayMaster;b||(b={});b=h.extend({},{filter:"none",order:"current",page:"all"},b);if("current"==b.page){c=d._iDisplayStart;for(d=d.fnDisplayEnd();c<d;c++)(f=g[o[c]].nTr)&&e.push(f)}else if("current"==b.order&&"none"==b.filter){c=0;for(d=k.length;c<d;c++)(f=g[k[c]].nTr)&&e.push(f)}else if("current"==b.order&&"applied"==b.filter){c=0;for(d=o.length;c<d;c++)(f=g[o[c]].nTr)&&e.push(f)}else if("original"==
|
||||
b.order&&"none"==b.filter){c=0;for(d=g.length;c<d;c++)(f=g[c].nTr)&&e.push(f)}else if("original"==b.order&&"applied"==b.filter){c=0;for(d=g.length;c<d;c++)f=g[c].nTr,-1!==h.inArray(c,o)&&f&&e.push(f)}else D(d,1,"Unknown selection options");e=h(e);c=e.filter(a);e=e.find(a);return h([].concat(h.makeArray(c),h.makeArray(e)))};this._=function(a,b){var c=[],d,e,f=this.$(a,b);d=0;for(e=f.length;d<e;d++)c.push(this.fnGetData(f[d]));return c};this.fnAddData=function(a,b){if(0===a.length)return[];var c=[],
|
||||
d,e=s(this[j.ext.iApiIndex]);if("object"===typeof a[0]&&null!==a[0])for(var f=0;f<a.length;f++){d=H(e,a[f]);if(-1==d)return c;c.push(d)}else{d=H(e,a);if(-1==d)return c;c.push(d)}e.aiDisplay=e.aiDisplayMaster.slice();(b===n||b)&&aa(e);return c};this.fnAdjustColumnSizing=function(a){var b=s(this[j.ext.iApiIndex]);k(b);a===n||a?this.fnDraw(!1):(""!==b.oScroll.sX||""!==b.oScroll.sY)&&this.oApi._fnScrollDraw(b)};this.fnClearTable=function(a){var b=s(this[j.ext.iApiIndex]);ga(b);(a===n||a)&&x(b)};this.fnClose=
|
||||
function(a){for(var b=s(this[j.ext.iApiIndex]),c=0;c<b.aoOpenRows.length;c++)if(b.aoOpenRows[c].nParent==a)return(a=b.aoOpenRows[c].nTr.parentNode)&&a.removeChild(b.aoOpenRows[c].nTr),b.aoOpenRows.splice(c,1),0;return 1};this.fnDeleteRow=function(a,b,c){var d=s(this[j.ext.iApiIndex]),e,f,a="object"===typeof a?I(d,a):a,g=d.aoData.splice(a,1);e=0;for(f=d.aoData.length;e<f;e++)null!==d.aoData[e].nTr&&(d.aoData[e].nTr._DT_RowIndex=e);e=h.inArray(a,d.aiDisplay);d.asDataSearch.splice(e,1);ha(d.aiDisplayMaster,
|
||||
a);ha(d.aiDisplay,a);"function"===typeof b&&b.call(this,d,g);d._iDisplayStart>=d.fnRecordsDisplay()&&(d._iDisplayStart-=d._iDisplayLength,0>d._iDisplayStart&&(d._iDisplayStart=0));if(c===n||c)y(d),x(d);return g};this.fnDestroy=function(a){var b=s(this[j.ext.iApiIndex]),c=b.nTableWrapper.parentNode,d=b.nTBody,i,f,a=a===n?!1:a;b.bDestroying=!0;A(b,"aoDestroyCallback","destroy",[b]);if(!a){i=0;for(f=b.aoColumns.length;i<f;i++)!1===b.aoColumns[i].bVisible&&this.fnSetColumnVis(i,!0)}h(b.nTableWrapper).find("*").andSelf().unbind(".DT");
|
||||
h("tbody>tr>td."+b.oClasses.sRowEmpty,b.nTable).parent().remove();b.nTable!=b.nTHead.parentNode&&(h(b.nTable).children("thead").remove(),b.nTable.appendChild(b.nTHead));b.nTFoot&&b.nTable!=b.nTFoot.parentNode&&(h(b.nTable).children("tfoot").remove(),b.nTable.appendChild(b.nTFoot));b.nTable.parentNode.removeChild(b.nTable);h(b.nTableWrapper).remove();b.aaSorting=[];b.aaSortingFixed=[];P(b);h(T(b)).removeClass(b.asStripeClasses.join(" "));h("th, td",b.nTHead).removeClass([b.oClasses.sSortable,b.oClasses.sSortableAsc,
|
||||
b.oClasses.sSortableDesc,b.oClasses.sSortableNone].join(" "));b.bJUI&&(h("th span."+b.oClasses.sSortIcon+", td span."+b.oClasses.sSortIcon,b.nTHead).remove(),h("th, td",b.nTHead).each(function(){var a=h("div."+b.oClasses.sSortJUIWrapper,this),c=a.contents();h(this).append(c);a.remove()}));!a&&b.nTableReinsertBefore?c.insertBefore(b.nTable,b.nTableReinsertBefore):a||c.appendChild(b.nTable);i=0;for(f=b.aoData.length;i<f;i++)null!==b.aoData[i].nTr&&d.appendChild(b.aoData[i].nTr);!0===b.oFeatures.bAutoWidth&&
|
||||
(b.nTable.style.width=q(b.sDestroyWidth));if(f=b.asDestroyStripes.length){a=h(d).children("tr");for(i=0;i<f;i++)a.filter(":nth-child("+f+"n + "+i+")").addClass(b.asDestroyStripes[i])}i=0;for(f=j.settings.length;i<f;i++)j.settings[i]==b&&j.settings.splice(i,1);e=b=null};this.fnDraw=function(a){var b=s(this[j.ext.iApiIndex]);!1===a?(y(b),x(b)):aa(b)};this.fnFilter=function(a,b,c,d,e,f){var g=s(this[j.ext.iApiIndex]);if(g.oFeatures.bFilter){if(c===n||null===c)c=!1;if(d===n||null===d)d=!0;if(e===n||null===
|
||||
e)e=!0;if(f===n||null===f)f=!0;if(b===n||null===b){if(K(g,{sSearch:a+"",bRegex:c,bSmart:d,bCaseInsensitive:f},1),e&&g.aanFeatures.f){b=g.aanFeatures.f;c=0;for(d=b.length;c<d;c++)try{b[c]._DT_Input!=l.activeElement&&h(b[c]._DT_Input).val(a)}catch(o){h(b[c]._DT_Input).val(a)}}}else h.extend(g.aoPreSearchCols[b],{sSearch:a+"",bRegex:c,bSmart:d,bCaseInsensitive:f}),K(g,g.oPreviousSearch,1)}};this.fnGetData=function(a,b){var c=s(this[j.ext.iApiIndex]);if(a!==n){var d=a;if("object"===typeof a){var e=a.nodeName.toLowerCase();
|
||||
"tr"===e?d=I(c,a):"td"===e&&(d=I(c,a.parentNode),b=fa(c,d,a))}return b!==n?v(c,d,b,""):c.aoData[d]!==n?c.aoData[d]._aData:null}return Z(c)};this.fnGetNodes=function(a){var b=s(this[j.ext.iApiIndex]);return a!==n?b.aoData[a]!==n?b.aoData[a].nTr:null:T(b)};this.fnGetPosition=function(a){var b=s(this[j.ext.iApiIndex]),c=a.nodeName.toUpperCase();return"TR"==c?I(b,a):"TD"==c||"TH"==c?(c=I(b,a.parentNode),a=fa(b,c,a),[c,R(b,a),a]):null};this.fnIsOpen=function(a){for(var b=s(this[j.ext.iApiIndex]),c=0;c<
|
||||
b.aoOpenRows.length;c++)if(b.aoOpenRows[c].nParent==a)return!0;return!1};this.fnOpen=function(a,b,c){var d=s(this[j.ext.iApiIndex]),e=T(d);if(-1!==h.inArray(a,e)){this.fnClose(a);var e=l.createElement("tr"),f=l.createElement("td");e.appendChild(f);f.className=c;f.colSpan=t(d);"string"===typeof b?f.innerHTML=b:h(f).html(b);b=h("tr",d.nTBody);-1!=h.inArray(a,b)&&h(e).insertAfter(a);d.aoOpenRows.push({nTr:e,nParent:a});return e}};this.fnPageChange=function(a,b){var c=s(this[j.ext.iApiIndex]);qa(c,a);
|
||||
y(c);(b===n||b)&&x(c)};this.fnSetColumnVis=function(a,b,c){var d=s(this[j.ext.iApiIndex]),e,f,g=d.aoColumns,h=d.aoData,o,m;if(g[a].bVisible!=b){if(b){for(e=f=0;e<a;e++)g[e].bVisible&&f++;m=f>=t(d);if(!m)for(e=a;e<g.length;e++)if(g[e].bVisible){o=e;break}e=0;for(f=h.length;e<f;e++)null!==h[e].nTr&&(m?h[e].nTr.appendChild(h[e]._anHidden[a]):h[e].nTr.insertBefore(h[e]._anHidden[a],J(d,e)[o]))}else{e=0;for(f=h.length;e<f;e++)null!==h[e].nTr&&(o=J(d,e)[a],h[e]._anHidden[a]=o,o.parentNode.removeChild(o))}g[a].bVisible=
|
||||
b;W(d,d.aoHeader);d.nTFoot&&W(d,d.aoFooter);e=0;for(f=d.aoOpenRows.length;e<f;e++)d.aoOpenRows[e].nTr.colSpan=t(d);if(c===n||c)k(d),x(d);ra(d)}};this.fnSettings=function(){return s(this[j.ext.iApiIndex])};this.fnSort=function(a){var b=s(this[j.ext.iApiIndex]);b.aaSorting=a;O(b)};this.fnSortListener=function(a,b,c){ia(s(this[j.ext.iApiIndex]),a,b,c)};this.fnUpdate=function(a,b,c,d,e){var f=s(this[j.ext.iApiIndex]),b="object"===typeof b?I(f,b):b;if(h.isArray(a)&&c===n){f.aoData[b]._aData=a.slice();
|
||||
for(c=0;c<f.aoColumns.length;c++)this.fnUpdate(v(f,b,c),b,c,!1,!1)}else if(h.isPlainObject(a)&&c===n){f.aoData[b]._aData=h.extend(!0,{},a);for(c=0;c<f.aoColumns.length;c++)this.fnUpdate(v(f,b,c),b,c,!1,!1)}else{F(f,b,c,a);var a=v(f,b,c,"display"),g=f.aoColumns[c];null!==g.fnRender&&(a=S(f,b,c),g.bUseRendered&&F(f,b,c,a));null!==f.aoData[b].nTr&&(J(f,b)[c].innerHTML=a)}c=h.inArray(b,f.aiDisplay);f.asDataSearch[c]=na(f,Y(f,b,"filter",r(f,"bSearchable")));(e===n||e)&&k(f);(d===n||d)&&aa(f);return 0};
|
||||
this.fnVersionCheck=j.ext.fnVersionCheck;this.oApi={_fnExternApiFunc:Va,_fnInitialise:ba,_fnInitComplete:$,_fnLanguageCompat:pa,_fnAddColumn:o,_fnColumnOptions:m,_fnAddData:H,_fnCreateTr:ea,_fnGatherData:ua,_fnBuildHead:va,_fnDrawHead:W,_fnDraw:x,_fnReDraw:aa,_fnAjaxUpdate:wa,_fnAjaxParameters:Ea,_fnAjaxUpdateDraw:Fa,_fnServerParams:ka,_fnAddOptionsHtml:xa,_fnFeatureHtmlTable:Ba,_fnScrollDraw:La,_fnAdjustColumnSizing:k,_fnFeatureHtmlFilter:za,_fnFilterComplete:K,_fnFilterCustom:Ia,_fnFilterColumn:Ha,
|
||||
_fnFilter:Ga,_fnBuildSearchArray:la,_fnBuildSearchRow:na,_fnFilterCreateSearch:ma,_fnDataToSearch:Ja,_fnSort:O,_fnSortAttachListener:ia,_fnSortingClasses:P,_fnFeatureHtmlPaginate:Da,_fnPageChange:qa,_fnFeatureHtmlInfo:Ca,_fnUpdateInfo:Ka,_fnFeatureHtmlLength:ya,_fnFeatureHtmlProcessing:Aa,_fnProcessingDisplay:E,_fnVisibleToColumnIndex:G,_fnColumnIndexToVisible:R,_fnNodeToDataIndex:I,_fnVisbleColumns:t,_fnCalculateEnd:y,_fnConvertToWidth:Ma,_fnCalculateColumnWidths:da,_fnScrollingWidthAdjust:Oa,_fnGetWidestNode:Na,
|
||||
_fnGetMaxLenString:Pa,_fnStringToCss:q,_fnDetectType:B,_fnSettingsFromNode:s,_fnGetDataMaster:Z,_fnGetTrNodes:T,_fnGetTdNodes:J,_fnEscapeRegex:oa,_fnDeleteIndex:ha,_fnReOrderIndex:u,_fnColumnOrdering:M,_fnLog:D,_fnClearTable:ga,_fnSaveState:ra,_fnLoadState:Sa,_fnCreateCookie:function(a,b,c,d,e){var f=new Date;f.setTime(f.getTime()+1E3*c);var c=X.location.pathname.split("/"),a=a+"_"+c.pop().replace(/[\/:]/g,"").toLowerCase(),g;null!==e?(g="function"===typeof h.parseJSON?h.parseJSON(b):eval("("+b+")"),
|
||||
b=e(a,g,f.toGMTString(),c.join("/")+"/")):b=a+"="+encodeURIComponent(b)+"; expires="+f.toGMTString()+"; path="+c.join("/")+"/";a=l.cookie.split(";");e=b.split(";")[0].length;f=[];if(4096<e+l.cookie.length+10){for(var j=0,o=a.length;j<o;j++)if(-1!=a[j].indexOf(d)){var k=a[j].split("=");try{(g=eval("("+decodeURIComponent(k[1])+")"))&&g.iCreate&&f.push({name:k[0],time:g.iCreate})}catch(m){}}for(f.sort(function(a,b){return b.time-a.time});4096<e+l.cookie.length+10;){if(0===f.length)return;d=f.pop();l.cookie=
|
||||
d.name+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path="+c.join("/")+"/"}}l.cookie=b},_fnReadCookie:function(a){for(var b=X.location.pathname.split("/"),a=a+"_"+b[b.length-1].replace(/[\/:]/g,"").toLowerCase()+"=",b=l.cookie.split(";"),c=0;c<b.length;c++){for(var d=b[c];" "==d.charAt(0);)d=d.substring(1,d.length);if(0===d.indexOf(a))return decodeURIComponent(d.substring(a.length,d.length))}return null},_fnDetectHeader:V,_fnGetUniqueThs:N,_fnScrollBarWidth:Qa,_fnApplyToChildren:C,_fnMap:p,_fnGetRowData:Y,
|
||||
_fnGetCellData:v,_fnSetCellData:F,_fnGetObjectDataFn:Q,_fnSetObjectDataFn:L,_fnApplyColumnDefs:ta,_fnBindAction:Ra,_fnExtend:Ta,_fnCallbackReg:z,_fnCallbackFire:A,_fnJsonString:Wa,_fnRender:S,_fnNodeToColumnIndex:fa,_fnInfoMacros:ja,_fnBrowserDetect:Ua,_fnGetColumns:r};h.extend(j.ext.oApi,this.oApi);for(var sa in j.ext.oApi)sa&&(this[sa]=Va(sa));var ca=this;this.each(function(){var a=0,b,c,d;c=this.getAttribute("id");var i=!1,f=!1;if("table"!=this.nodeName.toLowerCase())D(null,0,"Attempted to initialise DataTables on a node which is not a table: "+
|
||||
this.nodeName);else{a=0;for(b=j.settings.length;a<b;a++){if(j.settings[a].nTable==this){if(e===n||e.bRetrieve)return j.settings[a].oInstance;if(e.bDestroy){j.settings[a].oInstance.fnDestroy();break}else{D(j.settings[a],0,"Cannot reinitialise DataTable.\n\nTo retrieve the DataTables object for this table, pass no arguments or see the docs for bRetrieve and bDestroy");return}}if(j.settings[a].sTableId==this.id){j.settings.splice(a,1);break}}if(null===c||""===c)this.id=c="DataTables_Table_"+j.ext._oExternConfig.iNextUnique++;
|
||||
var g=h.extend(!0,{},j.models.oSettings,{nTable:this,oApi:ca.oApi,oInit:e,sDestroyWidth:h(this).width(),sInstance:c,sTableId:c});j.settings.push(g);g.oInstance=1===ca.length?ca:h(this).dataTable();e||(e={});e.oLanguage&&pa(e.oLanguage);e=Ta(h.extend(!0,{},j.defaults),e);p(g.oFeatures,e,"bPaginate");p(g.oFeatures,e,"bLengthChange");p(g.oFeatures,e,"bFilter");p(g.oFeatures,e,"bSort");p(g.oFeatures,e,"bInfo");p(g.oFeatures,e,"bProcessing");p(g.oFeatures,e,"bAutoWidth");p(g.oFeatures,e,"bSortClasses");
|
||||
p(g.oFeatures,e,"bServerSide");p(g.oFeatures,e,"bDeferRender");p(g.oScroll,e,"sScrollX","sX");p(g.oScroll,e,"sScrollXInner","sXInner");p(g.oScroll,e,"sScrollY","sY");p(g.oScroll,e,"bScrollCollapse","bCollapse");p(g.oScroll,e,"bScrollInfinite","bInfinite");p(g.oScroll,e,"iScrollLoadGap","iLoadGap");p(g.oScroll,e,"bScrollAutoCss","bAutoCss");p(g,e,"asStripeClasses");p(g,e,"asStripClasses","asStripeClasses");p(g,e,"fnServerData");p(g,e,"fnFormatNumber");p(g,e,"sServerMethod");p(g,e,"aaSorting");p(g,
|
||||
e,"aaSortingFixed");p(g,e,"aLengthMenu");p(g,e,"sPaginationType");p(g,e,"sAjaxSource");p(g,e,"sAjaxDataProp");p(g,e,"iCookieDuration");p(g,e,"sCookiePrefix");p(g,e,"sDom");p(g,e,"bSortCellsTop");p(g,e,"iTabIndex");p(g,e,"oSearch","oPreviousSearch");p(g,e,"aoSearchCols","aoPreSearchCols");p(g,e,"iDisplayLength","_iDisplayLength");p(g,e,"bJQueryUI","bJUI");p(g,e,"fnCookieCallback");p(g,e,"fnStateLoad");p(g,e,"fnStateSave");p(g.oLanguage,e,"fnInfoCallback");z(g,"aoDrawCallback",e.fnDrawCallback,"user");
|
||||
z(g,"aoServerParams",e.fnServerParams,"user");z(g,"aoStateSaveParams",e.fnStateSaveParams,"user");z(g,"aoStateLoadParams",e.fnStateLoadParams,"user");z(g,"aoStateLoaded",e.fnStateLoaded,"user");z(g,"aoRowCallback",e.fnRowCallback,"user");z(g,"aoRowCreatedCallback",e.fnCreatedRow,"user");z(g,"aoHeaderCallback",e.fnHeaderCallback,"user");z(g,"aoFooterCallback",e.fnFooterCallback,"user");z(g,"aoInitComplete",e.fnInitComplete,"user");z(g,"aoPreDrawCallback",e.fnPreDrawCallback,"user");g.oFeatures.bServerSide&&
|
||||
g.oFeatures.bSort&&g.oFeatures.bSortClasses?z(g,"aoDrawCallback",P,"server_side_sort_classes"):g.oFeatures.bDeferRender&&z(g,"aoDrawCallback",P,"defer_sort_classes");e.bJQueryUI?(h.extend(g.oClasses,j.ext.oJUIClasses),e.sDom===j.defaults.sDom&&"lfrtip"===j.defaults.sDom&&(g.sDom='<"H"lfr>t<"F"ip>')):h.extend(g.oClasses,j.ext.oStdClasses);h(this).addClass(g.oClasses.sTable);if(""!==g.oScroll.sX||""!==g.oScroll.sY)g.oScroll.iBarWidth=Qa();g.iInitDisplayStart===n&&(g.iInitDisplayStart=e.iDisplayStart,
|
||||
g._iDisplayStart=e.iDisplayStart);e.bStateSave&&(g.oFeatures.bStateSave=!0,Sa(g,e),z(g,"aoDrawCallback",ra,"state_save"));null!==e.iDeferLoading&&(g.bDeferLoading=!0,a=h.isArray(e.iDeferLoading),g._iRecordsDisplay=a?e.iDeferLoading[0]:e.iDeferLoading,g._iRecordsTotal=a?e.iDeferLoading[1]:e.iDeferLoading);null!==e.aaData&&(f=!0);""!==e.oLanguage.sUrl?(g.oLanguage.sUrl=e.oLanguage.sUrl,h.getJSON(g.oLanguage.sUrl,null,function(a){pa(a);h.extend(true,g.oLanguage,e.oLanguage,a);ba(g)}),i=!0):h.extend(!0,
|
||||
g.oLanguage,e.oLanguage);null===e.asStripeClasses&&(g.asStripeClasses=[g.oClasses.sStripeOdd,g.oClasses.sStripeEven]);b=g.asStripeClasses.length;g.asDestroyStripes=[];if(b){c=!1;d=h(this).children("tbody").children("tr:lt("+b+")");for(a=0;a<b;a++)d.hasClass(g.asStripeClasses[a])&&(c=!0,g.asDestroyStripes.push(g.asStripeClasses[a]));c&&d.removeClass(g.asStripeClasses.join(" "))}c=[];a=this.getElementsByTagName("thead");0!==a.length&&(V(g.aoHeader,a[0]),c=N(g));if(null===e.aoColumns){d=[];a=0;for(b=
|
||||
c.length;a<b;a++)d.push(null)}else d=e.aoColumns;a=0;for(b=d.length;a<b;a++)e.saved_aoColumns!==n&&e.saved_aoColumns.length==b&&(null===d[a]&&(d[a]={}),d[a].bVisible=e.saved_aoColumns[a].bVisible),o(g,c?c[a]:null);ta(g,e.aoColumnDefs,d,function(a,b){m(g,a,b)});a=0;for(b=g.aaSorting.length;a<b;a++){g.aaSorting[a][0]>=g.aoColumns.length&&(g.aaSorting[a][0]=0);var k=g.aoColumns[g.aaSorting[a][0]];g.aaSorting[a][2]===n&&(g.aaSorting[a][2]=0);e.aaSorting===n&&g.saved_aaSorting===n&&(g.aaSorting[a][1]=
|
||||
k.asSorting[0]);c=0;for(d=k.asSorting.length;c<d;c++)if(g.aaSorting[a][1]==k.asSorting[c]){g.aaSorting[a][2]=c;break}}P(g);Ua(g);a=h(this).children("caption").each(function(){this._captionSide=h(this).css("caption-side")});b=h(this).children("thead");0===b.length&&(b=[l.createElement("thead")],this.appendChild(b[0]));g.nTHead=b[0];b=h(this).children("tbody");0===b.length&&(b=[l.createElement("tbody")],this.appendChild(b[0]));g.nTBody=b[0];g.nTBody.setAttribute("role","alert");g.nTBody.setAttribute("aria-live",
|
||||
"polite");g.nTBody.setAttribute("aria-relevant","all");b=h(this).children("tfoot");if(0===b.length&&0<a.length&&(""!==g.oScroll.sX||""!==g.oScroll.sY))b=[l.createElement("tfoot")],this.appendChild(b[0]);0<b.length&&(g.nTFoot=b[0],V(g.aoFooter,g.nTFoot));if(f)for(a=0;a<e.aaData.length;a++)H(g,e.aaData[a]);else ua(g);g.aiDisplay=g.aiDisplayMaster.slice();g.bInitialised=!0;!1===i&&ba(g)}});ca=null;return this};j.fnVersionCheck=function(e){for(var h=function(e,h){for(;e.length<h;)e+="0";return e},m=j.ext.sVersion.split("."),
|
||||
e=e.split("."),k="",n="",l=0,t=e.length;l<t;l++)k+=h(m[l],3),n+=h(e[l],3);return parseInt(k,10)>=parseInt(n,10)};j.fnIsDataTable=function(e){for(var h=j.settings,m=0;m<h.length;m++)if(h[m].nTable===e||h[m].nScrollHead===e||h[m].nScrollFoot===e)return!0;return!1};j.fnTables=function(e){var o=[];jQuery.each(j.settings,function(j,k){(!e||!0===e&&h(k.nTable).is(":visible"))&&o.push(k.nTable)});return o};j.version="1.9.4";j.settings=[];j.models={};j.models.ext={afnFiltering:[],afnSortData:[],aoFeatures:[],
|
||||
aTypes:[],fnVersionCheck:j.fnVersionCheck,iApiIndex:0,ofnSearch:{},oApi:{},oStdClasses:{},oJUIClasses:{},oPagination:{},oSort:{},sVersion:j.version,sErrMode:"alert",_oExternConfig:{iNextUnique:0}};j.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};j.models.oRow={nTr:null,_aData:[],_aSortData:[],_anHidden:[],_sRowStripe:""};j.models.oColumn={aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bUseRendered:null,bVisible:null,_bAutoType:!0,fnCreatedCell:null,fnGetData:null,
|
||||
fnRender:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};j.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,
|
||||
bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollAutoCss:!0,bScrollCollapse:!1,bScrollInfinite:!1,bServerSide:!1,bSort:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCookieCallback:null,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){if(1E3>e)return e;for(var h=e+"",e=h.split(""),j="",h=h.length,k=0;k<h;k++)0===k%3&&0!==k&&(j=this.oLanguage.sInfoThousands+j),j=e[h-k-1]+j;return j},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,
|
||||
fnRowCallback:null,fnServerData:function(e,j,m,k){k.jqXHR=h.ajax({url:e,data:j,success:function(e){e.sError&&k.oApi._fnLog(k,0,e.sError);h(k.oInstance).trigger("xhr",[k,e]);m(e)},dataType:"json",cache:!1,type:k.sServerMethod,error:function(e,h){"parsererror"==h&&k.oApi._fnLog(k,0,"DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error.")}})},fnServerParams:null,fnStateLoad:function(e){var e=this.oApi._fnReadCookie(e.sCookiePrefix+e.sInstance),j;try{j=
|
||||
"function"===typeof h.parseJSON?h.parseJSON(e):eval("("+e+")")}catch(m){j=null}return j},fnStateLoadParams:null,fnStateLoaded:null,fnStateSave:function(e,h){this.oApi._fnCreateCookie(e.sCookiePrefix+e.sInstance,this.oApi._fnJsonString(h),e.iCookieDuration,e.sCookiePrefix,e.fnCookieCallback)},fnStateSaveParams:null,iCookieDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iScrollLoadGap:100,iTabIndex:0,oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},
|
||||
oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sInfoThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sUrl:"",sZeroRecords:"No matching records found"},oSearch:h.extend({},j.models.oSearch),sAjaxDataProp:"aaData",
|
||||
sAjaxSource:null,sCookiePrefix:"SpryMedia_DataTables_",sDom:"lfrtip",sPaginationType:"two_button",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET"};j.defaults.columns={aDataSort:null,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bUseRendered:!0,bVisible:!0,fnCreatedCell:null,fnRender:null,iDataSort:-1,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};j.models.oSettings={oFeatures:{bAutoWidth:null,
|
||||
bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortClasses:null,bStateSave:null},oScroll:{bAutoCss:null,bCollapse:null,bInfinite:null,iBarWidth:0,iLoadGap:null,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1},aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aoColumns:[],aoHeader:[],aoFooter:[],asDataSearch:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:null,
|
||||
asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,sPaginationType:"two_button",iCookieDuration:0,sCookiePrefix:"",fnCookieCallback:null,aoStateSave:[],aoStateLoad:[],
|
||||
oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iDisplayEnd:10,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return this.oFeatures.bServerSide?parseInt(this._iRecordsTotal,10):this.aiDisplayMaster.length},
|
||||
fnRecordsDisplay:function(){return this.oFeatures.bServerSide?parseInt(this._iRecordsDisplay,10):this.aiDisplay.length},fnDisplayEnd:function(){return this.oFeatures.bServerSide?!1===this.oFeatures.bPaginate||-1==this._iDisplayLength?this._iDisplayStart+this.aiDisplay.length:Math.min(this._iDisplayStart+this._iDisplayLength,this._iRecordsDisplay):this._iDisplayEnd},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null};j.ext=h.extend(!0,{},j.models.ext);h.extend(j.ext.oStdClasses,
|
||||
{sTable:"dataTable",sPagePrevEnabled:"paginate_enabled_previous",sPagePrevDisabled:"paginate_disabled_previous",sPageNextEnabled:"paginate_enabled_next",sPageNextDisabled:"paginate_disabled_next",sPageJUINext:"",sPageJUIPrev:"",sPageButton:"paginate_button",sPageButtonActive:"paginate_active",sPageButtonStaticDisabled:"paginate_button paginate_button_disabled",sPageFirst:"first",sPagePrevious:"previous",sPageNext:"next",sPageLast:"last",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",
|
||||
sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",
|
||||
sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sFooterTH:"",sJUIHeader:"",sJUIFooter:""});h.extend(j.ext.oJUIClasses,j.ext.oStdClasses,{sPagePrevEnabled:"fg-button ui-button ui-state-default ui-corner-left",sPagePrevDisabled:"fg-button ui-button ui-state-default ui-corner-left ui-state-disabled",sPageNextEnabled:"fg-button ui-button ui-state-default ui-corner-right",
|
||||
sPageNextDisabled:"fg-button ui-button ui-state-default ui-corner-right ui-state-disabled",sPageJUINext:"ui-icon ui-icon-circle-arrow-e",sPageJUIPrev:"ui-icon ui-icon-circle-arrow-w",sPageButton:"fg-button ui-button ui-state-default",sPageButtonActive:"fg-button ui-button ui-state-default ui-state-disabled",sPageButtonStaticDisabled:"fg-button ui-button ui-state-default ui-state-disabled",sPageFirst:"first ui-corner-tl ui-corner-bl",sPageLast:"last ui-corner-tr ui-corner-br",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",
|
||||
sSortAsc:"ui-state-default",sSortDesc:"ui-state-default",sSortable:"ui-state-default",sSortableAsc:"ui-state-default",sSortableDesc:"ui-state-default",sSortableNone:"ui-state-default",sSortJUIAsc:"css_right ui-icon ui-icon-triangle-1-n",sSortJUIDesc:"css_right ui-icon ui-icon-triangle-1-s",sSortJUI:"css_right ui-icon ui-icon-carat-2-n-s",sSortJUIAscAllowed:"css_right ui-icon ui-icon-carat-1-n",sSortJUIDescAllowed:"css_right ui-icon ui-icon-carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",
|
||||
sScrollHead:"dataTables_scrollHead ui-state-default",sScrollFoot:"dataTables_scrollFoot ui-state-default",sFooterTH:"ui-state-default",sJUIHeader:"fg-toolbar ui-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix",sJUIFooter:"fg-toolbar ui-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"});h.extend(j.ext.oPagination,{two_button:{fnInit:function(e,j,m){var k=e.oLanguage.oPaginate,n=function(h){e.oApi._fnPageChange(e,h.data.action)&&m(e)},k=!e.bJUI?'<a class="'+
|
||||
e.oClasses.sPagePrevDisabled+'" tabindex="'+e.iTabIndex+'" role="button">'+k.sPrevious+'</a><a class="'+e.oClasses.sPageNextDisabled+'" tabindex="'+e.iTabIndex+'" role="button">'+k.sNext+"</a>":'<a class="'+e.oClasses.sPagePrevDisabled+'" tabindex="'+e.iTabIndex+'" role="button"><span class="'+e.oClasses.sPageJUIPrev+'"></span></a><a class="'+e.oClasses.sPageNextDisabled+'" tabindex="'+e.iTabIndex+'" role="button"><span class="'+e.oClasses.sPageJUINext+'"></span></a>';h(j).append(k);var l=h("a",j),
|
||||
k=l[0],l=l[1];e.oApi._fnBindAction(k,{action:"previous"},n);e.oApi._fnBindAction(l,{action:"next"},n);e.aanFeatures.p||(j.id=e.sTableId+"_paginate",k.id=e.sTableId+"_previous",l.id=e.sTableId+"_next",k.setAttribute("aria-controls",e.sTableId),l.setAttribute("aria-controls",e.sTableId))},fnUpdate:function(e){if(e.aanFeatures.p)for(var h=e.oClasses,j=e.aanFeatures.p,k,l=0,n=j.length;l<n;l++)if(k=j[l].firstChild)k.className=0===e._iDisplayStart?h.sPagePrevDisabled:h.sPagePrevEnabled,k=k.nextSibling,
|
||||
k.className=e.fnDisplayEnd()==e.fnRecordsDisplay()?h.sPageNextDisabled:h.sPageNextEnabled}},iFullNumbersShowPages:5,full_numbers:{fnInit:function(e,j,m){var k=e.oLanguage.oPaginate,l=e.oClasses,n=function(h){e.oApi._fnPageChange(e,h.data.action)&&m(e)};h(j).append('<a tabindex="'+e.iTabIndex+'" class="'+l.sPageButton+" "+l.sPageFirst+'">'+k.sFirst+'</a><a tabindex="'+e.iTabIndex+'" class="'+l.sPageButton+" "+l.sPagePrevious+'">'+k.sPrevious+'</a><span></span><a tabindex="'+e.iTabIndex+'" class="'+
|
||||
l.sPageButton+" "+l.sPageNext+'">'+k.sNext+'</a><a tabindex="'+e.iTabIndex+'" class="'+l.sPageButton+" "+l.sPageLast+'">'+k.sLast+"</a>");var t=h("a",j),k=t[0],l=t[1],r=t[2],t=t[3];e.oApi._fnBindAction(k,{action:"first"},n);e.oApi._fnBindAction(l,{action:"previous"},n);e.oApi._fnBindAction(r,{action:"next"},n);e.oApi._fnBindAction(t,{action:"last"},n);e.aanFeatures.p||(j.id=e.sTableId+"_paginate",k.id=e.sTableId+"_first",l.id=e.sTableId+"_previous",r.id=e.sTableId+"_next",t.id=e.sTableId+"_last")},
|
||||
fnUpdate:function(e,o){if(e.aanFeatures.p){var m=j.ext.oPagination.iFullNumbersShowPages,k=Math.floor(m/2),l=Math.ceil(e.fnRecordsDisplay()/e._iDisplayLength),n=Math.ceil(e._iDisplayStart/e._iDisplayLength)+1,t="",r,B=e.oClasses,u,M=e.aanFeatures.p,L=function(h){e.oApi._fnBindAction(this,{page:h+r-1},function(h){e.oApi._fnPageChange(e,h.data.page);o(e);h.preventDefault()})};-1===e._iDisplayLength?n=k=r=1:l<m?(r=1,k=l):n<=k?(r=1,k=m):n>=l-k?(r=l-m+1,k=l):(r=n-Math.ceil(m/2)+1,k=r+m-1);for(m=r;m<=k;m++)t+=
|
||||
n!==m?'<a tabindex="'+e.iTabIndex+'" class="'+B.sPageButton+'">'+e.fnFormatNumber(m)+"</a>":'<a tabindex="'+e.iTabIndex+'" class="'+B.sPageButtonActive+'">'+e.fnFormatNumber(m)+"</a>";m=0;for(k=M.length;m<k;m++)u=M[m],u.hasChildNodes()&&(h("span:eq(0)",u).html(t).children("a").each(L),u=u.getElementsByTagName("a"),u=[u[0],u[1],u[u.length-2],u[u.length-1]],h(u).removeClass(B.sPageButton+" "+B.sPageButtonActive+" "+B.sPageButtonStaticDisabled),h([u[0],u[1]]).addClass(1==n?B.sPageButtonStaticDisabled:
|
||||
B.sPageButton),h([u[2],u[3]]).addClass(0===l||n===l||-1===e._iDisplayLength?B.sPageButtonStaticDisabled:B.sPageButton))}}}});h.extend(j.ext.oSort,{"string-pre":function(e){"string"!=typeof e&&(e=null!==e&&e.toString?e.toString():"");return e.toLowerCase()},"string-asc":function(e,h){return e<h?-1:e>h?1:0},"string-desc":function(e,h){return e<h?1:e>h?-1:0},"html-pre":function(e){return e.replace(/<.*?>/g,"").toLowerCase()},"html-asc":function(e,h){return e<h?-1:e>h?1:0},"html-desc":function(e,h){return e<
|
||||
h?1:e>h?-1:0},"date-pre":function(e){e=Date.parse(e);if(isNaN(e)||""===e)e=Date.parse("01/01/1970 00:00:00");return e},"date-asc":function(e,h){return e-h},"date-desc":function(e,h){return h-e},"numeric-pre":function(e){return"-"==e||""===e?0:1*e},"numeric-asc":function(e,h){return e-h},"numeric-desc":function(e,h){return h-e}});h.extend(j.ext.aTypes,[function(e){if("number"===typeof e)return"numeric";if("string"!==typeof e)return null;var h,j=!1;h=e.charAt(0);if(-1=="0123456789-".indexOf(h))return null;
|
||||
for(var k=1;k<e.length;k++){h=e.charAt(k);if(-1=="0123456789.".indexOf(h))return null;if("."==h){if(j)return null;j=!0}}return"numeric"},function(e){var h=Date.parse(e);return null!==h&&!isNaN(h)||"string"===typeof e&&0===e.length?"date":null},function(e){return"string"===typeof e&&-1!=e.indexOf("<")&&-1!=e.indexOf(">")?"html":null}]);h.fn.DataTable=j;h.fn.dataTable=j;h.fn.dataTableSettings=j.settings;h.fn.dataTableExt=j.ext};"function"===typeof define&&define.amd?define(["jquery"],L):jQuery&&!jQuery.fn.dataTable&&
|
||||
L(jQuery)})(window,document);
|
||||
159
modules/lib/datatables/jquery.dataTables.sorting.js
Normal file
@ -0,0 +1,159 @@
|
||||
//Commas for decimal place
|
||||
jQuery.fn.dataTableExt.oSort['numeric-comma-asc'] = function(a,b) {
|
||||
var x = (a == "-") ? 0 : a.replace( /,/, "." );
|
||||
var y = (b == "-") ? 0 : b.replace( /,/, "." );
|
||||
x = parseFloat( x );
|
||||
y = parseFloat( y );
|
||||
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
|
||||
};
|
||||
|
||||
jQuery.fn.dataTableExt.oSort['numeric-comma-desc'] = function(a,b) {
|
||||
var x = (a == "-") ? 0 : a.replace( /,/, "." );
|
||||
var y = (b == "-") ? 0 : b.replace( /,/, "." );
|
||||
x = parseFloat( x );
|
||||
y = parseFloat( y );
|
||||
return ((x < y) ? 1 : ((x > y) ? -1 : 0));
|
||||
};
|
||||
|
||||
//Formatted numbers
|
||||
jQuery.fn.dataTableExt.oSort['formatted-num-asc'] = function(x,y){
|
||||
x = x.replace(/[^\d\-\.\/]/g,'');
|
||||
y = y.replace(/[^\d\-\.\/]/g,'');
|
||||
if(x.indexOf('/')>=0)x = eval(x);
|
||||
if(y.indexOf('/')>=0)y = eval(y);
|
||||
return x/1 - y/1;
|
||||
}
|
||||
jQuery.fn.dataTableExt.oSort['formatted-num-desc'] = function(x,y){
|
||||
x = x.replace(/[^\d\-\.\/]/g,'');
|
||||
y = y.replace(/[^\d\-\.\/]/g,'');
|
||||
if(x.indexOf('/')>=0)x = eval(x);
|
||||
if(y.indexOf('/')>=0)y = eval(y);
|
||||
return y/1 - x/1;
|
||||
}
|
||||
|
||||
// Date (dd . mm[ . YYYY])
|
||||
function calculate_date(date) {
|
||||
var date = date.replace(" ", "");
|
||||
|
||||
if (date.indexOf('.') > 0) {
|
||||
/*date a, format dd.mn.(yyyy) ; (year is optional)*/
|
||||
var eu_date = date.split('.');
|
||||
} else {
|
||||
/*date a, format dd/mn/(yyyy) ; (year is optional)*/
|
||||
var eu_date = date.split('/');
|
||||
}
|
||||
|
||||
/*year (optional)*/
|
||||
if (eu_date[2]) {
|
||||
var year = eu_date[2];
|
||||
} else {
|
||||
var year = 0;
|
||||
}
|
||||
|
||||
/*month*/
|
||||
var month = eu_date[1];
|
||||
if (month.length == 1) {
|
||||
month = 0+month;
|
||||
}
|
||||
|
||||
/*day*/
|
||||
var day = eu_date[0];
|
||||
if (day.length == 1) {
|
||||
day = 0+day;
|
||||
}
|
||||
|
||||
return (year + month + day) * 1;
|
||||
}
|
||||
|
||||
jQuery.fn.dataTableExt.oSort['eu_date-asc'] = function(a, b) {
|
||||
x = calculate_date(a);
|
||||
y = calculate_date(b);
|
||||
|
||||
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
|
||||
};
|
||||
|
||||
jQuery.fn.dataTableExt.oSort['eu_date-desc'] = function(a, b) {
|
||||
x = calculate_date(a);
|
||||
y = calculate_date(b);
|
||||
|
||||
return ((x < y) ? 1 : ((x > y) ? -1 : 0));
|
||||
};
|
||||
|
||||
//Automatic HTML type detection
|
||||
jQuery.fn.dataTableExt.aTypes.push(
|
||||
function ( sData ) {
|
||||
return 'html';
|
||||
}
|
||||
);
|
||||
|
||||
//Priority
|
||||
function fnPriority( a ) {
|
||||
if ( a == "High" ) { return 1; }
|
||||
else if ( a == "Medium" ) { return 2; }
|
||||
else if ( a == "Low" ) { return 3; }
|
||||
return 4;
|
||||
}
|
||||
|
||||
jQuery.fn.dataTableExt.oSort['priority-asc'] = function(a,b) {
|
||||
var x = fnPriority( a );
|
||||
var y = fnPriority( b );
|
||||
|
||||
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
|
||||
};
|
||||
|
||||
jQuery.fn.dataTableExt.oSort['priority-desc'] = function(a,b) {
|
||||
var x = fnPriority( a );
|
||||
var y = fnPriority( b );
|
||||
|
||||
return ((x < y) ? 1 : ((x > y) ? -1 : 0));
|
||||
};
|
||||
|
||||
/*
|
||||
* Natural Sort algorithm for Javascript - Version 0.6 - Released under MIT license
|
||||
* Author: Jim Palmer (based on chunking idea from Dave Koelle)
|
||||
* Contributors: Mike Grier (mgrier.com), Clint Priest, Kyle Adams, guillermo
|
||||
*/
|
||||
function naturalSort (a, b) {
|
||||
var re = /(^-?[0-9]+(\.?[0-9]*)[df]?e?[0-9]?$|^0x[0-9a-f]+$|[0-9]+)/gi,
|
||||
sre = /(^[ ]*|[ ]*$)/g,
|
||||
dre = /(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,
|
||||
hre = /^0x[0-9a-f]+$/i,
|
||||
ore = /^0/,
|
||||
// convert all to strings and trim()
|
||||
x = a.toString().replace(sre, '') || '',
|
||||
y = b.toString().replace(sre, '') || '',
|
||||
// chunk/tokenize
|
||||
xN = x.replace(re, '\0$1\0').replace(/\0$/,'').replace(/^\0/,'').split('\0'),
|
||||
yN = y.replace(re, '\0$1\0').replace(/\0$/,'').replace(/^\0/,'').split('\0'),
|
||||
// numeric, hex or date detection
|
||||
xD = parseInt(x.match(hre)) || (xN.length != 1 && x.match(dre) && Date.parse(x)),
|
||||
yD = parseInt(y.match(hre)) || xD && y.match(dre) && Date.parse(y) || null;
|
||||
// first try and sort Hex codes or Dates
|
||||
if (yD)
|
||||
if ( xD < yD ) return -1;
|
||||
else if ( xD > yD ) return 1;
|
||||
// natural sorting through split numeric strings and default strings
|
||||
for(var cLoc=0, numS=Math.max(xN.length, yN.length); cLoc < numS; cLoc++) {
|
||||
// find floats not starting with '0', string or 0 if not defined (Clint Priest)
|
||||
oFxNcL = !(xN[cLoc] || '').match(ore) && parseFloat(xN[cLoc]) || xN[cLoc] || 0;
|
||||
oFyNcL = !(yN[cLoc] || '').match(ore) && parseFloat(yN[cLoc]) || yN[cLoc] || 0;
|
||||
// handle numeric vs string comparison - number < string - (Kyle Adams)
|
||||
if (isNaN(oFxNcL) !== isNaN(oFyNcL)) return (isNaN(oFxNcL)) ? 1 : -1;
|
||||
// rely on string comparison if different types - i.e. '02' < 2 != '02' < '2'
|
||||
else if (typeof oFxNcL !== typeof oFyNcL) {
|
||||
oFxNcL += '';
|
||||
oFyNcL += '';
|
||||
}
|
||||
if (oFxNcL < oFyNcL) return -1;
|
||||
if (oFxNcL > oFyNcL) return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
jQuery.fn.dataTableExt.oSort['natural-asc'] = function(a,b) {
|
||||
return naturalSort(a,b);
|
||||
};
|
||||
|
||||
jQuery.fn.dataTableExt.oSort['natural-desc'] = function(a,b) {
|
||||
return naturalSort(a,b) * -1;
|
||||
};
|
||||
10
modules/lib/datatables/license-bsd.txt
Normal file
@ -0,0 +1,10 @@
|
||||
Copyright (c) 2008-2010, Allan Jardine
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of Allan Jardine nor SpryMedia UK may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
339
modules/lib/datatables/license-gpl2.txt
Normal file
@ -0,0 +1,339 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
||||
203
modules/lib/datatables/server_side.php
Normal file
@ -0,0 +1,203 @@
|
||||
<?php
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* Easy set variables
|
||||
*/
|
||||
|
||||
/* Array of database columns which should be read and sent back to DataTables. Use a space where
|
||||
* you want to insert a non-database field (for example a counter or static image)
|
||||
*/
|
||||
$aColumns = array( 'engine', 'browser', 'platform', 'version', 'grade' );
|
||||
|
||||
/* Indexed column (used for fast and accurate table cardinality) */
|
||||
$sIndexColumn = "id";
|
||||
|
||||
/* DB table to use */
|
||||
$sTable = "ajax";
|
||||
|
||||
/* Database connection information */
|
||||
$gaSql['user'] = "";
|
||||
$gaSql['password'] = "";
|
||||
$gaSql['db'] = "";
|
||||
$gaSql['server'] = "localhost";
|
||||
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* If you just want to use the basic configuration for DataTables with PHP server-side, there is
|
||||
* no need to edit below this line
|
||||
*/
|
||||
|
||||
/*
|
||||
* MySQL connection
|
||||
*/
|
||||
$gaSql['link'] = mysql_pconnect( $gaSql['server'], $gaSql['user'], $gaSql['password'] ) or
|
||||
die( 'Could not open connection to server' );
|
||||
|
||||
mysql_select_db( $gaSql['db'], $gaSql['link'] ) or
|
||||
die( 'Could not select database '. $gaSql['db'] );
|
||||
|
||||
|
||||
/*
|
||||
* Paging
|
||||
*/
|
||||
$sLimit = "";
|
||||
if ( isset( $_GET['iDisplayStart'] ) && $_GET['iDisplayLength'] != '-1' )
|
||||
{
|
||||
$sLimit = "LIMIT ".mysql_real_escape_string( $_GET['iDisplayStart'] ).", ".
|
||||
mysql_real_escape_string( $_GET['iDisplayLength'] );
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Ordering
|
||||
*/
|
||||
$sOrder = "";
|
||||
if ( isset( $_GET['iSortCol_0'] ) )
|
||||
{
|
||||
$sOrder = "ORDER BY ";
|
||||
for ( $i=0 ; $i<intval( $_GET['iSortingCols'] ) ; $i++ )
|
||||
{
|
||||
if ( $_GET[ 'bSortable_'.intval($_GET['iSortCol_'.$i]) ] == "true" )
|
||||
{
|
||||
$sOrder .= $aColumns[ intval( $_GET['iSortCol_'.$i] )-1 ]."
|
||||
".mysql_real_escape_string( $_GET['sSortDir_'.$i] ) .", ";
|
||||
}
|
||||
}
|
||||
|
||||
$sOrder = substr_replace( $sOrder, "", -2 );
|
||||
if ( $sOrder == "ORDER BY" )
|
||||
{
|
||||
$sOrder = "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Filtering
|
||||
* NOTE this does not match the built-in DataTables filtering which does it
|
||||
* word by word on any field. It's possible to do here, but concerned about efficiency
|
||||
* on very large tables, and MySQL's regex functionality is very limited
|
||||
*/
|
||||
$sWhere = "";
|
||||
if ( $_GET['sSearch'] != "" )
|
||||
{
|
||||
$sWhere = "(";
|
||||
$aWords = preg_split('/\s+/', $_GET['sSearch']);
|
||||
for ( $j=0 ; $j<count($aWords) ; $j++ )
|
||||
{
|
||||
if ( $aWords[$j] != "" )
|
||||
{
|
||||
$sWhere .= "(";
|
||||
for ( $i=0 ; $i<count($aColumns) ; $i++ )
|
||||
{
|
||||
$sWhere .= $aColumns[$i]." LIKE '%".mysql_real_escape_string( $aWords[$j] )."%' OR ";
|
||||
}
|
||||
$sWhere = substr_replace( $sWhere, "", -3 );
|
||||
$sWhere .= ") AND ";
|
||||
}
|
||||
}
|
||||
|
||||
$sWhere = substr_replace( $sWhere, "", -5 );
|
||||
$sWhere .= ")";
|
||||
}
|
||||
|
||||
/* Individual column filtering */
|
||||
$sColumnWhere = "";
|
||||
for ( $i=0 ; $i<count($aColumns) ; $i++ )
|
||||
{
|
||||
if ( $_GET['sSearch_'.$i] != "" )
|
||||
{
|
||||
$aWords = preg_split('/\s+/', $_GET['sSearch_'.$i]);
|
||||
$sColumnWhere .= "(";
|
||||
for ( $j=0 ; $j<count($aWords) ; $j++ )
|
||||
{
|
||||
if ( $aWords[$j] != "" )
|
||||
{
|
||||
$sColumnWhere .= $aColumns[$i]." LIKE '%".mysql_real_escape_string( $aWords[$j] )."%' OR ";
|
||||
}
|
||||
}
|
||||
$sColumnWhere = substr_replace( $sColumnWhere, "", -3 );
|
||||
$sColumnWhere .= ") AND ";
|
||||
}
|
||||
}
|
||||
|
||||
if ( $sColumnWhere != "" ) {
|
||||
$sColumnWhere = substr_replace( $sColumnWhere, "", -5 );
|
||||
if ( $sWhere == "" ) {
|
||||
$sWhere = $sColumnWhere;
|
||||
} else {
|
||||
$sWhere .= " AND ".$sColumnWhere;
|
||||
}
|
||||
}
|
||||
|
||||
if ( $sWhere != "" )
|
||||
{
|
||||
$sWhere = "WHERE ".$sWhere;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* SQL queries
|
||||
* Get data to display
|
||||
*/
|
||||
$sQuery = "
|
||||
SELECT SQL_CALC_FOUND_ROWS ".str_replace(" , ", " ", implode(", ", $aColumns))."
|
||||
FROM $sTable
|
||||
$sWhere
|
||||
$sOrder
|
||||
$sLimit
|
||||
";
|
||||
$rResult = mysql_query( $sQuery, $gaSql['link'] ) or die(mysql_error());
|
||||
|
||||
/* Data set length after filtering */
|
||||
$sQuery = "
|
||||
SELECT FOUND_ROWS()
|
||||
";
|
||||
$rResultFilterTotal = mysql_query( $sQuery, $gaSql['link'] ) or die(mysql_error());
|
||||
$aResultFilterTotal = mysql_fetch_array($rResultFilterTotal);
|
||||
$iFilteredTotal = $aResultFilterTotal[0];
|
||||
|
||||
/* Total data set length */
|
||||
$sQuery = "
|
||||
SELECT COUNT(".$sIndexColumn.")
|
||||
FROM $sTable
|
||||
";
|
||||
$rResultTotal = mysql_query( $sQuery, $gaSql['link'] ) or die(mysql_error());
|
||||
$aResultTotal = mysql_fetch_array($rResultTotal);
|
||||
$iTotal = $aResultTotal[0];
|
||||
|
||||
|
||||
/*
|
||||
* Output
|
||||
*/
|
||||
$output = array(
|
||||
"sEcho" => intval($_GET['sEcho']),
|
||||
"iTotalRecords" => $iTotal,
|
||||
"iTotalDisplayRecords" => $iFilteredTotal,
|
||||
"aaData" => array()
|
||||
);
|
||||
|
||||
while ( $aRow = mysql_fetch_array( $rResult ) )
|
||||
{
|
||||
$row = array();
|
||||
|
||||
/* Add the details image at the start of the display array */
|
||||
$row[] = '<img src="img/details_open.png">';
|
||||
|
||||
for ( $i=0 ; $i<count($aColumns) ; $i++ )
|
||||
{
|
||||
if ( $aColumns[$i] == "version" )
|
||||
{
|
||||
/* Special output formatting for 'version' column */
|
||||
$row[] = ($aRow[ $aColumns[$i] ]=="0") ? '-' : $aRow[ $aColumns[$i] ];
|
||||
}
|
||||
else if ( $aColumns[$i] != ' ' )
|
||||
{
|
||||
/* General output */
|
||||
$row[] = $aRow[ $aColumns[$i] ];
|
||||
}
|
||||
}
|
||||
$row['extra'] = 'hrmll';
|
||||
$output['aaData'][] = $row;
|
||||
}
|
||||
|
||||
echo json_encode( $output );
|
||||
?>
|
||||
202
modules/lib/datepicker/LICENSE
Normal file
@ -0,0 +1,202 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
753
modules/lib/datepicker/bootstrap-datepicker.js
vendored
Normal file
@ -0,0 +1,753 @@
|
||||
/* =========================================================
|
||||
* bootstrap-datepicker.js
|
||||
* http://www.eyecon.ro/bootstrap-datepicker
|
||||
* =========================================================
|
||||
* Copyright 2012 Stefan Petre
|
||||
* Improvements by Andrew Rowls
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* ========================================================= */
|
||||
|
||||
!function( $ ) {
|
||||
|
||||
// Picker object
|
||||
|
||||
var Datepicker = function(element, options){
|
||||
this.element = $(element);
|
||||
this.language = options.language||this.element.data('date-language')||"en";
|
||||
this.language = this.language in dates ? this.language : "en";
|
||||
this.format = DPGlobal.parseFormat(options.format||this.element.data('date-format')||'mm/dd/yyyy');
|
||||
this.picker = $(DPGlobal.template)
|
||||
.appendTo('body')
|
||||
.on({
|
||||
click: $.proxy(this.click, this),
|
||||
mousedown: $.proxy(this.mousedown, this)
|
||||
});
|
||||
this.isInput = this.element.is('input');
|
||||
this.component = this.element.is('.date') ? this.element.find('.add-on') : false;
|
||||
if(this.component && this.component.length === 0)
|
||||
this.component = false;
|
||||
|
||||
if (this.isInput) {
|
||||
this.element.on({
|
||||
focus: $.proxy(this.show, this),
|
||||
blur: $.proxy(this._hide, this),
|
||||
keyup: $.proxy(this.update, this),
|
||||
keydown: $.proxy(this.keydown, this)
|
||||
});
|
||||
} else {
|
||||
if (this.component){
|
||||
this.component.on('click', $.proxy(this.show, this));
|
||||
var element = this.element.find('input');
|
||||
element.on({
|
||||
blur: $.proxy(this._hide, this)
|
||||
})
|
||||
} else {
|
||||
this.element.on('click', $.proxy(this.show, this));
|
||||
}
|
||||
}
|
||||
|
||||
this.autoclose = false;
|
||||
if ('autoclose' in options) {
|
||||
this.autoclose = options.autoclose;
|
||||
} else if ('dateAutoclose' in this.element.data()) {
|
||||
this.autoclose = this.element.data('date-autoclose');
|
||||
}
|
||||
|
||||
switch(options.startView){
|
||||
case 2:
|
||||
case 'decade':
|
||||
this.viewMode = this.startViewMode = 2;
|
||||
break;
|
||||
case 1:
|
||||
case 'year':
|
||||
this.viewMode = this.startViewMode = 1;
|
||||
break;
|
||||
case 0:
|
||||
case 'month':
|
||||
default:
|
||||
this.viewMode = this.startViewMode = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
this.weekStart = ((options.weekStart||this.element.data('date-weekstart')||dates[this.language].weekStart||0) % 7);
|
||||
this.weekEnd = ((this.weekStart + 6) % 7);
|
||||
this.startDate = -Infinity;
|
||||
this.endDate = Infinity;
|
||||
this.setStartDate(options.startDate||this.element.data('date-startdate'));
|
||||
this.setEndDate(options.endDate||this.element.data('date-enddate'));
|
||||
this.fillDow();
|
||||
this.fillMonths();
|
||||
this.update();
|
||||
this.showMode();
|
||||
};
|
||||
|
||||
Datepicker.prototype = {
|
||||
constructor: Datepicker,
|
||||
|
||||
show: function(e) {
|
||||
this.picker.show();
|
||||
this.height = this.component ? this.component.outerHeight() : this.element.outerHeight();
|
||||
this.place();
|
||||
$(window).on('resize', $.proxy(this.place, this));
|
||||
if (e ) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
}
|
||||
if (!this.isInput) {
|
||||
$(document).on('mousedown', $.proxy(this.hide, this));
|
||||
}
|
||||
this.element.trigger({
|
||||
type: 'show',
|
||||
date: this.date
|
||||
});
|
||||
},
|
||||
|
||||
_hide: function(e){
|
||||
// When going from the input to the picker, IE handles the blur/click
|
||||
// events differently than other browsers, in such a way that the blur
|
||||
// event triggers a hide before the click event can stop propagation.
|
||||
if ($.browser.msie) {
|
||||
var t = this, args = arguments;
|
||||
|
||||
function cancel_hide(){
|
||||
clearTimeout(hide_timeout);
|
||||
e.target.focus();
|
||||
t.picker.off('click', cancel_hide);
|
||||
}
|
||||
|
||||
function do_hide(){
|
||||
t.hide.apply(t, args);
|
||||
t.picker.off('click', cancel_hide);
|
||||
}
|
||||
|
||||
this.picker.on('click', cancel_hide);
|
||||
var hide_timeout = setTimeout(do_hide, 100);
|
||||
} else {
|
||||
return this.hide.apply(this, arguments);
|
||||
}
|
||||
},
|
||||
|
||||
hide: function(e){
|
||||
this.picker.hide();
|
||||
$(window).off('resize', this.place);
|
||||
this.viewMode = this.startViewMode;
|
||||
this.showMode();
|
||||
if (!this.isInput) {
|
||||
$(document).off('mousedown', this.hide);
|
||||
}
|
||||
if (e && e.currentTarget.value)
|
||||
this.setValue();
|
||||
this.element.trigger({
|
||||
type: 'hide',
|
||||
date: this.date
|
||||
});
|
||||
},
|
||||
|
||||
setValue: function() {
|
||||
var formated = DPGlobal.formatDate(this.date, this.format, this.language);
|
||||
if (!this.isInput) {
|
||||
if (this.component){
|
||||
this.element.find('input').prop('value', formated);
|
||||
}
|
||||
this.element.data('date', formated);
|
||||
} else {
|
||||
this.element.prop('value', formated);
|
||||
}
|
||||
},
|
||||
|
||||
setStartDate: function(startDate){
|
||||
this.startDate = startDate||-Infinity;
|
||||
if (this.startDate !== -Infinity) {
|
||||
this.startDate = DPGlobal.parseDate(this.startDate, this.format, this.language);
|
||||
}
|
||||
this.update();
|
||||
this.updateNavArrows();
|
||||
},
|
||||
|
||||
setEndDate: function(endDate){
|
||||
this.endDate = endDate||Infinity;
|
||||
if (this.endDate !== Infinity) {
|
||||
this.endDate = DPGlobal.parseDate(this.endDate, this.format, this.language);
|
||||
}
|
||||
this.update();
|
||||
this.updateNavArrows();
|
||||
},
|
||||
|
||||
place: function(){
|
||||
var offset = this.component ? this.component.offset() : this.element.offset();
|
||||
var windowWidth = $(window).width()
|
||||
var posOver = windowWidth - offset.left;
|
||||
var componentWidth = this.component ? this.component.outerWidth() : 0;
|
||||
if((posOver) < 208 ) {
|
||||
this.picker.addClass('dp_right').css({
|
||||
top: offset.top + this.height,
|
||||
right: posOver - componentWidth,
|
||||
left: 'auto'
|
||||
})
|
||||
} else {
|
||||
this.picker.css({
|
||||
top: offset.top + this.height,
|
||||
left: offset.left
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
update: function(){
|
||||
this.date = DPGlobal.parseDate(
|
||||
this.isInput ? this.element.prop('value') : this.element.data('date'),
|
||||
this.format, this.language
|
||||
);
|
||||
if (this.date < this.startDate) {
|
||||
this.viewDate = new Date(this.startDate);
|
||||
} else if (this.date > this.endDate) {
|
||||
this.viewDate = new Date(this.endDate);
|
||||
} else {
|
||||
this.viewDate = new Date(this.date);
|
||||
}
|
||||
this.fill();
|
||||
},
|
||||
|
||||
fillDow: function(){
|
||||
var dowCnt = this.weekStart;
|
||||
var html = '<tr>';
|
||||
while (dowCnt < this.weekStart + 7) {
|
||||
html += '<th class="dow">'+dates[this.language].daysMin[(dowCnt++)%7]+'</th>';
|
||||
}
|
||||
html += '</tr>';
|
||||
this.picker.find('.datepicker-days thead').append(html);
|
||||
},
|
||||
|
||||
fillMonths: function(){
|
||||
var html = '';
|
||||
var i = 0
|
||||
while (i < 12) {
|
||||
html += '<span class="month">'+dates[this.language].monthsShort[i++]+'</span>';
|
||||
}
|
||||
this.picker.find('.datepicker-months td').html(html);
|
||||
},
|
||||
|
||||
fill: function() {
|
||||
var d = new Date(this.viewDate),
|
||||
year = d.getFullYear(),
|
||||
month = d.getMonth(),
|
||||
startYear = this.startDate !== -Infinity ? this.startDate.getFullYear() : -Infinity,
|
||||
startMonth = this.startDate !== -Infinity ? this.startDate.getMonth() : -Infinity,
|
||||
endYear = this.endDate !== Infinity ? this.endDate.getFullYear() : Infinity,
|
||||
endMonth = this.endDate !== Infinity ? this.endDate.getMonth() : Infinity,
|
||||
currentDate = this.date.valueOf();
|
||||
this.picker.find('.datepicker-days th:eq(1)')
|
||||
.text(dates[this.language].months[month]+' '+year);
|
||||
this.updateNavArrows();
|
||||
this.fillMonths();
|
||||
var prevMonth = new Date(year, month-1, 28,0,0,0,0),
|
||||
day = DPGlobal.getDaysInMonth(prevMonth.getFullYear(), prevMonth.getMonth());
|
||||
prevMonth.setDate(day);
|
||||
prevMonth.setDate(day - (prevMonth.getDay() - this.weekStart + 7)%7);
|
||||
var nextMonth = new Date(prevMonth);
|
||||
nextMonth.setDate(nextMonth.getDate() + 42);
|
||||
nextMonth = nextMonth.valueOf();
|
||||
html = [];
|
||||
var clsName;
|
||||
while(prevMonth.valueOf() < nextMonth) {
|
||||
if (prevMonth.getDay() == this.weekStart) {
|
||||
html.push('<tr>');
|
||||
}
|
||||
clsName = '';
|
||||
if (prevMonth.getFullYear() < year || (prevMonth.getFullYear() == year && prevMonth.getMonth() < month)) {
|
||||
clsName += ' old';
|
||||
} else if (prevMonth.getFullYear() > year || (prevMonth.getFullYear() == year && prevMonth.getMonth() > month)) {
|
||||
clsName += ' new';
|
||||
}
|
||||
if (prevMonth.valueOf() == currentDate) {
|
||||
clsName += ' active';
|
||||
}
|
||||
if (prevMonth.valueOf() < this.startDate || prevMonth.valueOf() > this.endDate) {
|
||||
clsName += ' disabled';
|
||||
}
|
||||
html.push('<td class="day'+clsName+'">'+prevMonth.getDate() + '</td>');
|
||||
if (prevMonth.getDay() == this.weekEnd) {
|
||||
html.push('</tr>');
|
||||
}
|
||||
prevMonth.setDate(prevMonth.getDate()+1);
|
||||
}
|
||||
this.picker.find('.datepicker-days tbody').empty().append(html.join(''));
|
||||
var currentYear = this.date.getFullYear();
|
||||
|
||||
var months = this.picker.find('.datepicker-months')
|
||||
.find('th:eq(1)')
|
||||
.text(year)
|
||||
.end()
|
||||
.find('span').removeClass('active');
|
||||
if (currentYear == year) {
|
||||
months.eq(this.date.getMonth()).addClass('active');
|
||||
}
|
||||
if (year < startYear || year > endYear) {
|
||||
months.addClass('disabled');
|
||||
}
|
||||
if (year == startYear) {
|
||||
months.slice(0, startMonth).addClass('disabled');
|
||||
}
|
||||
if (year == endYear) {
|
||||
months.slice(endMonth+1).addClass('disabled');
|
||||
}
|
||||
|
||||
html = '';
|
||||
year = parseInt(year/10, 10) * 10;
|
||||
var yearCont = this.picker.find('.datepicker-years')
|
||||
.find('th:eq(1)')
|
||||
.text(year + '-' + (year + 9))
|
||||
.end()
|
||||
.find('td');
|
||||
year -= 1;
|
||||
for (var i = -1; i < 11; i++) {
|
||||
html += '<span class="year'+(i == -1 || i == 10 ? ' old' : '')+(currentYear == year ? ' active' : '')+(year < startYear || year > endYear ? ' disabled' : '')+'">'+year+'</span>';
|
||||
year += 1;
|
||||
}
|
||||
yearCont.html(html);
|
||||
},
|
||||
|
||||
updateNavArrows: function() {
|
||||
var d = new Date(this.viewDate),
|
||||
year = d.getFullYear(),
|
||||
month = d.getMonth();
|
||||
switch (this.viewMode) {
|
||||
case 0:
|
||||
if (this.startDate !== -Infinity && year <= this.startDate.getFullYear() && month <= this.startDate.getMonth()) {
|
||||
this.picker.find('.prev').css({visibility: 'hidden'});
|
||||
} else {
|
||||
this.picker.find('.prev').css({visibility: 'visible'});
|
||||
}
|
||||
if (this.endDate !== Infinity && year >= this.endDate.getFullYear() && month >= this.endDate.getMonth()) {
|
||||
this.picker.find('.next').css({visibility: 'hidden'});
|
||||
} else {
|
||||
this.picker.find('.next').css({visibility: 'visible'});
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
case 2:
|
||||
if (this.startDate !== -Infinity && year <= this.startDate.getFullYear()) {
|
||||
this.picker.find('.prev').css({visibility: 'hidden'});
|
||||
} else {
|
||||
this.picker.find('.prev').css({visibility: 'visible'});
|
||||
}
|
||||
if (this.endDate !== Infinity && year >= this.endDate.getFullYear()) {
|
||||
this.picker.find('.next').css({visibility: 'hidden'});
|
||||
} else {
|
||||
this.picker.find('.next').css({visibility: 'visible'});
|
||||
}
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
click: function(e) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
var target = $(e.target).closest('span, td, th');
|
||||
if (target.length == 1) {
|
||||
switch(target[0].nodeName.toLowerCase()) {
|
||||
case 'th':
|
||||
switch(target[0].className) {
|
||||
case 'switch':
|
||||
this.showMode(1);
|
||||
break;
|
||||
case 'prev':
|
||||
case 'next':
|
||||
var dir = DPGlobal.modes[this.viewMode].navStep * (target[0].className == 'prev' ? -1 : 1);
|
||||
switch(this.viewMode){
|
||||
case 0:
|
||||
this.viewDate = this.moveMonth(this.viewDate, dir);
|
||||
break;
|
||||
case 1:
|
||||
case 2:
|
||||
this.viewDate = this.moveYear(this.viewDate, dir);
|
||||
break;
|
||||
}
|
||||
this.fill();
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 'span':
|
||||
if (!target.is('.disabled')) {
|
||||
if (target.is('.month')) {
|
||||
var month = target.parent().find('span').index(target);
|
||||
this.viewDate.setMonth(month);
|
||||
} else {
|
||||
var year = parseInt(target.text(), 10)||0;
|
||||
this.viewDate.setFullYear(year);
|
||||
}
|
||||
this.showMode(-1);
|
||||
this.fill();
|
||||
}
|
||||
break;
|
||||
case 'td':
|
||||
if (target.is('.day') && !target.is('.disabled')){
|
||||
var day = parseInt(target.text(), 10)||1;
|
||||
var year = this.viewDate.getFullYear(),
|
||||
month = this.viewDate.getMonth();
|
||||
if (target.is('.old')) {
|
||||
if (month == 0) {
|
||||
month = 11;
|
||||
year -= 1;
|
||||
} else {
|
||||
month -= 1;
|
||||
}
|
||||
} else if (target.is('.new')) {
|
||||
if (month == 11) {
|
||||
month = 0;
|
||||
year += 1;
|
||||
} else {
|
||||
month += 1;
|
||||
}
|
||||
}
|
||||
this.date = new Date(year, month, day,0,0,0,0);
|
||||
this.viewDate = new Date(year, month, day,0,0,0,0);
|
||||
this.fill();
|
||||
this.setValue();
|
||||
this.element.trigger({
|
||||
type: 'changeDate',
|
||||
date: this.date
|
||||
});
|
||||
var element;
|
||||
if (this.isInput) {
|
||||
element = this.element;
|
||||
} else if (this.component){
|
||||
element = this.element.find('input');
|
||||
}
|
||||
if (element) {
|
||||
element.change();
|
||||
if (this.autoclose) {
|
||||
element.blur();
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
mousedown: function(e){
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
},
|
||||
|
||||
moveMonth: function(date, dir){
|
||||
if (!dir) return date;
|
||||
var new_date = new Date(date.valueOf()),
|
||||
day = new_date.getDate(),
|
||||
month = new_date.getMonth(),
|
||||
mag = Math.abs(dir),
|
||||
new_month, test;
|
||||
dir = dir > 0 ? 1 : -1;
|
||||
if (mag == 1){
|
||||
test = dir == -1
|
||||
// If going back one month, make sure month is not current month
|
||||
// (eg, Mar 31 -> Feb 31 == Feb 28, not Mar 02)
|
||||
? function(){ return new_date.getMonth() == month; }
|
||||
// If going forward one month, make sure month is as expected
|
||||
// (eg, Jan 31 -> Feb 31 == Feb 28, not Mar 02)
|
||||
: function(){ return new_date.getMonth() != new_month; };
|
||||
new_month = month + dir;
|
||||
new_date.setMonth(new_month);
|
||||
// Dec -> Jan (12) or Jan -> Dec (-1) -- limit expected date to 0-11
|
||||
if (new_month < 0 || new_month > 11)
|
||||
new_month = (new_month + 12) % 12;
|
||||
} else {
|
||||
// For magnitudes >1, move one month at a time...
|
||||
for (var i=0; i<mag; i++)
|
||||
// ...which might decrease the day (eg, Jan 31 to Feb 28, etc)...
|
||||
new_date = this.moveMonth(new_date, dir);
|
||||
// ...then reset the day, keeping it in the new month
|
||||
new_month = new_date.getMonth();
|
||||
new_date.setDate(day);
|
||||
test = function(){ return new_month != new_date.getMonth(); };
|
||||
}
|
||||
// Common date-resetting loop -- if date is beyond end of month, make it
|
||||
// end of month
|
||||
while (test()){
|
||||
new_date.setDate(--day);
|
||||
new_date.setMonth(new_month);
|
||||
}
|
||||
return new_date;
|
||||
},
|
||||
|
||||
moveYear: function(date, dir){
|
||||
return this.moveMonth(date, dir*12);
|
||||
},
|
||||
|
||||
keydown: function(e){
|
||||
if (this.picker.is(':not(:visible)')){
|
||||
if (e.keyCode == 27) // allow escape to hide and re-show picker
|
||||
this.show();
|
||||
return;
|
||||
}
|
||||
var dateChanged = false,
|
||||
dir, day, month;
|
||||
switch(e.keyCode){
|
||||
case 27: // escape
|
||||
this.hide();
|
||||
e.preventDefault();
|
||||
break;
|
||||
case 37: // left
|
||||
case 39: // right
|
||||
dir = e.keyCode == 37 ? -1 : 1;
|
||||
if (e.ctrlKey){
|
||||
this.date = this.moveYear(this.date, dir);
|
||||
this.viewDate = this.moveYear(this.viewDate, dir);
|
||||
} else if (e.shiftKey){
|
||||
this.date = this.moveMonth(this.date, dir);
|
||||
this.viewDate = this.moveMonth(this.viewDate, dir);
|
||||
} else {
|
||||
this.date.setDate(this.date.getDate() + dir);
|
||||
this.viewDate.setDate(this.viewDate.getDate() + dir);
|
||||
}
|
||||
this.setValue();
|
||||
this.update();
|
||||
e.preventDefault();
|
||||
dateChanged = true;
|
||||
break;
|
||||
case 38: // up
|
||||
case 40: // down
|
||||
dir = e.keyCode == 38 ? -1 : 1;
|
||||
if (e.ctrlKey){
|
||||
this.date = this.moveYear(this.date, dir);
|
||||
this.viewDate = this.moveYear(this.viewDate, dir);
|
||||
} else if (e.shiftKey){
|
||||
this.date = this.moveMonth(this.date, dir);
|
||||
this.viewDate = this.moveMonth(this.viewDate, dir);
|
||||
} else {
|
||||
this.date.setDate(this.date.getDate() + dir * 7);
|
||||
this.viewDate.setDate(this.viewDate.getDate() + dir * 7);
|
||||
}
|
||||
this.setValue();
|
||||
this.update();
|
||||
e.preventDefault();
|
||||
dateChanged = true;
|
||||
break;
|
||||
case 13: // enter
|
||||
this.hide();
|
||||
e.preventDefault();
|
||||
break;
|
||||
}
|
||||
if (dateChanged){
|
||||
this.element.trigger({
|
||||
type: 'changeDate',
|
||||
date: this.date
|
||||
});
|
||||
var element;
|
||||
if (this.isInput) {
|
||||
element = this.element;
|
||||
} else if (this.component){
|
||||
element = this.element.find('input');
|
||||
}
|
||||
if (element) {
|
||||
element.change();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
showMode: function(dir) {
|
||||
if (dir) {
|
||||
this.viewMode = Math.max(0, Math.min(2, this.viewMode + dir));
|
||||
}
|
||||
this.picker.find('>div').hide().filter('.datepicker-'+DPGlobal.modes[this.viewMode].clsName).show();
|
||||
this.updateNavArrows();
|
||||
}
|
||||
};
|
||||
|
||||
$.fn.datepicker = function ( option ) {
|
||||
var args = Array.apply(null, arguments);
|
||||
args.shift();
|
||||
return this.each(function () {
|
||||
var $this = $(this),
|
||||
data = $this.data('datepicker'),
|
||||
options = typeof option == 'object' && option;
|
||||
if (!data) {
|
||||
$this.data('datepicker', (data = new Datepicker(this, $.extend({}, $.fn.datepicker.defaults,options))));
|
||||
}
|
||||
if (typeof option == 'string') data[option].apply(data, args);
|
||||
});
|
||||
};
|
||||
|
||||
$.fn.datepicker.defaults = {
|
||||
};
|
||||
$.fn.datepicker.Constructor = Datepicker;
|
||||
var dates = $.fn.datepicker.dates = {
|
||||
en: {
|
||||
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
|
||||
daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
||||
daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],
|
||||
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
||||
monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
||||
}
|
||||
}
|
||||
|
||||
var DPGlobal = {
|
||||
modes: [
|
||||
{
|
||||
clsName: 'days',
|
||||
navFnc: 'Month',
|
||||
navStep: 1
|
||||
},
|
||||
{
|
||||
clsName: 'months',
|
||||
navFnc: 'FullYear',
|
||||
navStep: 1
|
||||
},
|
||||
{
|
||||
clsName: 'years',
|
||||
navFnc: 'FullYear',
|
||||
navStep: 10
|
||||
}],
|
||||
isLeapYear: function (year) {
|
||||
return (((year % 4 === 0) && (year % 100 !== 0)) || (year % 400 === 0))
|
||||
},
|
||||
getDaysInMonth: function (year, month) {
|
||||
return [31, (DPGlobal.isLeapYear(year) ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month]
|
||||
},
|
||||
validParts: /dd?|mm?|MM?|yy(?:yy)?/g,
|
||||
nonpunctuation: /[^ -\/:-@\[-`{-~\t\n\r]+/g,
|
||||
parseFormat: function(format){
|
||||
// IE treats \0 as a string end in inputs (truncating the value),
|
||||
// so it's a bad format delimiter, anyway
|
||||
var separators = format.replace(this.validParts, '\0').split('\0'),
|
||||
parts = format.match(this.validParts);
|
||||
if (!separators || !separators.length || !parts || parts.length == 0){
|
||||
throw new Error("Invalid date format.");
|
||||
}
|
||||
return {separators: separators, parts: parts};
|
||||
},
|
||||
parseDate: function(date, format, language) {
|
||||
if (date instanceof Date) return date;
|
||||
if (/^[-+]\d+[dmwy]([\s,]+[-+]\d+[dmwy])*$/.test(date)) {
|
||||
var part_re = /([-+]\d+)([dmwy])/,
|
||||
parts = date.match(/([-+]\d+)([dmwy])/g),
|
||||
part, dir;
|
||||
date = new Date();
|
||||
for (var i=0; i<parts.length; i++) {
|
||||
part = part_re.exec(parts[i]);
|
||||
dir = parseInt(part[1]);
|
||||
switch(part[2]){
|
||||
case 'd':
|
||||
date.setDate(date.getDate() + dir);
|
||||
break;
|
||||
case 'm':
|
||||
date = Datepicker.prototype.moveMonth.call(Datepicker.prototype, date, dir);
|
||||
break;
|
||||
case 'w':
|
||||
date.setDate(date.getDate() + dir * 7);
|
||||
break;
|
||||
case 'y':
|
||||
date = Datepicker.prototype.moveYear.call(Datepicker.prototype, date, dir);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
|
||||
}
|
||||
var parts = date ? date.match(this.nonpunctuation) : [],
|
||||
date = new Date(),
|
||||
parsed = {},
|
||||
setters_order = ['yyyy', 'yy', 'M', 'MM', 'm', 'mm', 'd', 'dd'],
|
||||
setters_map = {
|
||||
yyyy: function(d,v){ return d.setFullYear(v); },
|
||||
yy: function(d,v){ return d.setFullYear(2000+v); },
|
||||
m: function(d,v){ return d.setMonth(v-1); },
|
||||
d: function(d,v){ return d.setDate(v); },
|
||||
},
|
||||
val, filtered, part;
|
||||
setters_map['M'] = setters_map['MM'] = setters_map['mm'] = setters_map['m'];
|
||||
setters_map['dd'] = setters_map['d'];
|
||||
date = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
|
||||
if (parts.length == format.parts.length) {
|
||||
for (var i=0, cnt = format.parts.length; i < cnt; i++) {
|
||||
val = parseInt(parts[i], 10)||1;
|
||||
part = format.parts[i];
|
||||
switch(part) {
|
||||
case 'MM':
|
||||
filtered = $(dates[language].months).filter(function(){
|
||||
var m = this.slice(0, parts[i].length),
|
||||
p = parts[i].slice(0, m.length);
|
||||
return m == p;
|
||||
});
|
||||
val = $.inArray(filtered[0], dates[language].months) + 1;
|
||||
break;
|
||||
case 'M':
|
||||
filtered = $(dates[language].monthsShort).filter(function(){
|
||||
var m = this.slice(0, parts[i].length),
|
||||
p = parts[i].slice(0, m.length);
|
||||
return m == p;
|
||||
});
|
||||
val = $.inArray(filtered[0], dates[language].monthsShort) + 1;
|
||||
break;
|
||||
}
|
||||
parsed[part] = val;
|
||||
}
|
||||
for (var i=0, s; i<setters_order.length; i++){
|
||||
s = setters_order[i];
|
||||
if (s in parsed)
|
||||
setters_map[s](date, parsed[s])
|
||||
}
|
||||
}
|
||||
return date;
|
||||
},
|
||||
formatDate: function(date, format, language){
|
||||
var val = {
|
||||
d: date.getDate(),
|
||||
m: date.getMonth() + 1,
|
||||
M: dates[language].monthsShort[date.getMonth()],
|
||||
MM: dates[language].months[date.getMonth()],
|
||||
yy: date.getFullYear().toString().substring(2),
|
||||
yyyy: date.getFullYear()
|
||||
};
|
||||
val.dd = (val.d < 10 ? '0' : '') + val.d;
|
||||
val.mm = (val.m < 10 ? '0' : '') + val.m;
|
||||
var date = [],
|
||||
seps = $.extend([], format.separators);
|
||||
for (var i=0, cnt = format.parts.length; i < cnt; i++) {
|
||||
if (seps.length)
|
||||
date.push(seps.shift())
|
||||
date.push(val[format.parts[i]]);
|
||||
}
|
||||
return date.join('');
|
||||
},
|
||||
headTemplate: '<thead>'+
|
||||
'<tr>'+
|
||||
'<th class="prev"><i class="icon-arrow-left"/></th>'+
|
||||
'<th colspan="5" class="switch"></th>'+
|
||||
'<th class="next"><i class="icon-arrow-right"/></th>'+
|
||||
'</tr>'+
|
||||
'</thead>',
|
||||
contTemplate: '<tbody><tr><td colspan="7"></td></tr></tbody>'
|
||||
};
|
||||
DPGlobal.template = '<div class="datepicker dropdown-menu">'+
|
||||
'<div class="datepicker-days">'+
|
||||
'<table class=" table-condensed">'+
|
||||
DPGlobal.headTemplate+
|
||||
'<tbody></tbody>'+
|
||||
'</table>'+
|
||||
'</div>'+
|
||||
'<div class="datepicker-months">'+
|
||||
'<table class="table-condensed">'+
|
||||
DPGlobal.headTemplate+
|
||||
DPGlobal.contTemplate+
|
||||
'</table>'+
|
||||
'</div>'+
|
||||
'<div class="datepicker-years">'+
|
||||
'<table class="table-condensed">'+
|
||||
DPGlobal.headTemplate+
|
||||
DPGlobal.contTemplate+
|
||||
'</table>'+
|
||||
'</div>'+
|
||||
'</div>';
|
||||
|
||||
}( window.jQuery )
|
||||
21
modules/lib/datepicker/bootstrap-datepicker.min.js
vendored
Normal file
394
modules/lib/datepicker/bootstrap-timepicker.js
vendored
Normal file
@ -0,0 +1,394 @@
|
||||
/* =========================================================
|
||||
* bootstrap-timepicker.js
|
||||
* http://www.github.com/jdewit/bootstrap-timepicker
|
||||
* =========================================================
|
||||
* Copyright 2012
|
||||
*
|
||||
* Created By:
|
||||
* Joris de Wit @joris_dewit
|
||||
*
|
||||
* Contributions By:
|
||||
* Gilbert @mindeavor
|
||||
* Koen Punt info@koenpunt.nl
|
||||
* Nek
|
||||
* Chris Martin
|
||||
* Dominic Barnes contact@dominicbarnes.us
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* ========================================================= */
|
||||
|
||||
!function($) {
|
||||
|
||||
"use strict"; // jshint ;_;
|
||||
|
||||
/* TIMEPICKER PUBLIC CLASS DEFINITION
|
||||
* ================================== */
|
||||
var Timepicker = function(element, options) {
|
||||
this.$element = $(element);
|
||||
this.options = $.extend({}, $.fn.timepicker.defaults, options, this.$element.data());
|
||||
this.minuteStep = this.options.minuteStep || this.minuteStep;
|
||||
this.showMeridian = this.options.showMeridian || this.showMeridian;
|
||||
this.disableFocus = this.options.disableFocus || this.disableFocus;
|
||||
this.template = this.options.template || this.template;
|
||||
this.defaultTime = this.options.defaultTime || this.defaultTime;
|
||||
this.open = false;
|
||||
this.init();
|
||||
};
|
||||
|
||||
Timepicker.prototype = {
|
||||
|
||||
constructor: Timepicker
|
||||
|
||||
, init: function () {
|
||||
|
||||
this.$element
|
||||
.on('click', $.proxy(this.show, this))
|
||||
.on('keyup', $.proxy(this.updateFromElementVal, this))
|
||||
;
|
||||
|
||||
this.$widget = $(this.getTemplate()).appendTo('body');
|
||||
|
||||
this.$widget.on('click', $.proxy(this.click, this));
|
||||
|
||||
this.setDefaultTime(this.defaultTime);
|
||||
}
|
||||
|
||||
, show: function(e) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
|
||||
this.$element.trigger('show');
|
||||
|
||||
$('html').on('click.timepicker.data-api', $.proxy(this.hide, this));
|
||||
|
||||
if (true === this.disableFocus) {
|
||||
this.$element.blur();
|
||||
}
|
||||
|
||||
var pos = $.extend({}, this.$element.offset(), {
|
||||
height: this.$element[0].offsetHeight
|
||||
});
|
||||
|
||||
if (this.options.template === 'modal') {
|
||||
this.$widget.modal('show');
|
||||
} else {
|
||||
this.$widget.css({
|
||||
top: pos.top + pos.height
|
||||
, left: pos.left
|
||||
})
|
||||
|
||||
if (!this.open) {
|
||||
this.$widget.addClass('open');
|
||||
}
|
||||
}
|
||||
|
||||
this.open = true;
|
||||
this.$element.trigger('shown');
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
, hide: function(){
|
||||
this.$element.trigger('hide');
|
||||
|
||||
$('html').off('click.timepicker.data-api', $.proxy(this.hide, this));
|
||||
|
||||
if (this.options.template === 'modal') {
|
||||
this.$widget.modal('hide');
|
||||
} else {
|
||||
this.$widget.removeClass('open');
|
||||
}
|
||||
this.open = false;
|
||||
this.$element.trigger('hidden');
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
, setValues: function(time) {
|
||||
var meridian, match = time.match(/(AM|PM)/i);
|
||||
if (match) {
|
||||
meridian = match[1];
|
||||
}
|
||||
time = $.trim(time.replace(/(PM|AM)/i, ''));
|
||||
var timeArray = time.split(':');
|
||||
|
||||
this.meridian = meridian;
|
||||
this.hour = parseInt(timeArray[0], 10);
|
||||
if (isNaN(this.hour)) {
|
||||
this.hour = 0;
|
||||
this.updateElement();
|
||||
}
|
||||
this.minute = parseInt(timeArray[1], 10);
|
||||
if (isNaN(this.minute)) {
|
||||
this.minute = 0;
|
||||
this.updateElement();
|
||||
}
|
||||
}
|
||||
|
||||
, setDefaultTime: function(defaultTime){
|
||||
if (defaultTime) {
|
||||
if (defaultTime === 'current') {
|
||||
var dTime = new Date();
|
||||
var hours = dTime.getHours();
|
||||
var minutes = Math.floor(dTime.getMinutes() / this.minuteStep) * this.minuteStep;
|
||||
var meridian = "AM";
|
||||
if ( this.showMeridian ) {
|
||||
if (hours === 0) {
|
||||
hours = 12;
|
||||
} else if (hours >= 12) {
|
||||
if (hours > 12) {
|
||||
hours = hours - 12;
|
||||
}
|
||||
meridian = "PM";
|
||||
} else {
|
||||
meridian = "AM";
|
||||
}
|
||||
}
|
||||
this.hour = hours;
|
||||
this.minute = minutes;
|
||||
this.meridian = meridian;
|
||||
} else if (defaultTime === 'value') {
|
||||
this.setValues( this.$element.val() );
|
||||
} else {
|
||||
this.setValues(defaultTime);
|
||||
}
|
||||
this.update();
|
||||
} else {
|
||||
this.hour = 0;
|
||||
this.minute = 0;
|
||||
}
|
||||
}
|
||||
|
||||
, formatTime: function(hour, minute, meridian) {
|
||||
hour = hour < 10 ? '0' + hour : hour;
|
||||
minute = minute < 10 ? '0' + minute : minute;
|
||||
|
||||
return hour + ':' + minute + ( this.showMeridian ? ' ' + meridian : '' );
|
||||
}
|
||||
|
||||
, getTime: function() {
|
||||
return this.formatTime(this.hour, this.minute, this.meridian);
|
||||
}
|
||||
|
||||
, setTime: function(time) {
|
||||
this.setValues(time);
|
||||
this.update();
|
||||
}
|
||||
|
||||
, updateElement: function() {
|
||||
var time = this.getTime();
|
||||
|
||||
this.$element.val(time).change();
|
||||
}
|
||||
|
||||
, updateWidget: function() {
|
||||
this.$widget
|
||||
.find('td.bootstrap-timepicker-hour').text(this.hour).end()
|
||||
.find('td.bootstrap-timepicker-minute').text(this.minute < 10 ? '0' + this.minute : this.minute).end()
|
||||
.find('td.bootstrap-timepicker-meridian').text(this.meridian);
|
||||
}
|
||||
|
||||
, update: function() {
|
||||
this.updateElement();
|
||||
this.updateWidget();
|
||||
}
|
||||
|
||||
, updateFromElementVal: function () {
|
||||
var time = this.$element.val();
|
||||
if (time) {
|
||||
this.setValues(time);
|
||||
this.updateWidget();
|
||||
}
|
||||
}
|
||||
|
||||
, click: function(e) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
|
||||
if (true !== this.disableFocus) {
|
||||
this.$element.focus();
|
||||
}
|
||||
|
||||
var action = $(e.target).closest('a').data('action');
|
||||
if (action) {
|
||||
this[action]();
|
||||
this.update();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
, incrementHour: function() {
|
||||
if ( this.showMeridian ) {
|
||||
if ( this.hour === 12 ) {
|
||||
this.hour = 1;
|
||||
return this.toggleMeridian();
|
||||
}
|
||||
}
|
||||
if ( this.hour === 23 ) {
|
||||
return this.hour = 0;
|
||||
}
|
||||
this.hour = this.hour + 1;
|
||||
}
|
||||
|
||||
, decrementHour: function() {
|
||||
if ( this.showMeridian ) {
|
||||
if (this.hour === 1) {
|
||||
this.hour = 12;
|
||||
return this.toggleMeridian();
|
||||
}
|
||||
}
|
||||
if (this.hour === 0) {
|
||||
return this.hour = 23;
|
||||
}
|
||||
this.hour = this.hour - 1;
|
||||
}
|
||||
|
||||
, incrementMinute: function() {
|
||||
var newVal = this.minute + this.minuteStep - (this.minute % this.minuteStep);
|
||||
if (newVal > 59) {
|
||||
this.incrementHour();
|
||||
this.minute = newVal - 60;
|
||||
} else {
|
||||
this.minute = newVal;
|
||||
}
|
||||
}
|
||||
|
||||
, decrementMinute: function() {
|
||||
var newVal = this.minute - this.minuteStep;
|
||||
if (newVal < 0) {
|
||||
this.decrementHour();
|
||||
this.minute = newVal + 60;
|
||||
} else {
|
||||
this.minute = newVal;
|
||||
}
|
||||
}
|
||||
|
||||
, toggleMeridian: function() {
|
||||
this.meridian = this.meridian === 'AM' ? 'PM' : 'AM';
|
||||
|
||||
this.update();
|
||||
}
|
||||
|
||||
, getTemplate: function() {
|
||||
if (this.options.templates[this.options.template]) {
|
||||
return this.options.templates[this.options.template];
|
||||
}
|
||||
var template;
|
||||
switch(this.options.template) {
|
||||
case 'modal':
|
||||
template = '<div class="bootstrap-timepicker modal hide fade in" style="top: 30%; margin-top: 0; width: 200px; margin-left: -100px;" data-backdrop="false">'+
|
||||
'<div class="modal-header">'+
|
||||
'<a href="#" class="close" data-action="hide">×</a>'+
|
||||
'<h3>Pick a Time</h3>'+
|
||||
'</div>'+
|
||||
'<div class="modal-content">'+
|
||||
'<table>'+
|
||||
'<tr>'+
|
||||
'<td><a href="#" data-action="incrementHour"><i class="icon-chevron-up"></i></a></td>'+
|
||||
'<td class="separator"></td>'+
|
||||
'<td><a href="#" data-action="incrementMinute"><i class="icon-chevron-up"></i></a></td>'+
|
||||
( this.showMeridian ? '<td><a href="#" data-action="toggleMeridian"><i class="icon-chevron-up"></i></a></td>' : '' ) +
|
||||
'</tr>'+
|
||||
'<tr>'+
|
||||
'<td class="bootstrap-timepicker-hour"></td> '+
|
||||
'<td class="separator">:</td>'+
|
||||
'<td class="bootstrap-timepicker-minute"></td> '+
|
||||
( this.showMeridian ? '<td class="bootstrap-timepicker-meridian"></td>' : '' ) +
|
||||
'</tr>'+
|
||||
'<tr>'+
|
||||
'<td><a href="#" data-action="decrementHour"><i class="icon-chevron-down"></i></a></td>'+
|
||||
'<td class="separator"></td>'+
|
||||
'<td><a href="#" data-action="decrementMinute"><i class="icon-chevron-down"></i></a></td>'+
|
||||
( this.showMeridian ? '<td><a href="#" data-action="toggleMeridian"><i class="icon-chevron-down"></i></a></td>' : '' ) +
|
||||
'</tr>'+
|
||||
'</table>'+
|
||||
'</div>'+
|
||||
'<div class="modal-footer">'+
|
||||
'<a href="#" class="btn btn-primary" data-action="hide">Ok</a>'+
|
||||
'</div>'+
|
||||
'</div>';
|
||||
|
||||
break;
|
||||
case 'dropdown':
|
||||
template = '<div class="bootstrap-timepicker dropdown-menu">'+
|
||||
'<table>'+
|
||||
'<tr>'+
|
||||
'<td><a href="#" data-action="incrementHour"><i class="icon-chevron-up"></i></a></td>'+
|
||||
'<td class="separator"></td>'+
|
||||
'<td><a href="#" data-action="incrementMinute"><i class="icon-chevron-up"></i></a></td>'+
|
||||
( this.showMeridian ? '<td><a href="#" data-action="toggleMeridian"><i class="icon-chevron-up"></i></a></td>' : '' ) +
|
||||
'</tr>'+
|
||||
'<tr>'+
|
||||
'<td class="bootstrap-timepicker-hour"></td> '+
|
||||
'<td class="separator">:</td>'+
|
||||
'<td class="bootstrap-timepicker-minute"></td> '+
|
||||
( this.showMeridian ? '<td class="bootstrap-timepicker-meridian"></td>' : '' ) +
|
||||
'</tr>'+
|
||||
'<tr>'+
|
||||
'<td><a href="#" data-action="decrementHour"><i class="icon-chevron-down"></i></a></td>'+
|
||||
'<td class="separator"></td>'+
|
||||
'<td><a href="#" data-action="decrementMinute"><i class="icon-chevron-down"></i></a></td>'+
|
||||
( this.showMeridian ? '<td><a href="#" data-action="toggleMeridian"><i class="icon-chevron-down"></i></a></td>' : '' ) +
|
||||
'</tr>'+
|
||||
'</table>'+
|
||||
'</div>';
|
||||
break;
|
||||
|
||||
}
|
||||
return template;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/* TIMEPICKER PLUGIN DEFINITION
|
||||
* =========================== */
|
||||
|
||||
$.fn.timepicker = function (option) {
|
||||
return this.each(function () {
|
||||
var $this = $(this)
|
||||
, data = $this.data('timepicker')
|
||||
, options = typeof option == 'object' && option;
|
||||
if (!data) {
|
||||
$this.data('timepicker', (data = new Timepicker(this, options)));
|
||||
}
|
||||
if (typeof option == 'string') {
|
||||
data[option]();
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
$.fn.timepicker.defaults = {
|
||||
minuteStep: 15
|
||||
, disableFocus: false
|
||||
, defaultTime: 'current'
|
||||
, showMeridian: true
|
||||
, template: 'dropdown'
|
||||
, templates: {} // set custom templates
|
||||
}
|
||||
|
||||
$.fn.timepicker.Constructor = Timepicker
|
||||
|
||||
/* TIMEPICKER DATA-API
|
||||
* ================== */
|
||||
|
||||
$(function () {
|
||||
$('body').on('focus.timepicker.data-api', '[data-provide="timepicker"]', function (e) {
|
||||
var $this = $(this);
|
||||
if ($this.data('timepicker')) {
|
||||
return;
|
||||
}
|
||||
e.preventDefault();
|
||||
$this.timepicker($this.data());
|
||||
})
|
||||
})
|
||||
}(window.jQuery);
|
||||