From 31486376749d74aa1f8a561f291876887533a203 Mon Sep 17 00:00:00 2001 From: MakeHui Date: Wed, 3 May 2023 10:31:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20web/uploadBook,=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=80=89=E6=8B=A9=E6=96=87=E4=BB=B6=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/web/uploadBook/css/stylewf.css | 49 - .../assets/web/uploadBook/css/wifi_send.css | 356 +++++ .../assets/web/uploadBook/i/wifi_logo_3.svg | 14 - .../main/assets/web/uploadBook/i/wifi_tz0.png | Bin 3639 -> 0 bytes .../main/assets/web/uploadBook/img/close.png | Bin 0 -> 1018 bytes .../{i/wifi_logo_3.png => img/logo.png} | Bin .../assets/web/uploadBook/img/notice01.png | Bin 0 -> 4348 bytes .../assets/web/uploadBook/img/notice02.png | Bin 0 -> 9496 bytes .../main/assets/web/uploadBook/img/right.png | Bin 0 -> 1124 bytes .../main/assets/web/uploadBook/img/safari.png | Bin 0 -> 10146 bytes .../main/assets/web/uploadBook/img/wrong.png | Bin 0 -> 1345 bytes app/src/main/assets/web/uploadBook/index.html | 393 +++++- .../main/assets/web/uploadBook/js/common.js | 307 ++--- .../assets/web/uploadBook/js/html5_fun.js | 446 +++---- .../web/uploadBook/js/jquery-1.4.2.min.js | 154 +++ .../assets/web/uploadBook/js/langSwich.js | 111 -- .../main/assets/web/uploadBook/js/swf_fun.js | 184 --- .../assets/web/uploadBook/js/swfupload.js | 1146 ----------------- 18 files changed, 1217 insertions(+), 1943 deletions(-) delete mode 100644 app/src/main/assets/web/uploadBook/css/stylewf.css create mode 100644 app/src/main/assets/web/uploadBook/css/wifi_send.css delete mode 100644 app/src/main/assets/web/uploadBook/i/wifi_logo_3.svg delete mode 100644 app/src/main/assets/web/uploadBook/i/wifi_tz0.png create mode 100644 app/src/main/assets/web/uploadBook/img/close.png rename app/src/main/assets/web/uploadBook/{i/wifi_logo_3.png => img/logo.png} (100%) create mode 100644 app/src/main/assets/web/uploadBook/img/notice01.png create mode 100644 app/src/main/assets/web/uploadBook/img/notice02.png create mode 100644 app/src/main/assets/web/uploadBook/img/right.png create mode 100644 app/src/main/assets/web/uploadBook/img/safari.png create mode 100644 app/src/main/assets/web/uploadBook/img/wrong.png create mode 100644 app/src/main/assets/web/uploadBook/js/jquery-1.4.2.min.js delete mode 100644 app/src/main/assets/web/uploadBook/js/langSwich.js delete mode 100644 app/src/main/assets/web/uploadBook/js/swf_fun.js delete mode 100644 app/src/main/assets/web/uploadBook/js/swfupload.js diff --git a/app/src/main/assets/web/uploadBook/css/stylewf.css b/app/src/main/assets/web/uploadBook/css/stylewf.css deleted file mode 100644 index ff8d10457..000000000 --- a/app/src/main/assets/web/uploadBook/css/stylewf.css +++ /dev/null @@ -1,49 +0,0 @@ -@charset "utf-8"; -/* CSS Document */ -body, div, p, ul, h1, h2, h3, h4, h5,span , img,dl,dt,dd{ margin: 0; padding: 0; } -html, body { height: 100%;} -body { font-family: Helvetica,'微软雅黑';background:#03a9f4 - /*url(../i/bg.jpg)*/; font-size: 14px; color: #313131; } -h1, h2, h3, h4, h5 {margin:0;padding:0;} -em { font-style: normal; } -ul, ol, li { list-style: none } -img { border: 0 none } -a { text-decoration: none; color: #858585; } -.fl{float:left;} -.fr{float:right;} -/*layut css*/ -.wrap{width:860px; margin:0 auto; overflow:hidden;zoom:1;} -.right{width:527px; float:right; background:#eeeeed; overflow:hidden;} -.title{height:50px; background:#8bc34a; line-height:3.0em;color:#fff;font-size:16px;padding-left:25px;} -.jdt{ background:#bebebe; height:3px; position:relative;} -.jdt p{ position:absolute;left:0;top:0; height:3px; } -.jdt p.orange{background:#8bc34a;} -.jdt p.gray{background:#999;} - -.first{background:#8bc34a;} -.right dl{ overflow:hidden;zoom:1;} -.grybg{background:#eaeae9;} -.first dt,.first dd{ background:url(../i/wifi_d_bg.png) no-repeat right top;_background:none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="wifi_d_bg.png")} -.right dt,.first dt{width:255px;padding-left:25px;} -.right dd,.first dd{width:110px; text-align:center;} -.right dt,.right dd{color:#555;float:left; line-height:2.8em;font-size:16px;} -.right dd.orange{color:#8bc34a; cursor:pointer} -.right dd.gray{color:#aaa;} - -.scroll{height:900px; overflow-y:scroll;padding-bottom:10px;position:relative;z-index:9999;} -.left{margin-right:527px;} -.logo{height:112px; background:url(../i/wifi_logo_3.png) no-repeat left 24px;margin-bottom:36px;} -.wf_box{height:204px;margin-bottom:46px; overflow:hidden;} -.wf_box h3{padding:124px 0 0 0;color:#fff;width:200px; height:76px; margin-left:55px; text-align:center;} -.wf_wifi{ background:url(../i/wifi_img.png) no-repeat 47px top;} -.wf_active,.wf_normal{background:url(../i/wifi_tz0.png) no-repeat;} -.wf_active{background-position:56px -210px;} -.wf_normal{background-position:56px top;} -.wf_btn{width:203px;height:100px;padding-left:37px;margin-bottom:16px;} -.wf_left{width:6px; height:100px; background:url(../i/wifi_left.png) no-repeat left top; float:left;} -.wf_right{width:6px; height:100px; background:url(../i/wifi_right.png) no-repeat left top; float:left;} -.wf_center{width:228px; float:left; background:#8bc34a; text-align:center;color:#fff;height:100px;} -.wf_center h3{font-size:24px; line-height:1.6em;margin-top:22px;} -.wf_center p{font-size:14px; line-height:1.6em;} -.wf_gs{color:#fff; line-height:1.6em;padding-left:37px;} -.right dd.wf_bgn{ background:none;} \ No newline at end of file diff --git a/app/src/main/assets/web/uploadBook/css/wifi_send.css b/app/src/main/assets/web/uploadBook/css/wifi_send.css new file mode 100644 index 000000000..1e6919e92 --- /dev/null +++ b/app/src/main/assets/web/uploadBook/css/wifi_send.css @@ -0,0 +1,356 @@ +@charset "utf-8"; +/*reset*/ +html{-webkit-text-size-adjust:100%} +body,p,blockquote,ul,ol,li,h1,h2,h3,h4,h5,h6,dl,dd,input,textarea,button{margin:0; padding:0;} +body {background:#f9f9f6;font-size:14px;color:#333;font-family:"微软雅黑",Arial,sans-serif,Tahoma,Geneva;line-height:150%;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-touch-callout:none} +h1, h2, h3, h4, h5,em,i { font-weight:normal} +ul, ol { list-style:none } +em,i{ font-style: normal; } +img{border: 0;vertical-align: middle} + +/*common*/ +.pc .red{ + color: #ea5449; +} +.pc .black{ + color: #202020; +} +.pc .gray{ + color: #999; +} +.pc .f_20{ + font-size: 20px; +} +.pc .f_18{ + font-size: 18px; +} +.pc .f_36{ + font-size: 36px; +} +.pc .f_14{ + font-size: 14px; +} +.pc .ml_25{ + margin-left: 25px; +} +.pc body{ + background: url(../img/background.png) repeat; +} +.pc .inline-block{ + display: inline-block; +} +.pc .inline{ + display: inline; +} +/*private*/ +.pc .title_wrap{ + border-bottom: 1px solid #fff; + outline: 1px solid #f0efed; + width: 100%; +} +.pc .main_wrap{ + width: 900px; + margin: 0 auto; +} +.pc .s_title{ + width: 900px; + margin: 0 auto; + padding: 16px 17px; + box-sizing: border-box; +} +.pc .s_title .up{ + vertical-align: 2px; +} +.pc .s_logo{ + display: inline-block; + height: 40px; + width: 30px; + vertical-align: -3px; +} +.pc .top_cont{ + position: relative; + padding: 22px 0 22px 20px; + overflow: hidden; +} +.pc .top_cont .status{ + font-size: 12px; +} +.pc .top_cont .type{ + font-size: 12px; + margin-top: 8px; +} +.pc .top_cont .select_btn{ + position: absolute; + right: 0; + display: inline-block; + line-height: 50px; + height: 50px; + width: 180px; + text-align: center; + background-color: #ea5449; + color: #fff; + border-radius: 3px; +} +.pc .select_btn input { + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + width: 100%; + height: 50px; + opacity: 0; + cursor: pointer; + filter:alpha(opacity=0); +} +.pc .s_table table{ + width: 100%; + background-color: #fff; + border-collapse:collapse; + table-layout: fixed; +} +.pc .s_table table tr td span{ + display: inline-block; + +} +/*thead*/ +.pc .s_table thead tr{ + height: 40px; + font-size: 12px; +} +.pc .s_table thead tr td:first-child + td{ + width: 40%; + text-align: left; + padding-left: 15px; +} +.pc .s_table thead tr td{ + text-align: center; + border-bottom: 1px solid #f5f5f5; + border-right: 1px solid #f5f5f5; +} +.pc .s_table thead tr td:first-child + td + td + td{ + border-right: 0; +} +/*tbody*/ +.pc .s_table tbody tr:nth-child(odd){ + background-color: #fbfaf8; +} +.pc .s_table tbody tr td{ + text-align: center; + line-height: 20px; + padding: 11px 0; + font-size: 12px; + border-bottom: 1px solid #f5f5f5; + border-right: 1px solid #f5f5f5; +} +.pc .s_table tbody tr td:first-child{ + padding: 0 15px; +} +.pc .s_table tbody tr td:first-child + td + td{ + padding: 0 15px; +} +.pc .s_table tbody tr td:first-child + td + td + td{ + padding: 0 15px; + border-right: 0; +} +.pc .s_table tbody tr td:first-child + td{ + text-align: left; + padding-left: 15px; +} +.pc .last_row{ + color: #999; + border-bottom: 0; + column-span: 4; + padding: 12px; +} +.pc .op_right{ + height: 16px; + width: 16px; + display: inline-block; + background: url("../img/right.png") center no-repeat; + background-size: 16px auto; + vertical-align: -2px; +} +.pc .op_wrong{ + height: 12px; + width: 12px; + display: inline-block; + background: url("../img/wrong.png") center no-repeat; + background-size: 12px auto; +} +.pc .main_wrap .active{ + -webkit-box-shadow: 0 0 15px rgba(0,0,0,.1); + -moz-box-shadow: 0 0 15px rgba(0,0,0,.1); + box-shadow: 0 0 15px rgba(0,0,0,.1); +} +.pc .btn{ + display: inline-block; + line-height: 0; + float: right; +} +.pc .warning{ + display: inline-block; + line-height: 50px; + float: right; + color: red; +} +.pc .warning a{ + color: #0078a5; +} + +/*h5*/ +.h5 .red{ + color: #ea5449; +} +.h5 .black{ + color: #202020; +} +.h5 .gray{ + color: #999; +} +.h5 .f_18{ + font-size: 18px; +} +.h5 .f_15{ + font-size: 15px; +} +.h5 .f_14{ + font-size: 14px; +} +.h5 .ml_15{ + margin-left: 15px; +} +/*private*/ +.h5 .s_title{ + line-height: 60px; + border-bottom: 1px solid #f0efed; + background-color: #fdfdfd; + padding: 0 17px; +} +.h5 .s_title .up{ + vertical-align: 2px; +} +.h5 .s_logo{ + display: inline-block; + height: 24px; + width: 20px; + background: url("../img/logo.png") center no-repeat; + background-size: 18px auto; + vertical-align: -3px; +} +.h5 .s_table{ + margin-bottom: 75px; +} +.h5 .s_table table{ + width: 100%; + border-collapse:collapse; + table-layout: fixed; +} +.h5 .s_table thead tr{ + height: 56px; + font-size: 11px; +} +.h5 .s_table thead tr td:nth-child(2){ + text-align: left; + width: 40%; +} +.h5 .s_table thead tr td{ + text-align: center; + border-bottom: 1px solid #f0efed; +} +.h5 .s_table tbody tr td{ + text-align: center; + line-height: 20px; + padding: 20px 0; + font-size: 12px; + border-bottom: 1px solid #f0efed; +} +.h5 .s_table tbody tr td:first-child{ + padding: 0 10px; +} +.h5 .s_table tbody tr td:nth-child(3){ + padding: 0 10px; +} +.h5 .s_table tbody tr td:last-child{ + padding: 0 10px; +} +.h5 .s_table tbody tr td:nth-child(2){ + text-align: left; + font-size: 14px; +} +.h5 .op_right{ + height: 16px; + width: 16px; + display: inline-block; + background: url("../img/right.png") center no-repeat; + background-size: 16px auto; + vertical-align: -2px; +} +.h5 .op_wrong{ + height: 12px; + width: 12px; + display: inline-block; + background: url("../img/wrong.png") center no-repeat; + background-size: 12px auto; +} +.h5 .bottom_c{ + position:fixed; + bottom:0; + left:0; + right:0; + text-align: center; +} +.h5 .bottom_c .type{ + line-height: 25px; + color: #999; + font-size: 10px; + border-top: 1px solid #eeedea; + background: #f9f9f6; +} +.h5 .bottom_btn_wrap{ + height: 50px; + line-height:50px; + background-color:#e8554d; + font-size:17px; + color:#fff; +} +.h5 .bottom_btn_wrap input{ + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + width: 100%; + display:inline-block; + opacity: 0; +} +.emphasize{ + color: #ea5449; + font-weight: bold; +} +.none{ + display: none; +} +.mask{ width:100%; height:100%;position: fixed;top: 0; left: 0; right: 0; background: rgba(0,0,0,.7); z-index: 99; display: none;} +.c_tc{ background:url(../img/notice01.png) no-repeat left top; -webkit-background-size:171px 43px;position: fixed;; top: 50%;left: 50%; margin-top: -22px; margin-left: -80px; width: 171px; height: 43px; z-index: 100} +.t_tc{ background:url(../img/notice02.png) no-repeat left top; -webkit-background-size:216px 84px;position: fixed;; top: 10px;right: 20px; width: 216px; height: 84px; z-index: 100} +.safariWarn{background:url(../img/safari.png) no-repeat left top; -webkit-background-size:216px 84px;} +.close{ + position: fixed; + right: 15px; + top: 15px; + width: 30px; + height: 30px; + background: url("../img/close.png") no-repeat center; + -webkit-background-size: 15px 15px; +} + + + + + + + + + + diff --git a/app/src/main/assets/web/uploadBook/i/wifi_logo_3.svg b/app/src/main/assets/web/uploadBook/i/wifi_logo_3.svg deleted file mode 100644 index 7361683b0..000000000 --- a/app/src/main/assets/web/uploadBook/i/wifi_logo_3.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - diff --git a/app/src/main/assets/web/uploadBook/i/wifi_tz0.png b/app/src/main/assets/web/uploadBook/i/wifi_tz0.png deleted file mode 100644 index 1e6c616cc77b67fad185549fb86030dac14637a7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3639 zcmbtX`8(8I8>brEAi_7>D8pl&5mB-g!!QWhdd7@>DaP2dlbvB`$QoJ3(%2csnv`Wk zWZ$xdO0p&CNg=QI`QiNs-gDjO+~@k-_jNw^FQ3nKoy0rFdK_$mYzzzx9Qr67GX@4m z@afKFIeUs+p=QOOCd8fF7Rb|l^8YOsyYc_N20Sn`HfIo2Faqg1NU3Vx58%XDUgEjN z2KB*HlkDbB=Xj*Aqh%2^x3xg@&6DTSG_AR7!o*cHaB_nCJ5%_b&-R=S?p>B)LArpX ziWOHfgqYi4>@>{w#z7w}v-}rVM&G!M6fv7O{5rJLSB+S-TQ;8L# zd5zLPNrMuzv?v`JLj0HCfveN&*9h@&^qxVzAw2thE<24rF6E1h?NOHTnF1hlS(15s zP!1SIPO#($sx2!4+~51^+4jAQGsRlyxg1m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5RUI=-?xbx&U280A-1Ki?R5_mS!Ap}GgC WpMOrSJam`7#jjDz7uEIL^zvV}>p~m= literal 0 HcmV?d00001 diff --git a/app/src/main/assets/web/uploadBook/i/wifi_logo_3.png b/app/src/main/assets/web/uploadBook/img/logo.png similarity index 100% rename from app/src/main/assets/web/uploadBook/i/wifi_logo_3.png rename to app/src/main/assets/web/uploadBook/img/logo.png diff --git a/app/src/main/assets/web/uploadBook/img/notice01.png b/app/src/main/assets/web/uploadBook/img/notice01.png new file mode 100644 index 0000000000000000000000000000000000000000..360d22f687538f51fdc9aa229c4818e6d4f89658 GIT binary patch literal 4348 zcmVa>fnL_^%+ zFs{hrw!ve$x4Dr$SnK0`<$PUJ?|!eZ_x~kd=Jo5Ich>vAufD4KYRTsMsA@A?Yui@a z6OQjL)%ML8+xnWeDaZQDwM}9>*bcVSGuvrsyI9+`{8#-=gi~j^Dnf003Yy{n}m@pJ&DLMr|v#-KFhLZGX_VsaJ*dP;H;mcB-~Ltnc3K z^FJ@5`~Uy~yjDM5JBp3G<0rLMwOyxez7+?yBQp4RqDZFgw9hd%=V zKo;zz?KtIy8&A=;qvJP^DKDlwqiu862hf-ETSba0#Y=ypt)y*NZRcpa8KMdR$e5?t zBmJDVU6j|B^JCTAX7hG!r{y84d3&rR+7GdaUZL%3ZO`JK0|43td9LSbyHMK>+K%AR zK*tIziRkN&_4{aBtL-J+Qvg7Ru#L76<@H9&&8tkqR?3S}T16KvWN7 zP1`EX4$^eD+FjeN+J==Er}(Y5U*Mhr0J;iU4?rB0O$dzz34>NHiCK&)L8p+5mt&h+^)P9HG-0+9Ix$n zxEBC`9%8w+6O=a;mRQExcW~CiN@M$Jl+Nc^#=an~9Y!$9O0HB9?n8O0k3kQ>WLM_cgSgBi8KQB}2t&eGY0M{GV6ezz(AZ{0T5LHK#_?&3aby-3IG7I#U-qiKj1R8FtQ2&0Dzlglq2VgOIXiR-aIih zT}m0(4FCWZae(q>L0Q3?87QozyqEIwQq`VWTmb-})Aj&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cd_~tq|P}{5vQf_=itBMo=SS-MkwTFp9|)PfQY9 z(Z}}HV2Lt88rVm8TwsMh7az{{i?zz)I@UNd<*@Li&hWn@4TaXbpOIK#&Oa0W;55P5 Q11ta|Ev_I|A!7Lbe+26nkpKVy literal 0 HcmV?d00001 diff --git a/app/src/main/assets/web/uploadBook/img/right.png b/app/src/main/assets/web/uploadBook/img/right.png new file mode 100644 index 0000000000000000000000000000000000000000..0862df4d028c81f38edd6062506f19ff3530960f GIT binary patch literal 1124 zcmaJ=TWHfz7!Hb}&cS@}LD}Rin>xWZNiVC7tI{>CE7(zLVFMMHCMR3AB_}3lYc>!; zhj;-W1VJ2v%;|%Q=)?;sYV_rCT*c1p!);sTx>CI&c)l4C=ulnq>OB z1kIS0)vcK}k%lq0XfT|cbxJA%6N&#rHEkAc;S~In?>~jDbe{p46tqx}DUpj)YMf98 zA2Febk(oxQyV%8K2g1neKn93J3S9$rEvhb~thJ`VNhJ8VZedZEU|a~%M8&PDGT#_! z3lgH z5*Na0`*}tNa}CzZRa(~uzkHv{f7v|TsYsd3FvH0S5& z!q3}2tgXHuyQ&1@oN`e(bA0Gt@9GD2C#gX0c=+X!Yp2$yGoj?36SWgy?Dnl&zNtrS z)!DYHk?Q2c(RKb)YsU92o1U|{Qi;Wee0%5Rf95AIe$5?veD>xGG%gGr{CHPL?~-eM z4X5vHoyvc^Qv3eivw`iCJASOJAHJNAe$VHZyek{&ThiSA$}3+wy7TF|ipltxtyB-M a0Atkd>dyU#Q#IF}cOQ>73l|#O_WS~3%7ID% literal 0 HcmV?d00001 diff --git a/app/src/main/assets/web/uploadBook/img/safari.png b/app/src/main/assets/web/uploadBook/img/safari.png new file mode 100644 index 0000000000000000000000000000000000000000..0e8a6f788e6507ad15a367cbc321324d94f55d83 GIT binary patch literal 10146 zcmaKSbwJZ!_x}_X6qQm?keY!=j!8S|F6jn|0fUY16hT_LrMqFo$boc+^rS>Wx)}|> z;pcgt@9&TA^W~56e&5{__ng-~=iGA__(5L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Z+bKliVD#()O;O|hmNZF2hhCtrQr=CyD`1fK`XA=%oVp$OedQnHYE zsVVPoHq*YZTkk2NM)%&^Ix#=vy!jZss&9=ynO zly`63oBL*u&ak4Yb@Q7GTgRPnFYeu~_lllIKBkIJ6N?di2VQNtGN_}$#OF3tw%3&4 zEVCUhAAOau`ROSsnHgw-6;+Q}8!NBG#$s=++@Qww^5cXn7}(x3GgG)8nnd#jT8jo(=p6;ua6p3dpb4sVHK3Mn8A?+EU#be_V@pt)bH~${;xe z#)yY#G>GvbkeCZe5tSCFxuB`_5k-|JKX*#lh{N2O*Tc2&%A!`F7ld^uMsTlAu2yMb za`VAH3MWQ&HIY*%cZ~$=r0Miji7s8eGgg-^7fta-`BzS40GPMuog)SSz*#IQpcZZy zz0c9!$~72Xf3aiLrCVgytpxryqW3KSDp7pvUR&uK(Eb-^c&RJ#Y^Y$^V6Q6!*5~4* zz@&n}R2X|m##>Pt?vwS_@+rxOH=gUJbbU&FKDms%2-@`6dlz)5Nwm&)_YjWr3v+T$ zet;Bd#!f0wlJ+%O*5nR3Djy!zrAwl@x>T(+!FBKG1+EtuqB2t1w$^;%b>j{||B-YH UlpHF8!y-UROkT7^_~YmQ2fQajE&u=k literal 0 HcmV?d00001 diff --git a/app/src/main/assets/web/uploadBook/img/wrong.png b/app/src/main/assets/web/uploadBook/img/wrong.png new file mode 100644 index 0000000000000000000000000000000000000000..593ab6945886d01abc7dc676cbcaf1c79c328fb8 GIT binary patch literal 1345 zcmeAS@N?(olHy`uVBq!ia0vp^JRr=$1|-8uW1a&k$r9IylHmNblJdl&R0hYC{G?O` z&)mfH)S%SFl*+=BsWuD@%xak-5hW46K32*3xq68pHF_1f1wh>l3^w)^1&PVosU-?Y zsp*+{wo31J?^jaDOtDo8H}y5}EpSfF$n>ZxN)4{^3rViZPPR-@vbR&PsjvbXkegbP zs8ErclUHn2VXFi-*9yo63F|8hm3bwJ6}oxF$}kgLQj3#|G7CyF^YauyCMG83 zmzLNn0bL65LT&-v*t}wBFaZNhzap_f-%!s0TEsYHf z4V;|J4NNT^VR~KilS^|`^GaZPQxJOHaOwpmhui|7%`T}$nPsUdZbkXI3Se(rW#V>= zGfwlMdQ)(_#RaEceV}9XL6M6T*)Sns3IZ|VNf*e0C;rqtV2UpSChhP!ogWw&7&m&l zIEGZ*%9-fv%@ioowtQ#P{O$v-E|*^{V>;N%wa)26d;qs%t}@rD5N>g`ZM_^>X4|+t z9b=d428rkWIVG>4r7Ie<>ck9}b0>VBw<(Lt?wDPDzxdp5J8{*?C#Cz37cUFZ`n)&J zU*(_X+Awbwq0aQxS9f`@3RzVz*XVae6?bkmwS$X1#xkr;ay(fj7O56N=#qGDB6jn7@hL>xP4$vBpM91;^1F7*>Z_9u$hl8aQS7>JXkjtm-t;xE zRBu~{+u}7BGkSEzx|v#XG)1}=9DcaqV632Zgn5GDGDb%Igd)qie$}_%mN9m-I&vfk z7}+kl{yI=YWEa!>>Dp5J+!hs`lUa - - - - - - - + + + + + WiFi 传输 + + + set 限制解除 -
-
-

-
-
-
-
-
- -
-
    -
    -
    -
    - -
    -

    -
    -
    -
    +
    +
    +
    +
    + 阅读 + | + WiFi传输 +
    +
    +
    +
    +
    + +

    可支持文件格式:

    +

    TXT、EPUB、UMD

    +
    +
    + + +
    + 选择文件 + +
    +
    -

    -
    -
    - - - - - - - +
    + + + + + + + + + + + + + + +
    文件名大小操作
    请将图书或字体拖拽至此即可上传
    +
    +
    +
    + + + +
    +
    +
    +
    + + + +
    +
    +
    + + + + \ No newline at end of file diff --git a/app/src/main/assets/web/uploadBook/js/common.js b/app/src/main/assets/web/uploadBook/js/common.js index a8ba3ff7d..7fe2a885f 100644 --- a/app/src/main/assets/web/uploadBook/js/common.js +++ b/app/src/main/assets/web/uploadBook/js/common.js @@ -1,78 +1,89 @@ /** * 公共函数 */ - -//全局的配置文件 +//全局的配置文件 var config = { - fileTypes: "txt|epub|umd", //允许上传的文件格式 "txt|epub" // |doc|docx|wps|xls|xlsx|et|ppt|pptx|dps - //url : "http://"+location.host+"?action=addBook",//"http://localhost/t/post.php",// - url: "../addLocalBook", - fileLimitSize: 500 * 1024 * 1024, + fileTypes: "txt|epub|umd", //允许上传的文件格式 "txt|epub" // |doc|docx|wps|xls|xlsx|et|ppt|pptx|dps + //url : "http://"+location.host+"?action=addBook",//"http://localhost/t/post.php",// + url: "../addLocalBook", + fileLimitSize : 500 * 1024 *1024 + }; -var file = { - inQueue: [], //已经在队列里面的文件,包括 HTML5上传和 Flash上传的 - clientHaveFiles: [], // 客户端已经存在的文件列表 -}; +//文件对应序号 +var fileMap = {}; /** * HTML5 和 flash 公用,所有文件对象集合 * @var array */ -var filesUpload = []; // +var filesUpload = []; // + +//初始化表格 +init(); + +function init(){ + //判断浏览器的高度预留空表格 + var tr_num = parseInt(Math.round(((window.innerHeight || document.documentElement.clientHeight) *.5)/43)); + var item = '' + + '' + + '' + + '' + + '' + + ''; + var i = 0; + var HTML = ''; + while(i < tr_num){ + HTML = HTML + item; + i ++; + } + $('#drag table tbody').prepend(HTML); +} //统计文件大小 -function countFileSize(fileSize) { - var KB = 1024; - var MB = 1024 * 1024; - if (KB >= fileSize) { - return fileSize + "B"; - } else if (MB >= fileSize) { - return (fileSize / KB).toFixed(2) + "KB"; - } else { - return (fileSize / MB).toFixed(2) + "MB"; - } +function countFileSize(fileSize) +{ + var KB = 1024; + var MB = 1024 * 1024; + if(KB >= fileSize){ + return fileSize+"B"; + }else if(MB >= fileSize){ + return (fileSize/KB).toFixed(2)+"KB"; + }else{ + return (fileSize/MB).toFixed(2)+"MB"; + } } //如果文件太长进行截取 -function substr_string(name) { - var maxLen = 15; - var len = name.length; - if (len < 17) return name; +function substr_string(name) +{ + var maxLen = 30; + var len = name.length; + if(len < maxLen )return name; - var lastIndex = name.lastIndexOf("."); - var suffix = name.substr(lastIndex); - var pre = name.substr(0, lastIndex); - var preLen = pre.length; - var preStart = preLen - 10; - //前面10个 + 后面5个 - var fileName = - pre.substr(0, 10) + - "...." + - pre.substr(preStart > 4 ? -4 : -preStart, 4) + - suffix; - return fileName; + var lastIndex = name.lastIndexOf("."); + var suffix = name.substr(lastIndex); + var pre = name.substr(0,lastIndex); + var preLen = pre.length; + var preStart = preLen - 20; + //前面10个 + 后面5个 + var fileName = pre.substr(0,20) + "...." + pre.substr( preStart > 4 ? -4 : -preStart , 4)+suffix; + return fileName } + function checkFile(file) { - if (file.size > config.fileLimitSize) { - return jsonLang.t11; - } + if (!file.name || !file.name.toLowerCase().match('('+config.fileTypes+')$')) { + return "格式不支持"; + } - if ( - !file.name || - !file.name.toLowerCase().match("(" + config.fileTypes + ")$") - ) { - return jsonLang.t12; - } - - var len = filesUpload.length; - for (var i = 0; i < len; i++) { - if (filesUpload[i].name == file.name) { - return jsonLang.t13; - } - } - return null; + var len = filesUpload.length; + for(var i=0; i< len; i++){ + if(filesUpload[i].name == file.name) { + return "文件已存在"; + } + } + return null; } /** @@ -80,143 +91,66 @@ function checkFile(file) { * @param object file 文件对象 * @param int type 0 是swf 上传的,1 是html5上传的 */ -function fileQueued(file, type) { - var size = 0, - fid = file.id, - name = ""; - type = type || 0; +function fileQueuedPC(file, type) +{ + var size=0 ,fid=file.id, name=""; + type = type || 0; - if (file != undefined) { - //计算文件大小 单位MB - size = countFileSize(file.size); - name = substr_string(file.name); - //创建要插入的元素 - var li = document.createElement("li"); - li.id = `tr_${fid}`; - li.innerHTML = `
    -
    ${name}
    -
    ${size}
    -
    - 0% ${jsonLang.t9} -
    -
    -

    `; - var table = document.getElementById("tableStyle"); - table.appendChild(li); - //保存falsh_id,为上传做准备 - //global_flash_id.push(file.id); - //更改背景颜色 - changeTrBackGroundColor(); - } -} + if(file != undefined ) + { + //计算文件大小 单位MB + size = countFileSize(file.size); + name = substr_string(file.name); -function changeTrBackGroundColor() { - var getTr = document.getElementById("tableStyle").getElementsByTagName("dl"); - trNum = getTr.length; - for (var i = 0; i < trNum; i++) { - if (i % 2 == 0) { - getTr[i].style.backgroundColor = "#f3f3f3"; - } - } + //如果没有找到这个节点,先创建 + if ($('#drag tbody tr:last-child').prev().attr('data-status') != 'init' ){ + var HTML = '' + + '' + + '' + + '' + + '' + + ''; + + $("#drag tbody tr:last-child").before(HTML); + } + + var i = $('#drag [data-status=init]').eq(0).index('#drag [data-js=item]'); + + $('#drag [data-js=item]').eq(i).children().eq(0).find('span').html(i+1); + $('#drag [data-js=item]').eq(i).children().eq(1).find('span').html(name); + $('#drag [data-js=item]').eq(i).children().eq(2).find('span').html(size); + $('#drag [data-js=item]').eq(i).children().eq(3).find('span i').addClass('red').html('0%'); + $('#drag [data-js=item]').eq(i).attr('data-status', 'ed'); + + fileMap[file.name] = $('#drag [data-js=item]').eq(i).children().eq(3).find('span i'); + + } } //上传时返回的状态 -function uploadProgress(file, bytesLoaded, bytesTotal) { - var progressClass = document.getElementById( - "progress_bar_p_" + file.id - ).classList; - if (!progressClass.contains("orange")) { - progressClass.add("orange"); - } - document.getElementById("progress_bar_p_" + file.id).style.width = - (bytesLoaded / bytesTotal) * 100 + "%"; - document.getElementById("progress_bar_span_" + file.id).innerHTML = - parseInt((bytesLoaded / bytesTotal) * 100) + "%"; +function uploadProgress(file, bytesLoaded, bytesTotal) +{ + fileMap[file.name].html(parseInt((bytesLoaded/bytesTotal)*100)+"%"); } + //上传成功 -function uploadSuccess(file, serverData, res) { - var id = "handle_button_" + file.id; - var dd = document.createElement("dd"); - dd.innerHTML = jsonLang.t10; - document.getElementById(id).replaceWith(dd); -} - -//取消上传 -function userCancelUpload(file_id, type) { - if (type == 0) { - SWFFuns.cancelUpload(file_id); - } else { - HTML5Funs.cancelUpload(file_id); - } - var element = document.getElementById("handle_button_" + file_id); - element.innerHTML = jsonLang.t14; - element.classList.remove("orange"); - element.classList.add("gray"); - //如果已经上传一部分了 - var progressElement = document.getElementById("progress_bar_p_" + file_id); - if (progressElement.classList.contains("orange")) { - progressElement.classList.remove("orange"); - progressElement.classList.add("gray"); - } -} - -/** - * 通过文件名称 从全局的文件列表中获取文件对象 - * - */ -function getFileFomeFilesUpload(filename) { - var len = filesUpload.length; - for (var i = 0; i < len; i++) { - if (filesUpload[i].name == filename) { - return filesUpload[i]; - } - } - - return null; -} - -/** - * 往全局的 上传列表添加一个数据 - */ -function addFileToFilesUpload(file) { - if (typeof file == "string") { - filesUpload.push({ name: file }); - return true; - } else if (typeof file == "object") { - filesUpload.push(file); - return true; - } - - return false; -} - -/** - * 往全局的 上传列表添加一个数据 - */ -function updateFileToFilesUpload(file) { - var len = filesUpload.length; - for (var i = 0; i < len; i++) { - if (filesUpload[i].name == file.name) { - filesUpload[i] = file; - return true; - } - } - - return false; +function uploadSuccess(file, serverData, res) +{ + fileMap[file.name].removeClass('red').addClass('op_right').html(''); } /** * 查找在数组中的位置 */ -function findObjectKey(object, fid) { - var len = object.length; - for (var i = 0; i < len; i++) { - if (object[i].id == fid) { - return i; - } - } - return -1; +function findObjectKey (object, fid){ + var len = object.length; + for(var i=0; i -1) files.splice(filesUploadKey, 1); + var filesUploadKey = -1; + + filesUploadKey = findObjectKey(files, fid); + //从全局文件中移除 + if(filesUploadKey > -1) + files.splice(filesUploadKey, 1); - return files; -} + return files; +} \ No newline at end of file diff --git a/app/src/main/assets/web/uploadBook/js/html5_fun.js b/app/src/main/assets/web/uploadBook/js/html5_fun.js index 3ee6a1154..a635347e4 100644 --- a/app/src/main/assets/web/uploadBook/js/html5_fun.js +++ b/app/src/main/assets/web/uploadBook/js/html5_fun.js @@ -1,241 +1,257 @@ /** * 处理拖拽上传 */ -var isDragOver = false; //拖拽触发点 -var fileNumber = -1; //上传文件编号 -var fileNumberPex = "zyFileUpload_"; //编号前缀 -var currUploadfile = {}; //当前上传的文件对象 + var isDragOver = false;//拖拽触发点 + var fileNumber = -1; //上传文件编号 + var fileNumberPex = "zyFileUpload_"; //编号前缀 + var currUploadfile = {}; //当前上传的文件对象 + + var uploadQueue = [];//上传队列集合 + var isUploading = false;//是否正在上传 + + var XHR; + try{ + XHR = new XMLHttpRequest(); + }catch(e){} + +(function(isSupportFileUpload){ + + //不支持拖拽上传,或者 不支持FormData ,显示WiFi表示 + if(!isSupportFileUpload){ + $("#drag tbody tr:last-child td span").html('您的浏览器不支持拖拽上传'); + return; + //更换样式 + }else{ + $("#drag tbody tr:last-child td span").html('请将图书或字体拖拽至此即可上传'); + } -var uploadQueue = []; //上传队列集合 -var isUploading = false; //是否正在上传 + addEvent(); + + /** + * 添加事件 + */ + function addEvent(){ + var click = $('#click')[0]; + var dropArea = $('#drag')[0]; + click.addEventListener('change', handleDrop, false); + dropArea.addEventListener('dragover', handleDragOver, false); + dropArea.addEventListener('dragleave', handleDragLeave, false); + dropArea.addEventListener('drop', handleDrop, false); + } -var XHR; -try { - XHR = new XMLHttpRequest(); -} catch (e) {} + /** + * 松开拖拽文件的处理,进行上传 + */ + function handleDrop(evt){ + + evt.stopPropagation(); + evt.preventDefault(); -(function (isSupportFileUpload) { - //不支持拖拽上传,或者 不支持FormData ,显示WiFi表示 - if (!isSupportFileUpload) { - document.getElementById("drag_area").classList.add("wf_wifi"); - document.getElementById("drag_area").innerHTML = ""; - return; - //更换样式 - } else { - document.getElementById("drag_area").classList.add("wf_normal"); - } + $('#drag').removeClass('active'); + + isDragOver = false; + + var file={}; + var errorMsgs = []; - addEvent(); + var len = 0; + if(typeof (this.files) == 'object'){ + len = this.files.length; + }else{ + len = evt.dataTransfer.files.length; + } - /** - * 添加事件 - */ - function addEvent() { - var dropArea = document.getElementById("drag_area"); - dropArea.addEventListener("dragover", handleDragOver, false); - dropArea.addEventListener("dragleave", handleDragLeave, false); - dropArea.addEventListener("drop", handleDrop, false); - } - /** - * 松开拖拽文件的处理,进行上传 - */ - function handleDrop(evt) { - evt.stopPropagation(); - evt.preventDefault(); - var classList = document.getElementById("drag_area").classList; - classList.add("wf_normal"); - classList.remove("wf_active"); + for(var i=0; i < len; i++){ + fileNumber ++ ; - console.log("Drop"); - isDragOver = false; + if(typeof(this.files) == 'object'){ + file = this.files[i]; + }else{ + file = evt.dataTransfer.files[i]; + } - var file = {}; - var errorMsgs = []; - var len = evt.dataTransfer.files.length; + //检测文件 + msg = checkFile(file); + //文件可以通过 + if(!msg){ + file.id = fileNumberPex+fileNumber; - for (var i = 0; i < len; i++) { - fileNumber++; - file = evt.dataTransfer.files[i]; - file.id = fileNumberPex + fileNumber; + //添加全局 + filesUpload.push(file); + //添加上传队列 + uploadQueue.push(file); + //在页面进行展示 + fileQueuedPC(file, 1); + }else{ + errorMsgs.push(msg) + } + } - //检测文件 - msg = checkFile(file); - //文件可以通过 - if (!msg) { - //添加全局 - filesUpload.push(file); - //添加上传队列 - uploadQueue.push(file); - //在页面进行展示 - fileQueued(file, 1); - } else { - errorMsgs.push(msg); - } - } + if(errorMsgs.length>0){ + //只选择做一个进行上传 + if(len==1){ + alert(errorMsgs[0]); + + }else{ + alert("你选择了"+len+"个文件,只能上传"+(len - errorMsgs.length)+"个文件。\n请选择可支持文件格式且文件名不能重复。"); + } + } - if (errorMsgs.length > 0) { - //只选择做一个进行上传 - if (len == 1) { - alert(errorMsgs[0]); - } else { - a1 = len; - a2 = len - errorMsgs.length; + //拿出第一个,进行上传 + if(!isUploading && uploadQueue.length>0) uploadFiles(uploadQueue.shift()); - var replaceArr = new Array(a1, a2); - alert(stringReplace(jsonLang.t7, replaceArr)); - } - } + //清空input内容,防止两次上传文件一样,change事件不触发 + document.getElementById('click').value = ''; - //拿出第一个,进行上传 - if (!isUploading && uploadQueue.length > 0) - uploadFiles(uploadQueue.shift()); - } + } - function handleDragOver(evt) { - evt.stopPropagation(); - evt.preventDefault(); - //防止多次DOM操作 - if (!isDragOver) { - console.log("Over"); - var classList = document.getElementById("drag_area").classList; - classList.add("wf_active"); - classList.remove("wf_normal"); - isDragOver = true; - } - } + function handleDragOver(evt){ + + evt.stopPropagation(); + evt.preventDefault(); + //防止多次DOM操作 + if (!isDragOver) { + $('#drag').addClass('active'); + isDragOver = true; + } + + + } + + function handleDragLeave(evt){ + + evt.stopPropagation(); + evt.preventDefault(); + isDragOver = false; + $('#drag').removeClass('active'); + } - function handleDragLeave(evt) { - console.log("DragLeave"); - evt.stopPropagation(); - evt.preventDefault(); - isDragOver = false; - var classList = document.getElementById("drag_area").classList; - classList.add("wf_normal"); - classList.remove("wf_active"); - } - function uploadFiles(file) { - //正在上传 - isUploading = true; - //设置上传的数据 - var reader = new FileReader(); - reader.readAsDataURL(file); - reader.onload = function (e) { - var data = e.target.result; - var fd = new FormData(); - fd.append("fileName", file.name); - fd.append("fileData", data); - //设置当前的上传对象 - currUploadfile = file; - if (XHR.readyState > 0) { - XHR = new XMLHttpRequest(); - } + function uploadFiles(file){ + console.log(file); + //正在上传 + isUploading = true; + //设置上传的数据 + var reader = new FileReader(); + reader.readAsDataURL(file); + reader.onload = function (e) { + var data = e.target.result; + var fd = new FormData(); + fd.append("fileName", file.name); + fd.append("fileData", data); + //设置当前的上传对象 + currUploadfile = file; + if(XHR.readyState>0){ + XHR = new XMLHttpRequest(); + } - XHR.upload.addEventListener("progress", progress, false); - XHR.upload.addEventListener("load", requestLoad, false); - XHR.upload.addEventListener("error", error, false); - XHR.upload.addEventListener("abort", abort, false); - XHR.upload.addEventListener("loadend", loadend, false); - XHR.upload.addEventListener("loadstart", loadstart, false); - XHR.open("POST", config.url); - XHR.send(fd); - XHR.onreadystatechange = function () { - //只要上传完成不管成功失败 - if (XHR.readyState == 4) { - console.log("onreadystatechange ", XHR.status, +new Date()); + XHR.upload.addEventListener("progress", progress, false); + XHR.upload.addEventListener("load", requestLoad, false); + XHR.upload.addEventListener("error", error, false); + XHR.upload.addEventListener("abort", abort, false); + XHR.upload.addEventListener("loadend", loadend, false); + XHR.upload.addEventListener("loadstart", loadstart, false); + XHR.open("POST", config.url); + // XHR.setRequestHeader("Content-Type","application/octet-stream"); + XHR.send(fd); + XHR.onreadystatechange = function() { - if (XHR.status == 200) { - uploadSuccess(currUploadfile, {}, XHR.status); - } else { - uploadError(); - } + //只要上传完成不管成功失败 + if (XHR.readyState == 4 ){ - //进行下一个上传 - nextUpload(); - } - }; - }; - } + if(XHR.status == 200){ + uploadSuccess(currUploadfile, {}, XHR.status) + }else{ + uploadError() + } - //请求完成,无论失败或成功 - function loadend(evt) { - console.log("loadend", +new Date(), evt); - } - //请求开始 - function loadstart(evt) { - console.log("loadstart", evt); - } + //进行下一个上传 + nextUpload() + } + }; + }; + } - //在请求发送或接收数据期间,在服务器指定的时间间隔触发。 - function progress(evt) { - uploadProgress(currUploadfile, evt.loaded || evt.position, evt.total); - } + //请求完成,无论失败或成功 + function loadend(evt){ + // console.log("loadend",+new Date(),evt); + } + //请求开始 + function loadstart(evt){ + // console.log("loadstart",evt); + } + + //在请求发送或接收数据期间,在服务器指定的时间间隔触发。 + function progress(evt){ + uploadProgress(currUploadfile, evt.loaded || evt.position , evt.total) + } + + //在请求被取消时触发,例如,在调用 abort() 方法时。 + function abort(evt){ + // console.log("abort",evt); + } + + //在请求失败时触发。 + function error(evt){ + //终止ajax请求 + XHR.abort(); + uploadError(); + nextUpload(); + } + + //在请求成功完成时触发。 + function requestLoad(evt){ + // console.log("requestLoad", +new Date(),evt); + } + + //进行下一个上传 + function nextUpload(){ + isUploading = false; + if(uploadQueue.length>0){ + uploadFiles(uploadQueue.shift()); + }else{ + //米有正在上传的了 + currUploadfile = {} + } + } + + //上传出错误了,比如断网, + function uploadError(){ + //移除全局变量中的,上传出错的 + removeFileFromFilesUpload(filesUpload, currUploadfile.id); + var file = currUploadfile; + fileMap[file.name].removeClass('red').addClass('op_wrong').html(''); + } + + + //对外部注册的函数 + var HTML5Funs = { + /** + * 取消上传 + * @param string fid 文件的Id + */ + cancelUpload : function(fid){ + + var filesUploadKey = -1; + var uploadQueueKey = -1; + + + //从全局中删除文件 + removeFileFromFilesUpload(filesUpload, fid) + + //如果是正在上传的,AJAX取消 + if(currUploadfile.id == fid){ + XHR.abort(); + }else{ + //从上传队列中移除 + removeFileFromFilesUpload(uploadQueue, fid) + } + } + }; + + window.HTML5Funs = HTML5Funs; + - //在请求被取消时触发,例如,在调用 abort() 方法时。 - function abort(evt) { - console.log("abort", evt); - } - - //在请求失败时触发。 - function error(evt) { - //终止ajax请求 - XHR.abort(); - uploadError(); - nextUpload(); - } - - //在请求成功完成时触发。 - function requestLoad(evt) { - console.log("requestLoad", +new Date(), evt); - } - - //进行下一个上传 - function nextUpload() { - isUploading = false; - if (uploadQueue.length > 0) { - uploadFiles(uploadQueue.shift()); - } else { - //米有正在上传的了 - currUploadfile = {}; - } - } - - //上传出错误了,比如断网, - function uploadError() { - //移除全局变量中的,上传出错的 - removeFileFromFilesUpload(filesUpload, currUploadfile.id); - var file = currUploadfile; - var dd = document.createElement("dd") - dd.innerHTML = jsonLang.t8 - document - .getElementById("handle_button_" + file.id) - .replaceWith(dd); - } - - //对外部注册的函数 - var HTML5Funs = { - /** - * 取消上传 - * @param string fid 文件的Id - */ - cancelUpload: function (fid) { - var filesUploadKey = -1; - var uploadQueueKey = -1; - - //从全局中删除文件 - removeFileFromFilesUpload(filesUpload, fid); - - //如果是正在上传的,AJAX取消 - if (currUploadfile.id == fid) { - XHR.abort(); - } else { - //从上传队列中移除 - removeFileFromFilesUpload(uploadQueue, fid); - } - }, - }; - - window.HTML5Funs = HTML5Funs; -})("FormData" in window && "ondrop" in document.body); +})("FormData" in window && "ondrop" in document.body); \ No newline at end of file diff --git a/app/src/main/assets/web/uploadBook/js/jquery-1.4.2.min.js b/app/src/main/assets/web/uploadBook/js/jquery-1.4.2.min.js new file mode 100644 index 000000000..7c2430802 --- /dev/null +++ b/app/src/main/assets/web/uploadBook/js/jquery-1.4.2.min.js @@ -0,0 +1,154 @@ +/*! + * jQuery JavaScript Library v1.4.2 + * http://jquery.com/ + * + * Copyright 2010, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2010, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Sat Feb 13 22:33:48 2010 -0500 + */ +(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/, +Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&& +(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this, +a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b=== +"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this, +function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b
    a"; +var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected, +parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent= +false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n= +s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true, +applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando]; +else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this, +a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b=== +w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i, +cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected= +c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed"); +a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g, +function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split("."); +k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a), +C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B=0){a.type= +e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&& +f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive; +if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data", +e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a, +"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a, +d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, +e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift(); +t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D|| +g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()}, +CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m, +g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)}, +text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}}, +setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return hl[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h= +h[3];l=0;for(m=h.length;l=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m=== +"="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g, +h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&& +q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML=""; +if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="

    ";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}(); +(function(){var g=s.createElement("div");g.innerHTML="
    ";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}: +function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f0)for(var j=d;j0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j= +{},i;if(f&&a.length){e=0;for(var o=a.length;e-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a=== +"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode", +d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")? +a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType=== +1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/"},F={option:[1,""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div
    ","
    "];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= +c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, +wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})}, +prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, +this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); +return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja, +""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]); +return this}else{e=0;for(var j=d.length;e0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["", +""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]===""&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e= +c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]? +c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja= +function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter= +Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a, +"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f= +a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b= +a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=//gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!== +"string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("
    ").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this}, +serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), +function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href, +global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&& +e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)? +"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache=== +false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B= +false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since", +c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E|| +d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x); +g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status=== +1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b=== +"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional; +if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration=== +"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]|| +c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start; +this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now= +this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem, +e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b
    "; +a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b); +c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a, +d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top- +f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset": +"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in +e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window); diff --git a/app/src/main/assets/web/uploadBook/js/langSwich.js b/app/src/main/assets/web/uploadBook/js/langSwich.js deleted file mode 100644 index 89eaa9362..000000000 --- a/app/src/main/assets/web/uploadBook/js/langSwich.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * wifi传书功能,供客户端调用 - * 切换语言环境 addby zhongweikang@zhangyue.com 2015/09/23 - */ - -var language; //当前语言 -var jsonEn; //英文 -var jsonZh; //中文 - -/** - * 语言包 - */ -jsonEn = { - t0: "WiFi Upload", - t1: "Documents", - t2: "Name", - t3: "Size", - t4: "Operation", - t5: "Supported Format:TXT、EPUB、UMD", - t6: "Drag here and Drop to upload", - t7: "You choosed [txt] files ,we only can upload [txt] of them。\nPlease choose TXT、EPUB、UMD files, file name cannot be repeated.", - t8: "Failed", - t9: "Cancel", - t10: "Done", - t11: "One of books is over 500MB", - t12: "Bad file mode", - t13: "File already exists", - t14: "Canceled", -}; -jsonZh = { - t0: "传书", - t1: "文档", - t2: "名字", - t3: "大小", - t4: "操作", - t5: "支持类型:TXT、EPUB、UMD", - t6: "拖至此处上传", - t7: "你选择了[txt]个文件,我们只能上传其中的[txt]。\n请选择 TXT、EPUB、UMD 类型的文件,文件的名字不能重复。", - t8: "失败", - t9: "取消", - t10: "完成", - t11: "上传文件不能大于500MB", - t12: "无效的文件格式", - t13: "文件已存在", - t14: "已取消", -}; - -if (navigator.language) { - language = navigator.language; -} else { - language = navigator.browserLanguage; -} -language = language.toLowerCase(language); - -/** - * 切换语言 - */ -function langSwich(s) { - switch (s) { - case "en-us": - _strReplace(jsonEn); - break; - case "zh-cn": - _strReplace(jsonZh); - break; - default: - _strReplace(jsonEn); - break; - } -} -function _strReplace(d) { - window.jsonLang = d; //全局变量在其他js文件中会遇到,勿删。 - for (var i in jsonLang) { - var element = document.querySelector("[data-js=" + i + "]"); - if (element) { - element.innerHTML = d[i]; - } - } -} - -/** - * 特殊字符串替换,例:语言包中的 t7 - * content 替换前的文本 - * replace 待插入的文本 (支持变量或数组) - */ -var isArray = function (obj) { - return Object.prototype.toString.call(obj) === "[object Array]"; -}; -function stringReplace(content, replace) { - var str = content; - if (!str) { - return null; - } - - if (isArray(replace)) { - strs = str.split("[txt]"); - count = strs.length - 1; - - var string = ""; - for (var i = 0; i < count; i++) { - string = string + strs[i] + replace[i]; - } - string = string + strs[count]; - } else { - string = str.replace(replace, "[txt]"); - } - return string; -} - -//执行 -langSwich(language); diff --git a/app/src/main/assets/web/uploadBook/js/swf_fun.js b/app/src/main/assets/web/uploadBook/js/swf_fun.js deleted file mode 100644 index d9de9e176..000000000 --- a/app/src/main/assets/web/uploadBook/js/swf_fun.js +++ /dev/null @@ -1,184 +0,0 @@ -/** - * swf 上传 - */ -var swfu;//swfupload 对象 -var swfSelectCount = 0;// 当前选中的文件数量 - -window.onload = function () { - var settings = { - upload_url: config.url, - /*post_params: {"PHPSESSID" : ""},*/ - file_size_limit: config.fileLimitSize + " B", - file_types: "*." + config.fileTypes.split("|").join(";*."), - - file_types_description: "All Files", - file_upload_limit: 1000, //配置上传个数 - file_queue_limit: 0, - custom_settings: { - progressTarget: "fsUploadProgress", - cancelButtonId: "btnCancel" - }, - debug: 0, - - button_cursor: SWFUpload.CURSOR.HAND, - button_image_url: "i/wifi_btn_b.png", - button_width: "240", - button_height: "100", - button_float: "right", - button_placeholder_id: "spanButtonPlaceHolder", - button_text: '', - - assume_success_timeout: 30, - file_queued_handler: swfFileQueued, - file_queue_error_handler: fileQueueError, - file_dialog_complete_handler: fileDialogComplete, - upload_start_handler: uploadStart, - upload_progress_handler: uploadProgress, - upload_error_handler: uploadError, - upload_success_handler: uploadSuccess, - upload_complete_handler: uploadComplete, - queue_complete_handler: queueComplete - }; - swfu = new SWFUpload(settings); -}; - - - -//上传完成 -function uploadComplete(file, server, response) { - //继续下一个文件的上传 - this.startUpload(); -} - -//完成队列里的上传 -function queueComplete(numFilesUploaded) { - -} - -function userStartUpload(file_id) { - swfu.startUpload(file_id); -} - - - - - -function fileQueueError(file, errorCode, message) { - switch (errorCode) { - case -100: - //alert("Over 100 books"); - case -110: - //alert("One of books is over 500MB"); - break; - case -120: - //alert("One of books is 0KB"); - break; - } -} -//入列完毕 -function fileDialogComplete(numFilesSelected, numFilesQueued) { - if (numFilesSelected > 0) { - this.startUpload() - } -} -//开始上传 -function uploadStart(file) { - return true; -} - -//上传出错 -function uploadError(file, errorCode, message) { - switch (errorCode) { - case SWFUpload.UPLOAD_ERROR.HTTP_ERROR: - errorMessage = "Error"; - break; - case SWFUpload.UPLOAD_ERROR.UPLOAD_FAILED: - errorMessage = "Failed"; - break; - case SWFUpload.UPLOAD_ERROR.IO_ERROR: - errorMessage = "Please open wifi upload page"; - break; - case SWFUpload.UPLOAD_ERROR.SECURITY_ERROR: - errorMessage = "Security error"; - break; - case SWFUpload.UPLOAD_ERROR.UPLOAD_LIMIT_EXCEEDED: - errorMessage = "Security error"; - break; - case SWFUpload.UPLOAD_ERROR.FILE_VALIDATION_FAILED: - errorMessage = "Unable to verify. Skip "; - break; - default: - errorMessage = "Unhandled error"; - break; - } - - //从上传队列中移除 - removeFileFromFilesUpload(filesUpload, file.id) - - errorMessage = jsonLang.t8; - var dd = document.createElement("dd") - dd.innerHTML = errorMessage - document.getElementById("handle_button_" + file.id).replaceWith(dd) -} - - -var tmp = 0; -var errorFile = 0; -var errorMsgs = []; - -function swfFileQueued(file) { - - - //本次上传选中的文件个数 - if (swfSelectCount == 0) swfSelectCount = this.getStats().files_queued - //检测文件 - msg = checkFile(file) - - - //文件可以通过 - if (!msg) { - //添加全局的队列 - filesUpload.push(file); - //在页面进行展示 - fileQueued(file, 0) - } else { - //从上传队列移除,验证失败的文件 - this.cancelUpload(file.id, false) - errorMsgs.push(msg) - } - - - - //队列选择完毕,初始化所有的数据 - if (++tmp == swfSelectCount) { - - if (errorMsgs.length > 0) { - //只选择做一个进行上传 - if (swfSelectCount == 1) { - alert(errorMsgs[0]); - } else { - a1 = swfSelectCount; - a2 = swfSelectCount - errorMsgs.length; - - var replaceArr = new Array(a1, a2); - alert(stringReplace(jsonLang.t7, replaceArr)); - } - } - - tmp = 0; - errorFile = 0; - swfSelectCount = 0; - errorMsgs = [] - } - - -} - - - -var SWFFuns = { - cancelUpload: function (fid) { - swfu.cancelUpload(fid, false); - } - -} \ No newline at end of file diff --git a/app/src/main/assets/web/uploadBook/js/swfupload.js b/app/src/main/assets/web/uploadBook/js/swfupload.js deleted file mode 100644 index 776d3b0a4..000000000 --- a/app/src/main/assets/web/uploadBook/js/swfupload.js +++ /dev/null @@ -1,1146 +0,0 @@ -/** - * SWFUpload: http://www.swfupload.org, http://swfupload.googlecode.com - * - * mmSWFUpload 1.0: Flash upload dialog - http://profandesign.se/swfupload/, http://www.vinterwebb.se/ - * - * SWFUpload is (c) 2006-2007 Lars Huring, Olov Nilz�n and Mammon Media and is released under the MIT License: - * http://www.opensource.org/licenses/mit-license.php - * - * SWFUpload 2 is (c) 2007-2008 Jake Roberts and is released under the MIT License: - * http://www.opensource.org/licenses/mit-license.php - * - * SWFObject v2.2 - * is released under the MIT License - */ - - - -/* ******************* */ -/* Constructor & Init */ -/* ******************* */ -var SWFUpload; -var swfobject; - -if (SWFUpload == undefined) { - SWFUpload = function (settings) { - this.initSWFUpload(settings); - }; -} - -SWFUpload.prototype.initSWFUpload = function (userSettings) { - try { - this.customSettings = {}; // A container where developers can place their own settings associated with this instance. - this.settings = {}; - this.eventQueue = []; - this.movieName = "SWFUpload_" + SWFUpload.movieCount++; - this.movieElement = null; - - - // Setup global control tracking - SWFUpload.instances[this.movieName] = this; - - // Load the settings. Load the Flash movie. - this.initSettings(userSettings); - this.loadSupport(); - if (this.swfuploadPreload()) { - this.loadFlash(); - } - - this.displayDebugInfo(); - } catch (ex) { - delete SWFUpload.instances[this.movieName]; - throw ex; - } -}; - -/* *************** */ -/* Static Members */ -/* *************** */ -SWFUpload.instances = {}; -SWFUpload.movieCount = 0; -SWFUpload.version = "2.5.0 2010-01-15 Beta 2"; -SWFUpload.QUEUE_ERROR = { - QUEUE_LIMIT_EXCEEDED : -100, - FILE_EXCEEDS_SIZE_LIMIT : -110, - ZERO_BYTE_FILE : -120, - INVALID_FILETYPE : -130 -}; -SWFUpload.UPLOAD_ERROR = { - HTTP_ERROR : -200, - MISSING_UPLOAD_URL : -210, - IO_ERROR : -220, - SECURITY_ERROR : -230, - UPLOAD_LIMIT_EXCEEDED : -240, - UPLOAD_FAILED : -250, - SPECIFIED_FILE_ID_NOT_FOUND : -260, - FILE_VALIDATION_FAILED : -270, - FILE_CANCELLED : -280, - UPLOAD_STOPPED : -290, - RESIZE : -300 -}; -SWFUpload.FILE_STATUS = { - QUEUED : -1, - IN_PROGRESS : -2, - ERROR : -3, - COMPLETE : -4, - CANCELLED : -5 -}; -SWFUpload.UPLOAD_TYPE = { - NORMAL : -1, - RESIZED : -2 -}; - -SWFUpload.BUTTON_ACTION = { - SELECT_FILE : -100, - SELECT_FILES : -110, - START_UPLOAD : -120, - JAVASCRIPT : -130, // DEPRECATED - NONE : -130 -}; -SWFUpload.CURSOR = { - ARROW : -1, - HAND : -2 -}; -SWFUpload.WINDOW_MODE = { - WINDOW : "window", - TRANSPARENT : "transparent", - OPAQUE : "opaque" -}; - -SWFUpload.RESIZE_ENCODING = { - JPEG : -1, - PNG : -2 -}; - -// Private: takes a URL, determines if it is relative and converts to an absolute URL -// using the current site. Only processes the URL if it can, otherwise returns the URL untouched -SWFUpload.completeURL = function (url) { - try { - var path = "", indexSlash = -1; - if (typeof(url) !== "string" || url.match(/^https?:\/\//i) || url.match(/^\//) || url === "") { - return url; - } - - indexSlash = window.location.pathname.lastIndexOf("/"); - if (indexSlash <= 0) { - path = "/"; - } else { - path = window.location.pathname.substr(0, indexSlash) + "/"; - } - - return path + url; - } catch (ex) { - return url; - } -}; - -// Public: assign a new function to onload to use swfobject's domLoad functionality -SWFUpload.onload = function () {}; - - -/* ******************** */ -/* Instance Members */ -/* ******************** */ - -// Private: initSettings ensures that all the -// settings are set, getting a default value if one was not assigned. -SWFUpload.prototype.initSettings = function (userSettings) { - this.ensureDefault = function (settingName, defaultValue) { - var setting = userSettings[settingName]; - if (setting != undefined) { - this.settings[settingName] = setting; - } else { - this.settings[settingName] = defaultValue; - } - }; - - // Upload backend settings - this.ensureDefault("upload_url", ""); - this.ensureDefault("preserve_relative_urls", false); - this.ensureDefault("file_post_name", "Filedata"); - this.ensureDefault("post_params", {}); - this.ensureDefault("use_query_string", false); - this.ensureDefault("requeue_on_error", false); - this.ensureDefault("http_success", []); - this.ensureDefault("assume_success_timeout", 0); - - // File Settings - this.ensureDefault("file_types", "*.*"); - this.ensureDefault("file_types_description", "All Files"); - this.ensureDefault("file_size_limit", 0); // Default zero means "unlimited" - this.ensureDefault("file_upload_limit", 0); - this.ensureDefault("file_queue_limit", 0); - - // Flash Settings - this.ensureDefault("flash_url", "swfupload.swf"); - this.ensureDefault("flash9_url", "swfupload_fp9.swf"); - this.ensureDefault("prevent_swf_caching", true); - - // Button Settings - this.ensureDefault("button_image_url", ""); - this.ensureDefault("button_width", 1); - this.ensureDefault("button_height", 1); - this.ensureDefault("button_text", ""); - this.ensureDefault("button_text_style", "color: #000000; font-size: 16pt;"); - this.ensureDefault("button_text_top_padding", 0); - this.ensureDefault("button_text_left_padding", 0); - this.ensureDefault("button_action", SWFUpload.BUTTON_ACTION.SELECT_FILES); - this.ensureDefault("button_disabled", false); - this.ensureDefault("button_placeholder_id", ""); - this.ensureDefault("button_placeholder", null); - this.ensureDefault("button_cursor", SWFUpload.CURSOR.ARROW); - this.ensureDefault("button_window_mode", SWFUpload.WINDOW_MODE.TRANSPARENT); - - // Debug Settings - this.ensureDefault("debug", false); - this.settings.debug_enabled = this.settings.debug; // Here to maintain v2 API - - // Event Handlers - this.settings.return_upload_start_handler = this.returnUploadStart; - this.ensureDefault("swfupload_preload_handler", null); - this.ensureDefault("swfupload_load_failed_handler", null); - this.ensureDefault("swfupload_loaded_handler", null); - this.ensureDefault("file_dialog_start_handler", null); - this.ensureDefault("file_queued_handler", null); - this.ensureDefault("file_queue_error_handler", null); - this.ensureDefault("file_dialog_complete_handler", null); - - this.ensureDefault("upload_resize_start_handler", null); - this.ensureDefault("upload_start_handler", null); - this.ensureDefault("upload_progress_handler", null); - this.ensureDefault("upload_error_handler", null); - this.ensureDefault("upload_success_handler", null); - this.ensureDefault("upload_complete_handler", null); - - this.ensureDefault("mouse_click_handler", null); - this.ensureDefault("mouse_out_handler", null); - this.ensureDefault("mouse_over_handler", null); - - this.ensureDefault("debug_handler", this.debugMessage); - - this.ensureDefault("custom_settings", {}); - - // Other settings - this.customSettings = this.settings.custom_settings; - - // Update the flash url if needed - if (!!this.settings.prevent_swf_caching) { - this.settings.flash_url = this.settings.flash_url + (this.settings.flash_url.indexOf("?") < 0 ? "?" : "&") + "preventswfcaching=" + new Date().getTime(); - this.settings.flash9_url = this.settings.flash9_url + (this.settings.flash9_url.indexOf("?") < 0 ? "?" : "&") + "preventswfcaching=" + new Date().getTime(); - } - - if (!this.settings.preserve_relative_urls) { - this.settings.upload_url = SWFUpload.completeURL(this.settings.upload_url); - this.settings.button_image_url = SWFUpload.completeURL(this.settings.button_image_url); - } - - delete this.ensureDefault; -}; - -// Initializes the supported functionality based the Flash Player version, state, and event that occur during initialization -SWFUpload.prototype.loadSupport = function () { - this.support = { - loading : swfobject.hasFlashPlayerVersion("9.0.28"), - imageResize : swfobject.hasFlashPlayerVersion("10.0.0") - }; - -}; - -// Private: loadFlash replaces the button_placeholder element with the flash movie. -SWFUpload.prototype.loadFlash = function () { - var targetElement, tempParent, wrapperType, flashHTML, els; - - if (!this.support.loading) { - this.queueEvent("swfupload_load_failed_handler", ["Flash Player doesn't support SWFUpload"]); - return; - } - - // Make sure an element with the ID we are going to use doesn't already exist - if (document.getElementById(this.movieName) !== null) { - this.support.loading = false; - this.queueEvent("swfupload_load_failed_handler", ["Element ID already in use"]); - return; - } - - // Get the element where we will be placing the flash movie - targetElement = document.getElementById(this.settings.button_placeholder_id) || this.settings.button_placeholder; - - if (targetElement == undefined) { - this.support.loading = false; - this.queueEvent("swfupload_load_failed_handler", ["button place holder not found"]); - return; - } - - wrapperType = (targetElement.currentStyle && targetElement.currentStyle["display"] || window.getComputedStyle && document.defaultView.getComputedStyle(targetElement, null).getPropertyValue("display")) !== "block" ? "span" : "div"; - - // Append the container and load the flash - tempParent = document.createElement(wrapperType); - - flashHTML = this.getFlashHTML(); - - try { - tempParent.innerHTML = flashHTML; // Using innerHTML is non-standard but the only sensible way to dynamically add Flash in IE (and maybe other browsers) - } catch (ex) { - this.support.loading = false; - this.queueEvent("swfupload_load_failed_handler", ["Exception loading Flash HTML into placeholder"]); - return; - } - - // Try to get the movie element immediately - els = tempParent.getElementsByTagName("object"); - if (!els || els.length > 1 || els.length === 0) { - this.support.loading = false; - this.queueEvent("swfupload_load_failed_handler", ["Unable to find movie after adding to DOM"]); - return; - } else if (els.length === 1) { - this.movieElement = els[0]; - } - - targetElement.parentNode.replaceChild(tempParent.firstChild, targetElement); - - // Fix IE Flash/Form bug - if (window[this.movieName] == undefined) { - window[this.movieName] = this.getMovieElement(); - } -}; - -// Private: getFlashHTML generates the object tag needed to embed the flash in to the document -SWFUpload.prototype.getFlashHTML = function (flashVersion) { - // Flash Satay object syntax: http://www.alistapart.com/articles/flashsatay - - var classid = ""; - //�����IE9,10 ������calssid - if (window.ActiveXObject){ - try{ - if (+navigator.userAgent.toLowerCase().match(/msie ([\d.]+)/)[1].substring(0, 1) >= 9) - classid = ' classid = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '; - }catch(e){ - classid = "" - } - } - - - - return ['', - '', - '', - '', - '', - '', - ''].join(""); -}; - -// Private: getFlashVars builds the parameter string that will be passed -// to flash in the flashvars param. -SWFUpload.prototype.getFlashVars = function () { - // Build a string from the post param object - var httpSuccessString, paramString; - - paramString = this.buildParamString(); - httpSuccessString = this.settings.http_success.join(","); - - // Build the parameter string - return ["movieName=", encodeURIComponent(this.movieName), - "&uploadURL=", encodeURIComponent(this.settings.upload_url), - "&useQueryString=", encodeURIComponent(this.settings.use_query_string), - "&requeueOnError=", encodeURIComponent(this.settings.requeue_on_error), - "&httpSuccess=", encodeURIComponent(httpSuccessString), - "&assumeSuccessTimeout=", encodeURIComponent(this.settings.assume_success_timeout), - "&params=", encodeURIComponent(paramString), - "&filePostName=", encodeURIComponent(this.settings.file_post_name), - "&fileTypes=", encodeURIComponent(this.settings.file_types), - "&fileTypesDescription=", encodeURIComponent(this.settings.file_types_description), - "&fileSizeLimit=", encodeURIComponent(this.settings.file_size_limit), - "&fileUploadLimit=", encodeURIComponent(this.settings.file_upload_limit), - "&fileQueueLimit=", encodeURIComponent(this.settings.file_queue_limit), - "&debugEnabled=", encodeURIComponent(this.settings.debug_enabled), - "&buttonImageURL=", encodeURIComponent(this.settings.button_image_url), - "&buttonWidth=", encodeURIComponent(this.settings.button_width), - "&buttonHeight=", encodeURIComponent(this.settings.button_height), - "&buttonText=", encodeURIComponent(this.settings.button_text), - "&buttonTextTopPadding=", encodeURIComponent(this.settings.button_text_top_padding), - "&buttonTextLeftPadding=", encodeURIComponent(this.settings.button_text_left_padding), - "&buttonTextStyle=", encodeURIComponent(this.settings.button_text_style), - "&buttonAction=", encodeURIComponent(this.settings.button_action), - "&buttonDisabled=", encodeURIComponent(this.settings.button_disabled), - "&buttonCursor=", encodeURIComponent(this.settings.button_cursor) - ].join(""); -}; - -// Public: get retrieves the DOM reference to the Flash element added by SWFUpload -// The element is cached after the first lookup -SWFUpload.prototype.getMovieElement = function () { - if (this.movieElement == undefined) { - this.movieElement = document.getElementById(this.movieName); - } - - if (this.movieElement === null) { - throw "Could not find Flash element"; - } - - return this.movieElement; -}; - -// Private: buildParamString takes the name/value pairs in the post_params setting object -// and joins them up in to a string formatted "name=value&name=value" -SWFUpload.prototype.buildParamString = function () { - var name, postParams, paramStringPairs = []; - - postParams = this.settings.post_params; - - if (typeof(postParams) === "object") { - for (name in postParams) { - if (postParams.hasOwnProperty(name)) { - paramStringPairs.push(encodeURIComponent(name.toString()) + "=" + encodeURIComponent(postParams[name].toString())); - } - } - } - - return paramStringPairs.join("&"); -}; - -// Public: Used to remove a SWFUpload instance from the page. This method strives to remove -// all references to the SWF, and other objects so memory is properly freed. -// Returns true if everything was destroyed. Returns a false if a failure occurs leaving SWFUpload in an inconsistant state. -// Credits: Major improvements provided by steffen -SWFUpload.prototype.destroy = function () { - var movieElement; - - try { - // Make sure Flash is done before we try to remove it - this.cancelUpload(null, false); - - movieElement = this.cleanUp(); - - // Remove the SWFUpload DOM nodes - if (movieElement) { - // Remove the Movie Element from the page - try { - movieElement.parentNode.removeChild(movieElement); - } catch (ex) {} - } - - // Remove IE form fix reference - window[this.movieName] = null; - - // Destroy other references - SWFUpload.instances[this.movieName] = null; - delete SWFUpload.instances[this.movieName]; - - this.movieElement = null; - this.settings = null; - this.customSettings = null; - this.eventQueue = null; - this.movieName = null; - - - return true; - } catch (ex2) { - return false; - } -}; - - -// Public: displayDebugInfo prints out settings and configuration -// information about this SWFUpload instance. -// This function (and any references to it) can be deleted when placing -// SWFUpload in production. -SWFUpload.prototype.displayDebugInfo = function () { - this.debug( - [ - "---SWFUpload Instance Info---\n", - "Version: ", SWFUpload.version, "\n", - "Movie Name: ", this.movieName, "\n", - "Settings:\n", - "\t", "upload_url: ", this.settings.upload_url, "\n", - "\t", "flash_url: ", this.settings.flash_url, "\n", - "\t", "flash9_url: ", this.settings.flash9_url, "\n", - "\t", "use_query_string: ", this.settings.use_query_string.toString(), "\n", - "\t", "requeue_on_error: ", this.settings.requeue_on_error.toString(), "\n", - "\t", "http_success: ", this.settings.http_success.join(", "), "\n", - "\t", "assume_success_timeout: ", this.settings.assume_success_timeout, "\n", - "\t", "file_post_name: ", this.settings.file_post_name, "\n", - "\t", "post_params: ", this.settings.post_params.toString(), "\n", - "\t", "file_types: ", this.settings.file_types, "\n", - "\t", "file_types_description: ", this.settings.file_types_description, "\n", - "\t", "file_size_limit: ", this.settings.file_size_limit, "\n", - "\t", "file_upload_limit: ", this.settings.file_upload_limit, "\n", - "\t", "file_queue_limit: ", this.settings.file_queue_limit, "\n", - "\t", "debug: ", this.settings.debug.toString(), "\n", - - "\t", "prevent_swf_caching: ", this.settings.prevent_swf_caching.toString(), "\n", - - "\t", "button_placeholder_id: ", this.settings.button_placeholder_id.toString(), "\n", - "\t", "button_placeholder: ", (this.settings.button_placeholder ? "Set" : "Not Set"), "\n", - "\t", "button_image_url: ", this.settings.button_image_url.toString(), "\n", - "\t", "button_width: ", this.settings.button_width.toString(), "\n", - "\t", "button_height: ", this.settings.button_height.toString(), "\n", - "\t", "button_text: ", this.settings.button_text.toString(), "\n", - "\t", "button_text_style: ", this.settings.button_text_style.toString(), "\n", - "\t", "button_text_top_padding: ", this.settings.button_text_top_padding.toString(), "\n", - "\t", "button_text_left_padding: ", this.settings.button_text_left_padding.toString(), "\n", - "\t", "button_action: ", this.settings.button_action.toString(), "\n", - "\t", "button_cursor: ", this.settings.button_cursor.toString(), "\n", - "\t", "button_disabled: ", this.settings.button_disabled.toString(), "\n", - - "\t", "custom_settings: ", this.settings.custom_settings.toString(), "\n", - "Event Handlers:\n", - "\t", "swfupload_preload_handler assigned: ", (typeof this.settings.swfupload_preload_handler === "function").toString(), "\n", - "\t", "swfupload_load_failed_handler assigned: ", (typeof this.settings.swfupload_load_failed_handler === "function").toString(), "\n", - "\t", "swfupload_loaded_handler assigned: ", (typeof this.settings.swfupload_loaded_handler === "function").toString(), "\n", - "\t", "mouse_click_handler assigned: ", (typeof this.settings.mouse_click_handler === "function").toString(), "\n", - "\t", "mouse_over_handler assigned: ", (typeof this.settings.mouse_over_handler === "function").toString(), "\n", - "\t", "mouse_out_handler assigned: ", (typeof this.settings.mouse_out_handler === "function").toString(), "\n", - "\t", "file_dialog_start_handler assigned: ", (typeof this.settings.file_dialog_start_handler === "function").toString(), "\n", - "\t", "file_queued_handler assigned: ", (typeof this.settings.file_queued_handler === "function").toString(), "\n", - "\t", "file_queue_error_handler assigned: ", (typeof this.settings.file_queue_error_handler === "function").toString(), "\n", - "\t", "upload_resize_start_handler assigned: ", (typeof this.settings.upload_resize_start_handler === "function").toString(), "\n", - "\t", "upload_start_handler assigned: ", (typeof this.settings.upload_start_handler === "function").toString(), "\n", - "\t", "upload_progress_handler assigned: ", (typeof this.settings.upload_progress_handler === "function").toString(), "\n", - "\t", "upload_error_handler assigned: ", (typeof this.settings.upload_error_handler === "function").toString(), "\n", - "\t", "upload_success_handler assigned: ", (typeof this.settings.upload_success_handler === "function").toString(), "\n", - "\t", "upload_complete_handler assigned: ", (typeof this.settings.upload_complete_handler === "function").toString(), "\n", - "\t", "debug_handler assigned: ", (typeof this.settings.debug_handler === "function").toString(), "\n", - - "Support:\n", - "\t", "Load: ", (this.support.loading ? "Yes" : "No"), "\n", - "\t", "Image Resize: ", (this.support.imageResize ? "Yes" : "No"), "\n" - - ].join("") - ); -}; - -/* Note: addSetting and getSetting are no longer used by SWFUpload but are included - the maintain v2 API compatibility -*/ -// Public: (Deprecated) addSetting adds a setting value. If the value given is undefined or null then the default_value is used. -SWFUpload.prototype.addSetting = function (name, value, default_value) { - if (value == undefined) { - return (this.settings[name] = default_value); - } else { - return (this.settings[name] = value); - } -}; - -// Public: (Deprecated) getSetting gets a setting. Returns an empty string if the setting was not found. -SWFUpload.prototype.getSetting = function (name) { - if (this.settings[name] != undefined) { - return this.settings[name]; - } - - return ""; -}; - - - -// Private: callFlash handles function calls made to the Flash element. -// Calls are made with a setTimeout for some functions to work around -// bugs in the ExternalInterface library. -SWFUpload.prototype.callFlash = function (functionName, argumentArray) { - var movieElement, returnValue, returnString; - - argumentArray = argumentArray || []; - movieElement = this.getMovieElement(); - - // Flash's method if calling ExternalInterface methods (code adapted from MooTools). - try { - if (movieElement != undefined) { - returnString = movieElement.CallFunction('' + __flash__argumentsToXML(argumentArray, 0) + ''); - returnValue = eval(returnString); - } else { - this.debug("Can't call flash because the movie wasn't found."); - } - } catch (ex) { - this.debug("Exception calling flash function '" + functionName + "': " + ex.message); - } - - // Unescape file post param values - if (returnValue != undefined && typeof returnValue.post === "object") { - returnValue = this.unescapeFilePostParams(returnValue); - } - - return returnValue; -}; - -/* ***************************** - -- Flash control methods -- - Your UI should use these - to operate SWFUpload - ***************************** */ - -// WARNING: this function does not work in Flash Player 10 -// Public: selectFile causes a File Selection Dialog window to appear. This -// dialog only allows 1 file to be selected. -SWFUpload.prototype.selectFile = function () { - this.callFlash("SelectFile"); -}; - -// WARNING: this function does not work in Flash Player 10 -// Public: selectFiles causes a File Selection Dialog window to appear/ This -// dialog allows the user to select any number of files -// Flash Bug Warning: Flash limits the number of selectable files based on the combined length of the file names. -// If the selection name length is too long the dialog will fail in an unpredictable manner. There is no work-around -// for this bug. -SWFUpload.prototype.selectFiles = function () { - this.callFlash("SelectFiles"); -}; - - -// Public: startUpload starts uploading the first file in the queue unless -// the optional parameter 'fileID' specifies the ID -SWFUpload.prototype.startUpload = function (fileID) { - this.callFlash("StartUpload", [fileID]); -}; - -// Public: startUpload starts uploading the first file in the queue unless -// the optional parameter 'fileID' specifies the ID -SWFUpload.prototype.startResizedUpload = function (fileID, width, height, encoding, quality, allowEnlarging) { - this.callFlash("StartUpload", [fileID, { "width": width, "height" : height, "encoding" : encoding, "quality" : quality, "allowEnlarging" : allowEnlarging }]); -}; - -// Public: cancelUpload cancels any queued file. The fileID parameter may be the file ID or index. -// If you do not specify a fileID the current uploading file or first file in the queue is cancelled. -// If you do not want the uploadError event to trigger you can specify false for the triggerErrorEvent parameter. -SWFUpload.prototype.cancelUpload = function (fileID, triggerErrorEvent) { - if (triggerErrorEvent !== false) { - triggerErrorEvent = true; - } - this.callFlash("CancelUpload", [fileID, triggerErrorEvent]); -}; - -// Public: stopUpload stops the current upload and requeues the file at the beginning of the queue. -// If nothing is currently uploading then nothing happens. -SWFUpload.prototype.stopUpload = function () { - this.callFlash("StopUpload"); -}; - - -// Public: requeueUpload requeues any file. If the file is requeued or already queued true is returned. -// If the file is not found or is currently uploading false is returned. Requeuing a file bypasses the -// file size, queue size, upload limit and other queue checks. Certain files can't be requeued (e.g, invalid or zero bytes files). -SWFUpload.prototype.requeueUpload = function (indexOrFileID) { - return this.callFlash("RequeueUpload", [indexOrFileID]); -}; - - -/* ************************ - * Settings methods - * These methods change the SWFUpload settings. - * SWFUpload settings should not be changed directly on the settings object - * since many of the settings need to be passed to Flash in order to take - * effect. - * *********************** */ - -// Public: getStats gets the file statistics object. -SWFUpload.prototype.getStats = function () { - return this.callFlash("GetStats"); -}; - -// Public: setStats changes the SWFUpload statistics. You shouldn't need to -// change the statistics but you can. Changing the statistics does not -// affect SWFUpload accept for the successful_uploads count which is used -// by the upload_limit setting to determine how many files the user may upload. -SWFUpload.prototype.setStats = function (statsObject) { - this.callFlash("SetStats", [statsObject]); -}; - -// Public: getFile retrieves a File object by ID or Index. If the file is -// not found then 'null' is returned. -SWFUpload.prototype.getFile = function (fileID) { - if (typeof(fileID) === "number") { - return this.callFlash("GetFileByIndex", [fileID]); - } else { - return this.callFlash("GetFile", [fileID]); - } -}; - -// Public: getFileFromQueue retrieves a File object by ID or Index. If the file is -// not found then 'null' is returned. -SWFUpload.prototype.getQueueFile = function (fileID) { - if (typeof(fileID) === "number") { - return this.callFlash("GetFileByQueueIndex", [fileID]); - } else { - return this.callFlash("GetFile", [fileID]); - } -}; - - -// Public: addFileParam sets a name/value pair that will be posted with the -// file specified by the Files ID. If the name already exists then the -// exiting value will be overwritten. -SWFUpload.prototype.addFileParam = function (fileID, name, value) { - return this.callFlash("AddFileParam", [fileID, name, value]); -}; - -// Public: removeFileParam removes a previously set (by addFileParam) name/value -// pair from the specified file. -SWFUpload.prototype.removeFileParam = function (fileID, name) { - this.callFlash("RemoveFileParam", [fileID, name]); -}; - -// Public: setUploadUrl changes the upload_url setting. -SWFUpload.prototype.setUploadURL = function (url) { - this.settings.upload_url = url.toString(); - this.callFlash("SetUploadURL", [url]); -}; - -// Public: setPostParams changes the post_params setting -SWFUpload.prototype.setPostParams = function (paramsObject) { - this.settings.post_params = paramsObject; - this.callFlash("SetPostParams", [paramsObject]); -}; - -// Public: addPostParam adds post name/value pair. Each name can have only one value. -SWFUpload.prototype.addPostParam = function (name, value) { - this.settings.post_params[name] = value; - this.callFlash("SetPostParams", [this.settings.post_params]); -}; - -// Public: removePostParam deletes post name/value pair. -SWFUpload.prototype.removePostParam = function (name) { - delete this.settings.post_params[name]; - this.callFlash("SetPostParams", [this.settings.post_params]); -}; - -// Public: setFileTypes changes the file_types setting and the file_types_description setting -SWFUpload.prototype.setFileTypes = function (types, description) { - this.settings.file_types = types; - this.settings.file_types_description = description; - this.callFlash("SetFileTypes", [types, description]); -}; - -// Public: setFileSizeLimit changes the file_size_limit setting -SWFUpload.prototype.setFileSizeLimit = function (fileSizeLimit) { - this.settings.file_size_limit = fileSizeLimit; - this.callFlash("SetFileSizeLimit", [fileSizeLimit]); -}; - -// Public: setFileUploadLimit changes the file_upload_limit setting -SWFUpload.prototype.setFileUploadLimit = function (fileUploadLimit) { - this.settings.file_upload_limit = fileUploadLimit; - this.callFlash("SetFileUploadLimit", [fileUploadLimit]); -}; - -// Public: setFileQueueLimit changes the file_queue_limit setting -SWFUpload.prototype.setFileQueueLimit = function (fileQueueLimit) { - this.settings.file_queue_limit = fileQueueLimit; - this.callFlash("SetFileQueueLimit", [fileQueueLimit]); -}; - -// Public: setFilePostName changes the file_post_name setting -SWFUpload.prototype.setFilePostName = function (filePostName) { - this.settings.file_post_name = filePostName; - this.callFlash("SetFilePostName", [filePostName]); -}; - -// Public: setUseQueryString changes the use_query_string setting -SWFUpload.prototype.setUseQueryString = function (useQueryString) { - this.settings.use_query_string = useQueryString; - this.callFlash("SetUseQueryString", [useQueryString]); -}; - -// Public: setRequeueOnError changes the requeue_on_error setting -SWFUpload.prototype.setRequeueOnError = function (requeueOnError) { - this.settings.requeue_on_error = requeueOnError; - this.callFlash("SetRequeueOnError", [requeueOnError]); -}; - -// Public: setHTTPSuccess changes the http_success setting -SWFUpload.prototype.setHTTPSuccess = function (http_status_codes) { - if (typeof http_status_codes === "string") { - http_status_codes = http_status_codes.replace(" ", "").split(","); - } - - this.settings.http_success = http_status_codes; - this.callFlash("SetHTTPSuccess", [http_status_codes]); -}; - -// Public: setHTTPSuccess changes the http_success setting -SWFUpload.prototype.setAssumeSuccessTimeout = function (timeout_seconds) { - this.settings.assume_success_timeout = timeout_seconds; - this.callFlash("SetAssumeSuccessTimeout", [timeout_seconds]); -}; - -// Public: setDebugEnabled changes the debug_enabled setting -SWFUpload.prototype.setDebugEnabled = function (debugEnabled) { - this.settings.debug_enabled = debugEnabled; - this.callFlash("SetDebugEnabled", [debugEnabled]); -}; - -// Public: setButtonImageURL loads a button image sprite -SWFUpload.prototype.setButtonImageURL = function (buttonImageURL) { - if (buttonImageURL == undefined) { - buttonImageURL = ""; - } - - this.settings.button_image_url = buttonImageURL; - this.callFlash("SetButtonImageURL", [buttonImageURL]); -}; - -// Public: setButtonDimensions resizes the Flash Movie and button -SWFUpload.prototype.setButtonDimensions = function (width, height) { - this.settings.button_width = width; - this.settings.button_height = height; - - var movie = this.getMovieElement(); - if (movie != undefined) { - movie.style.width = width + "px"; - movie.style.height = height + "px"; - } - - this.callFlash("SetButtonDimensions", [width, height]); -}; -// Public: setButtonText Changes the text overlaid on the button -SWFUpload.prototype.setButtonText = function (html) { - this.settings.button_text = html; - this.callFlash("SetButtonText", [html]); -}; -// Public: setButtonTextPadding changes the top and left padding of the text overlay -SWFUpload.prototype.setButtonTextPadding = function (left, top) { - this.settings.button_text_top_padding = top; - this.settings.button_text_left_padding = left; - this.callFlash("SetButtonTextPadding", [left, top]); -}; - -// Public: setButtonTextStyle changes the CSS used to style the HTML/Text overlaid on the button -SWFUpload.prototype.setButtonTextStyle = function (css) { - this.settings.button_text_style = css; - this.callFlash("SetButtonTextStyle", [css]); -}; -// Public: setButtonDisabled disables/enables the button -SWFUpload.prototype.setButtonDisabled = function (isDisabled) { - this.settings.button_disabled = isDisabled; - this.callFlash("SetButtonDisabled", [isDisabled]); -}; -// Public: setButtonAction sets the action that occurs when the button is clicked -SWFUpload.prototype.setButtonAction = function (buttonAction) { - this.settings.button_action = buttonAction; - this.callFlash("SetButtonAction", [buttonAction]); -}; - -// Public: setButtonCursor changes the mouse cursor displayed when hovering over the button -SWFUpload.prototype.setButtonCursor = function (cursor) { - this.settings.button_cursor = cursor; - this.callFlash("SetButtonCursor", [cursor]); -}; - -/* ******************************* - Flash Event Interfaces - These functions are used by Flash to trigger the various - events. - - All these functions a Private. - - Because the ExternalInterface library is buggy the event calls - are added to a queue and the queue then executed by a setTimeout. - This ensures that events are executed in a determinate order and that - the ExternalInterface bugs are avoided. -******************************* */ - -SWFUpload.prototype.queueEvent = function (handlerName, argumentArray) { - // Warning: Don't call this.debug inside here or you'll create an infinite loop - var self = this; - - if (argumentArray == undefined) { - argumentArray = []; - } else if (!(argumentArray instanceof Array)) { - argumentArray = [argumentArray]; - } - - if (typeof this.settings[handlerName] === "function") { - // Queue the event - this.eventQueue.push(function () { - this.settings[handlerName].apply(this, argumentArray); - }); - - // Execute the next queued event - setTimeout(function () { - self.executeNextEvent(); - }, 0); - - } else if (this.settings[handlerName] !== null) { - throw "Event handler " + handlerName + " is unknown or is not a function"; - } -}; - -// Private: Causes the next event in the queue to be executed. Since events are queued using a setTimeout -// we must queue them in order to garentee that they are executed in order. -SWFUpload.prototype.executeNextEvent = function () { - // Warning: Don't call this.debug inside here or you'll create an infinite loop - - var f = this.eventQueue ? this.eventQueue.shift() : null; - if (typeof(f) === "function") { - f.apply(this); - } -}; - -// Private: unescapeFileParams is part of a workaround for a flash bug where objects passed through ExternalInterface cannot have -// properties that contain characters that are not valid for JavaScript identifiers. To work around this -// the Flash Component escapes the parameter names and we must unescape again before passing them along. -SWFUpload.prototype.unescapeFilePostParams = function (file) { - var reg = /[$]([0-9a-f]{4})/i, unescapedPost = {}, uk, k, match; - - if (file != undefined) { - for (k in file.post) { - if (file.post.hasOwnProperty(k)) { - uk = k; - while ((match = reg.exec(uk)) !== null) { - uk = uk.replace(match[0], String.fromCharCode(parseInt("0x" + match[1], 16))); - } - unescapedPost[uk] = file.post[k]; - } - } - - file.post = unescapedPost; - } - - return file; -}; - -// Private: This event is called by SWFUpload Init after we've determined what the user's Flash Player supports. -// Use the swfupload_preload_handler event setting to execute custom code when SWFUpload has loaded. -// Return false to prevent SWFUpload from loading and allow your script to do something else if your required feature is -// not supported -SWFUpload.prototype.swfuploadPreload = function () { - var returnValue; - if (typeof this.settings.swfupload_preload_handler === "function") { - returnValue = this.settings.swfupload_preload_handler.call(this); - } else if (this.settings.swfupload_preload_handler != undefined) { - throw "upload_start_handler must be a function"; - } - - // Convert undefined to true so if nothing is returned from the upload_start_handler it is - // interpretted as 'true'. - if (returnValue === undefined) { - returnValue = true; - } - - return !!returnValue; -} - -// Private: This event is called by Flash when it has finished loading. Don't modify this. -// Use the swfupload_loaded_handler event setting to execute custom code when SWFUpload has loaded. -SWFUpload.prototype.flashReady = function () { - // Check that the movie element is loaded correctly with its ExternalInterface methods defined - var movieElement = this.cleanUp(); - - if (!movieElement) { - this.debug("Flash called back ready but the flash movie can't be found."); - return; - } - - this.queueEvent("swfupload_loaded_handler"); -}; - -// Private: removes Flash added fuctions to the DOM node to prevent memory leaks in IE. -// This function is called by Flash each time the ExternalInterface functions are created. -SWFUpload.prototype.cleanUp = function () { - var key, movieElement = this.getMovieElement(); - - // Pro-actively unhook all the Flash functions - try { - if (movieElement && typeof(movieElement.CallFunction) === "unknown") { // We only want to do this in IE - this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)"); - for (key in movieElement) { - try { - if (typeof(movieElement[key]) === "function") { - movieElement[key] = null; - } - } catch (ex) { - } - } - } - } catch (ex1) { - - } - - // Fix Flashes own cleanup code so if the SWF Movie was removed from the page - // it doesn't display errors. - window["__flash__removeCallback"] = function (instance, name) { - try { - if (instance) { - instance[name] = null; - } - } catch (flashEx) { - - } - }; - - return movieElement; -}; - -/* When the button_action is set to None this event gets fired and executes the mouse_click_handler */ -SWFUpload.prototype.mouseClick = function () { - this.queueEvent("mouse_click_handler"); -}; -SWFUpload.prototype.mouseOver = function () { - this.queueEvent("mouse_over_handler"); -}; -SWFUpload.prototype.mouseOut = function () { - this.queueEvent("mouse_out_handler"); -}; - -/* This is a chance to do something before the browse window opens */ -SWFUpload.prototype.fileDialogStart = function () { - this.queueEvent("file_dialog_start_handler"); -}; - - -/* Called when a file is successfully added to the queue. */ -SWFUpload.prototype.fileQueued = function (file) { - file = this.unescapeFilePostParams(file); - this.queueEvent("file_queued_handler", file); -}; - - -/* Handle errors that occur when an attempt to queue a file fails. */ -SWFUpload.prototype.fileQueueError = function (file, errorCode, message) { - file = this.unescapeFilePostParams(file); - this.queueEvent("file_queue_error_handler", [file, errorCode, message]); -}; - -/* Called after the file dialog has closed and the selected files have been queued. - You could call startUpload here if you want the queued files to begin uploading immediately. */ -SWFUpload.prototype.fileDialogComplete = function (numFilesSelected, numFilesQueued, numFilesInQueue) { - this.queueEvent("file_dialog_complete_handler", [numFilesSelected, numFilesQueued, numFilesInQueue]); -}; - -SWFUpload.prototype.uploadResizeStart = function (file, resizeSettings) { - file = this.unescapeFilePostParams(file); - this.queueEvent("upload_resize_start_handler", [file, resizeSettings.width, resizeSettings.height, resizeSettings.encoding, resizeSettings.quality]); -}; - -SWFUpload.prototype.uploadStart = function (file) { - file = this.unescapeFilePostParams(file); - this.queueEvent("return_upload_start_handler", file); -}; - -SWFUpload.prototype.returnUploadStart = function (file) { - var returnValue; - if (typeof this.settings.upload_start_handler === "function") { - file = this.unescapeFilePostParams(file); - returnValue = this.settings.upload_start_handler.call(this, file); - } else if (this.settings.upload_start_handler != undefined) { - throw "upload_start_handler must be a function"; - } - - // Convert undefined to true so if nothing is returned from the upload_start_handler it is - // interpretted as 'true'. - if (returnValue === undefined) { - returnValue = true; - } - - returnValue = !!returnValue; - - this.callFlash("ReturnUploadStart", [returnValue]); -}; - - - -SWFUpload.prototype.uploadProgress = function (file, bytesComplete, bytesTotal) { - file = this.unescapeFilePostParams(file); - this.queueEvent("upload_progress_handler", [file, bytesComplete, bytesTotal]); -}; - -SWFUpload.prototype.uploadError = function (file, errorCode, message) { - file = this.unescapeFilePostParams(file); - this.queueEvent("upload_error_handler", [file, errorCode, message]); -}; - -SWFUpload.prototype.uploadSuccess = function (file, serverData, responseReceived) { - file = this.unescapeFilePostParams(file); - this.queueEvent("upload_success_handler", [file, serverData, responseReceived]); -}; - -SWFUpload.prototype.uploadComplete = function (file) { - file = this.unescapeFilePostParams(file); - this.queueEvent("upload_complete_handler", file); -}; - -/* Called by SWFUpload JavaScript and Flash functions when debug is enabled. By default it writes messages to the - internal debug console. You can override this event and have messages written where you want. */ -SWFUpload.prototype.debug = function (message) { - this.queueEvent("debug_handler", message); -}; - - -/* ********************************** - Debug Console - The debug console is a self contained, in page location - for debug message to be sent. The Debug Console adds - itself to the body if necessary. - - The console is automatically scrolled as messages appear. - - If you are using your own debug handler or when you deploy to production and - have debug disabled you can remove these functions to reduce the file size - and complexity. -********************************** */ - -// Private: debugMessage is the default debug_handler. If you want to print debug messages -// call the debug() function. When overriding the function your own function should -// check to see if the debug setting is true before outputting debug information. -SWFUpload.prototype.debugMessage = function (message) { - var exceptionMessage, exceptionValues, key; - - if (this.settings.debug) { - exceptionValues = []; - - // Check for an exception object and print it nicely - if (typeof message === "object" && typeof message.name === "string" && typeof message.message === "string") { - for (key in message) { - if (message.hasOwnProperty(key)) { - exceptionValues.push(key + ": " + message[key]); - } - } - exceptionMessage = exceptionValues.join("\n") || ""; - exceptionValues = exceptionMessage.split("\n"); - exceptionMessage = "EXCEPTION: " + exceptionValues.join("\nEXCEPTION: "); - SWFUpload.Console.writeLine(exceptionMessage); - } else { - SWFUpload.Console.writeLine(message); - } - } -}; - -SWFUpload.Console = {}; -SWFUpload.Console.writeLine = function (message) { - var console, documentForm; - - try { - console = document.getElementById("SWFUpload_Console"); - - if (!console) { - documentForm = document.createElement("form"); - document.getElementsByTagName("body")[0].appendChild(documentForm); - - console = document.createElement("textarea"); - console.id = "SWFUpload_Console"; - console.style.fontFamily = "monospace"; - console.setAttribute("wrap", "off"); - console.wrap = "off"; - console.style.overflow = "auto"; - console.style.width = "700px"; - console.style.height = "350px"; - console.style.margin = "5px"; - documentForm.appendChild(console); - } - - console.value += message + "\n"; - - console.scrollTop = console.scrollHeight - console.clientHeight; - } catch (ex) { - alert("Exception: " + ex.name + " Message: " + ex.message); - } -}; - - -/* SWFObject v2.2 - is released under the MIT License -*/ -swfobject = function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y0){for(var af=0;af0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad'}}aa.outerHTML='"+af+"";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab