- Limpieza de código HTML en vistas
- Limpieza de JS y CSS - Limpieza de librerías git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_PROFIND_Web/trunk@5 3fe1ab16-cfe0-e34b-8c9f-7d8c168d430d
@ -1,7 +0,0 @@
|
||||
auxiliary.org-netbeans-modules-php-phpdoc.target=C:\\intranet_usuarios\\doc
|
||||
auxiliary.org-netbeans-modules-php-phpdoc.title=PROFIND
|
||||
copy.src.files=false
|
||||
copy.src.target=
|
||||
index.file=index.php
|
||||
run.as=LOCAL
|
||||
url=http://localhost/profind/
|
||||
@ -1,4 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
|
||||
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/>
|
||||
</project-private>
|
||||
@ -1,17 +0,0 @@
|
||||
file.reference.yii-framework=../yii/framework
|
||||
ignore.path=
|
||||
include.path=\
|
||||
${php.global.include.path}:\
|
||||
${file.reference.yii-framework}
|
||||
php.version=PHP_53
|
||||
phpunit.bootstrap=protected/tests/bootstrap.php
|
||||
phpunit.bootstrap.create.tests=false
|
||||
phpunit.configuration=protected/tests/phpunit.xml
|
||||
phpunit.run.test.files=false
|
||||
phpunit.suite=
|
||||
phpunit.test.groups.ask=false
|
||||
source.encoding=UTF-8
|
||||
src.dir=.
|
||||
tags.asp=false
|
||||
tags.short=true
|
||||
web.root=.
|
||||
@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://www.netbeans.org/ns/project/1">
|
||||
<type>org.netbeans.modules.php.project</type>
|
||||
<configuration>
|
||||
<data xmlns="http://www.netbeans.org/ns/php-project/1">
|
||||
<name>PROFIND</name>
|
||||
</data>
|
||||
</configuration>
|
||||
</project>
|
||||
@ -1,11 +0,0 @@
|
||||
|
||||
button {*border: none !important;*border-color: transparent !important}
|
||||
.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}
|
||||
332
www/themes/profind/css/media.css
Normal file
@ -0,0 +1,332 @@
|
||||
/* media queries */
|
||||
|
||||
/* webkit extra margin fix */
|
||||
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
||||
button {
|
||||
margin: 0px
|
||||
}
|
||||
}
|
||||
|
||||
@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 */
|
||||
.profind-fixed {
|
||||
max-width: 940px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.profind-fixed header .container-fluid {
|
||||
max-width: 940px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.profind-fixed #maincontainer {
|
||||
border-right: 1px solid #ccc;
|
||||
border-left: 1px solid #ccc;
|
||||
}
|
||||
.profind-fixed .sidebar {
|
||||
left: 50%;
|
||||
margin-left: -469px;
|
||||
}
|
||||
.profind-fixed .brand {
|
||||
width: 120px
|
||||
}
|
||||
.sidebar_right #maincontainer {
|
||||
background-image: url(../images/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
|
||||
}
|
||||
.profind-fixed.sidebar_right .sidebar {
|
||||
left: auto;
|
||||
right: 50%;
|
||||
margin-left: 0;
|
||||
margin-right: -470px;
|
||||
}
|
||||
.profind-fixed.sidebar_right .sidebar_switch {
|
||||
left: auto;
|
||||
right: 50%;
|
||||
margin-left: 0;
|
||||
margin-right: -465px;
|
||||
}
|
||||
.profind-fixed.sidebar_hidden.sidebar_right .sidebar_switch {
|
||||
laeft: auto;
|
||||
margin-left: 0;
|
||||
margin-right: -465px;
|
||||
right: 50%;
|
||||
}
|
||||
}
|
||||
@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;
|
||||
}
|
||||
.ms-container {
|
||||
background-position: 160px 83px
|
||||
}
|
||||
.ms-container ul.ms-list {
|
||||
width: 152px
|
||||
}
|
||||
#multi_search {
|
||||
width: 136px
|
||||
}
|
||||
.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
|
||||
}
|
||||
}
|
||||
@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;
|
||||
}
|
||||
}
|
||||
@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
|
||||
}
|
||||
}
|
||||
@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_right .sidebar {
|
||||
right: 50%;
|
||||
margin-left: 0;
|
||||
margin-right: -840px;
|
||||
}
|
||||
}
|
||||
|
||||
663
www/themes/profind/css/profind_1.css
Normal file
@ -0,0 +1,663 @@
|
||||
html {overflow-y: scroll}
|
||||
body {color: #222;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;
|
||||
}
|
||||
|
||||
a,button,input {outline:none !important}
|
||||
|
||||
/* webkit extra margin fix */
|
||||
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
||||
button {margin: 0px}
|
||||
}
|
||||
|
||||
/* external links */
|
||||
.external_link {background: url(../images/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: helvetica, arial, sans-serif;font-weight:bold;}
|
||||
.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}
|
||||
|
||||
.spacer-30px {
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
display: inline-block;
|
||||
}
|
||||
.spacer-10px {
|
||||
width: 100%;
|
||||
height: 10px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
|
||||
/* 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}
|
||||
.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(../images/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}
|
||||
|
||||
/* header */
|
||||
.navbar .brand {width: 200px;padding-bottom:0;padding-top:0;font: 100 18px/36px helvetica, arial, 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 .user_avatar {margin-right:6px;height:20px}
|
||||
|
||||
.btn_menu {display:none}
|
||||
|
||||
/* main content */
|
||||
#maincontainer {background-image: url(../images/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(../images/sidebar_switch.png) no-repeat 0 -19px}
|
||||
.off_switch {background: url(../images/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("../images/bullet_green.png") no-repeat 98% center}
|
||||
|
||||
|
||||
/* 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 {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}
|
||||
|
||||
.input-prepend .input-xlarge {
|
||||
width: 243px;
|
||||
}
|
||||
|
||||
.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, span.required {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}
|
||||
|
||||
.errorSummary ul {
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
input.error, select.error, textarea.error {color:#b94a48;border-color:#b94a48}
|
||||
input:focus.error, select:focus.error, textarea:focus.error {-webkit-box-shadow:0 0 6px #d59392;-moz-box-shadow:0 0 6px #d59392;box-shadow:0 0 6px #d59392;border-color:#953b39}
|
||||
|
||||
|
||||
/* 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}
|
||||
|
||||
/* multiselect 2-col */
|
||||
#multi_search {width:148px;margin:4px}
|
||||
.ms-container {margin-bottom:10px}
|
||||
.ms-container .ms-optgroup li.ms-elem-selectable {padding-left:20px}
|
||||
.ms-container h4 {font-size:14px;font-weight:100;padding:4px 6px;background:#efefef;border-bottom:1px solid #ccc;-webkit-border-radius: 4px 4px 0px 0px;border-radius: 4px 4px 0px 0px}
|
||||
.ms-container #multi_search + .ms-list {height:196px}
|
||||
#sForm_deselect {margin:2px;display:block}
|
||||
|
||||
/* input spinner */
|
||||
.ui-spinner button {height:14px;position:absolute;background:none;border:none;width:18px;padding:0;background: url(../images/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(../images/bullet_blue.png) no-repeat 3px 4px;padding-left:25px}
|
||||
.list_b li {background: url(../images/bullet_green.png) no-repeat 3px 4px;padding-left:25px}
|
||||
.list_c li {background: url(../images/bullet_orange.png) no-repeat 3px 4px;padding-left:25px}
|
||||
.list_d li {background: url(../images/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 {border-bottom:none;position:relative;top:-28px;margin-bottom:-18px}
|
||||
.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(../images/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}
|
||||
|
||||
/* 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(../images/bullet_green.png) no-repeat 98% center}
|
||||
.chat_box .chat_sidebar .chat_user_list li.offline a {background: url(../images/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}
|
||||
|
||||
|
||||
/* 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}
|
||||
|
||||
|
||||
/* sortable elements */
|
||||
.ui-sortable-placeholder { border: 2px dashed #aaa;background:transparent;visibility: visible !important; height: 50px !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}
|
||||
|
||||
/* 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(../images/ui.totop.png) no-repeat 0 0}
|
||||
#toTopHover{background:url(../images/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}
|
||||
|
||||
/* 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;border-top-color: #fff}
|
||||
.nav .dropdown-toggle:hover .caret {opacity: 1;filter: alpha(opacity=100)}
|
||||
|
||||
|
||||
/* 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(../images/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%}
|
||||
|
||||
}
|
||||
|
||||
@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}
|
||||
.ms-container {background-position: 160px 83px}
|
||||
.ms-container ul.ms-list {width:152px;}
|
||||
#multi_search {width:136px}
|
||||
.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}
|
||||
}
|
||||
|
||||
@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}
|
||||
}
|
||||
|
||||
@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}
|
||||
}
|
||||
|
||||
@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}
|
||||
}
|
||||
198
www/themes/profind/js/bootstrap.plugins.js
vendored
@ -1,198 +0,0 @@
|
||||
/* ===========================================================
|
||||
* bootstrap-fileupload.js j1a
|
||||
* http://jasny.github.com/bootstrap/javascript.html#fileupload
|
||||
* ===========================================================
|
||||
* Copyright 2012 Jasny BV, Netherlands.
|
||||
*
|
||||
* 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 ;_
|
||||
|
||||
/* INPUTMASK PUBLIC CLASS DEFINITION
|
||||
* ================================= */
|
||||
|
||||
var Fileupload = function (element, options) {
|
||||
this.$element = $(element)
|
||||
this.type = this.$element.data('uploadtype') || (this.$element.find('.thumbnail').length > 0 ? "image" : "file")
|
||||
|
||||
this.$input = this.$element.find(':file')
|
||||
if (this.$input.length === 0) return
|
||||
|
||||
this.name = this.$input.attr('name') || options.name
|
||||
|
||||
this.$hidden = this.$element.find(':hidden[name="'+this.name+'"]')
|
||||
if (this.$hidden.length === 0) {
|
||||
this.$hidden = $('<input type="hidden" />')
|
||||
this.$element.prepend(this.$hidden)
|
||||
}
|
||||
|
||||
this.$preview = this.$element.find('.fileupload-preview')
|
||||
var height = this.$preview.css('height')
|
||||
if (this.$preview.css('display') != 'inline' && height != '0px' && height != 'none') this.$preview.css('line-height', height)
|
||||
|
||||
this.$remove = this.$element.find('[data-dismiss="fileupload"]')
|
||||
|
||||
this.listen()
|
||||
}
|
||||
|
||||
Fileupload.prototype = {
|
||||
|
||||
listen: function() {
|
||||
this.$input.on('change.fileupload', $.proxy(this.change, this))
|
||||
if (this.$remove) this.$remove.on('click.fileupload', $.proxy(this.clear, this))
|
||||
},
|
||||
|
||||
change: function(e, invoked) {
|
||||
var file = e.target.files !== undefined ? e.target.files[0] : { name: e.target.value.replace(/^.+\\/, '') }
|
||||
if (!file || invoked === 'clear') return
|
||||
|
||||
this.$hidden.val('')
|
||||
this.$hidden.attr('name', '')
|
||||
this.$input.attr('name', this.name)
|
||||
|
||||
if (this.type === "image" && this.$preview.length > 0 && (typeof file.type !== "undefined" ? file.type.match('image.*') : file.name.match('\\.(gif|png|jpe?g)$')) && typeof FileReader !== "undefined") {
|
||||
var reader = new FileReader()
|
||||
var preview = this.$preview
|
||||
var element = this.$element
|
||||
|
||||
reader.onload = function(e) {
|
||||
preview.html('<img src="' + e.target.result + '" ' + (preview.css('max-height') != 'none' ? 'style="max-height: ' + preview.css('max-height') + ';"' : '') + ' />')
|
||||
element.addClass('fileupload-exists').removeClass('fileupload-new')
|
||||
}
|
||||
|
||||
reader.readAsDataURL(file)
|
||||
} else {
|
||||
this.$preview.text(file.name)
|
||||
this.$element.addClass('fileupload-exists').removeClass('fileupload-new')
|
||||
}
|
||||
},
|
||||
|
||||
clear: function(e) {
|
||||
this.$hidden.val('')
|
||||
this.$hidden.attr('name', this.name)
|
||||
this.$input.attr('name', '')
|
||||
|
||||
this.$preview.html('')
|
||||
this.$element.addClass('fileupload-new').removeClass('fileupload-exists')
|
||||
|
||||
this.$input.trigger('change', [ 'clear' ])
|
||||
|
||||
e.preventDefault()
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* INPUTMASK PLUGIN DEFINITION
|
||||
* =========================== */
|
||||
|
||||
$.fn.fileupload = function (options) {
|
||||
return this.each(function () {
|
||||
var $this = $(this)
|
||||
, data = $this.data('fileupload')
|
||||
if (!data) $this.data('fileupload', (data = new Fileupload(this, options)))
|
||||
})
|
||||
}
|
||||
|
||||
$.fn.fileupload.Constructor = Fileupload
|
||||
|
||||
|
||||
/* INPUTMASK DATA-API
|
||||
* ================== */
|
||||
|
||||
$(function () {
|
||||
$('body').on('click.fileupload.data-api', '[data-provides="fileupload"]', function (e) {
|
||||
var $this = $(this)
|
||||
if ($this.data('fileupload')) return
|
||||
$this.fileupload($this.data())
|
||||
|
||||
if ($(e.target).data('dismiss') == 'fileupload') $(e.target).trigger('click.fileupload')
|
||||
})
|
||||
})
|
||||
|
||||
}(window.jQuery)
|
||||
|
||||
/* ============================================================
|
||||
* bootstrap-rowlink.js j1
|
||||
* http://jasny.github.com/bootstrap/javascript.html#rowlink
|
||||
* ============================================================
|
||||
* Copyright 2012 Jasny BV, Netherlands.
|
||||
*
|
||||
* 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 ;_;
|
||||
|
||||
var Rowlink = function (element, options) {
|
||||
options = $.extend({}, $.fn.rowlink.defaults, options)
|
||||
var tr = element.nodeName == 'tr' ? $(element) : $(element).find('tr:has(td)')
|
||||
|
||||
tr.each(function() {
|
||||
var link = $(this).find(options.target).first()
|
||||
if (!link.length) return
|
||||
|
||||
var href = link.attr('href')
|
||||
|
||||
$(this).find('td').not('.nolink').click(function() {
|
||||
window.location = href;
|
||||
})
|
||||
|
||||
$(this).addClass('rowlink')
|
||||
link.replaceWith(link.html())
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/* ROWLINK PLUGIN DEFINITION
|
||||
* =========================== */
|
||||
|
||||
$.fn.rowlink = function (options) {
|
||||
return this.each(function () {
|
||||
var $this = $(this)
|
||||
, data = $this.data('rowlink')
|
||||
if (!data) $this.data('rowlink', (data = new Rowlink(this, options)))
|
||||
})
|
||||
}
|
||||
|
||||
$.fn.rowlink.defaults = {
|
||||
target: "a"
|
||||
}
|
||||
|
||||
$.fn.rowlink.Constructor = Rowlink
|
||||
|
||||
|
||||
/* ROWLINK DATA-API
|
||||
* ================== */
|
||||
|
||||
$(function () {
|
||||
$('[data-provides="rowlink"]').each(function () {
|
||||
$(this).rowlink($(this).data())
|
||||
})
|
||||
})
|
||||
|
||||
}(window.jQuery);
|
||||
41
www/themes/profind/js/bootstrap.plugins.min.js
vendored
@ -1,41 +0,0 @@
|
||||
/* ==========================================================
|
||||
* bootstrap-placeholder.js v2.0.0
|
||||
* http://jasny.github.com/bootstrap/javascript.html#placeholder
|
||||
*
|
||||
* Based on work by Daniel Stocks (http://webcloud.se)
|
||||
* ==========================================================
|
||||
* Copyright 2012 Jasny BV.
|
||||
*
|
||||
* 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.
|
||||
* ========================================================== */
|
||||
|
||||
/* ============================================================
|
||||
* bootstrap-rowlink.js v2.0.2
|
||||
* http://jasny.github.com/bootstrap/javascript.html#rowlink
|
||||
* ============================================================
|
||||
* Copyright 2011 Jasny BV, Netherlands.
|
||||
*
|
||||
* 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(a){var e=function(d,b){this.$element=a(d);this.type=this.$element.data("uploadtype")||(0<this.$element.find(".thumbnail").length?"image":"file");this.$input=this.$element.find(":file");if(0!==this.$input.length){this.name=this.$input.attr("name")||b.name;this.$hidden=this.$element.find(':hidden[name="'+this.name+'"]');0===this.$hidden.length&&(this.$hidden=a('<input type="hidden" />'),this.$element.prepend(this.$hidden));this.$preview=this.$element.find(".fileupload-preview");var c=this.$preview.css("height"); "inline"!=this.$preview.css("display")&&("0px"!=c&&"none"!=c)&&this.$preview.css("line-height",c);this.$remove=this.$element.find('[data-dismiss="fileupload"]');this.listen()}};e.prototype={listen:function(){this.$input.on("change.fileupload",a.proxy(this.change,this));if(this.$remove)this.$remove.on("click.fileupload",a.proxy(this.clear,this))},change:function(a,b){var c=void 0!==a.target.files?a.target.files[0]:{name:a.target.value.replace(/^.+\\/,"")};if(c&&"clear"!==b)if(this.$hidden.val(""), this.$hidden.attr("name",""),this.$input.attr("name",this.name),"image"===this.type&&0<this.$preview.length&&("undefined"!==typeof c.type?c.type.match("image.*"):c.name.match("\\.(gif|png|jpe?g)$"))&&"undefined"!==typeof FileReader){var e=new FileReader,f=this.$preview,g=this.$element;e.onload=function(a){f.html('<img src="'+a.target.result+'" '+("none"!=f.css("max-height")?'style="max-height: '+f.css("max-height")+';"':"")+" />");g.addClass("fileupload-exists").removeClass("fileupload-new")};e.readAsDataURL(c)}else this.$preview.text(c.name), this.$element.addClass("fileupload-exists").removeClass("fileupload-new")},clear:function(a){this.$hidden.val("");this.$hidden.attr("name",this.name);this.$input.attr("name","");this.$preview.html("");this.$element.addClass("fileupload-new").removeClass("fileupload-exists");this.$input.trigger("change",["clear"]);a.preventDefault();return!1}};a.fn.fileupload=function(d){return this.each(function(){var b=a(this);b.data("fileupload")||b.data("fileupload",new e(this,d))})};a.fn.fileupload.Constructor= e;a(function(){a("body").on("click.fileupload.data-api",'[data-provides="fileupload"]',function(d){var b=a(this);b.data("fileupload")||(b.fileupload(b.data()),"fileupload"==a(d.target).data("dismiss")&&a(d.target).trigger("click.fileupload"))})})}(window.jQuery); !function(a){var e=function(d,b){b=a.extend({},a.fn.rowlink.defaults,b);("tr"==d.nodeName?a(d):a(d).find("tr:has(td)")).each(function(){var c=a(this).find(b.target).first();if(c.length){var d=c.attr("href");a(this).find("td").not(".nolink").click(function(){window.location=d});a(this).addClass("rowlink");c.replaceWith(c.html())}})};a.fn.rowlink=function(d){return this.each(function(){var b=a(this);b.data("rowlink")||b.data("rowlink",new e(this,d))})};a.fn.rowlink.defaults={target:"a"};a.fn.rowlink.Constructor= e;a(function(){a('[data-provides="rowlink"]').each(function(){a(this).rowlink(a(this).data())})})}(window.jQuery);
|
||||
@ -1,134 +0,0 @@
|
||||
// Autosize 1.7 - jQuery plugin for textareas
|
||||
// (c) 2011 Jack Moore - jacklmoore.com
|
||||
// license: www.opensource.org/licenses/mit-license.php
|
||||
|
||||
(function ($, undefined) {
|
||||
var
|
||||
hidden = 'hidden',
|
||||
copy = '<textarea style="position:absolute; top:-9999px; left:-9999px; right:auto; bottom:auto; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden">',
|
||||
// line-height is omitted because IE7/IE8 doesn't return the correct value.
|
||||
copyStyle = [
|
||||
'fontFamily',
|
||||
'fontSize',
|
||||
'fontWeight',
|
||||
'fontStyle',
|
||||
'letterSpacing',
|
||||
'textTransform',
|
||||
'wordSpacing'
|
||||
],
|
||||
oninput = 'oninput',
|
||||
onpropertychange = 'onpropertychange',
|
||||
test = $(copy)[0];
|
||||
|
||||
test.setAttribute(oninput, "return");
|
||||
|
||||
if ($.isFunction(test[oninput]) || onpropertychange in test) {
|
||||
$.fn.autosize = function (className) {
|
||||
return this.each(function () {
|
||||
var
|
||||
ta = this,
|
||||
$ta = $(ta).css({
|
||||
overflow: hidden,
|
||||
overflowY: hidden,
|
||||
wordWrap: 'break-word'
|
||||
}),
|
||||
mirror = $(copy).addClass(className || 'autosizejs')[0],
|
||||
minHeight = $ta.height(),
|
||||
maxHeight = parseInt($ta.css('maxHeight'), 10),
|
||||
active,
|
||||
i = copyStyle.length,
|
||||
boxOffset = ($ta.css('box-sizing') || $ta.css('-moz-box-sizing') || $ta.css('-webkit-box-sizing') ) === 'border-box' ? $ta.outerHeight() - $ta.height() : 0
|
||||
|
||||
// Opera returns '-1px' when max-height is set to 'none'.
|
||||
maxHeight = maxHeight && maxHeight > 0 ? maxHeight : 9e4;
|
||||
|
||||
// Using mainly bare JS in this function because it is going
|
||||
// to fire very often while typing, and needs to very efficient.
|
||||
function adjust() {
|
||||
var height, overflow;
|
||||
// the active flag keeps IE from tripping all over itself. Otherwise
|
||||
// actions in the adjust function will cause IE to call adjust again.
|
||||
if (!active) {
|
||||
active = true;
|
||||
|
||||
mirror.value = ta.value;
|
||||
|
||||
mirror.style.overflowY = ta.style.overflowY;
|
||||
|
||||
// Update the width in case the original textarea has
|
||||
// a percent based width, which could change at any time.
|
||||
mirror.style.width = $ta.css('width');
|
||||
|
||||
|
||||
// Needed for IE to reliably return the correct scrollHeight
|
||||
mirror.scrollTop = 0;
|
||||
|
||||
// Set a very high value for scrollTop to be sure the
|
||||
// mirror is scrolled all the way to the bottom.
|
||||
mirror.scrollTop = 9e4;
|
||||
|
||||
height = mirror.scrollTop;
|
||||
overflow = hidden;
|
||||
if (height > maxHeight) {
|
||||
height = maxHeight;
|
||||
overflow = 'scroll';
|
||||
} else if (height < minHeight) {
|
||||
height = minHeight;
|
||||
}
|
||||
ta.style.overflowY = overflow;
|
||||
|
||||
// Setting the minHeight and maxHeight will restrict webkit resize
|
||||
// to only resizing the width.
|
||||
ta.style.height = ta.style.minHeight = ta.style.maxHeight = height + boxOffset + 'px';
|
||||
|
||||
// This small timeout gives IE a chance to draw it's scrollbar
|
||||
// before adjust can be run again (prevents an infinite loop).
|
||||
setTimeout(function () {
|
||||
active = false;
|
||||
}, 1);
|
||||
}
|
||||
}
|
||||
|
||||
// mirror is a duplicate textarea located off-screen that
|
||||
// is automatically updated to contain the same text as the
|
||||
// original textarea. mirror always has a height of 0.
|
||||
// This gives a cross-browser supported way getting the actual
|
||||
// height of the text, through the scrollTop property.
|
||||
while (i--) {
|
||||
mirror.style[copyStyle[i]] = $ta.css(copyStyle[i]);
|
||||
}
|
||||
|
||||
$('body').append(mirror);
|
||||
|
||||
if (onpropertychange in ta) {
|
||||
if (oninput in ta) {
|
||||
// Detects IE9. IE9 does not fire onpropertychange or oninput for deletions,
|
||||
// so binding to onkeyup to catch most of those occassions. There is no way that I
|
||||
// know of to detect something like 'cut' in IE9.
|
||||
ta[oninput] = ta.onkeyup = adjust;
|
||||
} else {
|
||||
// IE7 / IE8
|
||||
ta[onpropertychange] = adjust;
|
||||
}
|
||||
} else {
|
||||
// Modern Browsers
|
||||
ta[oninput] = adjust;
|
||||
}
|
||||
|
||||
$(window).resize(adjust);
|
||||
|
||||
// Allow for manual triggering if needed.
|
||||
$ta.bind('autosize', adjust);
|
||||
|
||||
// Call adjust in case the textarea already contains text.
|
||||
adjust();
|
||||
});
|
||||
};
|
||||
} else {
|
||||
// Makes no changes for older browsers (FireFox3- and Safari4-)
|
||||
$.fn.autosize = function () {
|
||||
return this;
|
||||
};
|
||||
}
|
||||
|
||||
}(jQuery));
|
||||
@ -1,5 +0,0 @@
|
||||
// Autosize 1.7 - jQuery plugin for textareas
|
||||
// (c) 2011 Jack Moore - jacklmoore.com
|
||||
// license: www.opensource.org/licenses/mit-license.php
|
||||
|
||||
;(function(a){var h="hidden",i="fontFamily fontSize fontWeight fontStyle letterSpacing textTransform wordSpacing".split(" "),g=a('<textarea style="position:absolute; top:-9999px; left:-9999px; right:auto; bottom:auto; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden">')[0];g.setAttribute("oninput","return");a.fn.autosize=a.isFunction(g.oninput)||"onpropertychange"in g?function(g){return this.each(function(){function c(){var a,c;j||(j=!0,e.value= b.value,e.style.overflowY=b.style.overflowY,e.style.width=d.css("width"),e.scrollTop=0,e.scrollTop=9E4,a=e.scrollTop,c=h,a>f?(a=f,c="scroll"):a<l&&(a=l),b.style.overflowY=c,b.style.height=b.style.minHeight=b.style.maxHeight=a+m+"px",setTimeout(function(){j=false},1))}for(var b=this,d=a(b).css({overflow:h,overflowY:h,wordWrap:"break-word"}),e=a('<textarea style="position:absolute; top:-9999px; left:-9999px; right:auto; bottom:auto; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden">').addClass(g|| "autosizejs")[0],l=d.height(),f=parseInt(d.css("maxHeight"),10),j,k=i.length,m="border-box"===(d.css("box-sizing")||d.css("-moz-box-sizing")||d.css("-webkit-box-sizing"))?d.outerHeight()-d.height():0,f=f&&0<f?f:9E4;k--;)e.style[i[k]]=d.css(i[k]);a("body").append(e);"onpropertychange"in b?"oninput"in b?b.oninput=b.onkeyup=c:b.onpropertychange=c:b.oninput=c;a(window).resize(c);d.bind("autosize",c);c()})}:function(){return this}})(jQuery);
|
||||
@ -1,5 +0,0 @@
|
||||
/*! jQuery.counter.js (jQuery Character and Word Counter plugin)
|
||||
v2.1 (c) Wilkins Fernandez
|
||||
MIT License
|
||||
*/
|
||||
(function(a){a.fn.extend({counter:function(b){var c={type:"char",count:"down",goal:140,text:true,msg:""},d="",e="",f=false,b=a.extend({},c,b),g={init:function(b){var c=b.attr("id"),e=c+"_count";g.isLimitless();a("<div/>").attr("id",c+"_counter").html('<span id='+e+' class="label label-info" /> '+g.setMsg()).insertAfter(b);d=a("#"+e);g.bind(b)},bind:function(a){a.bind("keypress.counter keydown.counter keyup.counter blur.counter focus.counter change.counter paste.counter",g.updateCounter);a.bind("keydown.counter",g.doStopTyping);a.trigger("keydown")},isLimitless:function(){if(b.goal==="sky"){b.count="up";f=true;return f}},setMsg:function(){if(b.msg!==""){return b.msg}if(b.text===false){return""}if(f){if(b.msg!==""){return b.msg}else{return""}}this.text="character word left max".split(" ");this.chars="s ( )".split(" ");this.msg=null;switch(b.type){case"char":if(b.count===c.count&&b.text){this.msg=this.text[0]+this.chars[1]+this.chars[0]+this.chars[2]+" "+this.text[2]}else if(b.count==="up"&&b.text){this.msg=this.text[0]+this.chars[0]+" "+this.chars[1]+b.goal+" "+this.text[3]+this.chars[2]}break;case"word":if(b.count===c.count&&b.text){this.msg=this.text[1]+this.chars[1]+this.chars[0]+this.chars[2]+" "+this.text[2]}else if(b.count==="up"&&b.text){this.msg=this.text[1]+this.chars[1]+this.chars[0]+this.chars[2]+" "+this.chars[1]+b.goal+" "+this.text[3]+this.chars[2]}break;default:}return this.msg},getWords:function(b){if(b!==""){return a.trim(b).replace(/\s+/g," ").split(" ").length}else{return 0}},updateCounter:function(f){var h=a(this);if(e<0||e>b.goal){g.passedGoal(h)}if(b.type===c.type){if(b.count===c.count){e=b.goal-h.val().length;if(e<=0){d.text("0")}else{d.text(e)}}else if(b.count==="up"){e=h.val().length;d.text(e)}}else if(b.type==="word"){if(b.count===c.count){e=g.getWords(h.val());if(e<=b.goal){e=b.goal-e;d.text(e)}else{d.text("0")}}else if(b.count==="up"){e=g.getWords(h.val());d.text(e)}}return},doStopTyping:function(a){var d=[46,8,9,35,36,37,38,39,40,32];if(g.isGoalReached(a)){if(a.keyCode!==d[0]&&a.keyCode!==d[1]&&a.keyCode!==d[2]&&a.keyCode!==d[3]&&a.keyCode!==d[4]&&a.keyCode!==d[5]&&a.keyCode!==d[6]&&a.keyCode!==d[7]&&a.keyCode!==d[8]){if(b.type===c.type){return false}else if(a.keyCode!==d[9]&&a.keyCode!==d[1]&&b.type!=c.type){return true}else{return false}}}},isGoalReached:function(a,d){if(f){return false}if(b.count===c.count){d=0;return e<=d?true:false}else{d=b.goal;return e>=d?true:false}},wordStrip:function(b,c){var d=c.replace(/\s+/g," ").split(" ").length;c=a.trim(c);if(b<=0||b===d){return c}else{c=a.trim(c).split(" ");c.splice(b,d,"");return a.trim(c.join(" "))}},passedGoal:function(a){var c=a.val();if(b.type==="word"){a.val(g.wordStrip(b.goal,c))}if(b.type==="char"){a.val(c.substring(0,b.goal))}if(b.type==="down"){d.val("0")}if(b.type==="up"){d.val(b.goal)}}};return this.each(function(){g.init(a(this))})}})})(jQuery)
|
||||
@ -1,53 +0,0 @@
|
||||
jQuery.fn.anim_progressbar = function (aOptions) {
|
||||
// def values
|
||||
var iCms = 1000;
|
||||
var iMms = 60 * iCms;
|
||||
var iHms = 3600 * iCms;
|
||||
var iDms = 24 * 3600 * iCms;
|
||||
|
||||
// def options
|
||||
var aDefOpts = {
|
||||
start: new Date(), // now
|
||||
finish: new Date().setTime(new Date().getTime() + 60 * iCms), // now + 60 sec
|
||||
interval: 100,
|
||||
callback: function() {}
|
||||
}
|
||||
var aOpts = jQuery.extend(aDefOpts, aOptions);
|
||||
var vPb = this;
|
||||
|
||||
// each progress bar
|
||||
return this.each(
|
||||
function() {
|
||||
var iDuration = aOpts.finish - aOpts.start;
|
||||
|
||||
// calling original progressbar
|
||||
$(vPb).children('.pbar').progressbar();
|
||||
|
||||
// looping process
|
||||
var vInterval = setInterval(
|
||||
function(){
|
||||
var iLeftMs = aOpts.finish - new Date(); // left time in MS
|
||||
var iElapsedMs = new Date() - aOpts.start, // elapsed time in MS
|
||||
iDays = parseInt(iLeftMs / iDms), // elapsed days
|
||||
iHours = parseInt((iLeftMs - (iDays * iDms)) / iHms), // elapsed hours
|
||||
iMin = parseInt((iLeftMs - (iDays * iDms) - (iHours * iHms)) / iMms), // elapsed minutes
|
||||
iSec = parseInt((iLeftMs - (iDays * iDms) - (iMin * iMms) - (iHours * iHms)) / iCms), // elapsed seconds
|
||||
iPerc = (iElapsedMs > 0) ? iElapsedMs / iDuration * 100 : 0; // percentages
|
||||
|
||||
// display current positions and progress
|
||||
$(vPb).children('.percent').html('<b>'+iPerc.toFixed(1)+'%</b>');
|
||||
$(vPb).children('.elapsed').html(iDays+' days '+iHours+'h:'+iMin+'m:'+iSec+'s</b>');
|
||||
$(vPb).children('.pbar').children('.ui-progressbar-value').css('width', iPerc+'%');
|
||||
|
||||
// in case of Finish
|
||||
if (iPerc >= 100) {
|
||||
clearInterval(vInterval);
|
||||
$(vPb).children('.percent').html('<b>100%</b>');
|
||||
$(vPb).children('.elapsed').html('Finished');
|
||||
aDefOpts.callback.call(this);
|
||||
}
|
||||
} ,aOpts.interval
|
||||
);
|
||||
}
|
||||
);
|
||||
};
|
||||
@ -1,11 +0,0 @@
|
||||
/*
|
||||
* jQuery UI Touch Punch 0.2.2
|
||||
*
|
||||
* Copyright 2011, Dave Furfero
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
*
|
||||
* Depends:
|
||||
* jquery.ui.widget.js
|
||||
* jquery.ui.mouse.js
|
||||
*/
|
||||
(function(b){b.support.touch="ontouchend" in document;if(!b.support.touch){return;}var c=b.ui.mouse.prototype,e=c._mouseInit,a;function d(g,h){if(g.originalEvent.touches.length>1){return;}g.preventDefault();var i=g.originalEvent.changedTouches[0],f=document.createEvent("MouseEvents");f.initMouseEvent(h,true,true,window,1,i.screenX,i.screenY,i.clientX,i.clientY,false,false,false,false,0,null);g.target.dispatchEvent(f);}c._touchStart=function(g){var f=this;if(a||!f._mouseCapture(g.originalEvent.changedTouches[0])){return;}a=true;f._touchMoved=false;d(g,"mouseover");d(g,"mousemove");d(g,"mousedown");};c._touchMove=function(f){if(!a){return;}this._touchMoved=true;d(f,"mousemove");};c._touchEnd=function(f){if(!a){return;}d(f,"mouseup");d(f,"mouseout");if(!this._touchMoved){d(f,"click");}a=false;};c._mouseInit=function(){var f=this;f.element.bind("touchstart",b.proxy(f,"_touchStart")).bind("touchmove",b.proxy(f,"_touchMove")).bind("touchend",b.proxy(f,"_touchEnd"));e.call(f);};})(jQuery);
|
||||
@ -1,80 +0,0 @@
|
||||
/* [ ---- Gebo Admin Panel - notifications ---- ] */
|
||||
|
||||
$(document).ready(function() {
|
||||
gebo_notifications.sticky();
|
||||
gebo_notifications.smoke_js();
|
||||
});
|
||||
|
||||
gebo_notifications = {
|
||||
sticky: function() {
|
||||
$('#sticky_a').click(function(e){
|
||||
$.sticky("Lorem ipsum dolor sit….", {autoclose : 5000, position: "top-right", type: "st-error" });
|
||||
});
|
||||
$('#sticky_b').click(function(e){
|
||||
$.sticky("Lorem ipsum dolor sit…", {autoclose : 5000, position: "top-right", type: "st-success" });
|
||||
});
|
||||
$('#sticky_c').click(function(e){
|
||||
$.sticky("Lorem ipsum dolor sit…", {autoclose : 5000, position: "top-right", type: "st-info" });
|
||||
});
|
||||
$('#sticky_d').click(function(e){
|
||||
$.sticky("Lorem ipsum dolor sit…", {autoclose : 5000, position: "top-right" });
|
||||
});
|
||||
$('#sticky_d_st').click(function(e){
|
||||
$.sticky("Lorem ipsum dolor sit…", {autoclose : false, position: "top-right" });
|
||||
});
|
||||
$('#sticky_e').click(function(e){
|
||||
$.sticky("Lorem ipsum dolor sit…", {autoclose : 5000, position: "top-right" });
|
||||
});
|
||||
$('#sticky_f').click(function(e){
|
||||
$.sticky("Lorem ipsum dolor sit…", {autoclose : 5000, position: "top-center" });
|
||||
});
|
||||
$('#sticky_g').click(function(e){
|
||||
$.sticky("Lorem ipsum dolor sit…", {autoclose : 5000, position: "top-left" });
|
||||
});
|
||||
$('#sticky_h').click(function(e){
|
||||
$.sticky("Lorem ipsum dolor sit…", {autoclose : 5000, position: "bottom-right" });
|
||||
});
|
||||
$('#sticky_i').click(function(e){
|
||||
$.sticky("Lorem ipsum dolor sit…", {autoclose : 5000, position: "bottom-left" });
|
||||
});
|
||||
},
|
||||
smoke_js: function() {
|
||||
$('#smoke_signal').click(function(e){
|
||||
smoke.signal('This goes away after a few seconds...5 seconds, in fact.');
|
||||
e.preventDefault();
|
||||
});
|
||||
$('#smoke_alert').click(function(e){
|
||||
smoke.alert('This is a normal alert screen...nothing too fancy.');
|
||||
e.preventDefault();
|
||||
});
|
||||
$('#smoke_confirm').click(function(e){
|
||||
tstconfirm();
|
||||
e.preventDefault();
|
||||
});
|
||||
$('#smoke_prompt').click(function(e){
|
||||
tstprompt();
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
function tstconfirm(){
|
||||
smoke.confirm('This is still cool, yeah?',function(e){
|
||||
if (e){
|
||||
smoke.alert('"yeah it is" pressed', {ok:"close"});
|
||||
}else{
|
||||
smoke.alert('"no way" pressed', {ok:"close"});
|
||||
}
|
||||
}, {ok:"yeah it is", cancel:"no way"});
|
||||
}
|
||||
|
||||
function tstprompt(){
|
||||
smoke.prompt('What\'s your name?',function(e){
|
||||
if (e){
|
||||
smoke.alert('Your name is '+e);
|
||||
}else{
|
||||
smoke.alert('no');
|
||||
}
|
||||
},{value:"your name"});
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
@ -1,3 +0,0 @@
|
||||
/*! HTML5 Shiv vpre3.6 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
|
||||
Uncompressed source: https://github.com/aFarkas/html5shiv */
|
||||
(function(a,b){function h(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function i(){var a=l.elements;return typeof a=="string"?a.split(" "):a}function j(a){var b={},c=a.createElement,f=a.createDocumentFragment,g=f();a.createElement=function(a){if(!l.shivMethods)return c(a);var f;return b[a]?f=b[a].cloneNode():e.test(a)?f=(b[a]=c(a)).cloneNode():f=c(a),f.canHaveChildren&&!d.test(a)?g.appendChild(f):f},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+i().join().replace(/\w+/g,function(a){return c(a),g.createElement(a),'c("'+a+'")'})+");return n}")(l,g)}function k(a){var b;return a.documentShived?a:(l.shivCSS&&!f&&(b=!!h(a,"article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio{display:none}canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}mark{background:#FF0;color:#000}")),g||(b=!j(a)),b&&(a.documentShived=b),a)}var c=a.html5||{},d=/^<|^(?:button|form|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i,f,g;(function(){var c=b.createElement("a");c.innerHTML="<xyz></xyz>",f="hidden"in c,f&&typeof injectElementWithStyles=="function"&&injectElementWithStyles("#modernizr{}",function(b){b.hidden=!0,f=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle).display=="none"}),g=c.childNodes.length==1||function(){try{b.createElement("a")}catch(a){return!0}var c=b.createDocumentFragment();return typeof c.cloneNode=="undefined"||typeof c.createDocumentFragment=="undefined"||typeof c.createElement=="undefined"}()})();var l={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:k};a.html5=l,k(b)})(this,document)
|
||||
6
www/themes/profind/js/ie/respond.min.js
vendored
@ -1,6 +0,0 @@
|
||||
/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
|
||||
/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */
|
||||
window.matchMedia=window.matchMedia||(function(e,f){var c,a=e.documentElement,b=a.firstElementChild||a.firstChild,d=e.createElement("body"),g=e.createElement("div");g.id="mq-test-1";g.style.cssText="position:absolute;top:-100em";d.style.background="none";d.appendChild(g);return function(h){g.innerHTML='­<style media="'+h+'"> #mq-test-1 { width: 42px; }</style>';a.insertBefore(d,b);c=g.offsetWidth==42;a.removeChild(d);return{matches:c,media:h}}})(document);
|
||||
|
||||
/*! Respond.js v1.1.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */
|
||||
(function(e){e.respond={};respond.update=function(){};respond.mediaQueriesSupported=e.matchMedia&&e.matchMedia("only all").matches;if(respond.mediaQueriesSupported){return}var w=e.document,s=w.documentElement,i=[],k=[],q=[],o={},h=30,f=w.getElementsByTagName("head")[0]||s,g=w.getElementsByTagName("base")[0],b=f.getElementsByTagName("link"),d=[],a=function(){var D=b,y=D.length,B=0,A,z,C,x;for(;B<y;B++){A=D[B],z=A.href,C=A.media,x=A.rel&&A.rel.toLowerCase()==="stylesheet";if(!!z&&x&&!o[z]){if(A.styleSheet&&A.styleSheet.rawCssText){m(A.styleSheet.rawCssText,z,C);o[z]=true}else{if((!/^([a-zA-Z:]*\/\/)/.test(z)&&!g)||z.replace(RegExp.$1,"").split("/")[0]===e.location.host){d.push({href:z,media:C})}}}}u()},u=function(){if(d.length){var x=d.shift();n(x.href,function(y){m(y,x.href,x.media);o[x.href]=true;u()})}},m=function(I,x,z){var G=I.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),J=G&&G.length||0,x=x.substring(0,x.lastIndexOf("/")),y=function(K){return K.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+x+"$2$3")},A=!J&&z,D=0,C,E,F,B,H;if(x.length){x+="/"}if(A){J=1}for(;D<J;D++){C=0;if(A){E=z;k.push(y(I))}else{E=G[D].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1;k.push(RegExp.$2&&y(RegExp.$2))}B=E.split(",");H=B.length;for(;C<H;C++){F=B[C];i.push({media:F.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:k.length-1,hasquery:F.indexOf("(")>-1,minw:F.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:F.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}}j()},l,r,v=function(){var z,A=w.createElement("div"),x=w.body,y=false;A.style.cssText="position:absolute;font-size:1em;width:1em";if(!x){x=y=w.createElement("body");x.style.background="none"}x.appendChild(A);s.insertBefore(x,s.firstChild);z=A.offsetWidth;if(y){s.removeChild(x)}else{x.removeChild(A)}z=p=parseFloat(z);return z},p,j=function(I){var x="clientWidth",B=s[x],H=w.compatMode==="CSS1Compat"&&B||w.body[x]||B,D={},G=b[b.length-1],z=(new Date()).getTime();if(I&&l&&z-l<h){clearTimeout(r);r=setTimeout(j,h);return}else{l=z}for(var E in i){var K=i[E],C=K.minw,J=K.maxw,A=C===null,L=J===null,y="em";if(!!C){C=parseFloat(C)*(C.indexOf(y)>-1?(p||v()):1)}if(!!J){J=parseFloat(J)*(J.indexOf(y)>-1?(p||v()):1)}if(!K.hasquery||(!A||!L)&&(A||H>=C)&&(L||H<=J)){if(!D[K.media]){D[K.media]=[]}D[K.media].push(k[K.rules])}}for(var E in q){if(q[E]&&q[E].parentNode===f){f.removeChild(q[E])}}for(var E in D){var M=w.createElement("style"),F=D[E].join("\n");M.type="text/css";M.media=E;f.insertBefore(M,G.nextSibling);if(M.styleSheet){M.styleSheet.cssText=F}else{M.appendChild(w.createTextNode(F))}q.push(M)}},n=function(x,z){var y=c();if(!y){return}y.open("GET",x,true);y.onreadystatechange=function(){if(y.readyState!=4||y.status!=200&&y.status!=304){return}z(y.responseText)};if(y.readyState==4){return}y.send(null)},c=(function(){var x=false;try{x=new XMLHttpRequest()}catch(y){x=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return x}})();a();respond.update=a;function t(){j(true)}if(e.addEventListener){e.addEventListener("resize",t,false)}else{if(e.attachEvent){e.attachEvent("onresize",t)}}})(this);
|
||||
8
www/themes/profind/js/jquery.actual.min.js
vendored
@ -1,8 +0,0 @@
|
||||
/* Copyright 2011, Ben Lin (http://dreamerslab.com/)
|
||||
* Licensed under the MIT License (LICENSE.txt).
|
||||
*
|
||||
* Version: 1.0.6
|
||||
*
|
||||
* Requires: jQuery 1.2.3 ~ 1.7.1
|
||||
*/
|
||||
;(function(a){a.fn.extend({actual:function(b,k){var c,d,h,g,f,j,e,i;if(!this[b]){throw'$.actual => The jQuery method "'+b+'" you called does not exist';}h=a.extend({absolute:false,clone:false,includeMargin:undefined},k);d=this;if(h.clone===true){e=function(){d=d.filter(":first").clone().css({position:"absolute",top:-1000}).appendTo("body");};i=function(){d.remove();};}else{e=function(){c=d.parents().andSelf().filter(":hidden");g=h.absolute===true?{position:"absolute",visibility:"hidden",display:"block"}:{visibility:"hidden",display:"block"};f=[];c.each(function(){var m={},l;for(l in g){m[l]=this.style[l];this.style[l]=g[l];}f.push(m);});};i=function(){c.each(function(m){var n=f[m],l;for(l in g){this.style[l]=n[l];}});};}e();j=/(outer)/g.test(b)?d[b](h.includeMargin):d[b]();i();return j;}});})(jQuery);
|
||||
10
www/themes/profind/js/jquery.cookie.min.js
vendored
@ -1,10 +0,0 @@
|
||||
/*!
|
||||
* jQuery Cookie Plugin
|
||||
* https://github.com/carhartl/jquery-cookie
|
||||
*
|
||||
* Copyright 2011, Klaus Hartl
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.opensource.org/licenses/GPL-2.0
|
||||
*/
|
||||
;(function(g){g.cookie=function(h,b,a){if(1<arguments.length&&(!/Object/.test(Object.prototype.toString.call(b))||null===b||void 0===b)){a=g.extend({},a);if(null===b||void 0===b)a.expires=-1;if("number"===typeof a.expires){var d=a.expires,c=a.expires=new Date;c.setDate(c.getDate()+d)}b=""+b;return document.cookie=[encodeURIComponent(h),"=",a.raw?b:encodeURIComponent(b),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure": ""].join("")}for(var a=b||{},d=a.raw?function(a){return a}:decodeURIComponent,c=document.cookie.split("; "),e=0,f;f=c[e]&&c[e].split("=");e++)if(d(f[0])===h)return d(f[1]||"");return null}})(jQuery);
|
||||
@ -1,14 +0,0 @@
|
||||
/*
|
||||
* debouncedresize: special jQuery event that happens once after a window resize
|
||||
*
|
||||
* latest version and complete README available on Github:
|
||||
* https://github.com/louisremi/jquery-smartresize
|
||||
*
|
||||
* Copyright 2012 @louis_remi
|
||||
* Licensed under the MIT license.
|
||||
*
|
||||
* This saved you an hour of work?
|
||||
* Send me music http://www.amazon.co.uk/wishlist/HNTU0468LQON
|
||||
*/
|
||||
|
||||
;(function(a){var d=a.event,b,c;b=d.special.debouncedresize={setup:function(){a(this).on("resize",b.handler)},teardown:function(){a(this).off("resize",b.handler)},handler:function(a,f){var g=this,h=arguments,e=function(){a.type="debouncedresize";d.dispatch.apply(g,h)};c&&clearTimeout(c);f?e():c=setTimeout(e,b.threshold)},threshold:150}})(jQuery);
|
||||
72
www/themes/profind/js/jquery.easing.1.3.min.js
vendored
@ -1,72 +0,0 @@
|
||||
/*
|
||||
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
||||
*
|
||||
* Uses the built in easing capabilities added In jQuery 1.1
|
||||
* to offer multiple easing options
|
||||
*
|
||||
* TERMS OF USE - jQuery Easing
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright © 2008 George McGinley Smith
|
||||
* 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 the author nor the names of contributors 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 AND CONTRIBUTORS "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 OWNER OR CONTRIBUTORS 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.
|
||||
*
|
||||
*/
|
||||
|
||||
// t: current time, b: begInnIng value, c: change In value, d: duration
|
||||
jQuery.easing.jswing=jQuery.easing.swing; jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,a,c,b,d){return jQuery.easing[jQuery.easing.def](e,a,c,b,d)},easeInQuad:function(e,a,c,b,d){return b*(a/=d)*a+c},easeOutQuad:function(e,a,c,b,d){return-b*(a/=d)*(a-2)+c},easeInOutQuad:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a+c:-b/2*(--a*(a-2)-1)+c},easeInCubic:function(e,a,c,b,d){return b*(a/=d)*a*a+c},easeOutCubic:function(e,a,c,b,d){return b*((a=a/d-1)*a*a+1)+c},easeInOutCubic:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a+c: b/2*((a-=2)*a*a+2)+c},easeInQuart:function(e,a,c,b,d){return b*(a/=d)*a*a*a+c},easeOutQuart:function(e,a,c,b,d){return-b*((a=a/d-1)*a*a*a-1)+c},easeInOutQuart:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a*a+c:-b/2*((a-=2)*a*a*a-2)+c},easeInQuint:function(e,a,c,b,d){return b*(a/=d)*a*a*a*a+c},easeOutQuint:function(e,a,c,b,d){return b*((a=a/d-1)*a*a*a*a+1)+c},easeInOutQuint:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a*a*a+c:b/2*((a-=2)*a*a*a*a+2)+c},easeInSine:function(e,a,c,b,d){return-b*Math.cos(a/ d*(Math.PI/2))+b+c},easeOutSine:function(e,a,c,b,d){return b*Math.sin(a/d*(Math.PI/2))+c},easeInOutSine:function(e,a,c,b,d){return-b/2*(Math.cos(Math.PI*a/d)-1)+c},easeInExpo:function(e,a,c,b,d){return 0==a?c:b*Math.pow(2,10*(a/d-1))+c},easeOutExpo:function(e,a,c,b,d){return a==d?c+b:b*(-Math.pow(2,-10*a/d)+1)+c},easeInOutExpo:function(e,a,c,b,d){return 0==a?c:a==d?c+b:1>(a/=d/2)?b/2*Math.pow(2,10*(a-1))+c:b/2*(-Math.pow(2,-10*--a)+2)+c},easeInCirc:function(e,a,c,b,d){return-b*(Math.sqrt(1-(a/=d)* a)-1)+c},easeOutCirc:function(e,a,c,b,d){return b*Math.sqrt(1-(a=a/d-1)*a)+c},easeInOutCirc:function(e,a,c,b,d){return 1>(a/=d/2)?-b/2*(Math.sqrt(1-a*a)-1)+c:b/2*(Math.sqrt(1-(a-=2)*a)+1)+c},easeInElastic:function(e,a,c,b,d){var e=1.70158,f=0,g=b;if(0==a)return c;if(1==(a/=d))return c+b;f||(f=0.3*d);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return-(g*Math.pow(2,10*(a-=1))*Math.sin((a*d-e)*2*Math.PI/f))+c},easeOutElastic:function(e,a,c,b,d){var e=1.70158,f=0,g=b;if(0==a)return c;if(1== (a/=d))return c+b;f||(f=0.3*d);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return g*Math.pow(2,-10*a)*Math.sin((a*d-e)*2*Math.PI/f)+b+c},easeInOutElastic:function(e,a,c,b,d){var e=1.70158,f=0,g=b;if(0==a)return c;if(2==(a/=d/2))return c+b;f||(f=d*0.3*1.5);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return 1>a?-0.5*g*Math.pow(2,10*(a-=1))*Math.sin((a*d-e)*2*Math.PI/f)+c:0.5*g*Math.pow(2,-10*(a-=1))*Math.sin((a*d-e)*2*Math.PI/f)+b+c},easeInBack:function(e,a,c,b,d,f){void 0== f&&(f=1.70158);return b*(a/=d)*a*((f+1)*a-f)+c},easeOutBack:function(e,a,c,b,d,f){void 0==f&&(f=1.70158);return b*((a=a/d-1)*a*((f+1)*a+f)+1)+c},easeInOutBack:function(e,a,c,b,d,f){void 0==f&&(f=1.70158);return 1>(a/=d/2)?b/2*a*a*(((f*=1.525)+1)*a-f)+c:b/2*((a-=2)*a*(((f*=1.525)+1)*a+f)+2)+c},easeInBounce:function(e,a,c,b,d){return b-jQuery.easing.easeOutBounce(e,d-a,0,b,d)+c},easeOutBounce:function(e,a,c,b,d){return(a/=d)<1/2.75?b*7.5625*a*a+c:a<2/2.75?b*(7.5625*(a-=1.5/2.75)*a+0.75)+c:a<2.5/2.75? b*(7.5625*(a-=2.25/2.75)*a+0.9375)+c:b*(7.5625*(a-=2.625/2.75)*a+0.984375)+c},easeInOutBounce:function(e,a,c,b,d){return a<d/2?0.5*jQuery.easing.easeInBounce(e,2*a,0,b,d)+c:0.5*jQuery.easing.easeOutBounce(e,2*a-d,0,b,d)+0.5*b+c}});
|
||||
|
||||
/*
|
||||
*
|
||||
* TERMS OF USE - EASING EQUATIONS
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright © 2001 Robert Penner
|
||||
* 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 the author nor the names of contributors 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 AND CONTRIBUTORS "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 OWNER OR CONTRIBUTORS 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.
|
||||
*
|
||||
*/
|
||||
@ -1,9 +0,0 @@
|
||||
/*!
|
||||
* jQuery imagesLoaded plugin v2.0.1
|
||||
* http://github.com/desandro/imagesloaded
|
||||
*
|
||||
* MIT License. by Paul Irish et al.
|
||||
*/
|
||||
|
||||
(function(c,n){var k="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";c.fn.imagesLoaded=function(l){function m(){var b=c(h),a=c(g);d&&(g.length?d.reject(e,b,a):d.resolve(e));c.isFunction(l)&&l.call(f,e,b,a)}function i(b,a){b.src===k||-1!==c.inArray(b,j)||(j.push(b),a?g.push(b):h.push(b),c.data(b,"imagesLoaded",{isBroken:a,src:b.src}),o&&d.notifyWith(c(b),[a,e,c(h),c(g)]),e.length===j.length&&(setTimeout(m),e.unbind(".imagesLoaded")))}var f=this,d=c.isFunction(c.Deferred)?c.Deferred():
|
||||
0,o=c.isFunction(d.notify),e=f.find("img").add(f.filter("img")),j=[],h=[],g=[];e.length?e.bind("load.imagesLoaded error.imagesLoaded",function(b){i(b.target,"error"===b.type)}).each(function(b,a){var e=a.src,d=c.data(a,"imagesLoaded");if(d&&d.src===e)i(a,d.isBroken);else if(a.complete&&a.naturalWidth!==n)i(a,0===a.naturalWidth||0===a.naturalHeight);else if(a.readyState||a.complete)a.src=k,a.src=e}):m();return d?d.promise(f):f}})(jQuery);
|
||||
2
www/themes/profind/js/jquery.min.js
vendored
@ -1,373 +0,0 @@
|
||||
/* [ ---- Gebo Admin Panel - common ---- ] */
|
||||
|
||||
//* detect touch devices
|
||||
function is_touch_device() {
|
||||
return !!('ontouchstart' in window);
|
||||
}
|
||||
$(document).ready(function() {
|
||||
//* search typeahead
|
||||
$('.search_query').typeahead({
|
||||
source: ["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Dakota","North Carolina","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"],
|
||||
items: 4
|
||||
});
|
||||
//* accordion change actions
|
||||
$('#side_accordion').on('hidden shown', function () {
|
||||
gebo_sidebar.make_active();
|
||||
gebo_sidebar.update_scroll();
|
||||
});
|
||||
//* resize elements on window resize
|
||||
var lastWindowHeight = $(window).height();
|
||||
var lastWindowWidth = $(window).width();
|
||||
$(window).on("debouncedresize",function() {
|
||||
if($(window).height()!=lastWindowHeight || $(window).width()!=lastWindowWidth){
|
||||
lastWindowHeight = $(window).height();
|
||||
lastWindowWidth = $(window).width();
|
||||
gebo_sidebar.update_scroll();
|
||||
if(!is_touch_device()){
|
||||
$('.sidebar_switch').qtip('hide');
|
||||
}
|
||||
}
|
||||
});
|
||||
//* tooltips
|
||||
gebo_tips.init();
|
||||
if(!is_touch_device()){
|
||||
//* popovers
|
||||
gebo_popOver.init();
|
||||
}
|
||||
//* sidebar
|
||||
gebo_sidebar.init();
|
||||
gebo_sidebar.make_active();
|
||||
//* breadcrumbs
|
||||
gebo_crumbs.init();
|
||||
//* pre block prettify
|
||||
if(typeof prettyPrint == 'function') {
|
||||
prettyPrint();
|
||||
}
|
||||
//* external links
|
||||
gebo_external_links.init();
|
||||
//* accordion icons
|
||||
gebo_acc_icons.init();
|
||||
//* colorbox single
|
||||
gebo_colorbox_single.init();
|
||||
//* main menu mouseover
|
||||
gebo_nav_mouseover.init();
|
||||
//* top submenu
|
||||
gebo_submenu.init();
|
||||
|
||||
gebo_sidebar.make_scroll();
|
||||
gebo_sidebar.update_scroll();
|
||||
|
||||
//* style switcher
|
||||
//gebo_style_sw.init();
|
||||
});
|
||||
|
||||
gebo_sidebar = {
|
||||
init: function() {
|
||||
// sidebar onload state
|
||||
if($(window).width() > 979){
|
||||
if(!$('body').hasClass('sidebar_hidden')) {
|
||||
if( $.cookie('gebo_sidebar') == "hidden") {
|
||||
$('body').addClass('sidebar_hidden');
|
||||
$('.sidebar_switch').toggleClass('on_switch off_switch').attr('title','Show Sidebar');
|
||||
}
|
||||
} else {
|
||||
$('.sidebar_switch').toggleClass('on_switch off_switch').attr('title','Show Sidebar');
|
||||
}
|
||||
} else {
|
||||
$('body').addClass('sidebar_hidden');
|
||||
$('.sidebar_switch').removeClass('on_switch').addClass('off_switch');
|
||||
}
|
||||
|
||||
gebo_sidebar.info_box();
|
||||
//* sidebar visibility switch
|
||||
$('.sidebar_switch').click(function(){
|
||||
$('.sidebar_switch').removeClass('on_switch off_switch');
|
||||
if( $('body').hasClass('sidebar_hidden') ) {
|
||||
$.cookie('gebo_sidebar', null);
|
||||
$('body').removeClass('sidebar_hidden');
|
||||
$('.sidebar_switch').addClass('on_switch').show();
|
||||
$('.sidebar_switch').attr( 'title', "Ocultar barra lateral" );
|
||||
} else {
|
||||
$.cookie('gebo_sidebar', 'hidden');
|
||||
$('body').addClass('sidebar_hidden');
|
||||
$('.sidebar_switch').addClass('off_switch');
|
||||
$('.sidebar_switch').attr( 'title', "Mostrar barra lateral" );
|
||||
}
|
||||
gebo_sidebar.info_box();
|
||||
gebo_sidebar.update_scroll();
|
||||
$(window).resize();
|
||||
});
|
||||
//* prevent accordion link click
|
||||
$('.sidebar .accordion-toggle').click(function(e){e.preventDefault()});
|
||||
},
|
||||
info_box: function(){
|
||||
var s_box = $('.sidebar_info');
|
||||
var s_box_height = s_box.actual('height');
|
||||
s_box.css({
|
||||
'height' : s_box_height
|
||||
});
|
||||
$('.push').height(s_box_height);
|
||||
$('.sidebar_inner').css({
|
||||
'margin-bottom' : '-'+s_box_height+'px',
|
||||
'min-height' : '100%'
|
||||
});
|
||||
},
|
||||
make_active: function() {
|
||||
var thisAccordion = $('#side_accordion');
|
||||
thisAccordion.find('.accordion-heading').removeClass('sdb_h_active');
|
||||
var thisHeading = thisAccordion.find('.accordion-body.in').prev('.accordion-heading');
|
||||
if(thisHeading.length) {
|
||||
thisHeading.addClass('sdb_h_active');
|
||||
}
|
||||
},
|
||||
make_scroll: function() {
|
||||
antiScroll = $('.antiScroll').antiscroll().data('antiscroll');
|
||||
},
|
||||
update_scroll: function() {
|
||||
if($('.antiScroll').length) {
|
||||
if( $(window).width() > 979 ){
|
||||
$('.antiscroll-inner,.antiscroll-content').height($(window).height() - 40);
|
||||
} else {
|
||||
$('.antiscroll-inner,.antiscroll-content').height('400px');
|
||||
}
|
||||
antiScroll.refresh();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
//* tooltips
|
||||
gebo_tips = {
|
||||
init: function() {
|
||||
if(!is_touch_device()){
|
||||
var shared = {
|
||||
style : {
|
||||
classes: 'ui-tooltip-shadow ui-tooltip-tipsy'
|
||||
},
|
||||
show : {
|
||||
delay: 100,
|
||||
event: 'mouseenter focus'
|
||||
},
|
||||
hide : { delay: 0 }
|
||||
};
|
||||
if($('.ttip_b').length) {
|
||||
$('.ttip_b').qtip( $.extend({}, shared, {
|
||||
position : {
|
||||
my : 'top center',
|
||||
at : 'bottom center',
|
||||
viewport: $(window)
|
||||
}
|
||||
}));
|
||||
}
|
||||
if($('.ttip_t').length) {
|
||||
$('.ttip_t').qtip( $.extend({}, shared, {
|
||||
position: {
|
||||
my : 'bottom center',
|
||||
at : 'top center',
|
||||
viewport: $(window)
|
||||
}
|
||||
}));
|
||||
}
|
||||
if($('.ttip_l').length) {
|
||||
$('.ttip_l').qtip( $.extend({}, shared, {
|
||||
position: {
|
||||
my : 'right center',
|
||||
at : 'left center',
|
||||
viewport: $(window)
|
||||
}
|
||||
}));
|
||||
}
|
||||
if($('.ttip_r').length) {
|
||||
$('.ttip_r').qtip( $.extend({}, shared, {
|
||||
position: {
|
||||
my : 'left center',
|
||||
at : 'right center',
|
||||
viewport: $(window)
|
||||
}
|
||||
}));
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
//* popovers
|
||||
gebo_popOver = {
|
||||
init: function() {
|
||||
$(".pop_over").popover({trigger: 'hover'});
|
||||
}
|
||||
};
|
||||
|
||||
//* breadcrumbs
|
||||
gebo_crumbs = {
|
||||
init: function() {
|
||||
if($('#jCrumbs').length) {
|
||||
$('#jCrumbs').jBreadCrumb({
|
||||
endElementsToLeaveOpen: 0,
|
||||
beginingElementsToLeaveOpen: 0,
|
||||
timeExpansionAnimation: 500,
|
||||
timeCompressionAnimation: 500,
|
||||
timeInitialCollapse: 500,
|
||||
previewWidth: 30
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
//* external links
|
||||
gebo_external_links = {
|
||||
init: function() {
|
||||
$("a[href^='http']").not('.thumbnail>a,.ext_disabled').each(function() {
|
||||
$(this).attr('target','_blank').addClass('external_link');
|
||||
})
|
||||
}
|
||||
};
|
||||
|
||||
//* accordion icons
|
||||
gebo_acc_icons = {
|
||||
init: function() {
|
||||
var accordions = $('.main_content .accordion');
|
||||
|
||||
accordions.find('.accordion-group').each(function(){
|
||||
var acc_active = $(this).find('.accordion-body').filter('.in');
|
||||
acc_active.prev('.accordion-heading').find('.accordion-toggle').addClass('acc-in');
|
||||
});
|
||||
accordions.on('show', function(option) {
|
||||
$(this).find('.accordion-toggle').removeClass('acc-in');
|
||||
$(option.target).prev('.accordion-heading').find('.accordion-toggle').addClass('acc-in');
|
||||
});
|
||||
accordions.on('hide', function(option) {
|
||||
$(option.target).prev('.accordion-heading').find('.accordion-toggle').removeClass('acc-in');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
//* main menu mouseover
|
||||
gebo_nav_mouseover = {
|
||||
init: function() {
|
||||
$('header li.dropdown').mouseenter(function() {
|
||||
if($('body').hasClass('menu_hover')) {
|
||||
$(this).addClass('navHover')
|
||||
}
|
||||
}).mouseleave(function() {
|
||||
if($('body').hasClass('menu_hover')) {
|
||||
$(this).removeClass('navHover open')
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
//* single image colorbox
|
||||
gebo_colorbox_single = {
|
||||
init: function() {
|
||||
if($('.cbox_single').length) {
|
||||
$('.cbox_single').colorbox({
|
||||
maxWidth : '80%',
|
||||
maxHeight : '80%',
|
||||
opacity : '0.2',
|
||||
fixed : true
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
//* submenu
|
||||
gebo_submenu = {
|
||||
init: function() {
|
||||
$('.dropdown-menu li').each(function(){
|
||||
var $this = $(this);
|
||||
if($this.children('ul').length) {
|
||||
$this.addClass('sub-dropdown');
|
||||
$this.children('ul').addClass('sub-menu');
|
||||
}
|
||||
});
|
||||
|
||||
$('.sub-dropdown').on('mouseenter',function(){
|
||||
$(this).addClass('active').children('ul').addClass('sub-open');
|
||||
}).on('mouseleave', function() {
|
||||
$(this).removeClass('active').children('ul').removeClass('sub-open');
|
||||
})
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
//* style switcher
|
||||
gebo_style_sw = {
|
||||
init: function() {
|
||||
if($('.style_switcher').length) {
|
||||
$('body').append('<a class="ssw_trigger" href="javascript:void(0)"><i class="icon-cog icon-white"></i></a>');
|
||||
var defLink = $('#link_theme').clone();
|
||||
|
||||
|
||||
$('input[name=ssw_sidebar]:first,input[name=ssw_layout]:first,input[name=ssw_menu]:first').attr('checked', true);
|
||||
|
||||
$(".ssw_trigger").click(function(){
|
||||
$(".style_switcher").toggle("fast");
|
||||
$(this).toggleClass("active");
|
||||
return false;
|
||||
});
|
||||
|
||||
// colors
|
||||
$('.style_switcher .jQclr').click(function() {
|
||||
$(this).closest('div').find('.style_item').removeClass('style_active');
|
||||
$(this).addClass('style_active');
|
||||
var style_selected = $(this).attr('title');
|
||||
$('#link_theme').attr('href','css/'+style_selected+'.css');
|
||||
});
|
||||
|
||||
// backgrounds
|
||||
$('.style_switcher .jQptrn').click(function(){
|
||||
$(this).closest('div').find('.style_item').removeClass('style_active');
|
||||
$(this).addClass('style_active');
|
||||
var style_selected = $(this).attr('title');
|
||||
if($(this).hasClass('jQptrn')) { $('body').removeClass('ptrn_a ptrn_b ptrn_c ptrn_d ptrn_e').addClass(style_selected); };
|
||||
});
|
||||
//* layout
|
||||
$('input[name=ssw_layout]').click(function(){
|
||||
var layout_selected = $(this).val();
|
||||
$('body').removeClass('gebo-fixed').addClass(layout_selected);
|
||||
});
|
||||
//* sidebar position
|
||||
$('input[name=ssw_sidebar]').click(function(){
|
||||
var sidebar_position = $(this).val();
|
||||
$('body').removeClass('sidebar_right').addClass(sidebar_position);
|
||||
$(window).resize();
|
||||
});
|
||||
//* menu show
|
||||
$('input[name=ssw_menu]').click(function(){
|
||||
var menu_show = $(this).val();
|
||||
$('body').removeClass('menu_hover').addClass(menu_show);
|
||||
});
|
||||
|
||||
//* reset
|
||||
$('#resetDefault').click(function(){
|
||||
$('body').attr('class', '');
|
||||
$('.style_item').removeClass('style_active').filter(':first-child').addClass('style_active');
|
||||
$('#link_theme').replaceWith(defLink);
|
||||
$('.ssw_trigger').removeClass('active');
|
||||
$(".style_switcher").hide();
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#showCss').on('click',function(e){
|
||||
var themeLink = $('#link_theme').attr('href'),
|
||||
bodyClass = $('body').attr('class');
|
||||
var contentStyle = '';
|
||||
contentStyle = '<div style="padding:20px;background:#fff">';
|
||||
if( (themeLink != 'css/blue.css') && (themeLink != undefined) ) {
|
||||
contentStyle += '<div class="sepH_c"><textarea style="height:20px" class="span5"><link id="link_theme" rel="stylesheet" href="'+themeLink+'"></textarea><span class="help-block">Find stylesheet with id="link_theme" in document head and replace it with this code.</span></div>';
|
||||
}
|
||||
if( (bodyClass != '') && (bodyClass != undefined) ) {
|
||||
contentStyle += '<textarea style="height:20px" class="span5"><body class="'+$('body').attr('class')+'"></textarea><span class="help-block">Replace body tag with this code.</span>';
|
||||
} else {
|
||||
contentStyle += '<textarea style="height:20px" class="span5"><body></textarea>';
|
||||
}
|
||||
contentStyle += '</div>';
|
||||
$.colorbox({
|
||||
opacity : '0.2',
|
||||
fixed : true,
|
||||
html : contentStyle
|
||||
});
|
||||
e.preventDefault();
|
||||
})
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -1,54 +0,0 @@
|
||||
.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-y: scroll;
|
||||
}
|
||||
|
||||
.antiScroll,.antiscroll-content, .antiscroll-inner {
|
||||
width: 240px;
|
||||
}
|
||||
|
||||
.antiscroll-inner::-webkit-scrollbar, .antiscroll-inner::scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
@ -1,446 +0,0 @@
|
||||
|
||||
(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();
|
||||
this.horizontal = null
|
||||
}
|
||||
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.innerPaneScrollListener = $.proxy(this, 'scroll');
|
||||
this.pane.inner.scroll(this.innerPaneScrollListener);
|
||||
|
||||
// wheel -optional-
|
||||
this.innerPaneMouseWheelListener = $.proxy(this, 'mousewheel');
|
||||
this.pane.inner.bind('mousewheel', this.innerPaneMouseWheelListener);
|
||||
|
||||
// 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();
|
||||
this.pane.inner.unbind('scroll', this.innerPaneScrollListener);
|
||||
this.pane.inner.unbind('mousewheel', this.innerPaneMouseWheelListener);
|
||||
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 + 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 + 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 style="width:50px;height:50px;overflow:hidden;'
|
||||
+ 'position:absolute;top:-200px;left:-200px;"><div style="height:100px;">'
|
||||
+ '</div>'
|
||||
);
|
||||
|
||||
$('body').append(div);
|
||||
|
||||
var w1 = $('div', div).innerWidth();
|
||||
div.css('overflow-y', 'scroll');
|
||||
var w2 = $('div', div).innerWidth();
|
||||
$(div).remove();
|
||||
|
||||
size = w1 - w2;
|
||||
}
|
||||
|
||||
return size;
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
446
www/themes/profind/lib/antiscroll/antiscroll.min.js
vendored
@ -1,446 +0,0 @@
|
||||
|
||||
(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();
|
||||
this.horizontal = null
|
||||
}
|
||||
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.innerPaneScrollListener = $.proxy(this, 'scroll');
|
||||
this.pane.inner.scroll(this.innerPaneScrollListener);
|
||||
|
||||
// wheel -optional-
|
||||
this.innerPaneMouseWheelListener = $.proxy(this, 'mousewheel');
|
||||
this.pane.inner.bind('mousewheel', this.innerPaneMouseWheelListener);
|
||||
|
||||
// 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();
|
||||
this.pane.inner.unbind('scroll', this.innerPaneScrollListener);
|
||||
this.pane.inner.unbind('mousewheel', this.innerPaneMouseWheelListener);
|
||||
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 + 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 + 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 style="width:50px;height:50px;overflow:hidden;'
|
||||
+ 'position:absolute;top:-200px;left:-200px;"><div style="height:100px;">'
|
||||
+ '</div>'
|
||||
);
|
||||
|
||||
$('body').append(div);
|
||||
|
||||
var w1 = $('div', div).innerWidth();
|
||||
div.css('overflow-y', 'scroll');
|
||||
var w2 = $('div', div).innerWidth();
|
||||
$(div).remove();
|
||||
|
||||
size = w1 - w2;
|
||||
}
|
||||
|
||||
return size;
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
@ -1,304 +0,0 @@
|
||||
<!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>
|
||||
@ -1,78 +0,0 @@
|
||||
/*! 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);
|
||||
@ -1,157 +0,0 @@
|
||||
/*
|
||||
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);
|
||||
@ -1,9 +0,0 @@
|
||||
/*
|
||||
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);
|
||||
@ -1,218 +0,0 @@
|
||||
Version 1.5.4 (2012-04-12)
|
||||
Flash: Disable scripting if swf was loaded from another domain.
|
||||
Version 1.5.3 (2012-04-05)
|
||||
HTML5: Check if xhr object is initialized, before calling abort() on it.
|
||||
HTML4: Postpone form removal until uploaders state changes, to avoid error on resuming stopped uploads.
|
||||
BrowserPlus: Fix mechanical typo, that caused error during mime type check.
|
||||
BrowserPlus: browserPlus.Uploader.Cancel() has two required parameters, dies with the error if not passed.
|
||||
Flash: Improve runtime's behaviour during upload cancellation.
|
||||
Flash: Survive the case when GPSVersionID contains unexpected value.
|
||||
Flash: Fix random freeze in Chrome's bundled Flash Player.
|
||||
Flash: Avoid the silent break when URLStream not yet open, but close is called on it.
|
||||
Flash: Move Destroy handler out of Flash:Init handler, since it might be called not only after Flash:Init but also before it.
|
||||
Flash: Avoid warning during build with mxmlc.
|
||||
Try removeEventListener first in IE and only if it fails - detachEvent.
|
||||
Fix plupload.getPos to return proper value in IE8+.
|
||||
Do not initiate plupload.STARTED state, if file queue is empty.
|
||||
Additional language packs: Estonian, Polish, Korean, French-Canadian, Greek, Persian/Farsi.
|
||||
Version 1.5.2 (2012-01-06)
|
||||
UI Widget: Do not show UI if no runtime can be initialized.
|
||||
UI Widget: Timely update file size and total size if resize in action.
|
||||
UI Widget: Constrain renaming feature to queued files only.
|
||||
UI Widget: Disable Add button properly, if requested, rather then just hide.
|
||||
HTML4/HTML5/BrowserPlus: Avoid adding mime type twice to dialog trigger.
|
||||
HTML5: fix regression, when unresized images were failing on FF3.6.
|
||||
HTML5: Constrain Gecko 2,5,6 workaround to multipart mode only.
|
||||
HTML5/Flash: Take into account weird possibilities of ExifVersion being a string, rather then standard Undefined.
|
||||
Flash: Simplify event dispatching in BitmapDataUnlimited class, in order to avoid freezing on resizing in FP11.
|
||||
Add ability to disable file dialog trigger on request (uploader.disableBrowse(true/false)).
|
||||
Support for immediate abort of upload process, be it chunked upload or regular one.
|
||||
Abort all activity, before destroying uploader.
|
||||
Revive temporary file removal logic in upload.php.
|
||||
Fix potential vulnerability in dump.php and upload.php.
|
||||
Additional MIME types: application/vnd.openxmlformats-officedocument.*, application/x-javascript, application/json, text/css,css, application/vnd.oasis.opendocument.formula-templat.
|
||||
Additional language packs: Hungarian, Croatian, Serbian, Romanian.
|
||||
Version 1.5.1.1 (2011-09-27)
|
||||
HTML5: Fix mechanical typo, that successfully broke drag and drop, wherever could.
|
||||
Version 1.5.1 (2011-09-26)
|
||||
HTML4: Add support for server responses in HTML format.
|
||||
HTML5: Disable multiple file selection in Safari 5.x for Windows (see #363).
|
||||
HTML5: Gecko 2/5/6 should upload chunks as binary strings when in chunking mode and client side resize is requested.
|
||||
Flash: Enforce URLStream mode when custom headers are passed.
|
||||
Flash: Fix embedding problems in IE9 (and all other IEs).
|
||||
Flash/Gears/BrowserPlus/SilverLight: Expose multi_selection feature, to be used in required_features (mainly to overcome Safari for Windows problem).
|
||||
SilverLight: Properly handle custom and null headers.
|
||||
UploadComplete moved to fire after the last StateChanged event.
|
||||
Additional language packs: Finnish.
|
||||
Version 1.5b (2011-09-11)
|
||||
UI Widget: Fix sortable logic.
|
||||
UI Widget: Fix bug, when message was displayed simultaneously across all Plupload UI instances on the page.
|
||||
UI Widget: notify() method is now public - users can throw their own messages into the widget header.
|
||||
HTML4/HTML5: Revise input[type=file] placement logic to support cursor styling on Geko 2+.
|
||||
HTML5: Revise Drag'n'Drop detection logic.
|
||||
HTML5: Make Exif and GPS information available to user, introduce two new events: ExifData and GpsData.
|
||||
HTML5: Add support for File.prototype.slice() method (mozSlice/webkitSlice) in order to be able to upload files in chunks without preloading.
|
||||
HTML5: Remove any JPEG headers before restoring them, 'cause user agent (like Chrome), might be inserting it's own.
|
||||
Flash: Remove a limit on the depth of image header check, since it still fails in some cases and performance gain is negligible.
|
||||
Flash: Fix regression, when runtime hanged when not images where passed in as images.
|
||||
SilverLight: Fix bug, when JSON serializer was failing on null.
|
||||
SilverLight: Remove cast to integer for chunk boundary, which resulted in a wrong size for last chunks on huge files.
|
||||
SilverLight: Increase read buffer, add disposal of ImageStream and FileStream, optimize for performance.
|
||||
Updated build.xml to include language packs in release package under js/ folder.
|
||||
Gears/BrowserPlus: Add support for * file filter.
|
||||
BeforeUpload now can cancel upload if required.
|
||||
Additional MIME types: text/csv, image/photoshop, video/x-ms-wmv, video/avi, video/webm support
|
||||
Additional language packs: Japanese
|
||||
Cleaned examples.
|
||||
Version 1.4.3.2 (2011-04-13)
|
||||
Fixed bug in HTML5 runtime, when was reduced by a factor of 100 after every upload.
|
||||
Version 1.4.3.1 (2011-04-12)
|
||||
Fixed build script, mistakenly populating jquery.plupload.queue directory from jquery.ui.plupload sources.
|
||||
Fixed script urls in all examples, build script now will alter them automatically from dev to release when needed.
|
||||
Fixed isEmptyObj undefined error in HTML4 runtime.
|
||||
Fixed bug in UI Widget preventing UploadComplete from triggering.
|
||||
Version 1.4.3 (2011-04-11)
|
||||
Added Latvian language pack and updated French.
|
||||
Fixed bug in Flash runtime when JPEG header was not investigated deep enough to reach SOFn marker in large images.
|
||||
Fixed bug, when PNGs were cropped to width in Flash runtimes, rather then resized.
|
||||
Fixed Flash to allow multiple uploading of the same file, with different settings.
|
||||
Fixed Flash runtime to clean anonymous listeners properly.
|
||||
Fixed HTML5 runtime to resolve to mimeType in case-insensitive way.
|
||||
Fixed HTML5/Flash/SilverLight/Gears runtimes for inconsistency in naming of chunks feature, comparing to other runtimes.
|
||||
Fixed HTML4/HTML5 runtimes for input[type=file] to outsize contaner effectively enough to fill the whole click area.
|
||||
Fixed all runtimes to preserve position (relative/absolute) rule on containers that already have it.
|
||||
Fixed SilverLight runtime to support large files (over 2GB).
|
||||
Restructured the examples, src and build scripts to make it more clear that jQuery is optional.
|
||||
Added support for *.* filter.
|
||||
Added support for preserving ICC and IPTC headers when resizing JPEGs.
|
||||
Added Image.onerror/onabort handlers to HTML5 in order to gracefully bypass faulty images.
|
||||
Added ability to drop image size (by lowering quality), while preserving original dimension (HTML5/Flash/Gears).
|
||||
Ported EXIF, ICC, IPTC preservation code to Flash runtime.
|
||||
Version 1.4.2 (2011-02-20)
|
||||
Added Brazilian Portuguese, German, Russian and Spanish translations.
|
||||
Added support for file_data_name option to SilverLight runtime.
|
||||
Added support for better quality image resizing to Flash runtime.
|
||||
Added support for properly handling images with dimensions up to 8191x8191 pixels to Flash runtime.
|
||||
Added 'updatelist' event to UI Widget, which will be triggered every time file list will get redrawn.
|
||||
Added support for dynamically changing options to UI Widget.
|
||||
Fixed HTML4 runtime bug, when UploadFile handler was attached twice.
|
||||
Fixed HTML5 to use FileReader.readAsBinaryString() instead of File.getAsBinary() on newer WebKit browsers (like Chrome 9).
|
||||
Fixed Flash runtime from sending duplicate Filename param, when using FileReference.upload().
|
||||
Updated S3 example to illustrate support for a proper progress indication.
|
||||
Version 1.4.1 (2011-02-01)
|
||||
Added an example on how to use Plupload with Amazon S3 written in PHP but can easily be ported to other languages.
|
||||
Fixed bug where hidden input elements wasn't created when the multiple_queues option wasn't used.
|
||||
Fixed bug where FF4 would produce an exception about missing BlobBuilder.
|
||||
Version 1.4.0 (2011-01-26)
|
||||
Added removeEvent and removeAllEvents methods and modified addEvent accordingly, in order to support dynamic unload.
|
||||
Added unbindAll method.
|
||||
Added UploadComplete event, which fires when internal iterator reaches the end of the queue.
|
||||
Added public destroy method to plupload object, new event - Destroy, and corresponding handlers to all runtimes.
|
||||
Added Czech, Italian, French, Dutch translations.
|
||||
Added support for translatable error messages.
|
||||
Added two new options: browse_button_hover and browse_button_active, in order to support browse_button interactivity.
|
||||
Added support for 'multi_selection: false' to Silverlight runtime.
|
||||
Added support for video/mp4, video/x-m4v and audio/mp4 MIME Types.
|
||||
Added artificial sendAsBinary method to XMLHttpRequest.prototype for browsers that have support for BlobBuilder and typed arrays.
|
||||
Added version tracking variable into plupload object and version comment to the header of every file.
|
||||
Fixed measurements of browse_button element in order to size and position input[type=file] element to fit it fully.
|
||||
Fixed Flash runtime behavior for multiple_select=false and other simpleUpload usage cases: basically new FileReference has to be created for every select dialog.
|
||||
Fixed browser sniffer to match only Safari, for fakeSafariDragDrop (seems like Safari on Mac doesn't require it either).
|
||||
Fixed so that ExternalInterface escapes strings properly, before passing them to JS.
|
||||
Fixed eventual reinitialization of flash/silverlight runtimes, especially for cases when object wrapper needed to be programmatically hidden and then shown again.
|
||||
Fixed so that Plupload will now ignore files with duplicate names when adding to the queue, in one set. Mainly introduced to work around Safari on Windows bug (https://bugs.webkit.org/show_bug.cgi?id=37957).
|
||||
Fixed bug, when final UploadProgress was firing after FileUploaded for Flash simpleUpload.
|
||||
Fixed bug where upload would fail if an error was produced inside the FilesAdded event.
|
||||
Fixed bug in Flash runtime when it used a wrong size when resizing, but not chunking.
|
||||
Fixed bug in Silverlight runtime that would keep sending 0 byte packages when a picture was chunked before resized.
|
||||
Disabled blur filter (is going to be replaced with some bilinear resampling in next release).
|
||||
Completely revised UI Widget, to be more jQuery UI oriented. Optionally depends on UI Button, UI Sortable, UI ProgressBar.
|
||||
Version 1.3.0 (2010-11-24)
|
||||
Added new jQuery UI widget that supports jQuery UI themes.
|
||||
Added new multiple_queues option that enables you to upload multiple times in the queue widgets.
|
||||
Added support for crossdomain loading of the XAP and SWF files and crossdomain upload.
|
||||
Added new multiple_queues option that enables you to upload multiple times in the queue widgets.
|
||||
Added support for crossdomain loading of the XAP and SWF files and crossdomain upload.
|
||||
Added preinit/init options to to ease up the binding of custom events to queueWidget and the Uploader class.
|
||||
Added drag/drop support for Safari until they fix the broken drag/drop support on Windows.
|
||||
Added events example file that show how to bind all events and display event specific data.
|
||||
Added support for retaining Exif data on images when they where resized using the HTML5 runtime.
|
||||
Fixed logic issue with the upload.php example file. Chunking wasn't working correctly.
|
||||
Fixed issue with HTML4 not handling the form encoding correctly on older IE versions. Patch contributed by jinxdone.
|
||||
Fixed so the HTML4 runtime only submits the defined multipart_params arguments.
|
||||
Fixes issue where it wasn't possible to dynamically override url or mutlipart_params for the HTML4 runtime.
|
||||
Fixed so all runtimes pass the name, chunk and chunks parameters as multipart parameters instead of querystring parameters.
|
||||
Fixed so files are read using the newer FileReader class if it's available if not it tries the older getAsXXX on Gecko.
|
||||
Fixed bug where IE 9 beta 1 wouldn't render Silverlight properly.
|
||||
Fixed bug where Flash would do extra empty requests if images below a specific size would be uploaded.
|
||||
Fixed bug where Google Gears would resize and re-encode images even if the it wasn't changed in scale.
|
||||
Fixed bug where the HTML5 runtime wouldn't free memory after each request on Gecko.
|
||||
Version 1.2.4 (2010-09-08)
|
||||
Added new BeforeUpload event to make it easier to override settings before a file is uploaded.
|
||||
Added new automatic usage of FileReference in Flash if it's possible. Contributed by Marcel Jackwerth.
|
||||
Added new chunking support for Chrome 5 and Firefox 3.6 using the HTML 5 runtime.
|
||||
Added new multipart upload support for WebKit using the HTML 5 runtime and the FormData object.
|
||||
Added new image scaling method for the Flash runtime contributed by rcoopman.
|
||||
Added new alert error message if the user selected invalid files.
|
||||
Added new automatic unique name generation to the example.php script. Contributed by Brandon Kelly.
|
||||
Changed so the default upload method is multipart and the default chunk size is 0.
|
||||
Fixed progress issue with the HTML5 runtime running on Gecko.
|
||||
Fixed so longer extensions can be used such as .tar.gz.
|
||||
Fixed so the file extension is retained when using the unique_names option.
|
||||
Version 1.2.3 (2010-05-27)
|
||||
Added new drag/drop support for HTML5 running on Chrome beta.
|
||||
Added new multipart state for the features object. It's now possible to detect multipart support.
|
||||
Added new getFeatures function to all runtime. Basic concept by Javier Martinez Fernandez.
|
||||
Fixed bug where runtimes where initialized even if they didn't match the required_features setting.
|
||||
Version 1.2.2.1 (2010-05-04)
|
||||
Added new headers option, enables you to set custom headers for the upload requests.
|
||||
Fixed bug where the file extension checking was case sensitive.
|
||||
Version 1.2.2 (2010-04-26)
|
||||
Added new file_data_name option that enables you to set the multipart file data param. Patch contributed by Alex Ganov.
|
||||
Added new FILE_SIZE_ERROR type that will be triggered if the user selected a file that is to large or zero bytes.
|
||||
Added new FILE_EXTENSION_ERROR type that will be triggered if you add a file with an invalid file extension.
|
||||
Added new required_features setting, enables you to specify a list of required features that the runtime must have.
|
||||
Fixed so the plupload.buildUrl function uses the UTF compatible encodeURIComponent method instead of escape.
|
||||
Fixed so that all file types can be selected if you don't specify a filter setting.
|
||||
Fixed so more valid HTTP status codes are accepted as valid responses.
|
||||
Fixed so all runtimes fills the features object with available features.
|
||||
Fixed some issues with the HTML4 runtime if there wasn't any existing forms on the page.
|
||||
Fixed some conflict issues with HTML4 runtime and forms with the input names of action or target.
|
||||
Fixed bug where some Gecko versions would produce exceptions when checking the HTTP status of a XHR.
|
||||
Version 1.2.1 (2010-03-22)
|
||||
Fixed bug with incorrect aspect ratio in Flash image scaling.
|
||||
Fixed bug where chunked uploads could get scrambled in the Flash runtime. Patch contributed by Grady Werner.
|
||||
Fixed bug where a beta version of Chrome wouldn't handle drag/drop correctly because of missing drag effect.
|
||||
Fixed so the HTML 4 runtime displays N/A for file sizes and the progress is based on uploaded files instead of bytes.
|
||||
Fixed so chunking can be disabled properly in Flash but that will affect the progress bar.
|
||||
Fixed so queue widget displays the drag/drop message if file queue is emptied.
|
||||
Fixed small files are uploaded as one single chunk and not forced into 4 chunks in the Flash runtime.
|
||||
Version 1.2 (2010-03-09)
|
||||
Added new rename file support for jQuery queue widget, click on a file name to rename it if it's enabled.
|
||||
Added official ChunkUploaded event, it similar to FileUploaded but executed for each chunk.
|
||||
Added bytes per second support to total queue progress.
|
||||
Added better error handling to core API using the new Error event.
|
||||
Added better error handling to jQuery queue widget.
|
||||
Fixed so chunking uploads is dispatch from JS not from inside Flash/Silverlight.
|
||||
Version 1.1.1 (2010-02-25)
|
||||
Added new setup setting to queue widget. Makes it easier to bind custom events to uploader instance.
|
||||
Fixed so it's possible to disable chunking compleatly. It's now disabled by default.
|
||||
Fixed bug where multipart mode was enabled all the time in the Flash runtime.
|
||||
Fixed bug where chunked uploading in Silverlight would fail.
|
||||
Fixed bug where the delete button was visible while uploading.
|
||||
Fixed bug where unique_names setting wasn't working when the core API was used.
|
||||
Fixed bug where the queue widget wouldn't display the currently uploaded file if the unique_names was enabled.
|
||||
Version 1.1 (2010-02-24)
|
||||
Added new multipart and multipart_params support.
|
||||
Added new container option, enables you to specify where flash/silverlight objects would be added.
|
||||
Added chunking support to BrowserPlus runtime, contributed by Steve Spencer.
|
||||
Added FileUploaded event that fires when a file is uploaded.
|
||||
Added more easily understandable buttons to queue widget.
|
||||
Added html4 runtime, contributed by Ryan Demmer.
|
||||
Fixed issues with i18n support and added a Swedish and Danish language pack.
|
||||
Fixed bug where the Flash runtime could do empty requests if the image was scaled down.
|
||||
Fixed bug where uploading small images in Silverlight would produce an exception.
|
||||
Fixed so the runtime list can include whitespace or missing runtimes. Patch contributed by Øyvind Sean Kinsey.
|
||||
Fixed so to large files are ignored and never dispatched to the FilesAdded event.
|
||||
Version 1.0 (2010-02-03)
|
||||
First official release of Plupload.
|
||||
@ -1,194 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Class: plupload.File</title>
|
||||
<meta name="generator" content="MoxieDoc" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/reset.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/grids.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/general.css" />
|
||||
|
||||
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
|
||||
<script type="text/javascript">
|
||||
google.load("jquery", "1.3");
|
||||
</script>
|
||||
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
|
||||
<script type="text/javascript" src="js/general.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="classDetailsContent">
|
||||
<h1>plupload.File</h1>
|
||||
<table class="classDetails">
|
||||
<tr>
|
||||
<td class="first">Namespace</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Class</td>
|
||||
<td class="last">File</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="classDescription">File instance.
|
||||
</div>
|
||||
<div class="summaryLists">
|
||||
<h2>Public Properties</h2>
|
||||
<table class="Properties summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Property</th>
|
||||
<th>Defined By</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.File.html#id">id</a> : String</div>
|
||||
<div class="summary">File id this is a globally unique id for the specific file.</div>
|
||||
</td>
|
||||
<td class="last">File</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.File.html#loaded">loaded</a> : Number</div>
|
||||
<div class="summary">Number of bytes uploaded of the files total size.</div>
|
||||
</td>
|
||||
<td class="last">File</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.File.html#name">name</a> : String</div>
|
||||
<div class="summary">File name for example "myfile.</div>
|
||||
</td>
|
||||
<td class="last">File</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.File.html#percent">percent</a> : Number</div>
|
||||
<div class="summary">Number of percentage uploaded of the file.</div>
|
||||
</td>
|
||||
<td class="last">File</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.File.html#size">size</a> : Number</div>
|
||||
<div class="summary">File size in bytes.</div>
|
||||
</td>
|
||||
<td class="last">File</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.File.html#status">status</a> : Number</div>
|
||||
<div class="summary">Status constant matching the plupload states QUEUED, UPLOADING, FAILED, DONE.</div>
|
||||
</td>
|
||||
<td class="last">File</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2>Public Methods</h2>
|
||||
<table class="Methods summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Method</th>
|
||||
<th>Defined By</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.File.html#File">File</a>(id:String, name:String, size:Number)</div>
|
||||
<div class="summary">Constructs a new file instance.</div>
|
||||
</td>
|
||||
<td class="last">File</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="detailsList">
|
||||
<div class="details">
|
||||
<h2>Property details</h2>
|
||||
<div class="memberDetails" id="id">
|
||||
<h3>id<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public id : String</code>
|
||||
<div class="memberDescription">File id this is a globally unique id for the specific file.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="loaded">
|
||||
<h3>loaded<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public loaded : Number</code>
|
||||
<div class="memberDescription">Number of bytes uploaded of the files total size.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="name">
|
||||
<h3>name<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public name : String</code>
|
||||
<div class="memberDescription">File name for example "myfile.gif".
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="percent">
|
||||
<h3>percent<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public percent : Number</code>
|
||||
<div class="memberDescription">Number of percentage uploaded of the file.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="size">
|
||||
<h3>size<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public size : Number</code>
|
||||
<div class="memberDescription">File size in bytes.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails last" id="status">
|
||||
<h3>status<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public status : Number</code>
|
||||
<div class="memberDescription">Status constant matching the plupload states QUEUED, UPLOADING, FAILED, DONE.
|
||||
</div>
|
||||
<h4>See Also</h4>
|
||||
<ul class="see">
|
||||
<li>
|
||||
<a href="class_plupload.html">plupload</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="details">
|
||||
<h2>Method details</h2>
|
||||
<div class="memberDetails last" id="File">
|
||||
<h3>File<span class="memberType">constructor</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
function File(id:String, name:String, size:Number)</code>
|
||||
<div class="memberDescription">Constructs a new file instance.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">id:String</td>
|
||||
<td class="last">Unique file id.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">name:String</td>
|
||||
<td class="last">File name.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">size:Number</td>
|
||||
<td class="last">File size in bytes.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,204 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Class: plupload.QueueProgress</title>
|
||||
<meta name="generator" content="MoxieDoc" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/reset.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/grids.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/general.css" />
|
||||
|
||||
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
|
||||
<script type="text/javascript">
|
||||
google.load("jquery", "1.3");
|
||||
</script>
|
||||
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
|
||||
<script type="text/javascript" src="js/general.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="classDetailsContent">
|
||||
<h1>plupload.QueueProgress</h1>
|
||||
<table class="classDetails">
|
||||
<tr>
|
||||
<td class="first">Namespace</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Class</td>
|
||||
<td class="last">QueueProgress</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="classDescription">Runtime class gets implemented by each upload runtime.
|
||||
</div>
|
||||
<div class="summaryLists">
|
||||
<h2>Public Properties</h2>
|
||||
<table class="Properties summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Property</th>
|
||||
<th>Defined By</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.QueueProgress.html#bytesPerSec">bytesPerSec</a> : Number</div>
|
||||
<div class="summary">Bytes uploaded per second.</div>
|
||||
</td>
|
||||
<td class="last">QueueProgress</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.QueueProgress.html#failed">failed</a> : Number</div>
|
||||
<div class="summary">Number of files failed to upload.</div>
|
||||
</td>
|
||||
<td class="last">QueueProgress</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.QueueProgress.html#loaded">loaded</a> : Number</div>
|
||||
<div class="summary">Total bytes uploaded.</div>
|
||||
</td>
|
||||
<td class="last">QueueProgress</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.QueueProgress.html#percent">percent</a> : Number</div>
|
||||
<div class="summary">Total percent of the uploaded bytes.</div>
|
||||
</td>
|
||||
<td class="last">QueueProgress</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.QueueProgress.html#queued">queued</a> : Number</div>
|
||||
<div class="summary">Number of files yet to be uploaded.</div>
|
||||
</td>
|
||||
<td class="last">QueueProgress</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.QueueProgress.html#size">size</a> : Number</div>
|
||||
<div class="summary">Total queue file size.</div>
|
||||
</td>
|
||||
<td class="last">QueueProgress</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.QueueProgress.html#uploaded">uploaded</a> : Number</div>
|
||||
<div class="summary">Number of files uploaded.</div>
|
||||
</td>
|
||||
<td class="last">QueueProgress</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2>Public Methods</h2>
|
||||
<table class="Methods summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Method</th>
|
||||
<th>Defined By</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.QueueProgress.html#QueueProgress">QueueProgress</a>()</div>
|
||||
<div class="summary">Constructs a queue progress.</div>
|
||||
</td>
|
||||
<td class="last">QueueProgress</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.QueueProgress.html#reset">reset</a>():void</div>
|
||||
<div class="summary">Resets the progress to it's initial values.</div>
|
||||
</td>
|
||||
<td class="last">QueueProgress</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="detailsList">
|
||||
<div class="details">
|
||||
<h2>Property details</h2>
|
||||
<div class="memberDetails" id="bytesPerSec">
|
||||
<h3>bytesPerSec<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public bytesPerSec : Number</code>
|
||||
<div class="memberDescription">Bytes uploaded per second.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="failed">
|
||||
<h3>failed<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public failed : Number</code>
|
||||
<div class="memberDescription">Number of files failed to upload.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="loaded">
|
||||
<h3>loaded<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public loaded : Number</code>
|
||||
<div class="memberDescription">Total bytes uploaded.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="percent">
|
||||
<h3>percent<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public percent : Number</code>
|
||||
<div class="memberDescription">Total percent of the uploaded bytes.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="queued">
|
||||
<h3>queued<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public queued : Number</code>
|
||||
<div class="memberDescription">Number of files yet to be uploaded.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="size">
|
||||
<h3>size<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public size : Number</code>
|
||||
<div class="memberDescription">Total queue file size.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails last" id="uploaded">
|
||||
<h3>uploaded<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public uploaded : Number</code>
|
||||
<div class="memberDescription">Number of files uploaded.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="details">
|
||||
<h2>Method details</h2>
|
||||
<div class="memberDetails" id="QueueProgress">
|
||||
<h3>QueueProgress<span class="memberType">constructor</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
function QueueProgress()</code>
|
||||
<div class="memberDescription">Constructs a queue progress.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails last" id="reset">
|
||||
<h3>reset<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
function reset():void</code>
|
||||
<div class="memberDescription">Resets the progress to it's initial values.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,92 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Class: plupload.Runtime</title>
|
||||
<meta name="generator" content="MoxieDoc" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/reset.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/grids.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/general.css" />
|
||||
|
||||
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
|
||||
<script type="text/javascript">
|
||||
google.load("jquery", "1.3");
|
||||
</script>
|
||||
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
|
||||
<script type="text/javascript" src="js/general.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="classDetailsContent">
|
||||
<h1>plupload.Runtime</h1>
|
||||
<table class="classDetails">
|
||||
<tr>
|
||||
<td class="first">Namespace</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Class</td>
|
||||
<td class="last">Runtime</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Type</td>
|
||||
<td class="last">Singleton</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Subclasses</td>
|
||||
<td class="last subClassList">
|
||||
<a href="class_plupload.runtimes.BrowserPlus.html">BrowserPlus</a>, <a href="class_plupload.runtimes.Flash.html">Flash</a>, <a href="class_plupload.runtimes.Gears.html">Gears</a>, <a href="class_plupload.runtimes.Html4.html">Html4</a>, <a href="class_plupload.runtimes.Html5.html">Html5</a>, <a href="class_plupload.runtimes.Silverlight.html">Silverlight</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="classDescription">Runtime class gets implemented by each upload runtime.
|
||||
</div>
|
||||
<div class="summaryLists">
|
||||
<h2>Public Methods</h2>
|
||||
<table class="Methods summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Method</th>
|
||||
<th>Defined By</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Runtime.html#init">init</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Initializes the upload runtime.</div>
|
||||
</td>
|
||||
<td class="last">Runtime</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="detailsList">
|
||||
<div class="details">
|
||||
<h2>Method details</h2>
|
||||
<div class="memberDetails last" id="init">
|
||||
<h3>init<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public static
|
||||
function init(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</code>
|
||||
<div class="memberDescription">Initializes the upload runtime. This method should add necessary items to the DOM and register events needed for operation.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance that needs to be initialized.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">callback:function</td>
|
||||
<td class="last">Callback function to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,913 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Class: plupload.Uploader</title>
|
||||
<meta name="generator" content="MoxieDoc" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/reset.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/grids.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/general.css" />
|
||||
|
||||
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
|
||||
<script type="text/javascript">
|
||||
google.load("jquery", "1.3");
|
||||
</script>
|
||||
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
|
||||
<script type="text/javascript" src="js/general.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="classDetailsContent">
|
||||
<h1>plupload.Uploader</h1>
|
||||
<table class="classDetails">
|
||||
<tr>
|
||||
<td class="first">Namespace</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Class</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="classDescription">Uploader class, an instance of this class will be created for each upload field.
|
||||
</div>
|
||||
<h4>Example</h4>
|
||||
<pre class="brush: js;">var uploader = new plupload.Uploader({
|
||||
runtimes : 'gears,html5,flash',
|
||||
browse_button : 'button_id'
|
||||
});
|
||||
|
||||
uploader.bind('Init', function(up) {
|
||||
alert('Supports drag/drop: ' + (!!up.features.dragdrop));
|
||||
});
|
||||
|
||||
uploader.bind('FilesAdded', function(up, files) {
|
||||
alert('Selected files: ' + files.length);
|
||||
});
|
||||
|
||||
uploader.bind('QueueChanged', function(up) {
|
||||
alert('Queued files: ' + uploader.files.length);
|
||||
});
|
||||
|
||||
uploader.init();</pre>
|
||||
<div class="summaryLists">
|
||||
<h2>Public Properties</h2>
|
||||
<table class="Properties summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Property</th>
|
||||
<th>Defined By</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#features">features</a> : Object</div>
|
||||
<div class="summary">Map of features that are available for the uploader runtime.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#files">files</a> : Array</div>
|
||||
<div class="summary">Current upload queue, an array of File instances.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#id">id</a> : String</div>
|
||||
<div class="summary">Unique id for the Uploader instance.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#runtime">runtime</a> : String</div>
|
||||
<div class="summary">Current runtime name.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#settings">settings</a> : Object</div>
|
||||
<div class="summary">Object with name/value settings.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#state">state</a> : Number</div>
|
||||
<div class="summary">Current state of the total uploading progress.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#total">total</a> : <a href="class_plupload.QueueProgress.html">QueueProgress</a>
|
||||
</div>
|
||||
<div class="summary">Total progess information.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2>Public Methods</h2>
|
||||
<table class="Methods summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Method</th>
|
||||
<th>Defined By</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#Uploader">Uploader</a>(settings:Object)</div>
|
||||
<div class="summary">Constructs a new uploader instance.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#bind">bind</a>(name:String, func:function, scope:Object):void</div>
|
||||
<div class="summary">Adds an event listener by name.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#destroy">destroy</a>():void</div>
|
||||
<div class="summary">Destroys Plupload instance and cleans after itself.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#getFile">getFile</a>(id:String):<a href="class_plupload.File.html">File</a>
|
||||
</div>
|
||||
<div class="summary">Returns the specified file object by id.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#init">init</a>():void</div>
|
||||
<div class="summary">Initializes the Uploader instance and adds internal event listeners.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#refresh">refresh</a>():void</div>
|
||||
<div class="summary">Refreshes the upload instance by dispatching out a refresh event to all runtimes.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#removeFile">removeFile</a>(file:<a href="class_plupload.File.html">File</a>):void</div>
|
||||
<div class="summary">Removes a specific file.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#splice">splice</a>(start:Number, length:Number):Array</div>
|
||||
<div class="summary">Removes part of the queue and returns the files removed.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#start">start</a>():void</div>
|
||||
<div class="summary">Starts uploading the queued files.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#stop">stop</a>():void</div>
|
||||
<div class="summary">Stops the upload of the queued files.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#trigger">trigger</a>(name:String, Multiple:Object..):void</div>
|
||||
<div class="summary">Dispatches the specified event name and it's arguments to all listeners.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#unbind">unbind</a>(name:String, func:function):void</div>
|
||||
<div class="summary">Removes the specified event listener.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#unbindAll">unbindAll</a>():void</div>
|
||||
<div class="summary">Removes all event listeners.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2>Public Events</h2>
|
||||
<table class="Events summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Event</th>
|
||||
<th>Defined By</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#BeforeUpload">BeforeUpload</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>)</div>
|
||||
<div class="summary">Fires when just before a file is uploaded.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#ChunkUploaded">ChunkUploaded</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>, response:Object)</div>
|
||||
<div class="summary">Fires when file chunk is uploaded.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#Destroy">Destroy</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</div>
|
||||
<div class="summary">Fires when destroy method is called.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#Error">Error</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, error:Object)</div>
|
||||
<div class="summary">Fires when a error occurs.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#FilesAdded">FilesAdded</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, files:Array)</div>
|
||||
<div class="summary">Fires while when the user selects files to upload.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#FilesRemoved">FilesRemoved</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, files:Array)</div>
|
||||
<div class="summary">Fires while a file was removed from queue.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#FileUploaded">FileUploaded</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>, response:Object)</div>
|
||||
<div class="summary">Fires when a file is successfully uploaded.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#Init">Init</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</div>
|
||||
<div class="summary">Fires when the current RunTime has been initialized.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#PostInit">PostInit</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</div>
|
||||
<div class="summary">Fires after the init event incase you need to perform actions there.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#QueueChanged">QueueChanged</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</div>
|
||||
<div class="summary">Fires when the file queue is changed.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#Refresh">Refresh</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</div>
|
||||
<div class="summary">Fires when the silverlight/flash or other shim needs to move.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#StateChanged">StateChanged</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</div>
|
||||
<div class="summary">Fires when the overall state is being changed for the upload queue.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#UploadComplete">UploadComplete</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, files:Array)</div>
|
||||
<div class="summary">Fires when all files in a queue are uploaded.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#UploadFile">UploadFile</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>)</div>
|
||||
<div class="summary">Fires when a file is to be uploaded by the runtime.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.Uploader.html#UploadProgress">UploadProgress</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>)</div>
|
||||
<div class="summary">Fires while a file is being uploaded.</div>
|
||||
</td>
|
||||
<td class="last">Uploader</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="detailsList">
|
||||
<div class="details">
|
||||
<h2>Property details</h2>
|
||||
<div class="memberDetails" id="features">
|
||||
<h3>features<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public features : Object</code>
|
||||
<div class="memberDescription">Map of features that are available for the uploader runtime. Features will be filled
|
||||
before the init event is called, these features can then be used to alter the UI for the end user.
|
||||
Some of the current features that might be in this map is: dragdrop, chunks, jpgresize, pngresize.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="files">
|
||||
<h3>files<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public files : Array</code>
|
||||
<div class="memberDescription">Current upload queue, an array of File instances.
|
||||
</div>
|
||||
<h4>See Also</h4>
|
||||
<ul class="see">
|
||||
<li>
|
||||
<a href="class_plupload.File.html">File</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="memberDetails" id="id">
|
||||
<h3>id<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public id : String</code>
|
||||
<div class="memberDescription">Unique id for the Uploader instance.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="runtime">
|
||||
<h3>runtime<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public runtime : String</code>
|
||||
<div class="memberDescription">Current runtime name.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="settings">
|
||||
<h3>settings<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public settings : Object</code>
|
||||
<div class="memberDescription">Object with name/value settings.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="state">
|
||||
<h3>state<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public state : Number</code>
|
||||
<div class="memberDescription">Current state of the total uploading progress. This one can either be plupload.STARTED or plupload.STOPPED.
|
||||
These states are controlled by the stop/start methods. The default value is STOPPED.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails last" id="total">
|
||||
<h3>total<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public total : <a href="class_plupload.QueueProgress.html">QueueProgress</a>
|
||||
</code>
|
||||
<div class="memberDescription">Total progess information. How many files has been uploaded, total percent etc.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="details">
|
||||
<h2>Method details</h2>
|
||||
<div class="memberDetails" id="Uploader">
|
||||
<h3>Uploader<span class="memberType">constructor</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
function Uploader(settings:Object)</code>
|
||||
<div class="memberDescription">Constructs a new uploader instance.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">settings:Object</td>
|
||||
<td class="last">Initialization settings, to be used by the uploader instance and runtimes.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails" id="bind">
|
||||
<h3>bind<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
function bind(name:String, func:function, scope:Object):void</code>
|
||||
<div class="memberDescription">Adds an event listener by name.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">name:String</td>
|
||||
<td class="last">Event name to listen for.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">func:function</td>
|
||||
<td class="last">Function to call ones the event gets fired.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">scope:Object</td>
|
||||
<td class="last">Optional scope to execute the specified function in.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails" id="destroy">
|
||||
<h3>destroy<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
function destroy():void</code>
|
||||
<div class="memberDescription">Destroys Plupload instance and cleans after itself.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="getFile">
|
||||
<h3>getFile<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
function getFile(id:String):<a href="class_plupload.File.html">File</a>
|
||||
</code>
|
||||
<div class="memberDescription">Returns the specified file object by id.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">id:String</td>
|
||||
<td class="last">File id to look for.</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h4>Returns</h4>
|
||||
<div class="returns">
|
||||
<a href="class_plupload.File.html">File</a> - File object or undefined if it wasn't found;</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="init">
|
||||
<h3>init<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
function init():void</code>
|
||||
<div class="memberDescription">Initializes the Uploader instance and adds internal event listeners.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="refresh">
|
||||
<h3>refresh<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
function refresh():void</code>
|
||||
<div class="memberDescription">Refreshes the upload instance by dispatching out a refresh event to all runtimes.
|
||||
This would for example reposition flash/silverlight shims on the page.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="removeFile">
|
||||
<h3>removeFile<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
function removeFile(file:<a href="class_plupload.File.html">File</a>):void</code>
|
||||
<div class="memberDescription">Removes a specific file.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">file:<a href="class_plupload.File.html">File</a>
|
||||
</td>
|
||||
<td class="last">File to remove from queue.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails" id="splice">
|
||||
<h3>splice<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
function splice(start:Number, length:Number):Array</code>
|
||||
<div class="memberDescription">Removes part of the queue and returns the files removed. This will also trigger the FilesRemoved and QueueChanged events.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">start:Number</td>
|
||||
<td class="last">(Optional) Start index to remove from.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">length:Number</td>
|
||||
<td class="last">(Optional) Lengh of items to remove.</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h4>Returns</h4>
|
||||
<div class="returns">Array - Array of files that was removed.</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="start">
|
||||
<h3>start<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
function start():void</code>
|
||||
<div class="memberDescription">Starts uploading the queued files.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="stop">
|
||||
<h3>stop<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
function stop():void</code>
|
||||
<div class="memberDescription">Stops the upload of the queued files.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="trigger">
|
||||
<h3>trigger<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
function trigger(name:String, Multiple:Object..):void</code>
|
||||
<div class="memberDescription">Dispatches the specified event name and it's arguments to all listeners.
|
||||
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">name:String</td>
|
||||
<td class="last">Event name to fire.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Multiple:Object..</td>
|
||||
<td class="last">arguments to pass along to the listener functions.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails" id="unbind">
|
||||
<h3>unbind<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
function unbind(name:String, func:function):void</code>
|
||||
<div class="memberDescription">Removes the specified event listener.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">name:String</td>
|
||||
<td class="last">Name of event to remove.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">func:function</td>
|
||||
<td class="last">Function to remove from listener.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails last" id="unbindAll">
|
||||
<h3>unbindAll<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
function unbindAll():void</code>
|
||||
<div class="memberDescription">Removes all event listeners.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="details">
|
||||
<h2>Event details</h2>
|
||||
<div class="memberDetails" id="BeforeUpload">
|
||||
<h3>BeforeUpload<span class="memberType">event</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
event BeforeUpload(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>)</code>
|
||||
<div class="memberDescription">Fires when just before a file is uploaded. This event enables you to override settings
|
||||
on the uploader instance before the file is uploaded.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance sending the event.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">file:<a href="class_plupload.File.html">File</a>
|
||||
</td>
|
||||
<td class="last">File to be uploaded.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails" id="ChunkUploaded">
|
||||
<h3>ChunkUploaded<span class="memberType">event</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
event ChunkUploaded(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>, response:Object)</code>
|
||||
<div class="memberDescription">Fires when file chunk is uploaded.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance sending the event.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">file:<a href="class_plupload.File.html">File</a>
|
||||
</td>
|
||||
<td class="last">File that the chunk was uploaded for.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">response:Object</td>
|
||||
<td class="last">Object with response properties.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails" id="Destroy">
|
||||
<h3>Destroy<span class="memberType">event</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
event Destroy(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</code>
|
||||
<div class="memberDescription">Fires when destroy method is called.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance sending the event.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails" id="Error">
|
||||
<h3>Error<span class="memberType">event</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
event Error(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, error:Object)</code>
|
||||
<div class="memberDescription">Fires when a error occurs.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance sending the event.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">error:Object</td>
|
||||
<td class="last">Contains code, message and sometimes file and other details.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails" id="FilesAdded">
|
||||
<h3>FilesAdded<span class="memberType">event</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
event FilesAdded(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, files:Array)</code>
|
||||
<div class="memberDescription">Fires while when the user selects files to upload.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance sending the event.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">files:Array</td>
|
||||
<td class="last">Array of file objects that was added to queue/selected by the user.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails" id="FilesRemoved">
|
||||
<h3>FilesRemoved<span class="memberType">event</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
event FilesRemoved(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, files:Array)</code>
|
||||
<div class="memberDescription">Fires while a file was removed from queue.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance sending the event.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">files:Array</td>
|
||||
<td class="last">Array of files that got removed.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails" id="FileUploaded">
|
||||
<h3>FileUploaded<span class="memberType">event</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
event FileUploaded(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>, response:Object)</code>
|
||||
<div class="memberDescription">Fires when a file is successfully uploaded.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance sending the event.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">file:<a href="class_plupload.File.html">File</a>
|
||||
</td>
|
||||
<td class="last">File that was uploaded.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">response:Object</td>
|
||||
<td class="last">Object with response properties.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails" id="Init">
|
||||
<h3>Init<span class="memberType">event</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
event Init(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</code>
|
||||
<div class="memberDescription">Fires when the current RunTime has been initialized.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance sending the event.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails" id="PostInit">
|
||||
<h3>PostInit<span class="memberType">event</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
event PostInit(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</code>
|
||||
<div class="memberDescription">Fires after the init event incase you need to perform actions there.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance sending the event.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails" id="QueueChanged">
|
||||
<h3>QueueChanged<span class="memberType">event</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
event QueueChanged(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</code>
|
||||
<div class="memberDescription">Fires when the file queue is changed. In other words when files are added/removed to the files array of the uploader instance.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance sending the event.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails" id="Refresh">
|
||||
<h3>Refresh<span class="memberType">event</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
event Refresh(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</code>
|
||||
<div class="memberDescription">Fires when the silverlight/flash or other shim needs to move.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance sending the event.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails" id="StateChanged">
|
||||
<h3>StateChanged<span class="memberType">event</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
event StateChanged(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</code>
|
||||
<div class="memberDescription">Fires when the overall state is being changed for the upload queue.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance sending the event.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails" id="UploadComplete">
|
||||
<h3>UploadComplete<span class="memberType">event</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
event UploadComplete(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, files:Array)</code>
|
||||
<div class="memberDescription">Fires when all files in a queue are uploaded.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance sending the event.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">files:Array</td>
|
||||
<td class="last">Array of file objects that was added to queue/selected by the user.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails" id="UploadFile">
|
||||
<h3>UploadFile<span class="memberType">event</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
event UploadFile(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>)</code>
|
||||
<div class="memberDescription">Fires when a file is to be uploaded by the runtime.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance sending the event.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">file:<a href="class_plupload.File.html">File</a>
|
||||
</td>
|
||||
<td class="last">File to be uploaded.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails last" id="UploadProgress">
|
||||
<h3>UploadProgress<span class="memberType">event</span>
|
||||
</h3>
|
||||
<code class="syntax">public
|
||||
event UploadProgress(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>)</code>
|
||||
<div class="memberDescription">Fires while a file is being uploaded. Use this event to update the current file upload progress.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance sending the event.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">file:<a href="class_plupload.File.html">File</a>
|
||||
</td>
|
||||
<td class="last">File that is currently being uploaded.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,538 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Class: plupload</title>
|
||||
<meta name="generator" content="MoxieDoc" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/reset.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/grids.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/general.css" />
|
||||
|
||||
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
|
||||
<script type="text/javascript">
|
||||
google.load("jquery", "1.3");
|
||||
</script>
|
||||
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
|
||||
<script type="text/javascript" src="js/general.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="classDetailsContent">
|
||||
<h1>plupload</h1>
|
||||
<table class="classDetails">
|
||||
<tr>
|
||||
<td class="first">Class</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Type</td>
|
||||
<td class="last">Singleton</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="classDescription">Plupload class with some global constants and functions.
|
||||
</div>
|
||||
<h4>Example</h4>
|
||||
<pre class="brush: js;">// Encode entities
|
||||
console.log(plupload.xmlEncode("My string <>"));
|
||||
|
||||
// Generate unique id
|
||||
console.log(plupload.guid());</pre>
|
||||
<div class="summaryLists">
|
||||
<h2>Public Properties</h2>
|
||||
<table class="Properties summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Property</th>
|
||||
<th>Defined By</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#DONE">DONE</a> : Object</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>File has been uploaded successfully</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#FAILED">FAILED</a> : Object</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>File has failed to be uploaded</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#FILE_EXTENSION_ERROR">FILE_EXTENSION_ERROR</a> : Object</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>File extension error.</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#FILE_SIZE_ERROR">FILE_SIZE_ERROR</a> : Object</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>File size error.</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#GENERIC_ERROR">GENERIC_ERROR</a> : Object</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Generic error for example if an exception is thrown inside Silverlight.</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#HTTP_ERROR">HTTP_ERROR</a> : Object</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>HTTP transport error.</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#INIT_ERROR">INIT_ERROR</a> : Object</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Initialization error.</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#IO_ERROR">IO_ERROR</a> : Object</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Generic I/O error.</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#mimeTypes">mimeTypes</a> : Object</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Mime type lookup table.</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#QUEUED">QUEUED</a> : Object</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>File is queued for upload</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#SECURITY_ERROR">SECURITY_ERROR</a> : Object</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Generic I/O error.</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#STARTED">STARTED</a> : Object</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Upload process is running</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#STOPPED">STOPPED</a> : Object</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Inital state of the queue and also the state ones it's finished all it's uploads.</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#UPLOADING">UPLOADING</a> : Object</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>File is being uploaded</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2>Public Methods</h2>
|
||||
<table class="Methods summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Method</th>
|
||||
<th>Defined By</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#addRuntime">addRuntime</a>(name:String, obj:Object):void</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Adds a specific upload runtime like for example flash or gears.</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#cleanName">cleanName</a>(s:String):String</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Cleans the specified name from national characters (diacritics).</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#extend">extend</a>(target:Object, obj:Object..):Object</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Extends the specified object with another object.</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#formatSize">formatSize</a>(size:Number):String</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Formats the specified number as a size string for example 1024 becomes 1 KB.</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#getPos">getPos</a>(node:Element, root:Element):object</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Returns the absolute x, y position of an Element.</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#guid">guid</a>():String</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Generates an unique ID.</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#parseSize">parseSize</a>(size:String/Number):Number</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Parses the specified size string into a byte value.</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#toArray">toArray</a>(obj:Object):Array</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Forces anything into an array.</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.html#xmlEncode">xmlEncode</a>(s:String):String</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Encodes the specified string.</div>
|
||||
</td>
|
||||
<td class="last">plupload</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="detailsList">
|
||||
<div class="details">
|
||||
<h2>Property details</h2>
|
||||
<div class="memberDetails" id="DONE">
|
||||
<h3>DONE<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public static DONE : Object</code>
|
||||
<div class="memberDescription">File has been uploaded successfully
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="FAILED">
|
||||
<h3>FAILED<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public static FAILED : Object</code>
|
||||
<div class="memberDescription">File has failed to be uploaded
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="FILE_EXTENSION_ERROR">
|
||||
<h3>FILE_EXTENSION_ERROR<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public static FILE_EXTENSION_ERROR : Object</code>
|
||||
<div class="memberDescription">File extension error. If the user selects a file that isn't valid according to the filters setting.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="FILE_SIZE_ERROR">
|
||||
<h3>FILE_SIZE_ERROR<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public static FILE_SIZE_ERROR : Object</code>
|
||||
<div class="memberDescription">File size error. If the user selects a file that is to large it will be blocked and an error of this type will be triggered.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="GENERIC_ERROR">
|
||||
<h3>GENERIC_ERROR<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public static GENERIC_ERROR : Object</code>
|
||||
<div class="memberDescription">Generic error for example if an exception is thrown inside Silverlight.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="HTTP_ERROR">
|
||||
<h3>HTTP_ERROR<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public static HTTP_ERROR : Object</code>
|
||||
<div class="memberDescription">HTTP transport error. For example if the server produces a HTTP status other than 200.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="INIT_ERROR">
|
||||
<h3>INIT_ERROR<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public static INIT_ERROR : Object</code>
|
||||
<div class="memberDescription">Initialization error. Will be triggered if no runtime was initialized.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="IO_ERROR">
|
||||
<h3>IO_ERROR<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public static IO_ERROR : Object</code>
|
||||
<div class="memberDescription">Generic I/O error. For exampe if it wasn't possible to open the file stream on local machine.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="mimeTypes">
|
||||
<h3>mimeTypes<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public static mimeTypes : Object</code>
|
||||
<div class="memberDescription">Mime type lookup table.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="QUEUED">
|
||||
<h3>QUEUED<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public static QUEUED : Object</code>
|
||||
<div class="memberDescription">File is queued for upload
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="SECURITY_ERROR">
|
||||
<h3>SECURITY_ERROR<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public static SECURITY_ERROR : Object</code>
|
||||
<div class="memberDescription">Generic I/O error. For exampe if it wasn't possible to open the file stream on local machine.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="STARTED">
|
||||
<h3>STARTED<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public static STARTED : Object</code>
|
||||
<div class="memberDescription">Upload process is running
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="STOPPED">
|
||||
<h3>STOPPED<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public static STOPPED : Object</code>
|
||||
<div class="memberDescription">Inital state of the queue and also the state ones it's finished all it's uploads.
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberDetails last" id="UPLOADING">
|
||||
<h3>UPLOADING<span class="memberType">property</span>
|
||||
</h3>
|
||||
<code class="syntax">public static UPLOADING : Object</code>
|
||||
<div class="memberDescription">File is being uploaded
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="details">
|
||||
<h2>Method details</h2>
|
||||
<div class="memberDetails" id="addRuntime">
|
||||
<h3>addRuntime<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public static
|
||||
function addRuntime(name:String, obj:Object):void</code>
|
||||
<div class="memberDescription">Adds a specific upload runtime like for example flash or gears.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">name:String</td>
|
||||
<td class="last">Runtime name for example flash.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">obj:Object</td>
|
||||
<td class="last">Object containing init/destroy method.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memberDetails" id="cleanName">
|
||||
<h3>cleanName<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public static
|
||||
function cleanName(s:String):String</code>
|
||||
<div class="memberDescription">Cleans the specified name from national characters (diacritics). The result will be a name with only a-z, 0-9 and _.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">s:String</td>
|
||||
<td class="last">String to clean up.</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h4>Returns</h4>
|
||||
<div class="returns">String - Cleaned string.</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="extend">
|
||||
<h3>extend<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public static
|
||||
function extend(target:Object, obj:Object..):Object</code>
|
||||
<div class="memberDescription">Extends the specified object with another object.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">target:Object</td>
|
||||
<td class="last">Object to extend.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">obj:Object..</td>
|
||||
<td class="last">Multiple objects to extend with.</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h4>Returns</h4>
|
||||
<div class="returns">Object - Same as target, the extended object.</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="formatSize">
|
||||
<h3>formatSize<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public static
|
||||
function formatSize(size:Number):String</code>
|
||||
<div class="memberDescription">Formats the specified number as a size string for example 1024 becomes 1 KB.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">size:Number</td>
|
||||
<td class="last">Size to format as string.</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h4>Returns</h4>
|
||||
<div class="returns">String - Formatted size string.</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="getPos">
|
||||
<h3>getPos<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public static
|
||||
function getPos(node:Element, root:Element):object</code>
|
||||
<div class="memberDescription">Returns the absolute x, y position of an Element. The position will be returned in a object with x, y fields.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">node:Element</td>
|
||||
<td class="last">HTML element or element id to get x, y position from.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">root:Element</td>
|
||||
<td class="last">Optional root element to stop calculations at.</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h4>Returns</h4>
|
||||
<div class="returns">object - Absolute position of the specified element object with x, y fields.</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="guid">
|
||||
<h3>guid<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public static
|
||||
function guid():String</code>
|
||||
<div class="memberDescription">Generates an unique ID. This is 99.99% unique since it takes the current time and 5 random numbers.
|
||||
The only way a user would be able to get the same ID is if the two persons at the same exact milisecond manages
|
||||
to get 5 the same random numbers between 0-65535 it also uses a counter so each call will be guaranteed to be page unique.
|
||||
It's more probable for the earth to be hit with an ansteriod. You can also if you want to be 100% sure set the plupload.guidPrefix property
|
||||
to an user unique key.
|
||||
</div>
|
||||
<h4>Returns</h4>
|
||||
<div class="returns">String - Virtually unique id.</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="parseSize">
|
||||
<h3>parseSize<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public static
|
||||
function parseSize(size:String/Number):Number</code>
|
||||
<div class="memberDescription">Parses the specified size string into a byte value. For example 10kb becomes 10240.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">size:String/Number</td>
|
||||
<td class="last">String to parse or number to just pass through.</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h4>Returns</h4>
|
||||
<div class="returns">Number - Size in bytes.</div>
|
||||
</div>
|
||||
<div class="memberDetails" id="toArray">
|
||||
<h3>toArray<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public static
|
||||
function toArray(obj:Object):Array</code>
|
||||
<div class="memberDescription">Forces anything into an array.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">obj:Object</td>
|
||||
<td class="last">Object with length field.</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h4>Returns</h4>
|
||||
<div class="returns">Array - Array object containing all items.</div>
|
||||
</div>
|
||||
<div class="memberDetails last" id="xmlEncode">
|
||||
<h3>xmlEncode<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public static
|
||||
function xmlEncode(s:String):String</code>
|
||||
<div class="memberDescription">Encodes the specified string.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">s:String</td>
|
||||
<td class="last">String to encode.</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h4>Returns</h4>
|
||||
<div class="returns">String - Encoded string.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,95 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Class: plupload.runtimes.BrowserPlus</title>
|
||||
<meta name="generator" content="MoxieDoc" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/reset.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/grids.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/general.css" />
|
||||
|
||||
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
|
||||
<script type="text/javascript">
|
||||
google.load("jquery", "1.3");
|
||||
</script>
|
||||
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
|
||||
<script type="text/javascript" src="js/general.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="classDetailsContent">
|
||||
<h1>plupload.runtimes.BrowserPlus</h1>
|
||||
<table class="classDetails">
|
||||
<tr>
|
||||
<td class="first">Namespace</td>
|
||||
<td class="last">plupload.runtimes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Class</td>
|
||||
<td class="last">BrowserPlus</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Type</td>
|
||||
<td class="last">Singleton</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Inheritance</td>
|
||||
<td class="last inheritageList">
|
||||
<span>BrowserPlus</span>
|
||||
<span class="last">
|
||||
<a href="class_plupload.Runtime.html">Runtime</a>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="classDescription">Yahoo BrowserPlus implementation. This runtime supports these features: dragdrop, jpgresize, pngresize.
|
||||
</div>
|
||||
<div class="summaryLists">
|
||||
<h2>Public Methods</h2>
|
||||
<table class="Methods summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Method</th>
|
||||
<th>Defined By</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.runtimes.BrowserPlus.html#init">init</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Initializes the browserplus runtime.</div>
|
||||
</td>
|
||||
<td class="last">BrowserPlus</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="detailsList">
|
||||
<div class="details">
|
||||
<h2>Method details</h2>
|
||||
<div class="memberDetails last" id="init">
|
||||
<h3>init<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public static
|
||||
function init(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</code>
|
||||
<div class="memberDescription">Initializes the browserplus runtime.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance that needs to be initialized.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">callback:function</td>
|
||||
<td class="last">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,95 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Class: plupload.runtimes.Flash</title>
|
||||
<meta name="generator" content="MoxieDoc" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/reset.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/grids.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/general.css" />
|
||||
|
||||
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
|
||||
<script type="text/javascript">
|
||||
google.load("jquery", "1.3");
|
||||
</script>
|
||||
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
|
||||
<script type="text/javascript" src="js/general.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="classDetailsContent">
|
||||
<h1>plupload.runtimes.Flash</h1>
|
||||
<table class="classDetails">
|
||||
<tr>
|
||||
<td class="first">Namespace</td>
|
||||
<td class="last">plupload.runtimes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Class</td>
|
||||
<td class="last">Flash</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Type</td>
|
||||
<td class="last">Singleton</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Inheritance</td>
|
||||
<td class="last inheritageList">
|
||||
<span>Flash</span>
|
||||
<span class="last">
|
||||
<a href="class_plupload.Runtime.html">Runtime</a>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="classDescription">FlashRuntime implementation. This runtime supports these features: jpgresize, pngresize, chunks.
|
||||
</div>
|
||||
<div class="summaryLists">
|
||||
<h2>Public Methods</h2>
|
||||
<table class="Methods summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Method</th>
|
||||
<th>Defined By</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.runtimes.Flash.html#init">init</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Initializes the upload runtime.</div>
|
||||
</td>
|
||||
<td class="last">Flash</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="detailsList">
|
||||
<div class="details">
|
||||
<h2>Method details</h2>
|
||||
<div class="memberDetails last" id="init">
|
||||
<h3>init<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public static
|
||||
function init(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</code>
|
||||
<div class="memberDescription">Initializes the upload runtime. This method should add necessary items to the DOM and register events needed for operation.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance that needs to be initialized.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">callback:function</td>
|
||||
<td class="last">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,95 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Class: plupload.runtimes.Gears</title>
|
||||
<meta name="generator" content="MoxieDoc" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/reset.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/grids.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/general.css" />
|
||||
|
||||
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
|
||||
<script type="text/javascript">
|
||||
google.load("jquery", "1.3");
|
||||
</script>
|
||||
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
|
||||
<script type="text/javascript" src="js/general.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="classDetailsContent">
|
||||
<h1>plupload.runtimes.Gears</h1>
|
||||
<table class="classDetails">
|
||||
<tr>
|
||||
<td class="first">Namespace</td>
|
||||
<td class="last">plupload.runtimes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Class</td>
|
||||
<td class="last">Gears</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Type</td>
|
||||
<td class="last">Singleton</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Inheritance</td>
|
||||
<td class="last inheritageList">
|
||||
<span>Gears</span>
|
||||
<span class="last">
|
||||
<a href="class_plupload.Runtime.html">Runtime</a>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="classDescription">Gears implementation. This runtime supports these features: dragdrop, jpgresize, pngresize, chunks.
|
||||
</div>
|
||||
<div class="summaryLists">
|
||||
<h2>Public Methods</h2>
|
||||
<table class="Methods summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Method</th>
|
||||
<th>Defined By</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.runtimes.Gears.html#init">init</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Initializes the upload runtime.</div>
|
||||
</td>
|
||||
<td class="last">Gears</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="detailsList">
|
||||
<div class="details">
|
||||
<h2>Method details</h2>
|
||||
<div class="memberDetails last" id="init">
|
||||
<h3>init<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public static
|
||||
function init(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</code>
|
||||
<div class="memberDescription">Initializes the upload runtime.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance that needs to be initialized.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">callback:function</td>
|
||||
<td class="last">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,95 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Class: plupload.runtimes.Html4</title>
|
||||
<meta name="generator" content="MoxieDoc" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/reset.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/grids.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/general.css" />
|
||||
|
||||
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
|
||||
<script type="text/javascript">
|
||||
google.load("jquery", "1.3");
|
||||
</script>
|
||||
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
|
||||
<script type="text/javascript" src="js/general.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="classDetailsContent">
|
||||
<h1>plupload.runtimes.Html4</h1>
|
||||
<table class="classDetails">
|
||||
<tr>
|
||||
<td class="first">Namespace</td>
|
||||
<td class="last">plupload.runtimes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Class</td>
|
||||
<td class="last">Html4</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Type</td>
|
||||
<td class="last">Singleton</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Inheritance</td>
|
||||
<td class="last inheritageList">
|
||||
<span>Html4</span>
|
||||
<span class="last">
|
||||
<a href="class_plupload.Runtime.html">Runtime</a>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="classDescription">HTML4 implementation. This runtime has no special features it uses an form that posts files into an hidden iframe.
|
||||
</div>
|
||||
<div class="summaryLists">
|
||||
<h2>Public Methods</h2>
|
||||
<table class="Methods summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Method</th>
|
||||
<th>Defined By</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.runtimes.Html4.html#init">init</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Initializes the upload runtime.</div>
|
||||
</td>
|
||||
<td class="last">Html4</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="detailsList">
|
||||
<div class="details">
|
||||
<h2>Method details</h2>
|
||||
<div class="memberDetails last" id="init">
|
||||
<h3>init<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public static
|
||||
function init(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</code>
|
||||
<div class="memberDescription">Initializes the upload runtime.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance that needs to be initialized.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">callback:function</td>
|
||||
<td class="last">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,95 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Class: plupload.runtimes.Html5</title>
|
||||
<meta name="generator" content="MoxieDoc" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/reset.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/grids.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/general.css" />
|
||||
|
||||
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
|
||||
<script type="text/javascript">
|
||||
google.load("jquery", "1.3");
|
||||
</script>
|
||||
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
|
||||
<script type="text/javascript" src="js/general.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="classDetailsContent">
|
||||
<h1>plupload.runtimes.Html5</h1>
|
||||
<table class="classDetails">
|
||||
<tr>
|
||||
<td class="first">Namespace</td>
|
||||
<td class="last">plupload.runtimes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Class</td>
|
||||
<td class="last">Html5</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Type</td>
|
||||
<td class="last">Singleton</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Inheritance</td>
|
||||
<td class="last inheritageList">
|
||||
<span>Html5</span>
|
||||
<span class="last">
|
||||
<a href="class_plupload.Runtime.html">Runtime</a>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="classDescription">HMTL5 implementation. This runtime supports these features: dragdrop, jpgresize, pngresize.
|
||||
</div>
|
||||
<div class="summaryLists">
|
||||
<h2>Public Methods</h2>
|
||||
<table class="Methods summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Method</th>
|
||||
<th>Defined By</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.runtimes.Html5.html#init">init</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Initializes the upload runtime.</div>
|
||||
</td>
|
||||
<td class="last">Html5</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="detailsList">
|
||||
<div class="details">
|
||||
<h2>Method details</h2>
|
||||
<div class="memberDetails last" id="init">
|
||||
<h3>init<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public static
|
||||
function init(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</code>
|
||||
<div class="memberDescription">Initializes the upload runtime.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance that needs to be initialized.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">callback:function</td>
|
||||
<td class="last">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,95 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Class: plupload.runtimes.Silverlight</title>
|
||||
<meta name="generator" content="MoxieDoc" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/reset.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/grids.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/general.css" />
|
||||
|
||||
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
|
||||
<script type="text/javascript">
|
||||
google.load("jquery", "1.3");
|
||||
</script>
|
||||
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
|
||||
<script type="text/javascript" src="js/general.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="classDetailsContent">
|
||||
<h1>plupload.runtimes.Silverlight</h1>
|
||||
<table class="classDetails">
|
||||
<tr>
|
||||
<td class="first">Namespace</td>
|
||||
<td class="last">plupload.runtimes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Class</td>
|
||||
<td class="last">Silverlight</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Type</td>
|
||||
<td class="last">Singleton</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">Inheritance</td>
|
||||
<td class="last inheritageList">
|
||||
<span>Silverlight</span>
|
||||
<span class="last">
|
||||
<a href="class_plupload.Runtime.html">Runtime</a>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="classDescription">Silverlight implementation. This runtime supports these features: jpgresize, pngresize, chunks.
|
||||
</div>
|
||||
<div class="summaryLists">
|
||||
<h2>Public Methods</h2>
|
||||
<table class="Methods summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Method</th>
|
||||
<th>Defined By</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="first">
|
||||
<div>
|
||||
<a class="memberName" href="class_plupload.runtimes.Silverlight.html#init">init</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</div>
|
||||
<div class="summary">
|
||||
<span class="static">[static] </span>Initializes the upload runtime.</div>
|
||||
</td>
|
||||
<td class="last">Silverlight</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="detailsList">
|
||||
<div class="details">
|
||||
<h2>Method details</h2>
|
||||
<div class="memberDetails last" id="init">
|
||||
<h3>init<span class="memberType">method</span>
|
||||
</h3>
|
||||
<code class="syntax">public static
|
||||
function init(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</code>
|
||||
<div class="memberDescription">Initializes the upload runtime. This runtime supports these features: jpgresize, pngresize, chunks.
|
||||
</div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="params">
|
||||
<tr>
|
||||
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</td>
|
||||
<td class="last">Uploader instance that needs to be initialized.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first">callback:function</td>
|
||||
<td class="last">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,235 +0,0 @@
|
||||
body, html {
|
||||
overflow: hidden;
|
||||
background-color: #DFE8F6;
|
||||
}
|
||||
|
||||
#doc3 {
|
||||
margin: 0;
|
||||
|
||||
/* Fix for scrolling issue on Gecko */
|
||||
position: fixed; width: 100%; top: 0; left: 0;
|
||||
}
|
||||
|
||||
#bd, #bd, #yui-main, #detailsView, #classView {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#hd {
|
||||
background: #1E4176;
|
||||
border-bottom: 1px solid #99BBE8;
|
||||
}
|
||||
|
||||
#hd h1 {
|
||||
font-family:Verdana,Arial,Helvetica,sans-serif;
|
||||
font-size: 16px;
|
||||
padding: 4px 0 4px 8px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#yui-main #detailsView {
|
||||
overflow: auto;
|
||||
margin: 4px;
|
||||
margin-left: 260px;
|
||||
border: 1px solid #99BBE8;
|
||||
background: #FFF;
|
||||
}
|
||||
|
||||
#bd #classView {
|
||||
overflow: auto;
|
||||
width: 250px;
|
||||
margin: 4px;
|
||||
border: 1px solid #99BBE8;
|
||||
background: #FFF;
|
||||
}
|
||||
|
||||
.classDetailsContent, .memberDetailsContent {
|
||||
margin: 10px;
|
||||
line-height: 150%;
|
||||
}
|
||||
|
||||
body, td, th {
|
||||
font-family: "Trebuchet MS", "Bitstream Vera Sans", Tahoma,Verdana,Arial,Helvetica,sans-serif;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: "Trebuchet MS", "Bitstream Vera Sans", verdana, lucida, arial, helvetica, sans-serif;
|
||||
font-weight: bold;
|
||||
letter-spacing: 1px;
|
||||
margin-bottom: 3px;
|
||||
margin-top: 3px;
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
a, a:visited, a:active, a:link {
|
||||
color: #0000CC;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
table.summary {
|
||||
border: 1px solid #999999;
|
||||
margin-bottom: 20px;
|
||||
margin-right: 10px;
|
||||
margin-top: 10px;
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table.summary th {
|
||||
font-weight: bold;
|
||||
text-align: left;
|
||||
vertical-align: bottom;
|
||||
background-color: #627C9D;
|
||||
color: #FFFFFF;
|
||||
white-space: nowrap;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
table.summary td {
|
||||
border: 1px solid #999999;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
table.summary a.memberName {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table.summary tr.even {
|
||||
background: #f2f2f2;
|
||||
}
|
||||
|
||||
table.summary td.first div {
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
table.summary td.first {
|
||||
width: 95%;
|
||||
}
|
||||
|
||||
table.summary td.last {
|
||||
width: 5%;
|
||||
}
|
||||
|
||||
table.summary .deprecated {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.params, .returns, .see {
|
||||
margin-left: 20px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.params td.last {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.classDescription, .memberDescription, .deprecated {
|
||||
margin: 10px 0 10px 0;
|
||||
}
|
||||
|
||||
.inherited td.first {
|
||||
background: url(../img/inherited.gif) no-repeat 10px 5px;
|
||||
}
|
||||
|
||||
.inheritageList span {
|
||||
padding-right: 20px;
|
||||
margin-right: 5px;
|
||||
background: url(../img/inherit-arrow.gif) no-repeat center right;
|
||||
}
|
||||
|
||||
.inheritageList span.last {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.classDetails .first {
|
||||
font-weight: bold;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.memberDetails {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
pre {
|
||||
background-color: #F2F2F2;
|
||||
font-family: "Lucida Console","Courier New",Courier,monospace;
|
||||
font-size: 12px;
|
||||
margin-bottom: 10px;
|
||||
margin-top: 10px;
|
||||
overflow: auto;
|
||||
padding: 5px 5px 5px 5px;
|
||||
}
|
||||
|
||||
.memberType {
|
||||
padding-left: 10px;
|
||||
font-size: 13px;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.selected {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.memberDetails {
|
||||
border-bottom: 1px solid gray;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.details {
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.details .last {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.details h2 {
|
||||
width: 100%;
|
||||
background-color: #627C9D;
|
||||
color: #FFF;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.memberDetails {
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
code.syntax {
|
||||
background-color: #F2F2F2;
|
||||
}
|
||||
|
||||
.deprecated {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.static {
|
||||
color: gray;
|
||||
}
|
||||
|
||||
.version span, .author span {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#yui-main #detailsView.loading {
|
||||
background: #FFF url('../img/loader.gif') no-repeat center center;
|
||||
}
|
||||
@ -1,467 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.7.0
|
||||
*/
|
||||
/**
|
||||
* YUI Grids
|
||||
* @module grids
|
||||
* @namespace yui-
|
||||
* @requires reset, fonts
|
||||
*/
|
||||
|
||||
/**
|
||||
* Note: Throughout this file, the *property (star-property) filter is used
|
||||
* to give a value to IE that other browsers do not see. _property is only seen
|
||||
* by IE7, so the combo of *prop and _prop can target between IE6 and IE7.
|
||||
*
|
||||
* More information on these filters and related validation errors:
|
||||
* http://tech.groups.yahoo.com/group/ydn-javascript/message/40059
|
||||
*/
|
||||
|
||||
/**
|
||||
* Section: General Rules
|
||||
*/
|
||||
|
||||
body {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/**
|
||||
* Section: Page Width Rules (#doc, #doc2, #doc3, #doc4)
|
||||
*/
|
||||
|
||||
#doc,#doc2,#doc3,#doc4,
|
||||
.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7 {
|
||||
margin: auto;
|
||||
text-align: left;
|
||||
width: 57.69em;
|
||||
*width: 56.25em;
|
||||
}
|
||||
|
||||
/* 950 Centered (doc2) */
|
||||
#doc2 {
|
||||
width: 73.076em;
|
||||
*width: 71.25em;
|
||||
}
|
||||
|
||||
/* 100% (doc3) */
|
||||
#doc3 {
|
||||
/**
|
||||
* Left and Right margins are not a structural part of Grids. Without them
|
||||
* Grids works fine, but content bleeds to the very edge of the document, which
|
||||
* often impairs readability and usability. They are provided because they
|
||||
* prevent the content from "bleeding" into the browser's chrome.
|
||||
*/
|
||||
margin: auto 10px;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
/* 974 Centered (doc4) */
|
||||
#doc4 {
|
||||
width: 74.923em;
|
||||
*width: 73.05em;
|
||||
}
|
||||
|
||||
/**
|
||||
* Section: Preset Template Rules (.yui-t[1-6])
|
||||
*/
|
||||
|
||||
|
||||
.yui-b {
|
||||
/* to preserve source-order independence for Gecko */
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.yui-b {
|
||||
/* to preserve source-order independence for IE */
|
||||
_position: static;
|
||||
}
|
||||
|
||||
#yui-main .yui-b {
|
||||
/* to preserve source-order independence for Gecko */
|
||||
position: static;
|
||||
}
|
||||
|
||||
#yui-main,
|
||||
.yui-g .yui-u .yui-g {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.yui-t1 #yui-main,
|
||||
.yui-t2 #yui-main,
|
||||
.yui-t3 #yui-main {
|
||||
float: right;
|
||||
/* IE: preserve layout at narrow widths */
|
||||
margin-left: -25em;
|
||||
}
|
||||
|
||||
.yui-t4 #yui-main,
|
||||
.yui-t5 #yui-main,
|
||||
.yui-t6 #yui-main {
|
||||
float: left;
|
||||
/* IE: preserve layout at narrow widths */
|
||||
margin-right: -25em;
|
||||
}
|
||||
|
||||
/**
|
||||
* For Specific Template Presets
|
||||
*/
|
||||
|
||||
.yui-t1 .yui-b {
|
||||
float: left;
|
||||
width: 12.30769em;
|
||||
*width: 12.00em;
|
||||
}
|
||||
|
||||
.yui-t1 #yui-main .yui-b {
|
||||
margin-left: 13.30769em;
|
||||
*margin-left: 13.05em;
|
||||
}
|
||||
|
||||
.yui-t2 .yui-b {
|
||||
float: left;
|
||||
width: 13.8461em;
|
||||
*width: 13.50em;
|
||||
}
|
||||
|
||||
.yui-t2 #yui-main .yui-b {
|
||||
margin-left: 14.8461em;
|
||||
*margin-left: 14.55em;
|
||||
}
|
||||
|
||||
.yui-t3 .yui-b {
|
||||
float: left;
|
||||
width: 23.0769em;
|
||||
*width: 22.50em;
|
||||
}
|
||||
|
||||
.yui-t3 #yui-main .yui-b {
|
||||
margin-left: 24.0769em;
|
||||
*margin-left: 23.62em;
|
||||
}
|
||||
|
||||
.yui-t4 .yui-b {
|
||||
float: right;
|
||||
width: 13.8456em;
|
||||
*width: 13.50em;
|
||||
}
|
||||
|
||||
.yui-t4 #yui-main .yui-b {
|
||||
margin-right: 14.8456em;
|
||||
*margin-right: 14.55em;
|
||||
}
|
||||
|
||||
.yui-t5 .yui-b {
|
||||
float: right;
|
||||
width: 18.4615em;
|
||||
*width: 18.00em;
|
||||
}
|
||||
|
||||
.yui-t5 #yui-main .yui-b {
|
||||
margin-right: 19.4615em;
|
||||
*margin-right: 19.125em;
|
||||
}
|
||||
|
||||
.yui-t6 .yui-b {
|
||||
float: right;
|
||||
width: 23.0769em;
|
||||
*width: 22.50em;
|
||||
}
|
||||
|
||||
.yui-t6 #yui-main .yui-b {
|
||||
margin-right: 24.0769em;
|
||||
*margin-right: 23.62em;
|
||||
}
|
||||
|
||||
.yui-t7 #yui-main .yui-b {
|
||||
display: block;
|
||||
margin: 0 0 1em 0;
|
||||
}
|
||||
|
||||
#yui-main .yui-b {
|
||||
float: none;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Section: Grids and Nesting Grids
|
||||
*/
|
||||
|
||||
/* Children generally take half the available space */
|
||||
.yui-gb .yui-u,
|
||||
.yui-g .yui-gb .yui-u,
|
||||
.yui-gb .yui-g,
|
||||
.yui-gb .yui-gb,
|
||||
.yui-gb .yui-gc,
|
||||
.yui-gb .yui-gd,
|
||||
.yui-gb .yui-ge,
|
||||
.yui-gb .yui-gf,
|
||||
.yui-gc .yui-u,
|
||||
.yui-gc .yui-g,
|
||||
.yui-gd .yui-u {
|
||||
float: left;
|
||||
}
|
||||
|
||||
/* Float units (and sub grids) to the right */
|
||||
.yui-g .yui-u,
|
||||
.yui-g .yui-g,
|
||||
.yui-g .yui-gb,
|
||||
.yui-g .yui-gc,
|
||||
.yui-g .yui-gd,
|
||||
.yui-g .yui-ge,
|
||||
.yui-g .yui-gf,
|
||||
.yui-gc .yui-u,
|
||||
.yui-gd .yui-g,
|
||||
.yui-g .yui-gc .yui-u,
|
||||
.yui-ge .yui-u,
|
||||
.yui-ge .yui-g,
|
||||
.yui-gf .yui-g,
|
||||
.yui-gf .yui-u {
|
||||
float: right;
|
||||
}
|
||||
|
||||
/*Float units (and sub grids) to the left */
|
||||
.yui-g div.first,
|
||||
.yui-gb div.first,
|
||||
.yui-gc div.first,
|
||||
.yui-gd div.first,
|
||||
.yui-ge div.first,
|
||||
.yui-gf div.first,
|
||||
.yui-g .yui-gc div.first,
|
||||
.yui-g .yui-ge div.first,
|
||||
.yui-gc div.first div.first {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.yui-g .yui-u,
|
||||
.yui-g .yui-g,
|
||||
.yui-g .yui-gb,
|
||||
.yui-g .yui-gc,
|
||||
.yui-g .yui-gd,
|
||||
.yui-g .yui-ge,
|
||||
.yui-g .yui-gf {
|
||||
width: 49.1%;
|
||||
}
|
||||
|
||||
.yui-gb .yui-u,
|
||||
.yui-g .yui-gb .yui-u,
|
||||
.yui-gb .yui-g,
|
||||
.yui-gb .yui-gb,
|
||||
.yui-gb .yui-gc,
|
||||
.yui-gb .yui-gd,
|
||||
.yui-gb .yui-ge,
|
||||
.yui-gb .yui-gf,
|
||||
.yui-gc .yui-u,
|
||||
.yui-gc .yui-g,
|
||||
.yui-gd .yui-u {
|
||||
width: 32%;
|
||||
margin-left: 1.99%;
|
||||
}
|
||||
|
||||
/* Give IE some extra breathing room for 1/3-based rounding issues */
|
||||
.yui-gb .yui-u {
|
||||
*margin-left: 1.9%;
|
||||
*width: 31.9%;
|
||||
}
|
||||
|
||||
.yui-gc div.first,
|
||||
.yui-gd .yui-u {
|
||||
width: 66%;
|
||||
}
|
||||
|
||||
.yui-gd div.first {
|
||||
width: 32%;
|
||||
}
|
||||
|
||||
.yui-ge div.first,
|
||||
.yui-gf .yui-u {
|
||||
width: 74.2%;
|
||||
}
|
||||
|
||||
.yui-ge .yui-u,
|
||||
.yui-gf div.first {
|
||||
width: 24%;
|
||||
}
|
||||
|
||||
.yui-g .yui-gb div.first,
|
||||
.yui-gb div.first,
|
||||
.yui-gc div.first,
|
||||
.yui-gd div.first {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Section: Deep Nesting
|
||||
*/
|
||||
|
||||
.yui-g .yui-g .yui-u,
|
||||
.yui-gb .yui-g .yui-u,
|
||||
.yui-gc .yui-g .yui-u,
|
||||
.yui-gd .yui-g .yui-u,
|
||||
.yui-ge .yui-g .yui-u,
|
||||
.yui-gf .yui-g .yui-u {
|
||||
width: 49%;
|
||||
*width: 48.1%;
|
||||
*margin-left: 0;
|
||||
}
|
||||
|
||||
.yui-g .yui-g .yui-u {
|
||||
width: 48.1%;
|
||||
}
|
||||
|
||||
/*SF 1927599 from 1.14 to 2.6.0*/
|
||||
.yui-g .yui-gb div.first,
|
||||
.yui-gb .yui-gb div.first {
|
||||
*margin-right: 0;
|
||||
*width: 32%;
|
||||
_width: 31.7%;
|
||||
}
|
||||
|
||||
.yui-g .yui-gc div.first,
|
||||
.yui-gd .yui-g {
|
||||
width: 66%;
|
||||
}
|
||||
|
||||
.yui-gb .yui-g div.first {
|
||||
*margin-right: 4%;
|
||||
_margin-right: 1.3%;
|
||||
}
|
||||
|
||||
.yui-gb .yui-gc div.first,
|
||||
.yui-gb .yui-gd div.first {
|
||||
*margin-right: 0;
|
||||
}
|
||||
|
||||
.yui-gb .yui-gb .yui-u,
|
||||
.yui-gb .yui-gc .yui-u {
|
||||
*margin-left: 1.8%;
|
||||
_margin-left: 4%;
|
||||
}
|
||||
|
||||
.yui-g .yui-gb .yui-u {
|
||||
_margin-left: 1.0%;
|
||||
}
|
||||
|
||||
.yui-gb .yui-gd .yui-u {
|
||||
*width: 66%;
|
||||
_width: 61.2%;
|
||||
}
|
||||
|
||||
.yui-gb .yui-gd div.first {
|
||||
*width: 31%;
|
||||
_width: 29.5%;
|
||||
}
|
||||
|
||||
.yui-g .yui-gc .yui-u,
|
||||
.yui-gb .yui-gc .yui-u {
|
||||
width: 32%;
|
||||
_float: right;
|
||||
margin-right: 0;
|
||||
_margin-left: 0;
|
||||
}
|
||||
|
||||
.yui-gb .yui-gc div.first {
|
||||
width: 66%;
|
||||
*float: left;
|
||||
*margin-left: 0;
|
||||
}
|
||||
|
||||
.yui-gb .yui-ge .yui-u,
|
||||
.yui-gb .yui-gf .yui-u {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.yui-gb .yui-gb .yui-u {
|
||||
_margin-left: .7%;
|
||||
}
|
||||
|
||||
.yui-gb .yui-g div.first,
|
||||
.yui-gb .yui-gb div.first {
|
||||
*margin-left: 0;
|
||||
}
|
||||
|
||||
.yui-gc .yui-g .yui-u,
|
||||
.yui-gd .yui-g .yui-u {
|
||||
*width: 48.1%;
|
||||
*margin-left: 0;
|
||||
}
|
||||
|
||||
.yui-gb .yui-gd div.first {
|
||||
width: 32%;
|
||||
}
|
||||
|
||||
.yui-g .yui-gd div.first {
|
||||
_width: 29.9%;
|
||||
}
|
||||
|
||||
.yui-ge .yui-g {
|
||||
width: 24%;
|
||||
}
|
||||
|
||||
.yui-gf .yui-g {
|
||||
width: 74.2%;
|
||||
}
|
||||
|
||||
.yui-gb .yui-ge div.yui-u,
|
||||
.yui-gb .yui-gf div.yui-u {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.yui-gb .yui-ge div.first,
|
||||
.yui-gb .yui-gf div.first {
|
||||
float: left;
|
||||
}
|
||||
|
||||
/* Width Accommodation for Nested Contexts */
|
||||
.yui-gb .yui-ge .yui-u,
|
||||
.yui-gb .yui-gf div.first {
|
||||
*width: 24%;
|
||||
_width: 20%;
|
||||
}
|
||||
|
||||
/* Width Accommodation for Nested Contexts */
|
||||
.yui-gb .yui-ge div.first,
|
||||
.yui-gb .yui-gf .yui-u {
|
||||
*width: 73.5%;
|
||||
_width: 65.5%;
|
||||
}
|
||||
|
||||
/* Patch for GD within GE */
|
||||
.yui-ge div.first .yui-gd .yui-u {
|
||||
width: 65%;
|
||||
}
|
||||
|
||||
.yui-ge div.first .yui-gd div.first {
|
||||
width: 32%;
|
||||
}
|
||||
|
||||
/* @group Clearing */
|
||||
#hd:after,
|
||||
#bd:after,
|
||||
#ft:after,
|
||||
.yui-g:after,
|
||||
.yui-gb:after,
|
||||
.yui-gc:after,
|
||||
.yui-gd:after,
|
||||
.yui-ge:after,
|
||||
.yui-gf:after {
|
||||
content: ".";
|
||||
display: block;
|
||||
height: 0;
|
||||
clear: both;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
#hd,
|
||||
#bd,
|
||||
#ft,
|
||||
.yui-g,
|
||||
.yui-gb,
|
||||
.yui-gc,
|
||||
.yui-gd,
|
||||
.yui-ge,
|
||||
.yui-gf {
|
||||
zoom: 1;
|
||||
}
|
||||
@ -1,75 +0,0 @@
|
||||
.treeview, .treeview ul {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.treeview ul {
|
||||
background-color: white;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.treeview .hitarea {
|
||||
background: transparent -64px -25px no-repeat;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
margin-left: -16px;
|
||||
float: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
/* fix for IE6 */
|
||||
* html .hitarea {
|
||||
display: inline;
|
||||
float: none;
|
||||
|
||||
}
|
||||
|
||||
.treeview li {
|
||||
margin: 0;
|
||||
padding: 3px 0pt 3px 16px;
|
||||
}
|
||||
|
||||
.treeview a.selected {
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
#treecontrol { margin: 1em 0; display: none; }
|
||||
|
||||
.treeview li { background: transparent 0 0 no-repeat; }
|
||||
.treeview li.collapsable, .treeview li.expandable { background-position: 0 -176px; }
|
||||
|
||||
.treeview .expandable-hitarea { background-position: -80px -3px; }
|
||||
|
||||
.treeview li.last { background-position: 0 -1766px }
|
||||
|
||||
.treeview li.lastCollapsable { background-position: 0 -111px }
|
||||
|
||||
.treeview li.lastExpandable { background-position: -32px -67px }
|
||||
|
||||
.treeview div.lastCollapsable-hitarea, .treeview div.lastExpandable-hitarea { background-position: 0; }
|
||||
|
||||
.treeview-famfamfam .hitarea, .treeview-famfamfam li.lastCollapsable, .treeview-famfamfam li.lastExpandable { background-image: url(../img/treeview-famfamfam.gif); }
|
||||
|
||||
.classtree li {
|
||||
font-family: arial,tahoma,helvetica,sans-serif;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.classtree li { padding: 3px 0 2px 16px; }
|
||||
|
||||
.classtree span {
|
||||
padding: 1px 0 1px 18px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.classtree span.root { background: url(../img/root.gif) 0 3px no-repeat;}
|
||||
.classtree span.namespace { background: url(../img/namespace.gif) 0 0 no-repeat;}
|
||||
.classtree span.class { background: url(../img/class.gif) 0 0 no-repeat; }
|
||||
.classtree span.property { background: url(../img/property.gif) 0 0 no-repeat; }
|
||||
.classtree span.method { background: url(../img/method.gif) 0 0 no-repeat; }
|
||||
.classtree span.event { background: url(../img/event.gif) 0 0 no-repeat; }
|
||||
.classtree span.singleton { background: url(../img/static.gif) 0 0 no-repeat; }
|
||||
@ -1,142 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.7.0
|
||||
*/
|
||||
/**
|
||||
* YUI Reset
|
||||
* @module reset
|
||||
* @namespace
|
||||
* @requires
|
||||
*/
|
||||
html {
|
||||
color: #000;
|
||||
background: #FFF;
|
||||
}
|
||||
|
||||
body,
|
||||
div,
|
||||
dl,
|
||||
dt,
|
||||
dd,
|
||||
ul,
|
||||
ol,
|
||||
li,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
pre,
|
||||
code,
|
||||
form,
|
||||
fieldset,
|
||||
legend,
|
||||
input,
|
||||
button,
|
||||
textarea,
|
||||
p,
|
||||
blockquote,
|
||||
th,
|
||||
td {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
fieldset,
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
address,
|
||||
caption,
|
||||
cite,
|
||||
code,
|
||||
dfn,
|
||||
em,
|
||||
strong,
|
||||
th,
|
||||
var,
|
||||
optgroup {
|
||||
font-style: inherit;
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
del,
|
||||
ins {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
li {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
caption,
|
||||
th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-size: 100%;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
q:before,
|
||||
q:after {
|
||||
content: '';
|
||||
}
|
||||
|
||||
abbr,
|
||||
acronym {
|
||||
border: 0;
|
||||
font-variant: normal;
|
||||
}
|
||||
|
||||
sup {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sub {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
/*because legend doesn't inherit in IE */
|
||||
legend {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
input,
|
||||
button,
|
||||
textarea,
|
||||
select,
|
||||
optgroup,
|
||||
option {
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
font-style: inherit;
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
/*@purpose To enable resizing for IE */
|
||||
/*@branch For IE6-Win, IE7-Win */
|
||||
input,
|
||||
button,
|
||||
textarea,
|
||||
select {
|
||||
*font-size: 100%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1,342 +0,0 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
||||
*
|
||||
* @version
|
||||
* 2.0.320 (May 03 2009)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* This file is part of SyntaxHighlighter.
|
||||
*
|
||||
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* SyntaxHighlighter 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 SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
||||
*/
|
||||
.syntaxhighlighter,
|
||||
.syntaxhighlighter div,
|
||||
.syntaxhighlighter code,
|
||||
.syntaxhighlighter span
|
||||
{
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
outline: 0 !important;
|
||||
background: none !important;
|
||||
text-align: left !important;
|
||||
float: none !important;
|
||||
vertical-align: baseline !important;
|
||||
position: static !important;
|
||||
left: auto !important;
|
||||
top: auto !important;
|
||||
right: auto !important;
|
||||
bottom: auto !important;
|
||||
height: auto !important;
|
||||
width: auto !important;
|
||||
line-height: 1.1em !important;
|
||||
font-family: "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
|
||||
font-weight: normal !important;
|
||||
font-style: normal !important;
|
||||
font-size: 1em !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter
|
||||
{
|
||||
width: 100% !important;
|
||||
margin: 1em 0 1em 0 !important;
|
||||
padding: 1px !important; /* adds a little border on top and bottom */
|
||||
position: relative !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter code {
|
||||
display: inline !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .bold {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .italic {
|
||||
font-style: italic !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .line .number
|
||||
{
|
||||
float: left !important;
|
||||
width: 3em !important;
|
||||
padding-right: .3em !important;
|
||||
text-align: right !important;
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
/* Disable numbers when no gutter option is set */
|
||||
.syntaxhighlighter.nogutter .line .number
|
||||
{
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .line .content
|
||||
{
|
||||
margin-left: 3.3em !important;
|
||||
padding-left: .5em !important;
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .line .content .block
|
||||
{
|
||||
display: block !important;
|
||||
padding-left: 1.5em !important;
|
||||
text-indent: -1.5em !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .line .content .spaces
|
||||
{
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Disable border and margin on the lines when no gutter option is set */
|
||||
.syntaxhighlighter.nogutter .line .content
|
||||
{
|
||||
margin-left: 0 !important;
|
||||
border-left: none !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .bar
|
||||
{
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .bar.show
|
||||
{
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.collapsed .bar
|
||||
{
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.nogutter .ruler
|
||||
{
|
||||
margin-left: 0 !important;
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .ruler
|
||||
{
|
||||
padding: 0 0 .5em .5em !important;
|
||||
margin-left: 3.3em !important;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
||||
/* Adjust some properties when collapsed */
|
||||
|
||||
.syntaxhighlighter.collapsed .lines,
|
||||
.syntaxhighlighter.collapsed .ruler
|
||||
{
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .lines.no-wrap
|
||||
{
|
||||
overflow: auto;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
/* Styles for the toolbar */
|
||||
|
||||
.syntaxhighlighter .toolbar
|
||||
{
|
||||
position: absolute !important;
|
||||
right: 0px !important;
|
||||
top: 0px !important;
|
||||
font-size: 1px !important;
|
||||
padding: 8px 8px 8px 0 !important; /* in px because images don't scale with ems */
|
||||
}
|
||||
|
||||
.syntaxhighlighter.collapsed .toolbar
|
||||
{
|
||||
font-size: 80% !important;
|
||||
padding: .2em 0 .5em .5em !important;
|
||||
position: static !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .toolbar a.item,
|
||||
.syntaxhighlighter .toolbar .item
|
||||
{
|
||||
display: block !important;
|
||||
float: left !important;
|
||||
margin-left: 8px !important;
|
||||
background-repeat: no-repeat !important;
|
||||
overflow: hidden !important;
|
||||
text-indent: -5000px !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.collapsed .toolbar .item
|
||||
{
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.collapsed .toolbar .item.expandSource
|
||||
{
|
||||
background-image: url(../img/magnifier.png) !important;
|
||||
display: inline !important;
|
||||
text-indent: 0 !important;
|
||||
width: auto !important;
|
||||
float: none !important;
|
||||
height: 16px !important;
|
||||
padding-left: 20px !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .toolbar .item.viewSource
|
||||
{
|
||||
background-image: url(../img/page_white_code.png) !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .toolbar .item.printSource
|
||||
{
|
||||
background-image: url(../img/printer.png) !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .toolbar .item.copyToClipboard
|
||||
{
|
||||
text-indent: 0 !important;
|
||||
background: none !important;
|
||||
overflow: visible !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .toolbar .item.about
|
||||
{
|
||||
background-image: url(../img/help.png) !important;
|
||||
}
|
||||
|
||||
/**
|
||||
* Print view.
|
||||
* Colors are based on the default theme without background.
|
||||
*/
|
||||
|
||||
.syntaxhighlighter.printing,
|
||||
.syntaxhighlighter.printing .line.alt1 .content,
|
||||
.syntaxhighlighter.printing .line.alt2 .content,
|
||||
.syntaxhighlighter.printing .line.highlighted .number,
|
||||
.syntaxhighlighter.printing .line.highlighted.alt1 .content,
|
||||
.syntaxhighlighter.printing .line.highlighted.alt2 .content,
|
||||
.syntaxhighlighter.printing .line .content .block
|
||||
{
|
||||
background: none !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .no-wrap .line .content .block
|
||||
{
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
|
||||
/* Gutter line numbers */
|
||||
.syntaxhighlighter.printing .line .number
|
||||
{
|
||||
color: #bbb !important;
|
||||
}
|
||||
|
||||
/* Add border to the lines */
|
||||
.syntaxhighlighter.printing .line .content
|
||||
{
|
||||
color: #000 !important;
|
||||
}
|
||||
|
||||
/* Toolbar when visible */
|
||||
.syntaxhighlighter.printing .toolbar,
|
||||
.syntaxhighlighter.printing .ruler
|
||||
{
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.printing a
|
||||
{
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.printing .plain,
|
||||
.syntaxhighlighter.printing .plain a
|
||||
{
|
||||
color: #000 !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.printing .comments,
|
||||
.syntaxhighlighter.printing .comments a
|
||||
{
|
||||
color: #008200 !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.printing .string,
|
||||
.syntaxhighlighter.printing .string a
|
||||
{
|
||||
color: blue !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.printing .keyword
|
||||
{
|
||||
color: #069 !important;
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.printing .preprocessor
|
||||
{
|
||||
color: gray !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.printing .variable
|
||||
{
|
||||
color: #a70 !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.printing .value
|
||||
{
|
||||
color: #090 !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.printing .functions
|
||||
{
|
||||
color: #ff1493 !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.printing .constants
|
||||
{
|
||||
color: #0066CC !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.printing .script
|
||||
{
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.printing .color1,
|
||||
.syntaxhighlighter.printing .color1 a
|
||||
{
|
||||
color: #808080 !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.printing .color2,
|
||||
.syntaxhighlighter.printing .color2 a
|
||||
{
|
||||
color: #ff1493 !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.printing .color3,
|
||||
.syntaxhighlighter.printing .color3 a
|
||||
{
|
||||
color: red !important;
|
||||
}
|
||||
@ -1,191 +0,0 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
||||
*
|
||||
* @version
|
||||
* 2.0.320 (May 03 2009)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* This file is part of SyntaxHighlighter.
|
||||
*
|
||||
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* SyntaxHighlighter 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 SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
||||
*/
|
||||
/************************************
|
||||
* Default Syntax Highlighter theme.
|
||||
*
|
||||
* Interface elements.
|
||||
************************************/
|
||||
|
||||
.syntaxhighlighter
|
||||
{
|
||||
background-color: #E7E5DC !important;
|
||||
}
|
||||
|
||||
/* Highlighed line number */
|
||||
.syntaxhighlighter .line.highlighted .number
|
||||
{
|
||||
background-color: #6CE26C !important;
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
/* Highlighed line */
|
||||
.syntaxhighlighter .line.highlighted.alt1 .content,
|
||||
.syntaxhighlighter .line.highlighted.alt2 .content
|
||||
{
|
||||
background-color: #6CE26C !important;
|
||||
}
|
||||
|
||||
/* Gutter line numbers */
|
||||
.syntaxhighlighter .line .number
|
||||
{
|
||||
color: #5C5C5C !important;
|
||||
}
|
||||
|
||||
/* Add border to the lines */
|
||||
.syntaxhighlighter .line .content
|
||||
{
|
||||
border-left: 3px solid #99BBE8 !important;
|
||||
color: #000 !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.printing .line .content
|
||||
{
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
/* First line */
|
||||
.syntaxhighlighter .line.alt1 .content
|
||||
{
|
||||
background-color: #fff !important;
|
||||
}
|
||||
|
||||
/* Second line */
|
||||
.syntaxhighlighter .line.alt2 .content
|
||||
{
|
||||
background-color: #F8F8F8 !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .line .content .block
|
||||
{
|
||||
background: url(../img/wrapping.png) 0 1.1em no-repeat !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .ruler
|
||||
{
|
||||
color: silver !important;
|
||||
background-color: #F8F8F8 !important;
|
||||
border-left: 3px solid #6CE26C !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter.nogutter .ruler
|
||||
{
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .toolbar
|
||||
{
|
||||
background-color: #F8F8F8 !important;
|
||||
border: #E7E5DC solid 1px !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .toolbar a
|
||||
{
|
||||
color: #a0a0a0 !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .toolbar a:hover
|
||||
{
|
||||
color: red !important;
|
||||
}
|
||||
|
||||
/************************************
|
||||
* Actual syntax highlighter colors.
|
||||
************************************/
|
||||
.syntaxhighlighter .plain,
|
||||
.syntaxhighlighter .plain a
|
||||
{
|
||||
color: #000 !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .comments,
|
||||
.syntaxhighlighter .comments a
|
||||
{
|
||||
color: #008200 !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .string,
|
||||
.syntaxhighlighter .string a
|
||||
{
|
||||
color: blue !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .keyword
|
||||
{
|
||||
color: #069 !important;
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .preprocessor
|
||||
{
|
||||
color: gray !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .variable
|
||||
{
|
||||
color: #a70 !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .value
|
||||
{
|
||||
color: #090 !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .functions
|
||||
{
|
||||
color: #ff1493 !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .constants
|
||||
{
|
||||
color: #0066CC !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .script
|
||||
{
|
||||
background-color: yellow !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .color1,
|
||||
.syntaxhighlighter .color1 a
|
||||
{
|
||||
color: #808080 !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .color2,
|
||||
.syntaxhighlighter .color2 a
|
||||
{
|
||||
color: #ff1493 !important;
|
||||
}
|
||||
|
||||
.syntaxhighlighter .color3,
|
||||
.syntaxhighlighter .color3 a
|
||||
{
|
||||
color: red !important;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 658 B |
|
Before Width: | Height: | Size: 179 B |
|
Before Width: | Height: | Size: 786 B |
|
Before Width: | Height: | Size: 66 B |
|
Before Width: | Height: | Size: 144 B |
|
Before Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 615 B |
|
Before Width: | Height: | Size: 191 B |
|
Before Width: | Height: | Size: 75 B |
|
Before Width: | Height: | Size: 603 B |
|
Before Width: | Height: | Size: 309 B |
|
Before Width: | Height: | Size: 731 B |
|
Before Width: | Height: | Size: 119 B |
|
Before Width: | Height: | Size: 580 B |
|
Before Width: | Height: | Size: 662 B |
|
Before Width: | Height: | Size: 671 B |
|
Before Width: | Height: | Size: 631 B |
@ -1,115 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Plupload API</title>
|
||||
<meta name="generator" content="MoxieDoc" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/reset.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/grids.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/general.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/jquery.treeview.css" />
|
||||
<link type="text/css" rel="stylesheet" href="css/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="css/shThemeMoxieDoc.css" />
|
||||
|
||||
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
|
||||
<script type="text/javascript">
|
||||
google.load("jquery", "1.3");
|
||||
</script>
|
||||
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
|
||||
<script type="text/javascript" src="js/general.js"></script>
|
||||
<script type="text/javascript" src="js/shCore.js"></script>
|
||||
<script type="text/javascript" src="js/shBrushJScript.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="doc3" class="yui-t1" style="height:500px">
|
||||
<div id="hd">
|
||||
<h1>Plupload API</h1>
|
||||
</div>
|
||||
<div id="bd">
|
||||
<div id="yui-main">
|
||||
<div id="detailsView" class="yui-b">
|
||||
<!--Gets filled using Ajax-->
|
||||
</div>
|
||||
</div>
|
||||
<div id="classView" class="yui-b">
|
||||
<ul id="browser" class="classtree treeview-famfamfam">
|
||||
<li>
|
||||
<span class="root">API Documentation</span>
|
||||
<ul>
|
||||
<li class="closed">
|
||||
<span class="namespace" title="Namespace">
|
||||
<a href="#">plupload</a>
|
||||
</span>
|
||||
<ul>
|
||||
<li class="closed">
|
||||
<span class="namespace" title="Namespace">
|
||||
<a href="#">runtimes</a>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<span class="singleton" title="Singleton class">
|
||||
<a href="class_plupload.runtimes.BrowserPlus.html">BrowserPlus</a>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="singleton" title="Singleton class">
|
||||
<a href="class_plupload.runtimes.Flash.html">Flash</a>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="singleton" title="Singleton class">
|
||||
<a href="class_plupload.runtimes.Gears.html">Gears</a>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="singleton" title="Singleton class">
|
||||
<a href="class_plupload.runtimes.Html4.html">Html4</a>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="singleton" title="Singleton class">
|
||||
<a href="class_plupload.runtimes.Html5.html">Html5</a>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="singleton" title="Singleton class">
|
||||
<a href="class_plupload.runtimes.Silverlight.html">Silverlight</a>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<span class="class" title="Class">
|
||||
<a href="class_plupload.Uploader.html">Uploader</a>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="class" title="Class">
|
||||
<a href="class_plupload.File.html">File</a>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="singleton" title="Singleton class">
|
||||
<a href="class_plupload.Runtime.html">Runtime</a>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="class" title="Class">
|
||||
<a href="class_plupload.QueueProgress.html">QueueProgress</a>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<span class="singleton" title="Singleton class">
|
||||
<a href="class_plupload.html">plupload</a>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,96 +0,0 @@
|
||||
(function($){
|
||||
var currentPage, currentHash;
|
||||
|
||||
function resizeUI() {
|
||||
$('#doc3').css('height', (window.innerHeight || document.documentElement.clientHeight) - $('#hd').height() - 12);
|
||||
}
|
||||
|
||||
function scrollToHash(hash) {
|
||||
if (hash) {
|
||||
$(hash).each(function() {
|
||||
$(this)[0].scrollIntoView();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function loadURL(url) {
|
||||
var parts, hash;
|
||||
|
||||
// Trim away everything but the file name
|
||||
url = /([^\/]+)$/.exec(url)[0];
|
||||
|
||||
// Parse out parts
|
||||
parts = /^([^#]+)(#.+)?$/.exec(url);
|
||||
hash = parts[2];
|
||||
|
||||
// In page link, no need to load anything
|
||||
if (parts[1] == currentPage) {
|
||||
if (hash)
|
||||
scrollToHash(hash);
|
||||
else
|
||||
$('#detailsView')[0].scrollTop = 0;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
currentPage = parts[1];
|
||||
|
||||
$("#classView a.selected").removeClass('selected');
|
||||
$("#classView a[href='" + currentPage.replace(/^.*\/([^\/]+)$/, '$1') + "']").addClass('selected').focus().parents("li.expandable").each(function() {
|
||||
var li = $(this).removeClass("expandable").addClass("collapsable");
|
||||
|
||||
li.find("> div.expandable-hitarea").removeClass("expandable-hitarea").addClass("collapsable-hitarea");
|
||||
li.find("> ul").show();
|
||||
});
|
||||
|
||||
$('#detailsView').find("div.page").hide();
|
||||
|
||||
// Check if the page has been loaded before
|
||||
if ($("#detailsView div[url='" + currentPage + "']").show().length == 0) {
|
||||
$('#detailsView').addClass("loading");
|
||||
|
||||
// Load page and cache it in a div
|
||||
$.get(currentPage, "", function(data) {
|
||||
data = /<body[^>]*>([\s\S]+)<\/body>/.exec(data);
|
||||
|
||||
if (data) {
|
||||
$('#detailsView').removeClass("loading").append('<div url="' + currentPage + '" class="page">' + data[1] + '</div>')[0].scrollTop = 0;
|
||||
|
||||
SyntaxHighlighter.config.clipboardSwf = 'js/clipboard.swf';
|
||||
SyntaxHighlighter.highlight({gutter : false});
|
||||
|
||||
scrollToHash(hash);
|
||||
}
|
||||
});
|
||||
} else
|
||||
scrollToHash(hash);
|
||||
}
|
||||
|
||||
$().ready(function(){
|
||||
$("#browser").treeview();
|
||||
$(window).resize(resizeUI).trigger('resize');
|
||||
|
||||
window.setInterval(function() {
|
||||
var hash = document.location.hash;
|
||||
|
||||
if (hash != currentHash && hash) {
|
||||
loadURL(hash.replace(/\-/g, '#').substring(1));
|
||||
currentHash = hash;
|
||||
}
|
||||
}, 100);
|
||||
|
||||
$("a").live("click", function(e) {
|
||||
var url = e.target.href;
|
||||
|
||||
if (e.button == 0) {
|
||||
if (url.indexOf('class_') != -1 || url.indexOf('alias_') != -1 || url.indexOf('member_') != -1) {
|
||||
document.location.hash = e.target.href.replace(/^.*\/([^\/]+)/, '$1').replace(/#/g, '-');
|
||||
|
||||
loadURL(url);
|
||||
}
|
||||
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
@ -1,15 +0,0 @@
|
||||
/*
|
||||
* Treeview 1.4 - jQuery plugin to hide and show branches of a tree
|
||||
*
|
||||
* http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
|
||||
* http://docs.jquery.com/Plugins/Treeview
|
||||
*
|
||||
* Copyright (c) 2007 Jörn Zaefferer
|
||||
*
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*
|
||||
* Revision: $Id: jquery.treeview.js 4684 2008-02-07 19:08:06Z joern.zaefferer $
|
||||
*
|
||||
*/;(function($){$.extend($.fn,{swapClass:function(c1,c2){var c1Elements=this.filter('.'+c1);this.filter('.'+c2).removeClass(c2).addClass(c1);c1Elements.removeClass(c1).addClass(c2);return this;},replaceClass:function(c1,c2){return this.filter('.'+c1).removeClass(c1).addClass(c2).end();},hoverClass:function(className){className=className||"hover";return this.hover(function(){$(this).addClass(className);},function(){$(this).removeClass(className);});},heightToggle:function(animated,callback){animated?this.animate({height:"toggle"},animated,callback):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();if(callback)callback.apply(this,arguments);});},heightHide:function(animated,callback){if(animated){this.animate({height:"hide"},animated,callback);}else{this.hide();if(callback)this.each(callback);}},prepareBranches:function(settings){if(!settings.prerendered){this.filter(":last-child:not(ul)").addClass(CLASSES.last);this.filter((settings.collapsed?"":"."+CLASSES.closed)+":not(."+CLASSES.open+")").find(">ul").hide();}return this.filter(":has(>ul)");},applyClasses:function(settings,toggler){this.filter(":has(>ul):not(:has(>a))").find(">span").click(function(event){toggler.apply($(this).next());}).add($("a",this)).hoverClass();if(!settings.prerendered){this.filter(":has(>ul:hidden)").addClass(CLASSES.expandable).replaceClass(CLASSES.last,CLASSES.lastExpandable);this.not(":has(>ul:hidden)").addClass(CLASSES.collapsable).replaceClass(CLASSES.last,CLASSES.lastCollapsable);this.prepend("<div class=\""+CLASSES.hitarea+"\"/>").find("div."+CLASSES.hitarea).each(function(){var classes="";$.each($(this).parent().attr("class").split(" "),function(){classes+=this+"-hitarea ";});$(this).addClass(classes);});}this.find("div."+CLASSES.hitarea).click(toggler);},treeview:function(settings){settings=$.extend({cookieId:"treeview"},settings);if(settings.add){return this.trigger("add",[settings.add]);}if(settings.toggle){var callback=settings.toggle;settings.toggle=function(){return callback.apply($(this).parent()[0],arguments);};}function treeController(tree,control){function handler(filter){return function(){toggler.apply($("div."+CLASSES.hitarea,tree).filter(function(){return filter?$(this).parent("."+filter).length:true;}));return false;};}$("a:eq(0)",control).click(handler(CLASSES.collapsable));$("a:eq(1)",control).click(handler(CLASSES.expandable));$("a:eq(2)",control).click(handler());}function toggler(){$(this).parent().find(">.hitarea").swapClass(CLASSES.collapsableHitarea,CLASSES.expandableHitarea).swapClass(CLASSES.lastCollapsableHitarea,CLASSES.lastExpandableHitarea).end().swapClass(CLASSES.collapsable,CLASSES.expandable).swapClass(CLASSES.lastCollapsable,CLASSES.lastExpandable).find(">ul").heightToggle(settings.animated,settings.toggle);if(settings.unique){$(this).parent().siblings().find(">.hitarea").replaceClass(CLASSES.collapsableHitarea,CLASSES.expandableHitarea).replaceClass(CLASSES.lastCollapsableHitarea,CLASSES.lastExpandableHitarea).end().replaceClass(CLASSES.collapsable,CLASSES.expandable).replaceClass(CLASSES.lastCollapsable,CLASSES.lastExpandable).find(">ul").heightHide(settings.animated,settings.toggle);}}function serialize(){function binary(arg){return arg?1:0;}var data=[];branches.each(function(i,e){data[i]=$(e).is(":has(>ul:visible)")?1:0;});$.cookie(settings.cookieId,data.join(""));}function deserialize(){var stored=$.cookie(settings.cookieId);if(stored){var data=stored.split("");branches.each(function(i,e){$(e).find(">ul")[parseInt(data[i])?"show":"hide"]();});}}this.addClass("treeview");var branches=this.find("li").prepareBranches(settings);switch(settings.persist){case"cookie":var toggleCallback=settings.toggle;settings.toggle=function(){serialize();if(toggleCallback){toggleCallback.apply(this,arguments);}};deserialize();break;case"location":var current=this.find("a").filter(function(){return this.href.toLowerCase()==location.href.toLowerCase();});if(current.length){current.addClass("selected").parents("ul, li").add(current.next()).show();}break;}branches.applyClasses(settings,toggler);if(settings.control){treeController(this,settings.control);$(settings.control).show();}return this.bind("add",function(event,branches){$(branches).prev().removeClass(CLASSES.last).removeClass(CLASSES.lastCollapsable).removeClass(CLASSES.lastExpandable).find(">.hitarea").removeClass(CLASSES.lastCollapsableHitarea).removeClass(CLASSES.lastExpandableHitarea);$(branches).find("li").andSelf().prepareBranches(settings).applyClasses(settings,toggler);});}});var CLASSES=$.fn.treeview.classes={open:"open",closed:"closed",expandable:"expandable",expandableHitarea:"expandable-hitarea",lastExpandableHitarea:"lastExpandable-hitarea",collapsable:"collapsable",collapsableHitarea:"collapsable-hitarea",lastCollapsableHitarea:"lastCollapsable-hitarea",lastCollapsable:"lastCollapsable",lastExpandable:"lastExpandable",last:"last",hitarea:"hitarea"};$.fn.Treeview=$.fn.treeview;})(jQuery);
|
||||
@ -1,52 +0,0 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
||||
*
|
||||
* @version
|
||||
* 2.0.320 (May 03 2009)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* This file is part of SyntaxHighlighter.
|
||||
*
|
||||
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* SyntaxHighlighter 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 SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
||||
*/
|
||||
SyntaxHighlighter.brushes.JScript = function()
|
||||
{
|
||||
var keywords = 'break case catch continue ' +
|
||||
'default delete do else false ' +
|
||||
'for function if in instanceof ' +
|
||||
'new null return super switch ' +
|
||||
'this throw true try typeof var while with'
|
||||
;
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
||||
{ regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
|
||||
];
|
||||
|
||||
this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
|
||||
};
|
||||
|
||||
SyntaxHighlighter.brushes.JScript.prototype = new SyntaxHighlighter.Highlighter();
|
||||
SyntaxHighlighter.brushes.JScript.aliases = ['js', 'jscript', 'javascript'];
|
||||
@ -1,690 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<model>
|
||||
<namespace fullname="plupload" name="plupload">
|
||||
<namespace fullname="plupload.runtimes" name="runtimes">
|
||||
<class extends="plupload.Runtime" fullname="plupload.runtimes.BrowserPlus" name="BrowserPlus" static="true" summary="Yahoo BrowserPlus implementation.">
|
||||
<description>Yahoo BrowserPlus implementation. This runtime supports these features: dragdrop, jpgresize, pngresize.
|
||||
</description>
|
||||
<members>
|
||||
<method name="init" static="true" summary="Initializes the browserplus runtime.">
|
||||
<description>Initializes the browserplus runtime.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance that needs to be initialized.</description>
|
||||
</param>
|
||||
<param name="callback" type="function">
|
||||
<description>Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
|
||||
</param>
|
||||
</method>
|
||||
</members>
|
||||
<super-classes>
|
||||
<class-ref class="plupload.Runtime"/>
|
||||
</super-classes>
|
||||
</class>
|
||||
<class extends="plupload.Runtime" fullname="plupload.runtimes.Flash" name="Flash" static="true" summary="FlashRuntime implementation.">
|
||||
<description>FlashRuntime implementation. This runtime supports these features: jpgresize, pngresize, chunks.
|
||||
</description>
|
||||
<members>
|
||||
<method name="init" static="true" summary="Initializes the upload runtime.">
|
||||
<description>Initializes the upload runtime. This method should add necessary items to the DOM and register events needed for operation.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance that needs to be initialized.</description>
|
||||
</param>
|
||||
<param name="callback" type="function">
|
||||
<description>Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
|
||||
</param>
|
||||
</method>
|
||||
</members>
|
||||
<super-classes>
|
||||
<class-ref class="plupload.Runtime"/>
|
||||
</super-classes>
|
||||
</class>
|
||||
<class extends="plupload.Runtime" fullname="plupload.runtimes.Gears" name="Gears" static="true" summary="Gears implementation.">
|
||||
<description>Gears implementation. This runtime supports these features: dragdrop, jpgresize, pngresize, chunks.
|
||||
</description>
|
||||
<members>
|
||||
<method name="init" static="true" summary="Initializes the upload runtime.">
|
||||
<description>Initializes the upload runtime.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance that needs to be initialized.</description>
|
||||
</param>
|
||||
<param name="callback" type="function">
|
||||
<description>Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
|
||||
</param>
|
||||
</method>
|
||||
</members>
|
||||
<super-classes>
|
||||
<class-ref class="plupload.Runtime"/>
|
||||
</super-classes>
|
||||
</class>
|
||||
<class extends="plupload.Runtime" fullname="plupload.runtimes.Html4" name="Html4" static="true" summary="HTML4 implementation.">
|
||||
<description>HTML4 implementation. This runtime has no special features it uses an form that posts files into an hidden iframe.
|
||||
</description>
|
||||
<members>
|
||||
<method name="init" static="true" summary="Initializes the upload runtime.">
|
||||
<description>Initializes the upload runtime.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance that needs to be initialized.</description>
|
||||
</param>
|
||||
<param name="callback" type="function">
|
||||
<description>Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
|
||||
</param>
|
||||
</method>
|
||||
</members>
|
||||
<super-classes>
|
||||
<class-ref class="plupload.Runtime"/>
|
||||
</super-classes>
|
||||
</class>
|
||||
<class extends="plupload.Runtime" fullname="plupload.runtimes.Html5" name="Html5" static="true" summary="HMTL5 implementation.">
|
||||
<description>HMTL5 implementation. This runtime supports these features: dragdrop, jpgresize, pngresize.
|
||||
</description>
|
||||
<members>
|
||||
<method name="init" static="true" summary="Initializes the upload runtime.">
|
||||
<description>Initializes the upload runtime.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance that needs to be initialized.</description>
|
||||
</param>
|
||||
<param name="callback" type="function">
|
||||
<description>Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
|
||||
</param>
|
||||
</method>
|
||||
</members>
|
||||
<super-classes>
|
||||
<class-ref class="plupload.Runtime"/>
|
||||
</super-classes>
|
||||
</class>
|
||||
<class extends="plupload.Runtime" fullname="plupload.runtimes.Silverlight" name="Silverlight" static="true" summary="Silverlight implementation.">
|
||||
<description>Silverlight implementation. This runtime supports these features: jpgresize, pngresize, chunks.
|
||||
</description>
|
||||
<members>
|
||||
<method name="init" static="true" summary="Initializes the upload runtime.">
|
||||
<description>Initializes the upload runtime. This runtime supports these features: jpgresize, pngresize, chunks.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance that needs to be initialized.</description>
|
||||
</param>
|
||||
<param name="callback" type="function">
|
||||
<description>Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
|
||||
</param>
|
||||
</method>
|
||||
</members>
|
||||
<super-classes>
|
||||
<class-ref class="plupload.Runtime"/>
|
||||
</super-classes>
|
||||
</class>
|
||||
</namespace>
|
||||
<class fullname="plupload.Uploader" name="Uploader" summary="Uploader class, an instance of this class will be created for each upload field.">
|
||||
<description>Uploader class, an instance of this class will be created for each upload field.
|
||||
</description>
|
||||
<example>
|
||||
<example>var uploader = new plupload.Uploader({
|
||||
runtimes : 'gears,html5,flash',
|
||||
browse_button : 'button_id'
|
||||
});
|
||||
|
||||
uploader.bind('Init', function(up) {
|
||||
alert('Supports drag/drop: ' + (!!up.features.dragdrop));
|
||||
});
|
||||
|
||||
uploader.bind('FilesAdded', function(up, files) {
|
||||
alert('Selected files: ' + files.length);
|
||||
});
|
||||
|
||||
uploader.bind('QueueChanged', function(up) {
|
||||
alert('Queued files: ' + uploader.files.length);
|
||||
});
|
||||
|
||||
uploader.init();</example>
|
||||
</example>
|
||||
<members>
|
||||
<method constructor="true" name="Uploader" summary="Constructs a new uploader instance.">
|
||||
<description>Constructs a new uploader instance.
|
||||
</description>
|
||||
<param name="settings" type="Object">
|
||||
<description>Initialization settings, to be used by the uploader instance and runtimes.</description>
|
||||
</param>
|
||||
</method>
|
||||
<property name="state" summary="Current state of the total uploading progress." type="Number">
|
||||
<description>Current state of the total uploading progress. This one can either be plupload.STARTED or plupload.STOPPED.
|
||||
These states are controlled by the stop/start methods. The default value is STOPPED.
|
||||
</description>
|
||||
</property>
|
||||
<property name="runtime" summary="Current runtime name." type="String">
|
||||
<description>Current runtime name.
|
||||
</description>
|
||||
</property>
|
||||
<property name="features" summary="Map of features that are available for the uploader runtime." type="Object">
|
||||
<description>Map of features that are available for the uploader runtime. Features will be filled
|
||||
before the init event is called, these features can then be used to alter the UI for the end user.
|
||||
Some of the current features that might be in this map is: dragdrop, chunks, jpgresize, pngresize.
|
||||
</description>
|
||||
</property>
|
||||
<property name="files" summary="Current upload queue, an array of File instances." type="Array">
|
||||
<description>Current upload queue, an array of File instances.
|
||||
</description>
|
||||
<see class="plupload.File"/>
|
||||
</property>
|
||||
<property name="settings" summary="Object with name/value settings." type="Object">
|
||||
<description>Object with name/value settings.
|
||||
</description>
|
||||
</property>
|
||||
<property name="total" summary="Total progess information." type="plupload.QueueProgress">
|
||||
<description>Total progess information. How many files has been uploaded, total percent etc.
|
||||
</description>
|
||||
</property>
|
||||
<property name="id" summary="Unique id for the Uploader instance." type="String">
|
||||
<description>Unique id for the Uploader instance.
|
||||
</description>
|
||||
</property>
|
||||
<method name="init" summary="Initializes the Uploader instance and adds internal event listeners.">
|
||||
<description>Initializes the Uploader instance and adds internal event listeners.
|
||||
</description>
|
||||
</method>
|
||||
<method name="refresh" summary="Refreshes the upload instance by dispatching out a refresh event to all runtimes.">
|
||||
<description>Refreshes the upload instance by dispatching out a refresh event to all runtimes.
|
||||
This would for example reposition flash/silverlight shims on the page.
|
||||
</description>
|
||||
</method>
|
||||
<method name="start" summary="Starts uploading the queued files.">
|
||||
<description>Starts uploading the queued files.
|
||||
</description>
|
||||
</method>
|
||||
<method name="stop" summary="Stops the upload of the queued files.">
|
||||
<description>Stops the upload of the queued files.
|
||||
</description>
|
||||
</method>
|
||||
<method name="getFile" summary="Returns the specified file object by id.">
|
||||
<description>Returns the specified file object by id.
|
||||
</description>
|
||||
<param name="id" type="String">
|
||||
<description>File id to look for.</description>
|
||||
</param>
|
||||
<return type="plupload.File">
|
||||
<description>File object or undefined if it wasn't found;</description>
|
||||
</return>
|
||||
</method>
|
||||
<method name="removeFile" summary="Removes a specific file.">
|
||||
<description>Removes a specific file.
|
||||
</description>
|
||||
<param name="file" type="plupload.File">
|
||||
<description>File to remove from queue.</description>
|
||||
</param>
|
||||
</method>
|
||||
<method name="splice" summary="Removes part of the queue and returns the files removed.">
|
||||
<description>Removes part of the queue and returns the files removed. This will also trigger the FilesRemoved and QueueChanged events.
|
||||
</description>
|
||||
<param name="start" type="Number">
|
||||
<description>(Optional) Start index to remove from.</description>
|
||||
</param>
|
||||
<param name="length" type="Number">
|
||||
<description>(Optional) Lengh of items to remove.</description>
|
||||
</param>
|
||||
<return type="Array">
|
||||
<description>Array of files that was removed.</description>
|
||||
</return>
|
||||
</method>
|
||||
<method name="trigger" summary="Dispatches the specified event name and it's arguments to all listeners.">
|
||||
<description>Dispatches the specified event name and it's arguments to all listeners.
|
||||
|
||||
</description>
|
||||
<param name="name" type="String">
|
||||
<description>Event name to fire.</description>
|
||||
</param>
|
||||
<param name="Multiple" type="Object..">
|
||||
<description>arguments to pass along to the listener functions.</description>
|
||||
</param>
|
||||
</method>
|
||||
<method name="bind" summary="Adds an event listener by name.">
|
||||
<description>Adds an event listener by name.
|
||||
</description>
|
||||
<param name="name" type="String">
|
||||
<description>Event name to listen for.</description>
|
||||
</param>
|
||||
<param name="func" type="function">
|
||||
<description>Function to call ones the event gets fired.</description>
|
||||
</param>
|
||||
<param name="scope" type="Object">
|
||||
<description>Optional scope to execute the specified function in.</description>
|
||||
</param>
|
||||
</method>
|
||||
<method name="unbind" summary="Removes the specified event listener.">
|
||||
<description>Removes the specified event listener.
|
||||
</description>
|
||||
<param name="name" type="String">
|
||||
<description>Name of event to remove.</description>
|
||||
</param>
|
||||
<param name="func" type="function">
|
||||
<description>Function to remove from listener.</description>
|
||||
</param>
|
||||
</method>
|
||||
<method name="unbindAll" summary="Removes all event listeners.">
|
||||
<description>Removes all event listeners.
|
||||
</description>
|
||||
</method>
|
||||
<method name="destroy" summary="Destroys Plupload instance and cleans after itself.">
|
||||
<description>Destroys Plupload instance and cleans after itself.
|
||||
</description>
|
||||
</method>
|
||||
<event name="Init" summary="Fires when the current RunTime has been initialized.">
|
||||
<description>Fires when the current RunTime has been initialized.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance sending the event.</description>
|
||||
</param>
|
||||
</event>
|
||||
<event name="PostInit" summary="Fires after the init event incase you need to perform actions there.">
|
||||
<description>Fires after the init event incase you need to perform actions there.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance sending the event.</description>
|
||||
</param>
|
||||
</event>
|
||||
<event name="Refresh" summary="Fires when the silverlight/flash or other shim needs to move.">
|
||||
<description>Fires when the silverlight/flash or other shim needs to move.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance sending the event.</description>
|
||||
</param>
|
||||
</event>
|
||||
<event name="StateChanged" summary="Fires when the overall state is being changed for the upload queue.">
|
||||
<description>Fires when the overall state is being changed for the upload queue.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance sending the event.</description>
|
||||
</param>
|
||||
</event>
|
||||
<event name="UploadFile" summary="Fires when a file is to be uploaded by the runtime.">
|
||||
<description>Fires when a file is to be uploaded by the runtime.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance sending the event.</description>
|
||||
</param>
|
||||
<param name="file" type="plupload.File">
|
||||
<description>File to be uploaded.</description>
|
||||
</param>
|
||||
</event>
|
||||
<event name="BeforeUpload" summary="Fires when just before a file is uploaded.">
|
||||
<description>Fires when just before a file is uploaded. This event enables you to override settings
|
||||
on the uploader instance before the file is uploaded.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance sending the event.</description>
|
||||
</param>
|
||||
<param name="file" type="plupload.File">
|
||||
<description>File to be uploaded.</description>
|
||||
</param>
|
||||
</event>
|
||||
<event name="QueueChanged" summary="Fires when the file queue is changed.">
|
||||
<description>Fires when the file queue is changed. In other words when files are added/removed to the files array of the uploader instance.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance sending the event.</description>
|
||||
</param>
|
||||
</event>
|
||||
<event name="UploadProgress" summary="Fires while a file is being uploaded.">
|
||||
<description>Fires while a file is being uploaded. Use this event to update the current file upload progress.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance sending the event.</description>
|
||||
</param>
|
||||
<param name="file" type="plupload.File">
|
||||
<description>File that is currently being uploaded.</description>
|
||||
</param>
|
||||
</event>
|
||||
<event name="FilesRemoved" summary="Fires while a file was removed from queue.">
|
||||
<description>Fires while a file was removed from queue.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance sending the event.</description>
|
||||
</param>
|
||||
<param name="files" type="Array">
|
||||
<description>Array of files that got removed.</description>
|
||||
</param>
|
||||
</event>
|
||||
<event name="FilesAdded" summary="Fires while when the user selects files to upload.">
|
||||
<description>Fires while when the user selects files to upload.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance sending the event.</description>
|
||||
</param>
|
||||
<param name="files" type="Array">
|
||||
<description>Array of file objects that was added to queue/selected by the user.</description>
|
||||
</param>
|
||||
</event>
|
||||
<event name="FileUploaded" summary="Fires when a file is successfully uploaded.">
|
||||
<description>Fires when a file is successfully uploaded.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance sending the event.</description>
|
||||
</param>
|
||||
<param name="file" type="plupload.File">
|
||||
<description>File that was uploaded.</description>
|
||||
</param>
|
||||
<param name="response" type="Object">
|
||||
<description>Object with response properties.</description>
|
||||
</param>
|
||||
</event>
|
||||
<event name="ChunkUploaded" summary="Fires when file chunk is uploaded.">
|
||||
<description>Fires when file chunk is uploaded.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance sending the event.</description>
|
||||
</param>
|
||||
<param name="file" type="plupload.File">
|
||||
<description>File that the chunk was uploaded for.</description>
|
||||
</param>
|
||||
<param name="response" type="Object">
|
||||
<description>Object with response properties.</description>
|
||||
</param>
|
||||
</event>
|
||||
<event name="UploadComplete" summary="Fires when all files in a queue are uploaded.">
|
||||
<description>Fires when all files in a queue are uploaded.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance sending the event.</description>
|
||||
</param>
|
||||
<param name="files" type="Array">
|
||||
<description>Array of file objects that was added to queue/selected by the user.</description>
|
||||
</param>
|
||||
</event>
|
||||
<event name="Error" summary="Fires when a error occurs.">
|
||||
<description>Fires when a error occurs.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance sending the event.</description>
|
||||
</param>
|
||||
<param name="error" type="Object">
|
||||
<description>Contains code, message and sometimes file and other details.</description>
|
||||
</param>
|
||||
</event>
|
||||
<event name="Destroy" summary="Fires when destroy method is called.">
|
||||
<description>Fires when destroy method is called.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance sending the event.</description>
|
||||
</param>
|
||||
</event>
|
||||
</members>
|
||||
</class>
|
||||
<class fullname="plupload.File" name="File" summary="File instance.">
|
||||
<description>File instance.
|
||||
</description>
|
||||
<param name="name" type="String">
|
||||
<description>Name of the file.</description>
|
||||
</param>
|
||||
<param name="size" type="Number">
|
||||
<description>File size.</description>
|
||||
</param>
|
||||
<members>
|
||||
<method constructor="true" name="File" summary="Constructs a new file instance.">
|
||||
<description>Constructs a new file instance.
|
||||
</description>
|
||||
<param name="id" type="String">
|
||||
<description>Unique file id.</description>
|
||||
</param>
|
||||
<param name="name" type="String">
|
||||
<description>File name.</description>
|
||||
</param>
|
||||
<param name="size" type="Number">
|
||||
<description>File size in bytes.</description>
|
||||
</param>
|
||||
</method>
|
||||
<property name="id" summary="File id this is a globally unique id for the specific file." type="String">
|
||||
<description>File id this is a globally unique id for the specific file.
|
||||
</description>
|
||||
</property>
|
||||
<property name="name" summary="File name for example "myfile." type="String">
|
||||
<description>File name for example "myfile.gif".
|
||||
</description>
|
||||
</property>
|
||||
<property name="size" summary="File size in bytes." type="Number">
|
||||
<description>File size in bytes.
|
||||
</description>
|
||||
</property>
|
||||
<property name="loaded" summary="Number of bytes uploaded of the files total size." type="Number">
|
||||
<description>Number of bytes uploaded of the files total size.
|
||||
</description>
|
||||
</property>
|
||||
<property name="percent" summary="Number of percentage uploaded of the file." type="Number">
|
||||
<description>Number of percentage uploaded of the file.
|
||||
</description>
|
||||
</property>
|
||||
<property name="status" summary="Status constant matching the plupload states QUEUED, UPLOADING, FAILED, DONE." type="Number">
|
||||
<description>Status constant matching the plupload states QUEUED, UPLOADING, FAILED, DONE.
|
||||
</description>
|
||||
<see class="plupload"/>
|
||||
</property>
|
||||
</members>
|
||||
</class>
|
||||
<class fullname="plupload.Runtime" name="Runtime" static="true" summary="Runtime class gets implemented by each upload runtime.">
|
||||
<description>Runtime class gets implemented by each upload runtime.
|
||||
</description>
|
||||
<members>
|
||||
<method name="init" static="true" summary="Initializes the upload runtime.">
|
||||
<description>Initializes the upload runtime. This method should add necessary items to the DOM and register events needed for operation.
|
||||
</description>
|
||||
<param name="uploader" type="plupload.Uploader">
|
||||
<description>Uploader instance that needs to be initialized.</description>
|
||||
</param>
|
||||
<param name="callback" type="function">
|
||||
<description>Callback function to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
|
||||
</param>
|
||||
</method>
|
||||
</members>
|
||||
</class>
|
||||
<class fullname="plupload.QueueProgress" name="QueueProgress" summary="Runtime class gets implemented by each upload runtime.">
|
||||
<description>Runtime class gets implemented by each upload runtime.
|
||||
</description>
|
||||
<members>
|
||||
<method constructor="true" name="QueueProgress" summary="Constructs a queue progress.">
|
||||
<description>Constructs a queue progress.
|
||||
</description>
|
||||
</method>
|
||||
<property name="size" summary="Total queue file size." type="Number">
|
||||
<description>Total queue file size.
|
||||
</description>
|
||||
</property>
|
||||
<property name="loaded" summary="Total bytes uploaded." type="Number">
|
||||
<description>Total bytes uploaded.
|
||||
</description>
|
||||
</property>
|
||||
<property name="uploaded" summary="Number of files uploaded." type="Number">
|
||||
<description>Number of files uploaded.
|
||||
</description>
|
||||
</property>
|
||||
<property name="failed" summary="Number of files failed to upload." type="Number">
|
||||
<description>Number of files failed to upload.
|
||||
</description>
|
||||
</property>
|
||||
<property name="queued" summary="Number of files yet to be uploaded." type="Number">
|
||||
<description>Number of files yet to be uploaded.
|
||||
</description>
|
||||
</property>
|
||||
<property name="percent" summary="Total percent of the uploaded bytes." type="Number">
|
||||
<description>Total percent of the uploaded bytes.
|
||||
</description>
|
||||
</property>
|
||||
<property name="bytesPerSec" summary="Bytes uploaded per second." type="Number">
|
||||
<description>Bytes uploaded per second.
|
||||
</description>
|
||||
</property>
|
||||
<method name="reset" summary="Resets the progress to it's initial values.">
|
||||
<description>Resets the progress to it's initial values.
|
||||
</description>
|
||||
</method>
|
||||
</members>
|
||||
</class>
|
||||
</namespace>
|
||||
<class fullname="plupload" name="plupload" static="true" summary="Plupload class with some global constants and functions.">
|
||||
<description>Plupload class with some global constants and functions.
|
||||
</description>
|
||||
<example>
|
||||
<example>// Encode entities
|
||||
console.log(plupload.xmlEncode("My string &lt;&gt;"));
|
||||
|
||||
// Generate unique id
|
||||
console.log(plupload.guid());</example>
|
||||
</example>
|
||||
<members>
|
||||
<property final="true" name="STOPPED" static="true" summary="Inital state of the queue and also the state ones it's finished all it's uploads." type="Object">
|
||||
<description>Inital state of the queue and also the state ones it's finished all it's uploads.
|
||||
</description>
|
||||
</property>
|
||||
<property final="true" name="STARTED" static="true" summary="Upload process is running" type="Object">
|
||||
<description>Upload process is running
|
||||
</description>
|
||||
</property>
|
||||
<property final="true" name="QUEUED" static="true" summary="File is queued for upload" type="Object">
|
||||
<description>File is queued for upload
|
||||
</description>
|
||||
</property>
|
||||
<property final="true" name="UPLOADING" static="true" summary="File is being uploaded" type="Object">
|
||||
<description>File is being uploaded
|
||||
</description>
|
||||
</property>
|
||||
<property final="true" name="FAILED" static="true" summary="File has failed to be uploaded" type="Object">
|
||||
<description>File has failed to be uploaded
|
||||
</description>
|
||||
</property>
|
||||
<property final="true" name="DONE" static="true" summary="File has been uploaded successfully" type="Object">
|
||||
<description>File has been uploaded successfully
|
||||
</description>
|
||||
</property>
|
||||
<property final="true" name="GENERIC_ERROR" static="true" summary="Generic error for example if an exception is thrown inside Silverlight." type="Object">
|
||||
<description>Generic error for example if an exception is thrown inside Silverlight.
|
||||
</description>
|
||||
</property>
|
||||
<property final="true" name="HTTP_ERROR" static="true" summary="HTTP transport error." type="Object">
|
||||
<description>HTTP transport error. For example if the server produces a HTTP status other than 200.
|
||||
</description>
|
||||
</property>
|
||||
<property final="true" name="IO_ERROR" static="true" summary="Generic I/O error." type="Object">
|
||||
<description>Generic I/O error. For exampe if it wasn't possible to open the file stream on local machine.
|
||||
</description>
|
||||
</property>
|
||||
<property final="true" name="SECURITY_ERROR" static="true" summary="Generic I/O error." type="Object">
|
||||
<description>Generic I/O error. For exampe if it wasn't possible to open the file stream on local machine.
|
||||
</description>
|
||||
</property>
|
||||
<property final="true" name="INIT_ERROR" static="true" summary="Initialization error." type="Object">
|
||||
<description>Initialization error. Will be triggered if no runtime was initialized.
|
||||
</description>
|
||||
</property>
|
||||
<property final="true" name="FILE_SIZE_ERROR" static="true" summary="File size error." type="Object">
|
||||
<description>File size error. If the user selects a file that is to large it will be blocked and an error of this type will be triggered.
|
||||
</description>
|
||||
</property>
|
||||
<property final="true" name="FILE_EXTENSION_ERROR" static="true" summary="File extension error." type="Object">
|
||||
<description>File extension error. If the user selects a file that isn't valid according to the filters setting.
|
||||
</description>
|
||||
</property>
|
||||
<property final="true" name="mimeTypes" static="true" summary="Mime type lookup table." type="Object">
|
||||
<description>Mime type lookup table.
|
||||
</description>
|
||||
</property>
|
||||
<method name="extend" static="true" summary="Extends the specified object with another object.">
|
||||
<description>Extends the specified object with another object.
|
||||
</description>
|
||||
<param name="target" type="Object">
|
||||
<description>Object to extend.</description>
|
||||
</param>
|
||||
<param name="obj" type="Object..">
|
||||
<description>Multiple objects to extend with.</description>
|
||||
</param>
|
||||
<return type="Object">
|
||||
<description>Same as target, the extended object.</description>
|
||||
</return>
|
||||
</method>
|
||||
<method name="cleanName" static="true" summary="Cleans the specified name from national characters (diacritics).">
|
||||
<description>Cleans the specified name from national characters (diacritics). The result will be a name with only a-z, 0-9 and _.
|
||||
</description>
|
||||
<param name="s" type="String">
|
||||
<description>String to clean up.</description>
|
||||
</param>
|
||||
<return type="String">
|
||||
<description>Cleaned string.</description>
|
||||
</return>
|
||||
</method>
|
||||
<method name="addRuntime" static="true" summary="Adds a specific upload runtime like for example flash or gears.">
|
||||
<description>Adds a specific upload runtime like for example flash or gears.
|
||||
</description>
|
||||
<param name="name" type="String">
|
||||
<description>Runtime name for example flash.</description>
|
||||
</param>
|
||||
<param name="obj" type="Object">
|
||||
<description>Object containing init/destroy method.</description>
|
||||
</param>
|
||||
</method>
|
||||
<method name="guid" static="true" summary="Generates an unique ID.">
|
||||
<description>Generates an unique ID. This is 99.99% unique since it takes the current time and 5 random numbers.
|
||||
The only way a user would be able to get the same ID is if the two persons at the same exact milisecond manages
|
||||
to get 5 the same random numbers between 0-65535 it also uses a counter so each call will be guaranteed to be page unique.
|
||||
It's more probable for the earth to be hit with an ansteriod. You can also if you want to be 100% sure set the plupload.guidPrefix property
|
||||
to an user unique key.
|
||||
</description>
|
||||
<return type="String">
|
||||
<description>Virtually unique id.</description>
|
||||
</return>
|
||||
</method>
|
||||
<method name="formatSize" static="true" summary="Formats the specified number as a size string for example 1024 becomes 1 KB.">
|
||||
<description>Formats the specified number as a size string for example 1024 becomes 1 KB.
|
||||
</description>
|
||||
<param name="size" type="Number">
|
||||
<description>Size to format as string.</description>
|
||||
</param>
|
||||
<return type="String">
|
||||
<description>Formatted size string.</description>
|
||||
</return>
|
||||
</method>
|
||||
<method name="getPos" static="true" summary="Returns the absolute x, y position of an Element.">
|
||||
<description>Returns the absolute x, y position of an Element. The position will be returned in a object with x, y fields.
|
||||
</description>
|
||||
<param name="node" type="Element">
|
||||
<description>HTML element or element id to get x, y position from.</description>
|
||||
</param>
|
||||
<param name="root" type="Element">
|
||||
<description>Optional root element to stop calculations at.</description>
|
||||
</param>
|
||||
<return type="object">
|
||||
<description>Absolute position of the specified element object with x, y fields.</description>
|
||||
</return>
|
||||
</method>
|
||||
<method name="parseSize" static="true" summary="Parses the specified size string into a byte value.">
|
||||
<description>Parses the specified size string into a byte value. For example 10kb becomes 10240.
|
||||
</description>
|
||||
<param name="size">
|
||||
<type fullname="String"/>
|
||||
<type fullname="Number"/>
|
||||
<description>String to parse or number to just pass through.</description>
|
||||
</param>
|
||||
<return type="Number">
|
||||
<description>Size in bytes.</description>
|
||||
</return>
|
||||
</method>
|
||||
<method name="xmlEncode" static="true" summary="Encodes the specified string.">
|
||||
<description>Encodes the specified string.
|
||||
</description>
|
||||
<param name="s" type="String">
|
||||
<description>String to encode.</description>
|
||||
</param>
|
||||
<return type="String">
|
||||
<description>Encoded string.</description>
|
||||
</return>
|
||||
</method>
|
||||
<method name="toArray" static="true" summary="Forces anything into an array.">
|
||||
<description>Forces anything into an array.
|
||||
</description>
|
||||
<param name="obj" type="Object">
|
||||
<description>Object with length field.</description>
|
||||
</param>
|
||||
<return type="Array">
|
||||
<description>Array object containing all items.</description>
|
||||
</return>
|
||||
</method>
|
||||
</members>
|
||||
</class>
|
||||
</model>
|
||||
@ -1,246 +0,0 @@
|
||||
// Namespaces
|
||||
plupload = {}
|
||||
plupload.runtimes = {}
|
||||
|
||||
// Classes
|
||||
plupload.runtimes.BrowserPlus = function() {
|
||||
/// <summary>Yahoo BrowserPlus implementation.</summary>
|
||||
}
|
||||
|
||||
plupload.runtimes.BrowserPlus.init = function(uploader, callback) {
|
||||
/// <summary>Initializes the browserplus runtime.</summary>
|
||||
/// <param name="uploader" type="plupload.Uploader">Uploader instance that needs to be initialized.</param>
|
||||
/// <param name="callback" type="function">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</param>
|
||||
}
|
||||
|
||||
plupload.runtimes.Flash = function() {
|
||||
/// <summary>FlashRuntime implementation.</summary>
|
||||
}
|
||||
|
||||
plupload.runtimes.Flash.init = function(uploader, callback) {
|
||||
/// <summary>Initializes the upload runtime.</summary>
|
||||
/// <param name="uploader" type="plupload.Uploader">Uploader instance that needs to be initialized.</param>
|
||||
/// <param name="callback" type="function">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</param>
|
||||
}
|
||||
|
||||
plupload.runtimes.Gears = function() {
|
||||
/// <summary>Gears implementation.</summary>
|
||||
}
|
||||
|
||||
plupload.runtimes.Gears.init = function(uploader, callback) {
|
||||
/// <summary>Initializes the upload runtime.</summary>
|
||||
/// <param name="uploader" type="plupload.Uploader">Uploader instance that needs to be initialized.</param>
|
||||
/// <param name="callback" type="function">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</param>
|
||||
}
|
||||
|
||||
plupload.runtimes.Html4 = function() {
|
||||
/// <summary>HTML4 implementation.</summary>
|
||||
}
|
||||
|
||||
plupload.runtimes.Html4.init = function(uploader, callback) {
|
||||
/// <summary>Initializes the upload runtime.</summary>
|
||||
/// <param name="uploader" type="plupload.Uploader">Uploader instance that needs to be initialized.</param>
|
||||
/// <param name="callback" type="function">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</param>
|
||||
}
|
||||
|
||||
plupload.runtimes.Html5 = function() {
|
||||
/// <summary>HMTL5 implementation.</summary>
|
||||
}
|
||||
|
||||
plupload.runtimes.Html5.init = function(uploader, callback) {
|
||||
/// <summary>Initializes the upload runtime.</summary>
|
||||
/// <param name="uploader" type="plupload.Uploader">Uploader instance that needs to be initialized.</param>
|
||||
/// <param name="callback" type="function">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</param>
|
||||
}
|
||||
|
||||
plupload.runtimes.Silverlight = function() {
|
||||
/// <summary>Silverlight implementation.</summary>
|
||||
}
|
||||
|
||||
plupload.runtimes.Silverlight.init = function(uploader, callback) {
|
||||
/// <summary>Initializes the upload runtime.</summary>
|
||||
/// <param name="uploader" type="plupload.Uploader">Uploader instance that needs to be initialized.</param>
|
||||
/// <param name="callback" type="function">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</param>
|
||||
}
|
||||
|
||||
plupload.Uploader = function(settings) {
|
||||
/// <summary>Uploader class, an instance of this class will be created for each upload field.</summary>
|
||||
/// <param name="settings" type="Object">Initialization settings, to be used by the uploader instance and runtimes.</param>
|
||||
/// <field name="state" type="Number">Current state of the total uploading progress. This one can either be plupload.STARTED or plupload.STOPPED. These states are controlled by the stop/start methods. The default value is STOPPED.</field>
|
||||
/// <field name="runtime" type="String">Current runtime name.</field>
|
||||
/// <field name="features" type="Object">Map of features that are available for the uploader runtime. Features will be filled before the init event is called, these features can then be used to alter the UI for the end user. Some of the current features that might be in this map is: dragdrop, chunks, jpgresize, pngresize.</field>
|
||||
/// <field name="files" type="Array">Current upload queue, an array of File instances.</field>
|
||||
/// <field name="settings" type="Object">Object with name/value settings.</field>
|
||||
/// <field name="total" type="plupload.QueueProgress">Total progess information. How many files has been uploaded, total percent etc.</field>
|
||||
/// <field name="id" type="String">Unique id for the Uploader instance.</field>
|
||||
}
|
||||
|
||||
plupload.Uploader.prototype.init = function() {
|
||||
/// <summary>Initializes the Uploader instance and adds internal event listeners.</summary>
|
||||
}
|
||||
|
||||
plupload.Uploader.prototype.refresh = function() {
|
||||
/// <summary>Refreshes the upload instance by dispatching out a refresh event to all runtimes.</summary>
|
||||
}
|
||||
|
||||
plupload.Uploader.prototype.start = function() {
|
||||
/// <summary>Starts uploading the queued files.</summary>
|
||||
}
|
||||
|
||||
plupload.Uploader.prototype.stop = function() {
|
||||
/// <summary>Stops the upload of the queued files.</summary>
|
||||
}
|
||||
|
||||
plupload.Uploader.prototype.getFile = function(id) {
|
||||
/// <summary>Returns the specified file object by id.</summary>
|
||||
/// <param name="id" type="String">File id to look for.</param>
|
||||
/// <returns type="plupload.File">File object or undefined if it wasn't found;</returns>
|
||||
}
|
||||
|
||||
plupload.Uploader.prototype.removeFile = function(file) {
|
||||
/// <summary>Removes a specific file.</summary>
|
||||
/// <param name="file" type="plupload.File">File to remove from queue.</param>
|
||||
}
|
||||
|
||||
plupload.Uploader.prototype.splice = function(start, length) {
|
||||
/// <summary>Removes part of the queue and returns the files removed.</summary>
|
||||
/// <param name="start" type="Number" integer="true">(Optional) Start index to remove from.</param>
|
||||
/// <param name="length" type="Number" integer="true">(Optional) Lengh of items to remove.</param>
|
||||
/// <returns type="Array">Array of files that was removed.</returns>
|
||||
}
|
||||
|
||||
plupload.Uploader.prototype.trigger = function(name, Multiple) {
|
||||
/// <summary>Dispatches the specified event name and it's arguments to all listeners.</summary>
|
||||
/// <param name="name" type="String">Event name to fire.</param>
|
||||
/// <param name="Multiple" type="Object..">arguments to pass along to the listener functions.</param>
|
||||
}
|
||||
|
||||
plupload.Uploader.prototype.bind = function(name, func, scope) {
|
||||
/// <summary>Adds an event listener by name.</summary>
|
||||
/// <param name="name" type="String">Event name to listen for.</param>
|
||||
/// <param name="func" type="function">Function to call ones the event gets fired.</param>
|
||||
/// <param name="scope" type="Object">Optional scope to execute the specified function in.</param>
|
||||
}
|
||||
|
||||
plupload.Uploader.prototype.unbind = function(name, func) {
|
||||
/// <summary>Removes the specified event listener.</summary>
|
||||
/// <param name="name" type="String">Name of event to remove.</param>
|
||||
/// <param name="func" type="function">Function to remove from listener.</param>
|
||||
}
|
||||
|
||||
plupload.Uploader.prototype.unbindAll = function() {
|
||||
/// <summary>Removes all event listeners.</summary>
|
||||
}
|
||||
|
||||
plupload.Uploader.prototype.destroy = function() {
|
||||
/// <summary>Destroys Plupload instance and cleans after itself.</summary>
|
||||
}
|
||||
|
||||
plupload.File = function(id, name, size) {
|
||||
/// <summary>File instance.</summary>
|
||||
/// <param name="id" type="String">Unique file id.</param>
|
||||
/// <param name="name" type="String">File name.</param>
|
||||
/// <param name="size" type="Number" integer="true">File size in bytes.</param>
|
||||
/// <field name="id" type="String">File id this is a globally unique id for the specific file.</field>
|
||||
/// <field name="name" type="String">File name for example "myfile.gif".</field>
|
||||
/// <field name="size" type="Number">File size in bytes.</field>
|
||||
/// <field name="loaded" type="Number">Number of bytes uploaded of the files total size.</field>
|
||||
/// <field name="percent" type="Number">Number of percentage uploaded of the file.</field>
|
||||
/// <field name="status" type="Number">Status constant matching the plupload states QUEUED, UPLOADING, FAILED, DONE.</field>
|
||||
}
|
||||
|
||||
plupload.Runtime = function() {
|
||||
/// <summary>Runtime class gets implemented by each upload runtime.</summary>
|
||||
}
|
||||
|
||||
plupload.Runtime.init = function(uploader, callback) {
|
||||
/// <summary>Initializes the upload runtime.</summary>
|
||||
/// <param name="uploader" type="plupload.Uploader">Uploader instance that needs to be initialized.</param>
|
||||
/// <param name="callback" type="function">Callback function to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</param>
|
||||
}
|
||||
|
||||
plupload.QueueProgress = function() {
|
||||
/// <summary>Runtime class gets implemented by each upload runtime.</summary>
|
||||
/// <field name="size" type="Number">Total queue file size.</field>
|
||||
/// <field name="loaded" type="Number">Total bytes uploaded.</field>
|
||||
/// <field name="uploaded" type="Number">Number of files uploaded.</field>
|
||||
/// <field name="failed" type="Number">Number of files failed to upload.</field>
|
||||
/// <field name="queued" type="Number">Number of files yet to be uploaded.</field>
|
||||
/// <field name="percent" type="Number">Total percent of the uploaded bytes.</field>
|
||||
/// <field name="bytesPerSec" type="Number">Bytes uploaded per second.</field>
|
||||
}
|
||||
|
||||
plupload.QueueProgress.prototype.reset = function() {
|
||||
/// <summary>Resets the progress to it's initial values.</summary>
|
||||
}
|
||||
|
||||
// Namespaces
|
||||
plupload.STOPPED = new Object();
|
||||
plupload.STARTED = new Object();
|
||||
plupload.QUEUED = new Object();
|
||||
plupload.UPLOADING = new Object();
|
||||
plupload.FAILED = new Object();
|
||||
plupload.DONE = new Object();
|
||||
plupload.GENERIC_ERROR = new Object();
|
||||
plupload.HTTP_ERROR = new Object();
|
||||
plupload.IO_ERROR = new Object();
|
||||
plupload.SECURITY_ERROR = new Object();
|
||||
plupload.INIT_ERROR = new Object();
|
||||
plupload.FILE_SIZE_ERROR = new Object();
|
||||
plupload.FILE_EXTENSION_ERROR = new Object();
|
||||
plupload.mimeTypes = new Object();
|
||||
plupload.extend = function(target, obj) {
|
||||
/// <summary>Extends the specified object with another object.</summary>
|
||||
/// <param name="target" type="Object">Object to extend.</param>
|
||||
/// <param name="obj" type="Object..">Multiple objects to extend with.</param>
|
||||
/// <returns type="Object">Same as target, the extended object.</returns>
|
||||
}
|
||||
|
||||
plupload.cleanName = function(s) {
|
||||
/// <summary>Cleans the specified name from national characters (diacritics).</summary>
|
||||
/// <param name="s" type="String">String to clean up.</param>
|
||||
/// <returns type="String">Cleaned string.</returns>
|
||||
}
|
||||
|
||||
plupload.addRuntime = function(name, obj) {
|
||||
/// <summary>Adds a specific upload runtime like for example flash or gears.</summary>
|
||||
/// <param name="name" type="String">Runtime name for example flash.</param>
|
||||
/// <param name="obj" type="Object">Object containing init/destroy method.</param>
|
||||
}
|
||||
|
||||
plupload.guid = function() {
|
||||
/// <summary>Generates an unique ID.</summary>
|
||||
/// <returns type="String">Virtually unique id.</returns>
|
||||
}
|
||||
|
||||
plupload.formatSize = function(size) {
|
||||
/// <summary>Formats the specified number as a size string for example 1024 becomes 1 KB.</summary>
|
||||
/// <param name="size" type="Number" integer="true">Size to format as string.</param>
|
||||
/// <returns type="String">Formatted size string.</returns>
|
||||
}
|
||||
|
||||
plupload.getPos = function(node, root) {
|
||||
/// <summary>Returns the absolute x, y position of an Element.</summary>
|
||||
/// <param name="node" type="Element" domElement="true">HTML element or element id to get x, y position from.</param>
|
||||
/// <param name="root" type="Element" domElement="true">Optional root element to stop calculations at.</param>
|
||||
/// <returns type="object">Absolute position of the specified element object with x, y fields.</returns>
|
||||
}
|
||||
|
||||
plupload.parseSize = function(size) {
|
||||
/// <summary>Parses the specified size string into a byte value.</summary>
|
||||
/// <param name="size" type="">String to parse or number to just pass through.</param>
|
||||
/// <returns type="Number" integer="true">Size in bytes.</returns>
|
||||
}
|
||||
|
||||
plupload.xmlEncode = function(s) {
|
||||
/// <summary>Encodes the specified string.</summary>
|
||||
/// <param name="s" type="String">String to encode.</param>
|
||||
/// <returns type="String">Encoded string.</returns>
|
||||
}
|
||||
|
||||
plupload.toArray = function(obj) {
|
||||
/// <summary>Forces anything into an array.</summary>
|
||||
/// <param name="obj" type="Object">Object with length field.</param>
|
||||
/// <returns type="Array">Array object containing all items.</returns>
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 5.6 KiB |
@ -1,88 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
||||
|
||||
<title>Plupload - Custom example</title>
|
||||
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family:Verdana, Geneva, sans-serif;
|
||||
font-size:13px;
|
||||
color:#333;
|
||||
background:url(bg.jpg);
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript" src="http://bp.yahooapis.com/2.4.21/browserplus-min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="../js/plupload.js"></script>
|
||||
<script type="text/javascript" src="../js/plupload.gears.js"></script>
|
||||
<script type="text/javascript" src="../js/plupload.silverlight.js"></script>
|
||||
<script type="text/javascript" src="../js/plupload.flash.js"></script>
|
||||
<script type="text/javascript" src="../js/plupload.browserplus.js"></script>
|
||||
<script type="text/javascript" src="../js/plupload.html4.js"></script>
|
||||
<script type="text/javascript" src="../js/plupload.html5.js"></script>
|
||||
|
||||
<!-- <script type="text/javascript" src="http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js"></script> -->
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>Custom example</h1>
|
||||
|
||||
<p>Shows you how to use the core plupload API.</p>
|
||||
|
||||
<div id="container">
|
||||
<div id="filelist">No runtime found.</div>
|
||||
<br />
|
||||
<a id="pickfiles" href="javascript:;">[Select files]</a>
|
||||
<a id="uploadfiles" href="javascript:;">[Upload files]</a>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
// Custom example logic
|
||||
function $(id) {
|
||||
return document.getElementById(id);
|
||||
}
|
||||
|
||||
|
||||
var uploader = new plupload.Uploader({
|
||||
runtimes : 'gears,html5,flash,silverlight,browserplus',
|
||||
browse_button : 'pickfiles',
|
||||
container: 'container',
|
||||
max_file_size : '10mb',
|
||||
url : 'upload.php',
|
||||
resize : {width : 320, height : 240, quality : 90},
|
||||
flash_swf_url : '../js/plupload.flash.swf',
|
||||
silverlight_xap_url : '../js/plupload.silverlight.xap',
|
||||
filters : [
|
||||
{title : "Image files", extensions : "jpg,gif,png"},
|
||||
{title : "Zip files", extensions : "zip"}
|
||||
]
|
||||
});
|
||||
|
||||
uploader.bind('Init', function(up, params) {
|
||||
$('filelist').innerHTML = "<div>Current runtime: " + params.runtime + "</div>";
|
||||
});
|
||||
|
||||
uploader.bind('FilesAdded', function(up, files) {
|
||||
for (var i in files) {
|
||||
$('filelist').innerHTML += '<div id="' + files[i].id + '">' + files[i].name + ' (' + plupload.formatSize(files[i].size) + ') <b></b></div>';
|
||||
}
|
||||
});
|
||||
|
||||
uploader.bind('UploadProgress', function(up, file) {
|
||||
$(file.id).getElementsByTagName('b')[0].innerHTML = '<span>' + file.percent + "%</span>";
|
||||
});
|
||||
|
||||
$('uploadfiles').onclick = function() {
|
||||
uploader.start();
|
||||
return false;
|
||||
};
|
||||
|
||||
uploader.init();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,35 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
||||
<title>Plupload - Form dump</title>
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family:Verdana, Geneva, sans-serif;
|
||||
font-size:13px;
|
||||
color:#333;
|
||||
background:url(bg.jpg);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>Post dump</h1>
|
||||
|
||||
<p>Shows the form items posted.</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Value</th>
|
||||
</tr>
|
||||
<?php $count = 0; foreach ($_POST as $name => $value) { ?>
|
||||
<tr class="<?php echo $count % 2 == 0 ? 'alt' : ''; ?>">
|
||||
<td><?php echo htmlentities(stripslashes($name)) ?></td>
|
||||
<td><?php echo nl2br(htmlentities(stripslashes($value))) ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -1,196 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
||||
<link rel="stylesheet" href="../../js/jquery.plupload.queue/css/jquery.plupload.queue.css" type="text/css" media="screen" />
|
||||
<title>Plupload - Events example</title>
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family:Verdana, Geneva, sans-serif;
|
||||
font-size:13px;
|
||||
color:#333;
|
||||
background:url(../bg.jpg);
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="http://bp.yahooapis.com/2.4.21/browserplus-min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="../../js/plupload.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.gears.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.silverlight.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.flash.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.browserplus.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.html4.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.html5.js"></script>
|
||||
<script type="text/javascript" src="../../js/jquery.plupload.queue/jquery.plupload.queue.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<form method="post" action="dump.php">
|
||||
<h1>Events example</h1>
|
||||
|
||||
<p>Shows how to bind and use all available events.</p>
|
||||
|
||||
<h3>Log messages</h3>
|
||||
<textarea id="log" style="width: 100%; height: 150px; font-size: 11px" spellcheck="false" wrap="off"></textarea>
|
||||
|
||||
<h3>Queue widget</h3>
|
||||
<div id="uploader" style="width: 450px; height: 330px;">You browser doesn't support upload.</div>
|
||||
<a id="clear" href="#">Clear queue</a>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
function log() {
|
||||
var str = "";
|
||||
|
||||
plupload.each(arguments, function(arg) {
|
||||
var row = "";
|
||||
|
||||
if (typeof(arg) != "string") {
|
||||
plupload.each(arg, function(value, key) {
|
||||
// Convert items in File objects to human readable form
|
||||
if (arg instanceof plupload.File) {
|
||||
// Convert status to human readable
|
||||
switch (value) {
|
||||
case plupload.QUEUED:
|
||||
value = 'QUEUED';
|
||||
break;
|
||||
|
||||
case plupload.UPLOADING:
|
||||
value = 'UPLOADING';
|
||||
break;
|
||||
|
||||
case plupload.FAILED:
|
||||
value = 'FAILED';
|
||||
break;
|
||||
|
||||
case plupload.DONE:
|
||||
value = 'DONE';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof(value) != "function") {
|
||||
row += (row ? ', ': '') + key + '=' + value;
|
||||
}
|
||||
});
|
||||
|
||||
str += row + " ";
|
||||
} else {
|
||||
str += arg + " ";
|
||||
}
|
||||
});
|
||||
|
||||
$('#log').val($('#log').val() + str + "\r\n");
|
||||
}
|
||||
|
||||
$("#uploader").pluploadQueue({
|
||||
// General settings
|
||||
runtimes: 'html5,gears,browserplus,silverlight,flash,html4',
|
||||
url: '../upload.php',
|
||||
max_file_size: '10mb',
|
||||
chunk_size: '1mb',
|
||||
unique_names: true,
|
||||
|
||||
// Resize images on clientside if we can
|
||||
resize: {width: 320, height: 240, quality: 90},
|
||||
|
||||
// Specify what files to browse for
|
||||
filters: [
|
||||
{title: "Image files", extensions: "jpg,gif,png"},
|
||||
{title: "Zip files", extensions: "zip"}
|
||||
],
|
||||
|
||||
// Flash/Silverlight paths
|
||||
flash_swf_url: '../../js/plupload.flash.swf',
|
||||
silverlight_xap_url: '../../js/plupload.silverlight.xap',
|
||||
|
||||
// PreInit events, bound before any internal events
|
||||
preinit: {
|
||||
Init: function(up, info) {
|
||||
log('[Init]', 'Info:', info, 'Features:', up.features);
|
||||
},
|
||||
|
||||
UploadFile: function(up, file) {
|
||||
log('[UploadFile]', file);
|
||||
|
||||
// You can override settings before the file is uploaded
|
||||
// up.settings.url = 'upload.php?id=' + file.id;
|
||||
// up.settings.multipart_params = {param1: 'value1', param2: 'value2'};
|
||||
}
|
||||
},
|
||||
|
||||
// Post init events, bound after the internal events
|
||||
init: {
|
||||
Refresh: function(up) {
|
||||
// Called when upload shim is moved
|
||||
log('[Refresh]');
|
||||
},
|
||||
|
||||
StateChanged: function(up) {
|
||||
// Called when the state of the queue is changed
|
||||
log('[StateChanged]', up.state == plupload.STARTED ? "STARTED": "STOPPED");
|
||||
},
|
||||
|
||||
QueueChanged: function(up) {
|
||||
// Called when the files in queue are changed by adding/removing files
|
||||
log('[QueueChanged]');
|
||||
},
|
||||
|
||||
UploadProgress: function(up, file) {
|
||||
// Called while a file is being uploaded
|
||||
log('[UploadProgress]', 'File:', file, "Total:", up.total);
|
||||
},
|
||||
|
||||
FilesAdded: function(up, files) {
|
||||
// Callced when files are added to queue
|
||||
log('[FilesAdded]');
|
||||
|
||||
plupload.each(files, function(file) {
|
||||
log(' File:', file);
|
||||
});
|
||||
},
|
||||
|
||||
FilesRemoved: function(up, files) {
|
||||
// Called when files where removed from queue
|
||||
log('[FilesRemoved]');
|
||||
|
||||
plupload.each(files, function(file) {
|
||||
log(' File:', file);
|
||||
});
|
||||
},
|
||||
|
||||
FileUploaded: function(up, file, info) {
|
||||
// Called when a file has finished uploading
|
||||
log('[FileUploaded] File:', file, "Info:", info);
|
||||
},
|
||||
|
||||
ChunkUploaded: function(up, file, info) {
|
||||
// Called when a file chunk has finished uploading
|
||||
log('[ChunkUploaded] File:', file, "Info:", info);
|
||||
},
|
||||
|
||||
Error: function(up, args) {
|
||||
// Called when a error has occured
|
||||
|
||||
// Handle file specific error and general error
|
||||
if (args.file) {
|
||||
log('[error]', args, "File:", args.file);
|
||||
} else {
|
||||
log('[error]', args);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$('#log').val('');
|
||||
$('#clear').click(function(e) {
|
||||
e.preventDefault();
|
||||
$("#uploader").pluploadQueue().splice();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,102 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
||||
<title>Plupload - jQuery UI Widget</title>
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family:Verdana, Geneva, sans-serif;
|
||||
font-size:13px;
|
||||
color:#333;
|
||||
background:url(../bg.jpg);
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/base/jquery-ui.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../js/jquery.ui.plupload/css/jquery.ui.plupload.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="http://bp.yahooapis.com/2.4.21/browserplus-min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="../../js/plupload.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.gears.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.silverlight.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.flash.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.browserplus.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.html4.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.html5.js"></script>
|
||||
<script type="text/javascript" src="../../js/jquery.ui.plupload/jquery.ui.plupload.js"></script>
|
||||
|
||||
<!--<script type="text/javascript" src="http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js"></script>-->
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>jQuery UI Widget</h1>
|
||||
|
||||
<p>You can see this example with different themes on the <a href="http://plupload.com/example_jquery_ui.php">www.plupload.com</a> website.</p>
|
||||
|
||||
<form method="post" action="dump.php">
|
||||
<div id="uploader">
|
||||
<p>You browser doesn't have Flash, Silverlight, Gears, BrowserPlus or HTML5 support.</p>
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
// Convert divs to queue widgets when the DOM is ready
|
||||
$(function() {
|
||||
$("#uploader").plupload({
|
||||
// General settings
|
||||
runtimes : 'flash,html5,browserplus,silverlight,gears,html4',
|
||||
url : '../upload.php',
|
||||
max_file_size : '1000mb',
|
||||
max_file_count: 20, // user can add no more then 20 files at a time
|
||||
chunk_size : '1mb',
|
||||
unique_names : true,
|
||||
multiple_queues : true,
|
||||
|
||||
// Resize images on clientside if we can
|
||||
resize : {width : 320, height : 240, quality : 90},
|
||||
|
||||
// Rename files by clicking on their titles
|
||||
rename: true,
|
||||
|
||||
// Sort files
|
||||
sortable: true,
|
||||
|
||||
// Specify what files to browse for
|
||||
filters : [
|
||||
{title : "Image files", extensions : "jpg,gif,png"},
|
||||
{title : "Zip files", extensions : "zip,avi"}
|
||||
],
|
||||
|
||||
// Flash settings
|
||||
flash_swf_url : '../../js/plupload.flash.swf',
|
||||
|
||||
// Silverlight settings
|
||||
silverlight_xap_url : '../../js/plupload.silverlight.xap'
|
||||
});
|
||||
|
||||
// Client side form validation
|
||||
$('form').submit(function(e) {
|
||||
var uploader = $('#uploader').plupload('getUploader');
|
||||
|
||||
// Files in queue upload them first
|
||||
if (uploader.files.length > 0) {
|
||||
// When all files are uploaded submit form
|
||||
uploader.bind('StateChanged', function() {
|
||||
if (uploader.files.length === (uploader.total.uploaded + uploader.total.failed)) {
|
||||
$('form')[0].submit();
|
||||
}
|
||||
});
|
||||
|
||||
uploader.start();
|
||||
} else
|
||||
alert('You must at least upload one file.');
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,174 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
||||
<title>Plupload - Queue widget example</title>
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family:Verdana, Geneva, sans-serif;
|
||||
font-size:13px;
|
||||
color:#333;
|
||||
background:url(../bg.jpg);
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="../../js/jquery.plupload.queue/css/jquery.plupload.queue.css" type="text/css" media="screen" />
|
||||
|
||||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="http://bp.yahooapis.com/2.4.21/browserplus-min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="../../js/plupload.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.gears.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.silverlight.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.flash.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.browserplus.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.html4.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.html5.js"></script>
|
||||
<script type="text/javascript" src="../../js/jquery.plupload.queue/jquery.plupload.queue.js"></script>
|
||||
|
||||
<!-- <script type="text/javascript" src="http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js"></script> -->
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<form method="post" action="dump.php">
|
||||
<h1>Queue widget example</h1>
|
||||
|
||||
<p>Shows the jQuery Plupload Queue widget and under different runtimes.</p>
|
||||
|
||||
<div style="float: left; margin-right: 20px">
|
||||
<h3>Flash runtime</h3>
|
||||
<div id="flash_uploader" style="width: 450px; height: 330px;">You browser doesn't have Flash installed.</div>
|
||||
|
||||
<h3>Gears runtime</h3>
|
||||
<div id="gears_uploader" style="width: 450px; height: 330px;">You browser doesn't have Gears installed.</div>
|
||||
</div>
|
||||
|
||||
<div style="float: left; margin-right: 20px">
|
||||
<h3>Silverlight runtime</h3>
|
||||
<div id="silverlight_uploader" style="width: 450px; height: 330px;">You browser doesn't have Silverlight installed.</div>
|
||||
|
||||
<h3>HTML 5 runtime</h3>
|
||||
<div id="html5_uploader" style="width: 450px; height: 330px;">You browser doesn't support native upload. Try Firefox 3 or Safari 4.</div>
|
||||
</div>
|
||||
|
||||
<div style="float: left; margin-right: 20px">
|
||||
<h3>BrowserPlus runtime</h3>
|
||||
<div id="browserplus_uploader" style="width: 450px; height: 330px;">You browser doesn't have BrowserPlus installed.</div>
|
||||
|
||||
<h3>HTML 4 runtime</h3>
|
||||
<div id="html4_uploader" style="width: 450px; height: 330px;">You browser doesn't have HTML 4 support.</div>
|
||||
</div>
|
||||
|
||||
<br style="clear: both" />
|
||||
|
||||
<input type="submit" value="Send" />
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
// Setup flash version
|
||||
$("#flash_uploader").pluploadQueue({
|
||||
// General settings
|
||||
runtimes : 'flash',
|
||||
url : '../upload.php',
|
||||
max_file_size : '10mb',
|
||||
chunk_size : '1mb',
|
||||
unique_names : true,
|
||||
filters : [
|
||||
{title : "Image files", extensions : "jpg,gif,png"},
|
||||
{title : "Zip files", extensions : "zip"}
|
||||
],
|
||||
|
||||
// Resize images on clientside if we can
|
||||
resize : {width : 320, height : 240, quality : 90},
|
||||
|
||||
// Flash settings
|
||||
flash_swf_url : '../../js/plupload.flash.swf'
|
||||
});
|
||||
|
||||
// Setup gears version
|
||||
$("#gears_uploader").pluploadQueue({
|
||||
// General settings
|
||||
runtimes : 'gears',
|
||||
url : 'upload.php',
|
||||
max_file_size : '10mb',
|
||||
chunk_size : '1mb',
|
||||
unique_names : true,
|
||||
filters : [
|
||||
{title : "Image files", extensions : "jpg,gif,png"},
|
||||
{title : "Zip files", extensions : "zip"}
|
||||
],
|
||||
|
||||
// Resize images on clientside if we can
|
||||
resize : {width : 320, height : 240, quality : 90}
|
||||
});
|
||||
|
||||
// Setup silverlight version
|
||||
$("#silverlight_uploader").pluploadQueue({
|
||||
// General settings
|
||||
runtimes : 'silverlight',
|
||||
url : 'upload.php',
|
||||
max_file_size : '10mb',
|
||||
chunk_size : '1mb',
|
||||
unique_names : true,
|
||||
filters : [
|
||||
{title : "Image files", extensions : "jpg,gif,png"},
|
||||
{title : "Zip files", extensions : "zip"}
|
||||
],
|
||||
|
||||
// Resize images on clientside if we can
|
||||
resize : {width : 320, height : 240, quality : 90},
|
||||
|
||||
// Silverlight settings
|
||||
silverlight_xap_url : '../../js/plupload.silverlight.xap'
|
||||
});
|
||||
|
||||
// Setup html5 version
|
||||
$("#html5_uploader").pluploadQueue({
|
||||
// General settings
|
||||
runtimes : 'html5',
|
||||
url : 'upload.php',
|
||||
max_file_size : '10mb',
|
||||
chunk_size : '1mb',
|
||||
unique_names : true,
|
||||
filters : [
|
||||
{title : "Image files", extensions : "jpg,gif,png"},
|
||||
{title : "Zip files", extensions : "zip"}
|
||||
],
|
||||
|
||||
// Resize images on clientside if we can
|
||||
resize : {width : 320, height : 240, quality : 90}
|
||||
});
|
||||
|
||||
// Setup browserplus version
|
||||
$("#browserplus_uploader").pluploadQueue({
|
||||
// General settings
|
||||
runtimes : 'browserplus',
|
||||
url : 'upload.php',
|
||||
max_file_size : '10mb',
|
||||
chunk_size : '1mb',
|
||||
unique_names : true,
|
||||
filters : [
|
||||
{title : "Image files", extensions : "jpg,gif,png"},
|
||||
{title : "Zip files", extensions : "zip"}
|
||||
],
|
||||
|
||||
// Resize images on clientside if we can
|
||||
resize : {width : 320, height : 240, quality : 90}
|
||||
});
|
||||
|
||||
// Setup html4 version
|
||||
$("#html4_uploader").pluploadQueue({
|
||||
// General settings
|
||||
runtimes : 'html4',
|
||||
url : 'upload.php',
|
||||
unique_names : true,
|
||||
filters : [
|
||||
{title : "Image files", extensions : "jpg,gif,png"},
|
||||
{title : "Zip files", extensions : "zip"}
|
||||
]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -1,158 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
In order to upload files to S3 using Flash runtime, one should start by placing crossdomain.xml into the bucket.
|
||||
crossdomain.xml can be as simple as this:
|
||||
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
|
||||
<cross-domain-policy>
|
||||
<allow-access-from domain="*" secure="false" />
|
||||
</cross-domain-policy>
|
||||
|
||||
In our tests SilverLight didn't require anything special and worked with this configuration just fine. It may fail back
|
||||
to the same crossdomain.xml as last resort.
|
||||
|
||||
!!!Important!!! Plupload UI Widget here, is used only for demo purposes and is not required for uploading to S3.
|
||||
*/
|
||||
|
||||
// important variables that will be used throughout this example
|
||||
$bucket = 'BUCKET';
|
||||
|
||||
// these can be found on your Account page, under Security Credentials > Access Keys
|
||||
$accessKeyId = 'ACCESS_KEY_ID';
|
||||
$secret = 'SECRET_ACCESS_KEY';
|
||||
|
||||
|
||||
// hash_hmac — Generate a keyed hash value using the HMAC method
|
||||
// (PHP 5 >= 5.1.2, PECL hash >= 1.1)
|
||||
if (!function_exists('hash_hmac')) :
|
||||
// based on: http://www.php.net/manual/en/function.sha1.php#39492
|
||||
function hash_hmac($algo, $data, $key, $raw_output = false)
|
||||
{
|
||||
$blocksize = 64;
|
||||
if (strlen($key) > $blocksize)
|
||||
$key = pack('H*', $algo($key));
|
||||
|
||||
$key = str_pad($key, $blocksize, chr(0x00));
|
||||
$ipad = str_repeat(chr(0x36), $blocksize);
|
||||
$opad = str_repeat(chr(0x5c), $blocksize);
|
||||
$hmac = pack('H*', $algo(($key^$opad) . pack('H*', $algo(($key^$ipad) . $data))));
|
||||
|
||||
return $raw_output ? $hmac : bin2hex($hmac);
|
||||
}
|
||||
endif;
|
||||
|
||||
// prepare policy
|
||||
$policy = base64_encode(json_encode(array(
|
||||
// ISO 8601 - date('c'); generates uncompatible date, so better do it manually
|
||||
'expiration' => date('Y-m-d\TH:i:s.000\Z', strtotime('+1 day')),
|
||||
'conditions' => array(
|
||||
array('bucket' => $bucket),
|
||||
array('acl' => 'public-read'),
|
||||
array('starts-with', '$key', ''),
|
||||
// for demo purposes we are accepting only images
|
||||
array('starts-with', '$Content-Type', 'image/'),
|
||||
// "Some versions of the Adobe Flash Player do not properly handle HTTP responses that have an empty body.
|
||||
// To configure POST to return a response that does not have an empty body, set success_action_status to 201.
|
||||
// When set, Amazon S3 returns an XML document with a 201 status code."
|
||||
// http://docs.amazonwebservices.com/AmazonS3/latest/dev/HTTPPOSTFlash.html
|
||||
array('success_action_status' => '201'),
|
||||
// Plupload internally adds name field, so we need to mention it here
|
||||
array('starts-with', '$name', ''),
|
||||
// One more field to take into account: Filename - gets silently sent by FileReference.upload() in Flash
|
||||
// http://docs.amazonwebservices.com/AmazonS3/latest/dev/HTTPPOSTFlash.html
|
||||
array('starts-with', '$Filename', ''),
|
||||
)
|
||||
)));
|
||||
|
||||
// sign policy
|
||||
$signature = base64_encode(hash_hmac('sha1', $policy, $secret, true));
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
||||
<title>Plupload to Amazon S3 Example</title>
|
||||
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family:Verdana, Geneva, sans-serif;
|
||||
font-size:13px;
|
||||
color:#333;
|
||||
background:url(../bg.jpg);
|
||||
}
|
||||
</style>
|
||||
|
||||
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/base/jquery-ui.css" type="text/css" />
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
|
||||
<script src=" https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>
|
||||
|
||||
<!-- Load plupload and all it's runtimes and finally the UI widget -->
|
||||
<link rel="stylesheet" href="../../js/jquery.ui.plupload/css/jquery.ui.plupload.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript" src="../../js/plupload.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.gears.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.silverlight.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.flash.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.browserplus.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.html4.js"></script>
|
||||
<script type="text/javascript" src="../../js/plupload.html5.js"></script>
|
||||
<script type="text/javascript" src="../../js/jquery.ui.plupload/jquery.ui.plupload.js"></script>
|
||||
<!--<script type="text/javascript" src="http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js"></script>-->
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>Plupload to Amazon S3 Example</h1>
|
||||
|
||||
<div id="uploader">
|
||||
<p>You browser doesn't have Flash, Silverlight, Gears, BrowserPlus or HTML5 support.</p>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
// Convert divs to queue widgets when the DOM is ready
|
||||
$(function() {
|
||||
$("#uploader").plupload({
|
||||
runtimes : 'flash,silverlight',
|
||||
url : 'http://<?php echo $bucket; ?>.s3.amazonaws.com/',
|
||||
max_file_size : '10mb',
|
||||
|
||||
multipart: true,
|
||||
multipart_params: {
|
||||
'key': '${filename}', // use filename as a key
|
||||
'Filename': '${filename}', // adding this to keep consistency across the runtimes
|
||||
'acl': 'public-read',
|
||||
'Content-Type': 'image/jpeg',
|
||||
'success_action_status': '201',
|
||||
'AWSAccessKeyId' : '<?php echo $accessKeyId; ?>',
|
||||
'policy': '<?php echo $policy; ?>',
|
||||
'signature': '<?php echo $signature; ?>'
|
||||
},
|
||||
|
||||
// !!!Important!!!
|
||||
// this is not recommended with S3, since it will force Flash runtime into the mode, with no progress indication
|
||||
//resize : {width : 800, height : 600, quality : 60}, // Resize images on clientside, if possible
|
||||
|
||||
// optional, but better be specified directly
|
||||
file_data_name: 'file',
|
||||
|
||||
// re-use widget (not related to S3, but to Plupload UI Widget)
|
||||
multiple_queues: true,
|
||||
|
||||
// Specify what files to browse for
|
||||
filters : [
|
||||
{title : "JPEG files", extensions : "jpg"}
|
||||
],
|
||||
|
||||
// Flash settings
|
||||
flash_swf_url : '../../js/plupload.flash.swf',
|
||||
|
||||
// Silverlight settings
|
||||
silverlight_xap_url : '../../js/plupload.silverlight.xap'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -1,132 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* upload.php
|
||||
*
|
||||
* Copyright 2009, Moxiecode Systems AB
|
||||
* Released under GPL License.
|
||||
*
|
||||
* License: http://www.plupload.com/license
|
||||
* Contributing: http://www.plupload.com/contributing
|
||||
*/
|
||||
|
||||
// HTTP headers for no cache etc
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
// Settings
|
||||
$targetDir = ini_get("upload_tmp_dir") . DIRECTORY_SEPARATOR . "plupload";
|
||||
//$targetDir = 'uploads';
|
||||
|
||||
$cleanupTargetDir = true; // Remove old files
|
||||
$maxFileAge = 5 * 3600; // Temp file age in seconds
|
||||
|
||||
// 5 minutes execution time
|
||||
@set_time_limit(5 * 60);
|
||||
|
||||
// Uncomment this one to fake upload time
|
||||
// usleep(5000);
|
||||
|
||||
// Get parameters
|
||||
$chunk = isset($_REQUEST["chunk"]) ? intval($_REQUEST["chunk"]) : 0;
|
||||
$chunks = isset($_REQUEST["chunks"]) ? intval($_REQUEST["chunks"]) : 0;
|
||||
$fileName = isset($_REQUEST["name"]) ? $_REQUEST["name"] : '';
|
||||
|
||||
// Clean the fileName for security reasons
|
||||
$fileName = preg_replace('/[^\w\._]+/', '_', $fileName);
|
||||
|
||||
// Make sure the fileName is unique but only if chunking is disabled
|
||||
if ($chunks < 2 && file_exists($targetDir . DIRECTORY_SEPARATOR . $fileName)) {
|
||||
$ext = strrpos($fileName, '.');
|
||||
$fileName_a = substr($fileName, 0, $ext);
|
||||
$fileName_b = substr($fileName, $ext);
|
||||
|
||||
$count = 1;
|
||||
while (file_exists($targetDir . DIRECTORY_SEPARATOR . $fileName_a . '_' . $count . $fileName_b))
|
||||
$count++;
|
||||
|
||||
$fileName = $fileName_a . '_' . $count . $fileName_b;
|
||||
}
|
||||
|
||||
$filePath = $targetDir . DIRECTORY_SEPARATOR . $fileName;
|
||||
|
||||
// Create target dir
|
||||
if (!file_exists($targetDir))
|
||||
@mkdir($targetDir);
|
||||
|
||||
// Remove old temp files
|
||||
if ($cleanupTargetDir && is_dir($targetDir) && ($dir = opendir($targetDir))) {
|
||||
while (($file = readdir($dir)) !== false) {
|
||||
$tmpfilePath = $targetDir . DIRECTORY_SEPARATOR . $file;
|
||||
|
||||
// Remove temp file if it is older than the max age and is not the current file
|
||||
if (preg_match('/\.part$/', $file) && (filemtime($tmpfilePath) < time() - $maxFileAge) && ($tmpfilePath != "{$filePath}.part")) {
|
||||
@unlink($tmpfilePath);
|
||||
}
|
||||
}
|
||||
|
||||
closedir($dir);
|
||||
} else
|
||||
die('{"jsonrpc" : "2.0", "error" : {"code": 100, "message": "Failed to open temp directory."}, "id" : "id"}');
|
||||
|
||||
|
||||
// Look for the content type header
|
||||
if (isset($_SERVER["HTTP_CONTENT_TYPE"]))
|
||||
$contentType = $_SERVER["HTTP_CONTENT_TYPE"];
|
||||
|
||||
if (isset($_SERVER["CONTENT_TYPE"]))
|
||||
$contentType = $_SERVER["CONTENT_TYPE"];
|
||||
|
||||
// Handle non multipart uploads older WebKit versions didn't support multipart in HTML5
|
||||
if (strpos($contentType, "multipart") !== false) {
|
||||
if (isset($_FILES['file']['tmp_name']) && is_uploaded_file($_FILES['file']['tmp_name'])) {
|
||||
// Open temp file
|
||||
$out = fopen("{$filePath}.part", $chunk == 0 ? "wb" : "ab");
|
||||
if ($out) {
|
||||
// Read binary input stream and append it to temp file
|
||||
$in = fopen($_FILES['file']['tmp_name'], "rb");
|
||||
|
||||
if ($in) {
|
||||
while ($buff = fread($in, 4096))
|
||||
fwrite($out, $buff);
|
||||
} else
|
||||
die('{"jsonrpc" : "2.0", "error" : {"code": 101, "message": "Failed to open input stream."}, "id" : "id"}');
|
||||
fclose($in);
|
||||
fclose($out);
|
||||
@unlink($_FILES['file']['tmp_name']);
|
||||
} else
|
||||
die('{"jsonrpc" : "2.0", "error" : {"code": 102, "message": "Failed to open output stream."}, "id" : "id"}');
|
||||
} else
|
||||
die('{"jsonrpc" : "2.0", "error" : {"code": 103, "message": "Failed to move uploaded file."}, "id" : "id"}');
|
||||
} else {
|
||||
// Open temp file
|
||||
$out = fopen("{$filePath}.part", $chunk == 0 ? "wb" : "ab");
|
||||
if ($out) {
|
||||
// Read binary input stream and append it to temp file
|
||||
$in = fopen("php://input", "rb");
|
||||
|
||||
if ($in) {
|
||||
while ($buff = fread($in, 4096))
|
||||
fwrite($out, $buff);
|
||||
} else
|
||||
die('{"jsonrpc" : "2.0", "error" : {"code": 101, "message": "Failed to open input stream."}, "id" : "id"}');
|
||||
|
||||
fclose($in);
|
||||
fclose($out);
|
||||
} else
|
||||
die('{"jsonrpc" : "2.0", "error" : {"code": 102, "message": "Failed to open output stream."}, "id" : "id"}');
|
||||
}
|
||||
|
||||
// Check if file has been uploaded
|
||||
if (!$chunks || $chunk == $chunks - 1) {
|
||||
// Strip the temp .part suffix off
|
||||
rename("{$filePath}.part", $filePath);
|
||||
}
|
||||
|
||||
|
||||
// Return JSON-RPC response
|
||||
die('{"jsonrpc" : "2.0", "result" : null, "id" : "id"}');
|
||||
|
||||
?>
|
||||
@ -1,14 +0,0 @@
|
||||
// .po file like language pack
|
||||
plupload.addI18n({
|
||||
'Select files' : 'Vyberte soubory',
|
||||
'Add files to the upload queue and click the start button.' : 'Přidejte soubory do fronty a pak spusťte nahrávání.',
|
||||
'Filename' : 'Název souboru',
|
||||
'Status' : 'Status',
|
||||
'Size' : 'Velikost',
|
||||
'Add Files' : 'Přidat soubory',
|
||||
'Stop current upload' : 'Zastavit nahrávání',
|
||||
'Start uploading queue' : 'Spustit frontu nahrávání',
|
||||
'Drag files here.' : 'Sem přetáhněte soubory.',
|
||||
'Start Upload': 'Spustit nahrávání',
|
||||
'Uploaded %d/%d files': 'Nahráno %d/%d souborů'
|
||||
});
|
||||
@ -1,12 +0,0 @@
|
||||
// .po file like language pack
|
||||
plupload.addI18n({
|
||||
'Select files' : 'Vælg filer',
|
||||
'Add files to the upload queue and click the start button.' : 'Tilføj filer til køen, og tryk på start.',
|
||||
'Filename' : 'Filnavn',
|
||||
'Status' : 'Status',
|
||||
'Size' : 'Størrelse',
|
||||
'Add files' : 'Tilføj filer',
|
||||
'Stop current upload' : 'Stop upload',
|
||||
'Start uploading queue' : 'Start upload',
|
||||
'Drag files here.' : 'Træk filer her.'
|
||||
});
|
||||
@ -1,24 +0,0 @@
|
||||
// German
|
||||
plupload.addI18n({
|
||||
'Select files' : 'Dateien hochladen',
|
||||
'Add files to the upload queue and click the start button.' : 'Dateien hinzufügen und auf \'Hochladen\' klicken.',
|
||||
'Filename' : 'Dateiname',
|
||||
'Status' : 'Status',
|
||||
'Size' : 'Größe',
|
||||
'Add files' : 'Dateien', // hinzufügen',
|
||||
'Stop current upload' : 'Aktuelles Hochladen stoppen',
|
||||
'Start uploading queue' : 'Hochladen starten',
|
||||
'Uploaded %d/%d files': '%d/%d Dateien sind hochgeladen',
|
||||
'N/A' : 'Nicht verfügbar',
|
||||
'Drag files here.' : 'Ziehen Sie die Dateien hier hin',
|
||||
'File extension error.': 'Fehler bei Dateiendung',
|
||||
'File size error.': 'Fehler bei Dateigröße',
|
||||
'Init error.': 'Initialisierungsfehler',
|
||||
'HTTP Error.': 'HTTP-Fehler',
|
||||
'Security error.': 'Sicherheitsfehler',
|
||||
'Generic error.': 'Typischer Fehler',
|
||||
'IO error.': 'Ein/Ausgabe-Fehler',
|
||||
'Stop Upload': 'Hochladen stoppen',
|
||||
'Start upload': 'Hochladen',
|
||||
'%d files queued': '%d Dateien in der Warteschlange'
|
||||
});
|
||||
@ -1,14 +0,0 @@
|
||||
// Greek
|
||||
plupload.addI18n({
|
||||
'Select files' : 'Επιλέξτε Αρχεία',
|
||||
'Add files to the upload queue and click the start button.' : 'Προσθήκη αρχείων στην ουρά μεταφόρτωσης',
|
||||
'Filename' : 'Όνομα αρχείου',
|
||||
'Status' : 'Κατάσταση',
|
||||
'Size' : 'Μέγεθος',
|
||||
'Add Files' : 'Προσθέστε αρχεία',
|
||||
'Stop current upload' : 'Διακοπή τρέχουσας μεταφόρτωσης',
|
||||
'Start uploading queue' : 'Εκκίνηση μεταφόρτωσης ουράς αρχείων',
|
||||
'Drag files here.' : 'Σύρετε αρχεία εδώ',
|
||||
'Start Upload': 'Εκκίνηση μεταφόρτωσης',
|
||||
'Uploaded %d/%d files': 'Ανέβηκαν %d/%d αρχεία'
|
||||
});
|
||||
@ -1,25 +0,0 @@
|
||||
// Spanish
|
||||
plupload.addI18n({
|
||||
'Select files' : 'Elija archivos:',
|
||||
'Add files to the upload queue and click the start button.' : 'Agregue archivos a la cola de subida y haga click en el boton de iniciar.',
|
||||
'Filename' : 'Nombre de archivo',
|
||||
'Status' : 'Estado',
|
||||
'Size' : 'Tamaño',
|
||||
'Add files' : 'Agregue archivos',
|
||||
'Stop current upload' : 'Detener subida actual',
|
||||
'Start uploading queue' : 'Iniciar subida de cola',
|
||||
'Uploaded %d/%d files': 'Subidos %d/%d archivos',
|
||||
'N/A' : 'No disponible',
|
||||
'Drag files here.' : 'Arrastre archivos aquí',
|
||||
'File extension error.': 'Error de extensión de archivo.',
|
||||
'File size error.': 'Error de tamaño de archivo.',
|
||||
'Init error.': 'Error de inicialización.',
|
||||
'HTTP Error.': 'Error de HTTP.',
|
||||
'Security error.': 'Error de seguridad.',
|
||||
'Generic error.': 'Error genérico.',
|
||||
'IO error.': 'Error de entrada/salida.',
|
||||
'Stop Upload': 'Detener Subida.',
|
||||
'Add Files': 'Agregar Archivos',
|
||||
'Start Upload': 'Comenzar Subida.',
|
||||
'%d files queued': '%d archivos en cola.'
|
||||
});
|
||||
@ -1,33 +0,0 @@
|
||||
// Estonian translation, et.js
|
||||
plupload.addI18n({
|
||||
'Select files' : 'Vali faile',
|
||||
'Add files to the upload queue and click the start button.' : 'Lisa failid üleslaadimise järjekorda ja klõpsa alustamise nupule.',
|
||||
'Filename' : 'Failinimi',
|
||||
'Status' : 'Olek',
|
||||
'Size' : 'Suurus',
|
||||
'Add files' : 'Lisa faile',
|
||||
'Stop current upload' : 'Praeguse üleslaadimise peatamine',
|
||||
'Start uploading queue' : 'Järjekorras ootavate failide üleslaadimise alustamine',
|
||||
'Drag files here.' : 'Lohista failid siia.',
|
||||
'Start upload' : 'Alusta üleslaadimist',
|
||||
'Uploaded %d/%d files': 'Üles laaditud %d/%d',
|
||||
'Stop upload': 'Peata üleslaadimine',
|
||||
'Start upload': 'Alusta üleslaadimist',
|
||||
'%d files queued': 'Järjekorras on %d faili',
|
||||
'File: %s': 'Fail: %s',
|
||||
'Close': 'Sulge',
|
||||
'Using runtime: ': 'Kasutatakse varianti: ',
|
||||
'File: %f, size: %s, max file size: %m': 'Fail: %f, suurus: %s, suurim failisuurus: %m',
|
||||
'Upload element accepts only %d file(s) at a time. Extra files were stripped.': 'Üleslaadimise element saab vastu võtta ainult %d faili ühe korraga. Ülejäänud failid jäetakse laadimata.',
|
||||
'Upload URL might be wrong or doesn\'t exist': 'Üleslaadimise URL võib olla vale või seda pole',
|
||||
'Error: File too large: ': 'Viga: fail on liiga suur: ',
|
||||
'Error: Invalid file extension: ': 'Viga: sobimatu faililaiend: ',
|
||||
'File extension error.': 'Faililaiendi viga.',
|
||||
'File size error.': 'Failisuuruse viga.',
|
||||
'File count error.': 'Failide arvu viga.',
|
||||
'Init error.': 'Lähtestamise viga.',
|
||||
'HTTP Error.': 'HTTP ühenduse viga.',
|
||||
'Security error.': 'Turvaviga.',
|
||||
'Generic error.': 'Üldine viga.',
|
||||
'IO error.': 'S/V (I/O) viga.'
|
||||
});
|
||||
@ -1,37 +0,0 @@
|
||||
// Persian
|
||||
plupload.addI18n({
|
||||
'Select files' : 'انتخاب فایل',
|
||||
'Add files to the upload queue and click the start button.' : 'اضافه کنید فایل ها را به صف آپلود و دکمه شروع را کلیک کنید.',
|
||||
'Filename' : 'نام فایل',
|
||||
'Status' : 'وضعیت',
|
||||
'Size' : 'سایز',
|
||||
'Add Files' : 'افزودن فایل',
|
||||
'Stop Upload' : 'توقف انتقال',
|
||||
'Start Upload' : 'شروع انتقال',
|
||||
'Add files' : 'افزودن فایل',
|
||||
'Add files.' : 'افزودن فایل',
|
||||
'Stop current upload' : 'توقف انتقال جاری',
|
||||
'Start uploading queue' : 'شروع صف انتقال',
|
||||
'Stop upload' : 'توقف انتقال',
|
||||
'Start upload' : 'شروع انتقال',
|
||||
'Uploaded %d/%d files': 'منتقل شد %d/%d از فایلها',
|
||||
'N/A' : 'N/A',
|
||||
'Drag files here.' : 'بکشید فایل ها رو به اینجا',
|
||||
'File extension error.': 'خطا پیشوند فایل',
|
||||
'File size error.': 'خطای سایز فایل',
|
||||
'File count error.': 'خطای تعداد فایل',
|
||||
'Init error.': 'خطا در استارت اسکریپت',
|
||||
'HTTP Error.': 'HTTP خطای',
|
||||
'Security error.': 'خطای امنیتی',
|
||||
'Generic error.': 'خطای عمومی',
|
||||
'IO error.': 'IO خطای',
|
||||
'File: %s': ' فایل ها : %s',
|
||||
'Close': 'بستن',
|
||||
'%d files queued': '%d فایل در صف',
|
||||
'Using runtime: ': 'استفاده میکنید از : ',
|
||||
'File: %f, size: %s, max file size: %m': فایل: %f, سایز: %s, بزرگترین سایز فایل: %m',
|
||||
'Upload element accepts only %d file(s) at a time. Extra files were stripped.': 'عنصر بارگذار فقط %d فایل رو در یک زمان می پذیرد. سایر فایل ها مجرد از این موضوع هستند.',
|
||||
'Upload URL might be wrong or doesn\'t exist': 'آدرس آپلود اشتباه می باشد یا وجود ندارد',
|
||||
'Error: File too large: ': 'خطا: فایل حجیم است :: ',
|
||||
'Error: Invalid file extension: ': 'خطا پسوند فایل معتبر نمی باشد : '
|
||||
});
|
||||
@ -1,33 +0,0 @@
|
||||
// .fi file like language pack
|
||||
plupload.addI18n({
|
||||
'Select files' : 'Valitse tiedostoja',
|
||||
'Add files to the upload queue and click the start button.' : 'Lisää tiedostoja latausjonoon ja klikkaa aloita-nappia.',
|
||||
'Filename' : 'Tiedostonimi',
|
||||
'Status' : 'Tila',
|
||||
'Size' : 'Koko',
|
||||
'Add files' : 'Lisää tiedostoja',
|
||||
'Stop current upload' : 'Pysäytä nykyinen lataus',
|
||||
'Start uploading queue' : 'Aloita jonon lataus',
|
||||
'Drag files here.' : 'Raahaa tiedostot tänne.',
|
||||
'Start upload' : 'Aloita lataus',
|
||||
'Uploaded %d/%d files': 'Ladattu %d/%d tiedostoa',
|
||||
'Stop upload': 'Pysäytä lataus',
|
||||
'Start upload': 'Aloita lataus',
|
||||
'%d files queued': '%d tiedostoa jonossa',
|
||||
'File: %s': 'Tiedosto: %s',
|
||||
'Close': 'Sulje',
|
||||
'Using runtime: ': 'Käytetään ajonaikaista: ',
|
||||
'File: %f, size: %s, max file size: %m': 'Tiedosto: %f, koko: %s, maksimi tiedostokoko: %m',
|
||||
'Upload element accepts only %d file(s) at a time. Extra files were stripped.': 'Latauselementti sallii ladata vain %d tiedosto(a) kerrallaan. Ylimääräiset tiedostot ohitettiin.',
|
||||
'Upload URL might be wrong or doesn\'t exist': 'Lataus URL saattaa olla väärin tai ei ole olemassa',
|
||||
'Error: File too large: ': 'Virhe: Tiedosto liian suuri: ',
|
||||
'Error: Invalid file extension: ': 'Virhe: Kelpaamaton tiedostopääte: ',
|
||||
'File extension error.': 'Tiedostopäätevirhe.',
|
||||
'File size error.': 'Tiedostokokovirhe.',
|
||||
'File count error.': 'Tiedostolaskentavirhe.',
|
||||
'Init error.': 'Init virhe.',
|
||||
'HTTP Error.': 'HTTP virhe.',
|
||||
'Security error.': 'Tietoturvavirhe.',
|
||||
'Generic error.': 'Yleinen virhe.',
|
||||
'IO error.': 'I/O virhe.'
|
||||
});
|
||||
@ -1,35 +0,0 @@
|
||||
// French-Canadian
|
||||
plupload.addI18n({
|
||||
'Select files' : 'Sélectionnez les fichiers',
|
||||
'Add files to the upload queue and click the start button.' : 'Ajoutez des fichiers à la file d\'attente et appuyez sur le bouton démarrer.',
|
||||
'Filename' : 'Nom du fichier',
|
||||
'Status' : 'Statut',
|
||||
'Size' : 'Taille',
|
||||
'Add files' : 'Ajouter Fichiers',
|
||||
'Stop current upload' : 'Arrêter le téléversement actuel',
|
||||
'Start uploading queue' : 'Démarrer le téléversement',
|
||||
'Uploaded %d/%d files': '%d/%d fichiers envoyés',
|
||||
'N/A' : 'Non applicable',
|
||||
'Drag files here.' : 'Glisser-déposer les fichiers ici',
|
||||
'File extension error.': 'Erreur d\'extension de fichier',
|
||||
'File size error.': 'Erreur de taille de fichier',
|
||||
'Init error.': 'Erreur d\'initialisation',
|
||||
'HTTP Error.': 'Erreur HTTP',
|
||||
'Security error.': 'Erreur de sécurité',
|
||||
'Generic error.': 'Erreur commune',
|
||||
'IO error.': 'Erreur E/S',
|
||||
'Stop Upload': 'Arrêter le téléversement',
|
||||
'Add Files': 'Ajouter des fichiers',
|
||||
'Start upload': 'Démarrer le téléversement',
|
||||
'%d files queued': '%d fichiers en attente',
|
||||
'File: %s':'Fichier: %s',
|
||||
'Close':'Fermer',
|
||||
'Using runtime:':'Moteur logiciel:',
|
||||
'File: %f, size: %s, max file size: %m':'Fichier: %f, poids: %s, poids maximal: %m',
|
||||
'Upload element accepts only %d file(s) at a time. Extra files were stripped.':'La file accepte %d fichier(s) à la fois. Les fichiers en trop sont ignorés',
|
||||
'Upload URL might be wrong or doesn\'t exist':'L\'URL de téléversement est erroné ou inexistant',
|
||||
'Error: File to large: ':'Fichier trop volumineux: ',
|
||||
'Error: Invalid file extension: ':'Extension de fichier invalide: ',
|
||||
'File size error.':'Erreur de taile de fichier',
|
||||
'File count error.':'Erreur de décompte des fichiers'
|
||||
});
|
||||
@ -1,25 +0,0 @@
|
||||
// French
|
||||
plupload.addI18n({
|
||||
'Select files' : 'Sélectionnez les fichiers',
|
||||
'Add files to the upload queue and click the start button.' : 'Ajoutez des fichiers à la file et appuyez sur le bouton démarrer.',
|
||||
'Filename' : 'Nom de fichier',
|
||||
'Status' : 'Status',
|
||||
'Size' : 'Taille',
|
||||
'Add files' : 'Ajouter Fichiers',
|
||||
'Stop current upload' : 'Arrêter l\'envoi en cours',
|
||||
'Start uploading queue' : 'Démarrer l\'envoi',
|
||||
'Uploaded %d/%d files': '%d/%d fichiers envoyés',
|
||||
'N/A' : 'Non applicable',
|
||||
'Drag files here.' : 'Déposer les fichiers ici.',
|
||||
'File extension error.': 'Erreur extension fichier',
|
||||
'File size error.': 'Erreur taille fichier.',
|
||||
'Init error.': 'Erreur d\'initialisation.',
|
||||
'HTTP Error.': 'Erreur HTTP.',
|
||||
'Security error.': 'Erreur de sécurité.',
|
||||
'Generic error.': 'Erreur générique.',
|
||||
'IO error.': 'Erreur E/S.',
|
||||
'Stop Upload': 'Arrêter les envois.',
|
||||
'Add Files': 'Ajouter des fichiers',
|
||||
'Start Upload': 'Démarrer les envois.',
|
||||
'%d files queued': '%d fichiers en attente.'
|
||||
});
|
||||
@ -1,25 +0,0 @@
|
||||
// Croatian
|
||||
plupload.addI18n({
|
||||
'Select files': 'Izaberite datoteke:',
|
||||
'Add files to the upload queue and click the start button.': 'Dodajte datoteke u listu i kliknite Upload.',
|
||||
'Filename': 'Ime datoteke',
|
||||
'Status': 'Status',
|
||||
'Size': 'Veličina',
|
||||
'Add files': 'Dodajte datoteke',
|
||||
'Stop current upload': 'Zaustavi trenutan upload',
|
||||
'Start uploading queue': 'Pokreni Upload',
|
||||
'Uploaded %d/%d files': 'Uploadano %d/%d datoteka',
|
||||
'N/A': 'N/A',
|
||||
'Drag files here.': 'Dovucite datoteke ovdje',
|
||||
'File extension error.': 'Greška ekstenzije datoteke.',
|
||||
'File size error.': 'Greška veličine datoteke.',
|
||||
'Init error.': 'Greška inicijalizacije.',
|
||||
'HTTP Error.': 'HTTP greška.',
|
||||
'Security error.': 'Sigurnosna greška.',
|
||||
'Generic error.': 'Generička greška.',
|
||||
'IO error.': 'I/O greška.',
|
||||
'Stop Upload': 'Zaustavi upload.',
|
||||
'Add Files': 'Dodaj datoteke',
|
||||
'Start Upload': 'Pokreni upload.',
|
||||
'%d files queued': '%d datoteka na čekanju.'
|
||||
});
|
||||
@ -1,33 +0,0 @@
|
||||
// Hungarian
|
||||
plupload.addI18n({
|
||||
'Select files' : 'Fájlok kiválasztása',
|
||||
'Add files to the upload queue and click the start button.' : 'Válaszd ki a fájlokat, majd kattints az Indítás gombra.',
|
||||
'Filename' : 'Fájlnév',
|
||||
'Status' : 'Állapot',
|
||||
'Size' : 'Méret',
|
||||
'Add files' : 'Hozzáadás',
|
||||
'Stop current upload' : 'Jelenlegi feltöltés megszakítása',
|
||||
'Start uploading queue' : 'Várakozási sor feltöltésének indítása',
|
||||
'Uploaded %d/%d files': 'Feltöltött fájlok: %d/%d',
|
||||
'N/A': 'Nem elérhető',
|
||||
'Drag files here.' : 'Húzd ide a fájlokat.',
|
||||
'Stop upload': 'Feltöltés megszakítása',
|
||||
'Start upload': 'Indítás',
|
||||
'%d files queued': '%d fájl sorbaállítva',
|
||||
'File: %s': 'Fájl: %s',
|
||||
'Close': 'Bezárás',
|
||||
'Using runtime: ': 'Használt runtime: ',
|
||||
'File: %f, size: %s, max file size: %m': 'Fájl: %f, méret: %s, maximális fájlméret: %m',
|
||||
'Upload element accepts only %d file(s) at a time. Extra files were stripped.': 'A feltöltés egyszerre csak %d fájlt fogad el, a többi fájl nem lesz feltöltve.',
|
||||
'Upload URL might be wrong or doesn\'t exist': 'A megadott URL hibás vagy nem létezik',
|
||||
'Error: File too large: ': 'Hiba: A fájl túl nagy: ',
|
||||
'Error: Invalid file extension: ': 'Hiba: Érvénytelen fájlkiterjesztés: ',
|
||||
'File extension error.': 'Hibás fájlkiterjesztés.',
|
||||
'File size error.': 'Hibás fájlméret.',
|
||||
'File count error.': 'A fájlok számával kapcsolatos hiba.',
|
||||
'Init error.': 'Init hiba.',
|
||||
'HTTP Error.': 'HTTP hiba.',
|
||||
'Security error.': 'Biztonsági hiba.',
|
||||
'Generic error.': 'Általános hiba.',
|
||||
'IO error.': 'I/O hiba.'
|
||||
});
|
||||
@ -1,24 +0,0 @@
|
||||
// Italian
|
||||
plupload.addI18n({
|
||||
'Select files' : 'Seleziona i files',
|
||||
'Add files to the upload queue and click the start button.' : 'Aggiungi i file alla coda di caricamento e clicca il pulsante di avvio.',
|
||||
'Filename' : 'Nome file',
|
||||
'Status' : 'Stato',
|
||||
'Size' : 'Dimensione',
|
||||
'Add Files' : 'Aggiungi file',
|
||||
'Stop current upload' : 'Interrompi il caricamento',
|
||||
'Start uploading queue' : 'Avvia il caricamento',
|
||||
'Uploaded %d/%d files': 'Caricati %d/%d file',
|
||||
'N/A' : 'N/D',
|
||||
'Drag files here.' : 'Trascina i file qui.',
|
||||
'File extension error.': 'Errore estensione file.',
|
||||
'File size error.': 'Errore dimensione file.',
|
||||
'Init error.': 'Errore inizializzazione.',
|
||||
'HTTP Error.': 'Errore HTTP.',
|
||||
'Security error.': 'Errore sicurezza.',
|
||||
'Generic error.': 'Errore generico.',
|
||||
'IO error.': 'Errore IO.',
|
||||
'Stop Upload': 'Ferma Upload',
|
||||
'Start Upload': 'Inizia Upload',
|
||||
'%d files queued': '%d file in lista'
|
||||
});
|
||||
@ -1,37 +0,0 @@
|
||||
// Japanese
|
||||
plupload.addI18n({
|
||||
'Select files' : 'ファイル選択',
|
||||
'Add files to the upload queue and click the start button.' : 'ファイルをアップロードキューに追加してスタートボタンをクリックしてください',
|
||||
'Filename' : 'ファイル名',
|
||||
'Status' : 'ステータス',
|
||||
'Size' : 'サイズ',
|
||||
'Add Files' : 'ファイルを追加',
|
||||
'Stop Upload' : 'アップロード停止',
|
||||
'Start Upload' : 'アップロード',
|
||||
'Add files' : 'ファイルを追加',
|
||||
'Add files.' : 'ファイルを追加',
|
||||
'Stop current upload' : '現在のアップロードを停止',
|
||||
'Start uploading queue' : 'アップロード',
|
||||
'Stop upload' : 'アップロード停止',
|
||||
'Start upload' : 'アップロード',
|
||||
'Uploaded %d/%d files': 'アップロード中 %d/%d ファイル',
|
||||
'N/A' : 'N/A',
|
||||
'Drag files here.' : 'ここにファイルをドラッグ',
|
||||
'File extension error.': 'ファイル拡張子エラー',
|
||||
'File size error.': 'ファイルサイズエラー',
|
||||
'File count error.': 'ファイル数エラー',
|
||||
'Init error.': 'イニシャライズエラー',
|
||||
'HTTP Error.': 'HTTP エラー',
|
||||
'Security error.': 'セキュリティエラー',
|
||||
'Generic error.': 'エラー',
|
||||
'IO error.': 'IO エラー',
|
||||
'File: %s': 'ファイル: %s',
|
||||
'Close': '閉じる',
|
||||
'%d files queued': '%d ファイルが追加されました',
|
||||
'Using runtime: ': 'モード: ',
|
||||
'File: %f, size: %s, max file size: %m': 'ファイル: %f, サイズ: %s, 最大ファイルサイズ: %m',
|
||||
'Upload element accepts only %d file(s) at a time. Extra files were stripped.': 'アップロード可能なファイル数は %d です。余分なファイルは削除されました',
|
||||
'Upload URL might be wrong or doesn\'t exist': 'アップロード先の URL が存在しません',
|
||||
'Error: File too large: ': 'エラー: サイズが大きすぎます: ',
|
||||
'Error: Invalid file extension: ': 'エラー: 拡張子が許可されていません: '
|
||||
});
|
||||