diff --git a/WebRoot/js/HoorayOS_mini/favicon.ico b/WebRoot/js/HoorayOS_mini/favicon.ico new file mode 100644 index 00000000..c013eaf3 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/favicon.ico differ diff --git a/WebRoot/js/HoorayOS_mini/img/box.psd b/WebRoot/js/HoorayOS_mini/img/box.psd new file mode 100644 index 00000000..6067aeb0 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/box.psd differ diff --git a/WebRoot/js/HoorayOS_mini/img/exit.png b/WebRoot/js/HoorayOS_mini/img/exit.png new file mode 100644 index 00000000..7b45dd86 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/exit.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/18-6.png b/WebRoot/js/HoorayOS_mini/img/ui/18-6.png new file mode 100644 index 00000000..d2315b23 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/18-6.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/6-18.png b/WebRoot/js/HoorayOS_mini/img/ui/6-18.png new file mode 100644 index 00000000..8f95ff3c Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/6-18.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/amg_1.png b/WebRoot/js/HoorayOS_mini/img/ui/amg_1.png new file mode 100644 index 00000000..c44c3dbf Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/amg_1.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/amg_2.png b/WebRoot/js/HoorayOS_mini/img/ui/amg_2.png new file mode 100644 index 00000000..b801c269 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/amg_2.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/amg_3.png b/WebRoot/js/HoorayOS_mini/img/ui/amg_3.png new file mode 100644 index 00000000..6a850d06 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/amg_3.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/amg_4.png b/WebRoot/js/HoorayOS_mini/img/ui/amg_4.png new file mode 100644 index 00000000..2bf07727 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/amg_4.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/amg_5.png b/WebRoot/js/HoorayOS_mini/img/ui/amg_5.png new file mode 100644 index 00000000..a4ce9df4 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/amg_5.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/amg_body.png b/WebRoot/js/HoorayOS_mini/img/ui/amg_body.png new file mode 100644 index 00000000..4c8f073a Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/amg_body.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/amg_line_y.png b/WebRoot/js/HoorayOS_mini/img/ui/amg_line_y.png new file mode 100644 index 00000000..39b5ff84 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/amg_line_y.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/amg_shortcut_hover.png b/WebRoot/js/HoorayOS_mini/img/ui/amg_shortcut_hover.png new file mode 100644 index 00000000..3ad1cf56 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/amg_shortcut_hover.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/amg_top.png b/WebRoot/js/HoorayOS_mini/img/ui/amg_top.png new file mode 100644 index 00000000..659db576 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/amg_top.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/app_list.png b/WebRoot/js/HoorayOS_mini/img/ui/app_list.png new file mode 100644 index 00000000..ea5babdf Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/app_list.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/app_spr_img.png b/WebRoot/js/HoorayOS_mini/img/ui/app_spr_img.png new file mode 100644 index 00000000..ebe31271 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/app_spr_img.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/app_spr_x.png b/WebRoot/js/HoorayOS_mini/img/ui/app_spr_x.png new file mode 100644 index 00000000..5d3a7e3f Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/app_spr_x.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/avatar_120.jpg b/WebRoot/js/HoorayOS_mini/img/ui/avatar_120.jpg new file mode 100644 index 00000000..fe790aba Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/avatar_120.jpg differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/avatar_24.jpg b/WebRoot/js/HoorayOS_mini/img/ui/avatar_24.jpg new file mode 100644 index 00000000..7726e5c4 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/avatar_24.jpg differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/avatar_48.jpg b/WebRoot/js/HoorayOS_mini/img/ui/avatar_48.jpg new file mode 100644 index 00000000..0a393fa7 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/avatar_48.jpg differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/bought-table.png b/WebRoot/js/HoorayOS_mini/img/ui/bought-table.png new file mode 100644 index 00000000..144c3c50 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/bought-table.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/browser.png b/WebRoot/js/HoorayOS_mini/img/ui/browser.png new file mode 100644 index 00000000..07654920 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/browser.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/browser_backup.png b/WebRoot/js/HoorayOS_mini/img/ui/browser_backup.png new file mode 100644 index 00000000..b5432955 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/browser_backup.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/commend_day.gif b/WebRoot/js/HoorayOS_mini/img/ui/commend_day.gif new file mode 100644 index 00000000..39ff7165 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/commend_day.gif differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/default_icon.png b/WebRoot/js/HoorayOS_mini/img/ui/default_icon.png new file mode 100644 index 00000000..f7edb5d7 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/default_icon.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/desk_sprite.png b/WebRoot/js/HoorayOS_mini/img/ui/desk_sprite.png new file mode 100644 index 00000000..f7c85a44 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/desk_sprite.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/dock-tools.png b/WebRoot/js/HoorayOS_mini/img/ui/dock-tools.png new file mode 100644 index 00000000..4096ceea Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/dock-tools.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/dock_setting.jpg b/WebRoot/js/HoorayOS_mini/img/ui/dock_setting.jpg new file mode 100644 index 00000000..33c64ddb Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/dock_setting.jpg differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/file_default.png b/WebRoot/js/HoorayOS_mini/img/ui/file_default.png new file mode 100644 index 00000000..772a8d29 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/file_default.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/file_excel.png b/WebRoot/js/HoorayOS_mini/img/ui/file_excel.png new file mode 100644 index 00000000..eb647386 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/file_excel.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/file_image.png b/WebRoot/js/HoorayOS_mini/img/ui/file_image.png new file mode 100644 index 00000000..d680ba6d Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/file_image.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/file_music.png b/WebRoot/js/HoorayOS_mini/img/ui/file_music.png new file mode 100644 index 00000000..ec4fc46f Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/file_music.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/file_pdf.png b/WebRoot/js/HoorayOS_mini/img/ui/file_pdf.png new file mode 100644 index 00000000..57833e26 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/file_pdf.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/file_ppt.png b/WebRoot/js/HoorayOS_mini/img/ui/file_ppt.png new file mode 100644 index 00000000..8d98a96b Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/file_ppt.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/file_rar.png b/WebRoot/js/HoorayOS_mini/img/ui/file_rar.png new file mode 100644 index 00000000..37c6cd92 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/file_rar.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/file_txt.png b/WebRoot/js/HoorayOS_mini/img/ui/file_txt.png new file mode 100644 index 00000000..ef0f1a72 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/file_txt.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/file_video.png b/WebRoot/js/HoorayOS_mini/img/ui/file_video.png new file mode 100644 index 00000000..4fbc8092 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/file_video.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/file_word.png b/WebRoot/js/HoorayOS_mini/img/ui/file_word.png new file mode 100644 index 00000000..20c2de9c Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/file_word.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/folder_default.png b/WebRoot/js/HoorayOS_mini/img/ui/folder_default.png new file mode 100644 index 00000000..a1dacdbb Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/folder_default.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/folder_doc.png b/WebRoot/js/HoorayOS_mini/img/ui/folder_doc.png new file mode 100644 index 00000000..0f3559f0 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/folder_doc.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/folder_game.png b/WebRoot/js/HoorayOS_mini/img/ui/folder_game.png new file mode 100644 index 00000000..ff42043b Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/folder_game.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/folder_life.png b/WebRoot/js/HoorayOS_mini/img/ui/folder_life.png new file mode 100644 index 00000000..28993212 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/folder_life.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/folder_music.png b/WebRoot/js/HoorayOS_mini/img/ui/folder_music.png new file mode 100644 index 00000000..5e4c15d4 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/folder_music.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/folder_tool.png b/WebRoot/js/HoorayOS_mini/img/ui/folder_tool.png new file mode 100644 index 00000000..661c26af Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/folder_tool.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/folder_video.png b/WebRoot/js/HoorayOS_mini/img/ui/folder_video.png new file mode 100644 index 00000000..fa2358e9 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/folder_video.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/forder_selector.png b/WebRoot/js/HoorayOS_mini/img/ui/forder_selector.png new file mode 100644 index 00000000..47707a9c Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/forder_selector.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/globle.css b/WebRoot/js/HoorayOS_mini/img/ui/globle.css new file mode 100644 index 00000000..042de492 --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/img/ui/globle.css @@ -0,0 +1,8 @@ +::selection{background:#99cc00;color:white /* Safari */} +::-moz-selection{background:#99cc00;color:white /* Firefox */} + +/*webkit滚动条样式*/ +::-webkit-scrollbar-track-piece{background-color:#f5f5f5;border-left:1px solid #d2d2d2} +::-webkit-scrollbar{width:13px;height:13px} +::-webkit-scrollbar-thumb{background-color:#c2c2c2;background-clip:padding-box;border:1px solid #979797;min-height:28px} +::-webkit-scrollbar-thumb:hover{border:1px solid #636363;background-color:#929292} \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/img/ui/google_ui_sprite.png b/WebRoot/js/HoorayOS_mini/img/ui/google_ui_sprite.png new file mode 100644 index 00000000..7f137dfa Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/google_ui_sprite.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/icon_main.png b/WebRoot/js/HoorayOS_mini/img/ui/icon_main.png new file mode 100644 index 00000000..3914acad Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/icon_main.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/index.css b/WebRoot/js/HoorayOS_mini/img/ui/index.css new file mode 100644 index 00000000..64b85d7a --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/img/ui/index.css @@ -0,0 +1,209 @@ +*{margin:0;padding:0} +form,ul,ol,li,dl,dt,dd,h1,h2,h3,h4,h5,p{list-style:none outside none} +a{text-decoration:none;color:#ccc;outline:none} +a:hover{text-decoration:none} +a img{border:none} +.fr{float:right} +.fl{float:left} +.disn{display:none} + +/*webkit滚动条样式*/ +::-webkit-scrollbar-track-piece{background-color:#f5f5f5;border-left:1px solid #d2d2d2} +::-webkit-scrollbar{width:13px;height:13px} +::-webkit-scrollbar-thumb{background-color:#c2c2c2;background-clip:padding-box;border:1px solid #979797;min-height:28px} +::-webkit-scrollbar-thumb:hover{border:1px solid #636363;background-color:#929292} + +html{height:100%;overflow:hidden} +body{font:12px/1.8 'Segoe UI','微软雅黑',sans-serif;-moz-user-select:none;-webkit-user-select:none;user-select:none} +#desktop{position:absolute;z-index:1;width:100%;height:100%;display:none} +#accessory_zoom{position:absolute} + +/*浏览器缩放提示*/ +#zoom-tip{display:none;width:100%;background:#FEF8E3;position:relative;z-index:99} +#zoom-tip div{width:960px;height:50px;line-height:50px;font-size:14px;margin:0 auto;color:#984B12;position:relative} +#zoom-tip div i{width:27px;height:27px;background:url(warning.png) no-repeat;position:absolute;top:12px} +#zoom-tip div span{padding-left:30px} +#zoom-tip .close{font-size:6px;position:absolute;right:10px;top:6px;text-decoration:none} + +/** + * 浏览器升级提示 + * 5个浏览器图片为MorchaDesign版权所有,本项目使用已得到官方授权 + * 9 Browsers Icons Designed by Morcha Design + * http://www.morcha.net/post/46.html + */ +.update_browser_box{display:none;background:url(loginbg.png) repeat;position:absolute;z-index:9998;top:0;left:0;width:100%;height:100%;_height:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight))} +.update_browser{width:640px;height:350px;position:absolute;left:50%;top:50%;margin-left:-320px;margin-top:-175px} +.update_browser .subtitle{width:640px;height:36px;line-height:18px;font-size:14px;color:#777} +.update_browser .title{width:640px;height:106px;line-height:96px;font-size:48px;text-align:center;color:#009AD9} +.update_browser .title span{font-size:60px;color:#F33} +.update_browser .browser{background:url(browser.png) no-repeat;width:640px;height:128px;overflow:hidden} +.update_browser .browser a{display:block;width:128px;height:128px;float:left;text-indent:-999em} +.update_browser .bottomtitle{width:640px;height:78px;line-height:78px;text-align:center;font-size:14px;color:#777} +.update_browser .bottomtitle a{color:#777} +.update_browser .bottomtitle a:hover{color:#999} + +/*遮罩层*/ +#maskbox{z-index:9000000;display:none;cursor:default;background:none;width:100%;height:100%;position:absolute;top:0;left:0} + +/*图标*/ +.appbtn, +#shortcut_shadow{width:86px;height:88px;text-align:center;position:absolute;z-index:0;cursor:pointer} +.appbtn:hover{background:url(desk_sprite.png) no-repeat -250px -100px} +.appbtn div{cursor:pointer;height:48px;width:48px;overflow:hidden;position:relative;margin:0 auto;margin-top:6px} +#shortcut_shadow, +#shortcut_shadow2{z-index:9999999;display:none} +.appbtn img, +#shortcut_shadow img{border-radius:3px 3px 3px 3px;display:block;height:48px;width:48px;margin:auto} +#shortcut_shadow img, +#shortcut_shadow span, +#shortcut_shadow2 img, +#shortcut_shadow2 span{filter:alpha(opacity=50);opacity:0.5} +.appbtn span, +#shortcut_shadow span{background:none repeat scroll 0 0 rgba(0, 0, 0, 0.3);border-radius:10px 10px 10px 10px;filter:none;color:#fff;display:inline-block;max-width:60px;height:20px;line-height:20px;margin-top:8px;overflow:hidden;padding:0 8px;position:relative;text-align:center;text-overflow:ellipsis;white-space:nowrap;z-index:1;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/ui/shortcut_text.png', sizingMethod='scale')} + +/*桌面*/ +#desk{position:absolute;z-index:1;top:0;bottom:30px;left:0;right:0;width:100%;height:100%;overflow:hidden} +#desk .desktop-container{width:100%;height:100%;overflow:hidden;position:absolute} +#desk .desktop-container .scrollbar{position:absolute;z-index:2;background:#ccc;display:none;-moz-border-radius:5px;-khtml-border-radius:5px;-webkit-border-radius:5px;border-radius:5px} +#desk .desktop-container .scrollbar:hover{background:#999} +#desk .desktop-container .scrollbar-x{bottom:0;height:10px} +#desk .desktop-container .scrollbar-y{right:0;width:10px} +#desk .desktop-container i.addicon{display:block;margin:auto;width:50px;height:50px;margin-top:5px;background:url(desk_sprite.png) no-repeat -420px -100px;cursor:pointer} + +/*窗口*/ +.window-container{position:absolute;background:#ccc;border:1px solid #000} +/*当前窗口*/ +.window-current{background:#fff} +/*最大化窗口*/ +.window-maximize{border:none !important} +/*标题*/ +.title-bar{position:relative;z-index:1;height:30px;line-height:30px;overflow:hidden;cursor:default;background:#ccc} +/*当前窗口标题*/ +.window-current .title-bar{background:#fff} +/*标题图标*/ +.title-bar .icon{position:absolute;top:7px;left:7px;width:16px;height:16px} +/*标题文字*/ +.title-bar .title{display:inline-block;width:100%;text-align:center;color:#000;font-size:14px} +/*窗口右上角操作按钮*/ +.title-handle{position:absolute;z-index:1;top:4px;right:4px;font-size:0;cursor:pointer} +.title-handle a{position:relative;text-decoration:none;letter-spacing:normal;text-align:center;display:inline-block;*display:inline;zoom:1;vertical-align:top;font-family:tahoma,arial,\5b8b\4f53,sans-serif;color:#000;font-size:22px;width:22px;height:22px;line-height:22px} +.title-handle a b{display:block;position:absolute;overflow:hidden;cursor:pointer} +.title-handle .ha-close{} +.title-handle .ha-close:hover{color:#03F} +.title-handle .ha-fullscreen{} +.title-handle .ha-fullscreen:hover{color:#03F} +.title-handle .ha-max .max-b{top:6px;left:4px;width:10px;height:5px;border:2px solid #000;border-top-width:4px} +.title-handle .ha-max:hover .max-b{border-color:#03F} +.title-handle .ha-revert .revert-b{top:5px;left:6px;width:8px;height:4px;border:2px solid #000;border-top-width:3px} +.title-handle .ha-revert .revert-t{top:9px;left:3px;width:8px;height:4px;border:2px solid #000;border-top-width:3px;background:#fff} +.title-handle .ha-revert:hover .revert-b, +.title-handle .ha-revert:hover .revert-t{border-color:#03F} +.title-handle .ha-hide .hide-b{top:12px;left:5px;width:12px;height:2px;border-bottom:2px solid #000} +.title-handle .ha-hide:hover .hide-b{border-color:#03F} +/*窗口内部iframe*/ +.window-frame{position:absolute;top:30px;right:0;bottom:0;left:0;background:#fff;border-top:1px solid #000} +*html .window-frame{ + height:expression((function(el){ + el.style.height=el.parentNode.clientHeight-30+"px"; + })(this)); +} +.window-frame iframe{position:absolute;border:0;height:100%;width:100%;top:0;bottom:0;left:0;right:0} +/*遮罩层*/ +.window-mask{position:absolute;z-index:9998;height:100%;width:100%;display:none;overflow:hidden;background:url(window_mask_bg.png) repeat-x} +.window-mask div{width:100%;text-align:center;margin-top:20px} +.window-mask .maskbg{margin-top:70px;height:75px;background:url(window_mask_icon.png) no-repeat center} +.window-loading{position:absolute;z-index:9999;width:100%;height:100%;background:#fff url(loading_48.gif) center center no-repeat} +.window-mask-noflash{background:none;filter:alpha(opacity=0);-moz-opacity:0;opacity:0;} +.window-resize{position:absolute;overflow:hidden;background:url(transparent.gif) repeat;display:block} +.window-resize-t{left:0;top:-8px;width:100%;height:10px;z-index:1;cursor:n-resize} +.window-resize-r{right:-8px;top:0;width:10px;height:100%;z-index:1;cursor:e-resize} +.window-resize-b{left:0;bottom:-8px;width:100%;height:10px;z-index:1;cursor:s-resize} +.window-resize-l{left:-8px;top:0;width:10px;height:100%;z-index:1;cursor:w-resize} +.window-resize-rt{right:-8px;top:-8px;width:10px;height:10px;z-index:2;cursor:ne-resize} +.window-resize-rb{right:-8px;bottom:-8px;width:10px;height:10px;z-index:2;cursor:se-resize} +.window-resize-lt{left:-8px;top:-8px;width:10px;height:10px;z-index:2;cursor:nw-resize} +.window-resize-lb{left:-8px;bottom:-8px;width:10px;height:10px;z-index:2;cursor:sw-resize} + +/*小挂件*/ +.widget{position:absolute} +.widget .move{width:100%;height:29px;background:url(widget_title_bg.png) repeat-x;cursor:move;border-radius:5px;display:none} +.widget:hover .move{display:block} +.widget a{position:absolute;display:none;top:4px;width:21px;height:21px;background:url(desk_sprite.png) no-repeat} +.widget:hover a{display:block} +.widget a.ha-close{right:5px;background-position:-350px -500px} +.widget a.ha-close:hover{background-position:-380px -500px} +.widget a.ha-star{right:30px;background-position:-350px -560px} +.widget a.ha-star:hover{background-position:-380px -560px} +.widget a.ha-share{right:55px;background-position:-350px -530px} +.widget a.ha-share:hover{background-position:-380px -530px} +.widget .frame{position:absolute;top:30px;bottom:0;left:0;right:0} +.widget .frame iframe{position:absolute;top:0;left:0;width:100%;height:100%} + +/*应用码头*/ +#dock-bar{position:absolute;display:none} +.top-bar{width:100%;height:73px;left:0;top:0} +.left-bar{width:73px;height:100%;left:0;top:0} +.right-bar{width:73px;height:100%;right:0;top:0} +#dock-container{position:absolute} +.dock-middle{background:url(desk_sprite.png) no-repeat 0 0} +.dock-left{width:73px;height:523px;top:50%;left:0;margin:-261px 0 0 0} +.dock-left .dock-middle{height:513px;padding-top:10px;background-position:0 -100px} +#dock-container .appbtn{width:58px;height:58px} +#dock-container .appbtn:hover{background:url(desk_sprite.png) no-repeat -350px -100px} +#dock-container .appbtn span{display:none} +.dock-applist{position:relative} +.dock-left .dock-applist{width:70px;height:443px;float:left;margin-top:3px;margin-left:3px} +.dock-left .dock-toollist{margin-left:5px;margin-top:8px;width:73px;height:60px;float:left;overflow:hidden} +.dock-toollist a{float:left;display:block;width:20px;height:20px;cursor:pointer;margin:0 6px 8px 3px} +.dock-toollist a img{width:20px;height:20px;border:none} + +.dock-top .dock-applist .appbtn{margin-top:1px} +.dock-left .dock-applist .appbtn{margin-left:1px} +.dock-right .dock-applist .appbtn{margin-left:3px} + +/*任务栏*/ +#task-bar-bg1{width:100%;height:130px;position:absolute;z-index:-1;bottom:0;background:url(task_bg1.png) repeat-x} +#task-bar-bg2{width:100%;height:64px;position:absolute;z-index:-1;bottom:0;background:url(task_bg2.png) repeat-x 0 41px} +#task-bar{height:64px;position:absolute;bottom:0;right:0} +#task-bar.min-zIndex{z-index:-1} +#task-next, +#task-pre{width:54px;height:100%;float:right;margin:0 1px;overflow:hidden;display:none} +#task-next{position:relative;z-index:9990;background:url(desk_sprite.png) no-repeat -200px -264px} +#task-next a{display:block;width:45px;height:35px;margin-top:20px;margin-left:15px;background:url(desk_sprite.png) no-repeat -265px -450px;cursor:pointer} +#task-next a:hover{background-position:-265px -402px} +#task-next a.disable{background-position:-265px -497px;cursor:default} +#task-pre{position:relative;z-index:9990;background:url(desk_sprite.png) no-repeat -350px -195px} +#task-pre a{display:block;width:20px;height:35px;margin-top:20px;margin-left:17px;background:url(desk_sprite.png) no-repeat -215px -450px;cursor:pointer} +#task-pre a:hover{background-position:-215px -402px} +#task-pre a.disable{background-position:-215px -497px;cursor:default} +#task-content{height:64px;float:right;overflow:hidden} +#task-content-inner{height:100%;float:right} +#task-content-inner.fl{float:left} +.task-item{position:relative;z-index:9990;display:block;width:112px;height:100%;float:right;margin:0 1px;vertical-align:middle;overflow:hidden;cursor:pointer;background:url(desk_sprite.png) no-repeat -200px -200px} +.task-item:hover{background-position:-200px -328px} +.task-item-current{background-position:-200px -264px} +.task-item-icon{width:32px;height:32px;margin:22px 5px;float:left} +.task-item-icon img{width:32px;height:32px;float:left} +.task-item-txt{width:70px;height:36px;line-height:36px;margin-top:27px;color:#fff;float:left;overflow:hidden} + +/*右键菜单*/ +.popup-menu{background:url(popup_menu.gif) repeat-y scroll 0 0 #FFFFFF;border:1px solid #AEAEAE;box-shadow:0 0 6px rgba(0, 0, 0, 0.4);position:absolute;width:125px} +.popup-menu ul{padding:1px;position:relative} +.popup-menu li{height:24px;position:relative;vertical-align:middle} +.popup-menu a{background-position:100px 100px;border-radius:2px 2px 2px 2px;color:#333333;display:block;height:24px;line-height:24px;overflow:hidden;padding-left:35px} +.popup-menu a:hover, +.popup-menu a.focus{background-color:#3B7CE6;background-position:0 -780px;color:#FFFFFF;text-decoration:none} +.popup-menu a.disabled, +.popup-menu a.disabled:hover{background-color:transparent;background-position:100px 100px;color:#ccc} +.popup-menu b{position:absolute;top:4px;left:5px;height:16px;width:16px;background:url(icon_main.png) no-repeat} +.popup-menu .arrow{background:none;top:0;left:108px;height:20px;line-height:20px;font-size:14px} +.popup-menu .folder{background-position:0 0} +.popup-menu .edit{background-position:0 -16px} +.popup-menu .setting{background-position:0 -32px} +.popup-menu .themes{background-position:0 -48px} +.popup-menu .hook{background-position:0 -64px;display:none} +.popup-menu .refresh{background-position:0 -80px} +.popup-menu .uninstall{background-position:0 -96px} +.popup-menu .del{background-position:0 -112px} +.popup-menu .upload{background-position:0 -128px} +.popup-menu .customapp{background-position:0 -144px} \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/img/ui/input-label.png b/WebRoot/js/HoorayOS_mini/img/ui/input-label.png new file mode 100644 index 00000000..9f2943f8 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/input-label.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/loading_16.gif b/WebRoot/js/HoorayOS_mini/img/ui/loading_16.gif new file mode 100644 index 00000000..5b33f7e5 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/loading_16.gif differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/loading_24.gif b/WebRoot/js/HoorayOS_mini/img/ui/loading_24.gif new file mode 100644 index 00000000..0393133b Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/loading_24.gif differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/loading_48.gif b/WebRoot/js/HoorayOS_mini/img/ui/loading_48.gif new file mode 100644 index 00000000..a2eae442 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/loading_48.gif differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/login_icon.png b/WebRoot/js/HoorayOS_mini/img/ui/login_icon.png new file mode 100644 index 00000000..ce3814b9 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/login_icon.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/loginbg.png b/WebRoot/js/HoorayOS_mini/img/ui/loginbg.png new file mode 100644 index 00000000..ae4fe07d Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/loginbg.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/loginsubmit.png b/WebRoot/js/HoorayOS_mini/img/ui/loginsubmit.png new file mode 100644 index 00000000..121fc90b Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/loginsubmit.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/nav_bar.png b/WebRoot/js/HoorayOS_mini/img/ui/nav_bar.png new file mode 100644 index 00000000..26491baa Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/nav_bar.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/open.png b/WebRoot/js/HoorayOS_mini/img/ui/open.png new file mode 100644 index 00000000..c8660229 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/open.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/papp.png b/WebRoot/js/HoorayOS_mini/img/ui/papp.png new file mode 100644 index 00000000..005cd632 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/papp.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/popup_menu.gif b/WebRoot/js/HoorayOS_mini/img/ui/popup_menu.gif new file mode 100644 index 00000000..4ee2a503 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/popup_menu.gif differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/quick_view.png b/WebRoot/js/HoorayOS_mini/img/ui/quick_view.png new file mode 100644 index 00000000..f4fee329 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/quick_view.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/scrollbar_bg.png b/WebRoot/js/HoorayOS_mini/img/ui/scrollbar_bg.png new file mode 100644 index 00000000..87d0a07f Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/scrollbar_bg.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/scrollbar_bgy.png b/WebRoot/js/HoorayOS_mini/img/ui/scrollbar_bgy.png new file mode 100644 index 00000000..bffd2bc4 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/scrollbar_bgy.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/selected.gif b/WebRoot/js/HoorayOS_mini/img/ui/selected.gif new file mode 100644 index 00000000..8659cc21 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/selected.gif differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/selected.png b/WebRoot/js/HoorayOS_mini/img/ui/selected.png new file mode 100644 index 00000000..c78d40bf Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/selected.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/share_icon.png b/WebRoot/js/HoorayOS_mini/img/ui/share_icon.png new file mode 100644 index 00000000..b5021270 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/share_icon.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/shortcut_text.png b/WebRoot/js/HoorayOS_mini/img/ui/shortcut_text.png new file mode 100644 index 00000000..5d35cdcf Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/shortcut_text.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/spr_x.png b/WebRoot/js/HoorayOS_mini/img/ui/spr_x.png new file mode 100644 index 00000000..94a3e7f9 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/spr_x.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/suggess_list_bg.png b/WebRoot/js/HoorayOS_mini/img/ui/suggess_list_bg.png new file mode 100644 index 00000000..f5dc2bd3 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/suggess_list_bg.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/sys.css b/WebRoot/js/HoorayOS_mini/img/ui/sys.css new file mode 100644 index 00000000..ed634ae5 --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/img/ui/sys.css @@ -0,0 +1,246 @@ +*{margin:0;padding:0} +form,ul,ol,li,dl,dt,dd,h1,h2,h3,h4,h5,p{list-style:none outside none} +textarea{resize:none;padding:5px} +.fr{float:right} +.fl{float:left} +.disn{display:none} +.breakword{ +white-space: pre; /* CSS 2.0 */ +white-space: pre-wrap; /* CSS 2.1 */ +white-space: pre-line; /* CSS 3.0 */ +white-space: -pre-wrap; /* Opera 4-6 */ +white-space: -o-pre-wrap; /* Opera 7 */ +white-space: -moz-pre-wrap; /* Mozilla */ +white-space: -hp-pre-wrap; /* HP Printers */ +word-wrap: break-word; /* IE 5 */ +} + +body{font:12px/1.8 'Segoe UI','微软雅黑',sans-serif} + +.title{background:url(app_spr_x.png) repeat-x 0 -40px #E6F2FA;border-bottom:1px solid #DDD;padding-left:10px;height:27px;line-height:27px;color:#666;clear:both} +.title{background-image:url(app_spr_x.png);background-repeat:repeat-x;position:relative;height:27px;padding:0 5px;line-height:27px;border-bottom:1px solid #DDD;background-position:0 -40px} +.title b{color:#F60} +.title .btn-back{float:left;margin:4px 5px 0 0} +.title ul{margin:0;position:absolute;top:0;left:-1px;height:28px;overflow:hidden} +.title li{float:left;height:28px;padding:0 10px;line-height:28px} +.title li.focus{padding:0 9px;font-weight:bold;border-left:1px solid #DDD;border-right:1px solid #DDD;background:#FFF;cursor:default} +.title li a{color:#555;cursor:pointer;text-decoration:none} +.title li a:hover{color:#36C} + +.detile-title{padding:10px 0;margin:0;text-indent:15px;border-bottom:2px solid #ddd;font-weight:bold} +.input-label{float:left;width:100%;background:url(input-label.png) repeat-y;padding:10px 0;line-height:28px;border-bottom:1px solid #eee;clear:both} +.input-label .label-text{float:left;padding-right:20px;text-align:right;width:130px;margin-bottom:0;line-height:28px} +.input-label .label-box{margin:0 10px;padding-left:150px} + +/*列表*/ +.list-table{width:100%;border-collapse:collapse} +.list-table .col-name th{font-weight:normal;height:31px;text-align:center;background:url(bought-table.png) repeat-x;border-top:1px solid #c4d5e0;border-bottom:1px solid #c4d5e0;color:black} +.list-table .sep-row{height:7px} +.list-table .toolbar{height:30px;background-color:#F3F3F3} +.list-table .toolbar td{border:1px solid #DEDEE0;border-width:1px 0} +.list-table .list-hd{background:#E8F2FF;color:#404040} +.list-table .list-hd td{border:1px solid #D4E7FF;height:28px;padding-bottom:1px;line-height:28px} +.list-table .list-bd td{padding:8px 5px;overflow:hidden;text-align:center;vertical-align:middle;border:1px solid #D4E7FF;border-left-color:#E6E6E6;border-right-color:#E6E6E6} +.list-table .list-count{font-family:'Courier New',Courier,mono;font-style:italic;font-weight:bold;margin:0 8px 0 5px;font-size:14px} + +/* 壁纸设置 */ +.wallpapertype{width:500px;height:40px;line-height:40px;margin:auto;margin-top:10px} +.wallpaper{width:500px;margin:auto;margin-top:10px} +.wallpaper li{width:150px;height:110px;float:left;margin-right:10px;border:5px solid #fff;background:#fff;cursor:pointer} +.wallpaper li.three{margin-right:0} +.wallpaper li:hover{border-color:#9FF;background:#9FF} +.wallpaper li div{width:150px;height:20px;line-height:20px;text-align:center} +.wapppapercustom{width:500px;margin:auto;margin-top:10px;border:1px solid #ccc} +.wapppapercustom .tip{padding:10px} +.wapppapercustom .view{width:500px;height:250px} +.wapppapercustom .view ul{width:480px;height:230px;line-height:230px;margin:auto;margin-bottom:15px;text-align:center} +.wapppapercustom .view ul li{border:5px solid #fff;overflow:hidden;float:left;width:150px;height:105px;margin:5px 0;position:relative} +.wapppapercustom .view ul li a{display:none;position:absolute;z-index:2;top:-5px;right:-5px;text-decoration:none;width:48px;height:32px;line-height:32px;text-align:center;background-color:#ccc} +.wapppapercustom .view ul li:hover{border-color:#ccc;cursor:pointer} +.wapppapercustom .view ul li:hover a{display:block} +.wapppaperwebsite{width:480px;margin:auto;margin-top:10px;padding:10px;border:1px solid #ccc} + +/* 皮肤设置 */ +.skin{width:550px;margin:auto;margin-top:10px} +.skin li{width:256px;height:156px;margin:0 4px 10px 4px;float:left;border:5px solid #fff;background:#fff;cursor:pointer;position:relative} +.skin li:hover{border-color:#9FF;background:#9FF} +.skin li div{display:none;width:48px;height:48px;background:url(selected.png) no-repeat;position:absolute;right:-15px;bottom:-15px} +.skin li.selected div{display:block} + +/* 应用码头位置设置 */ +.dock_setting{width:710px;margin:auto} +.dock_setting table{width:100%} +.dock_setting .set_top{padding:10px 0 10px 320px} +.dock_setting .set_left{padding:0 5px} +.dock_setting .set_right{padding:0 5px} +.dock_setting .set_view{display:inline;float:left;width:550px;height:280px;background-image:url(dock_setting.jpg)} +.dock_setting .set_view_top{background-position:0 0} +.dock_setting .set_view_left{background-position:0 -280px} +.dock_setting .set_view_right{background-position:0 -560px} + +/* 应用市场 */ +.sub-nav{position:absolute;z-index:2;top:0;bottom:0;left:0;width:60px;height:100%} +.sub-nav ul{position:absolute;width:54px;height:100%;margin:0 0 0 5px} +.sub-nav ul .all{margin-top:5px} +.sub-nav ul .myapps{position:absolute;bottom:10px} +.sub-nav ul li a{padding-right:0;min-width:28px!important} +.sub-nav ul li a:hover, +.sub-nav ul .active a, +.sub-nav ul .active a:hover{background:#EEE} + +.wrap{position:absolute;top:0;right:0;bottom:0;left:60px;_position:relative;_left:0;_height:100%;_margin-left:60px;overflow:auto;background:#EEE} +.mbox{border:1px solid #DDD;background:#FFF} +.app-contents, +.col-main{position:relative;padding:10px;overflow:hidden} +.col-sub{float:right;width:215px;padding:10px 10px 0 0;overflow:hidden} +.app-list-box{height:400px;overflow:hidden} + +.app-list-box .app-list{margin:0;height:324px;overflow:hidden;background:url(app_list.png)} +.app-list-box .app-list li{position:relative;height:54px;padding:6px 0 6px 68px;vertical-align:middle;overflow:hidden} +.app-list-box .app-list li:hover{background:#FBEFCE} +.app-list-box .app-list li a{color:#555;text-decoration:none} +.app-list-box .app-list li a:hover{color:#36C} +.app-list-box .app-list img{position:absolute;top:9px;left:10px;width:48px;height:48px} +.app-list-box .app-list .app-name, +.app-list-box .app-list .app-desc{display:block;width:240px;height:27px;line-height:27px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} +.app-list-box .app-list .app-name{font-weight:bold} +.app-list-box .app-list .app-desc{color:#999} +.app-list-box .app-list .app-desc b{font-weight:normal} +.btn-add-s, +.btn-run-s, +.btn-remove-s, +.btn-loading-s{display:inline-block;width:24px;height:24px;line-height:20;overflow:hidden;background-position:0 -110px;position:absolute;top:21px;right:20px;background:url(app_spr_img.png) no-repeat} +.btn-add-s{background-position:0 -110px} +.btn-add-s:hover{background-position:-25px -110px} +.btn-add-s:active{background-position:-50px -110px} +.btn-run-s{background-position:0 -135px} +.btn-run-s:hover{background-position:-25px -135px} +.btn-run-s:active{background-position:-50px -135px} +.btn-remove-s{background-position:0 -160px} +.btn-remove-s:hover{background-position:-25px -160px} +.btn-remove-s:active{background-position:-50px -160px} +.btn-loading-s{background:url(loading_24.gif) no-repeat} + +.app-list .star-box, +.app-list .star-box i{background:url(app_spr_img.png) no-repeat} +.app-list .star-box{position:relative;top:-46px;left:252px;display:inline-block;width:85px;height:15px;background-position:0 -62px} +.app-list .star-box i{position:absolute;font-style:normal;top:0;left:0;height:15px;overflow:hidden;background-position:0 -78px} +.app-list .star-num{position:absolute;top:10px;left:415px;display:inline-block;height:21px;line-height:21px;font-family:Georgia;font-weight:bold;font-size:16px;color:#F60} +.app-list .app-stat{position:absolute;top:36px;right:93px;color:#999} +.app-list .app-list-box .app-list b{color:#F60} + +.search-box{position:relative;height:28px;margin-bottom:8px} + +.btn-add, +.btn-run{float:right;display:inline-block;width:93px;height:30px;line-height:31px;text-indent:29px;overflow:hidden;color:#fff;background:url(app_spr_img.png) no-repeat;text-decoration:none} +.btn-add:hover{background-position:-94px 0} +.btn-add:active{background-position:-188px 0} +.btn-run{background-position:0 -31px} +.btn-run:hover{background-position:-94px -31px} +.btn-run:active{background-position:-188px -31px} + +.commend-day{height:176px;margin-bottom:10px;overflow:hidden} +.commend-day h3{margin:0;padding:0 10px;height:30px;line-height:31px;font-size:12px;overflow:hidden;border-bottom:1px solid #DDD;background-image:url(app_spr_x.png);background-repeat:repeat-x;background-position:0 -37px} +.commend-day .star-box, +.commend-day .star-box i{background:url(app_spr_img.png) no-repeat} +.commend-day .star-box{position:relative;left:0;top:0;float:left;margin:5px 0 0 8px;display:inline-block;width:85px;height:15px;background-position:0 -62px} +.commend-day .star-box i{position:absolute;font-style:normal;top:0;left:0;height:15px;overflow:hidden;background-position:0 -78px} +.commend-container{position:relative;float:left;width:48px;height:48px;margin:10px 0 0 5px;overflow:hidden;padding:7px 21px 45px;background:url(commend_day.gif) no-repeat 0 0;_display:inline} +.commend-text{float:right;width:100px;padding:0 10px 0 0;line-height:18px;color:#999} +.commend-text h4{margin-top:0;margin-bottom:3px;padding:3px 0;font-size:12px;color:#555;border-bottom:1px solid #DDD} +.commend-text h4 strong, +.commend-text h4 span{display:block} +.commend-text h4 span{font-weight:normal;color:#999} +.commend-text .con{width:100px;height:54px;word-wrap:break-word;overflow:hidden} +.commend-text .btn-add, +.commend-text .btn-run{margin-top:5px;margin-right:5px;color:#fff;text-decoration:none} + +.detail-wrap{background:#EEE} +.detail-wrap .btn-back{display:inline-block;width:35px;height:20px;padding-left:15px;line-height:21px;overflow:hidden;color:#fff;background:url(app_spr_img.png) no-repeat -129px -83px;text-decoration:none} +.detail-wrap .btn-back:hover{background-position:-180px -83px} +.detail-wrap .btn-back:active{background-position:-231px -83px} + +.app-title{position:relative;height:48px;padding:9px 0 8px 68px;border-bottom:1px solid #DDD;background:url(app_spr_x.png) repeat-x 0 -68px} +.app-title img{position:absolute;top:9px;left:10px;width:48px;height:48px} +.app-title span{display:block;line-height:24px} +.app-title .app-name{font-weight:bold;font-size:14px} +.app-title .app-desc{color:#999} +.app-title .app-desc i{color:#F60;font-style:normal} +.app-title .btn-add, +.app-title .btn-run{position:absolute;top:17px;right:10px;color:#fff;text-decoration:none} + +.grade-box{width:100px;height:18px;position:absolute;top:75px;right:10px} +.grade-box .star-box, +.grade-box .star-box i, +.grade-box .star-box a{background-image:url(app_spr_img.png);_background-image:url(app_spr_img.gif);background-repeat:no-repeat} +.grade-box .star-box{float:right} +.grade-box .star-num{float:right;margin:-3px 0 0 4px} +.grade-box .star-box{position:relative;display:inline-block;width:85px;height:15px;background-position:0 -62px} +.grade-box .star-box div{width:40px;height:18px;line-height:18px;float:left;position:relative;left:-40px} +.grade-box .star-box i{position:absolute;top:0;left:0;height:15px;overflow:hidden;background-position:0 -78px;font-style:normal} +.grade-box .star-box ul, +.grade-box .star-box li{position:absolute;margin:0} +.grade-box .star-box a{display:block;height:15px;background-position:100px 100px} +.grade-box .star-box a:hover{background-position:0 -94px} +.grade-box .star-box a em{visibility:hidden;position:absolute;top:-2px;left:-84px;width:80px;text-align:right;color:#999;font-style:normal;background-color:#fff} +.grade-box .star-box a:hover em{visibility:visible} +.grade-box .grade-1{width:17px;z-index:10} +.grade-box .grade-2{width:34px;z-index:9} +.grade-box .grade-3{width:51px;z-index:8} +.grade-box .grade-4{width:68px;z-index:7} +.grade-box .grade-5{width:85px;z-index:6} +.grade-box .star-num{display:inline-block;height:21px;line-height:21px;font-family:Georgia;font-weight:bold;font-size:16px;color:#F60} + +.app-contents h4{margin:0 10px;line-height:31px;font-size:12px} +.app-contents h5{margin:0 10px;line-height:23px;font-weight:normal;font-size:12px} +.app-contents h5 em{color:#999;font-style:normal} +.app-text{margin:5px 10px;padding:5px;border-top:1px dotted #DDD} + +/* 应用管理 */ +.bottom-bar{border-top:1px solid #ddd;width:100%;height:62px;overflow:hidden;position:fixed;z-index:999;bottom:0} +.bottom-bar .con{background:#F2F2F2;height:42px;padding:10px} + +.creatbox{position:absolute;top:0;bottom:0;left:0;right:0} +.creatbox .middle{border-bottom:1px solid #fff;position:absolute;top:0;bottom:50px;left:0;right:0;overflow:auto} + +.shortcutbox{display:inline-block;width:58px;height:58px;border:1px solid #fff;position:relative;z-index:1000} +.shortcutbox:hover{border:1px solid #ccc;border-right:1px solid #fff} +.shortcutbox:hover .shortcut-selicon{display:block} + +.shortcut-addicon{display:inline-block;width:50px;height:50px;margin:4px;background:url(desk_sprite.png) no-repeat -420px -100px;cursor:pointer;position:relative;overflow:hidden} +.shortcut-addicon.bgnone{background:none} +.shortcut-addicon img{width:48px;height:48px;margin:1px} +.shortcut-selicon{position:absolute;top:-1px;left:58px;width:340px;padding:10px 0 0 10px;background:#fff;border:1px solid #ccc;display:none} +.shortcut-selicon a{display:block;width:48px;height:48px;padding:5px;margin-right:10px;margin-bottom:10px;float:left} +.shortcut-selicon a:hover{background:url(desk_sprite.png) no-repeat -350px -100px} +.shortcut-selicon img{width:48px;height:48px} + +/*权限管理*/ +.permissions_apps{width:100%;float:left;clear:right} +.permissions_apps .app{width:48px;height:48px;margin:0 10px 10px;float:left;position:relative} +.permissions_apps .app img{width:48px;height:48px} +.permissions_apps .app .del{display:none;position:absolute;right:-6px;top:-6px;text-align:center;font-size:12px;width:20px;height:20px;line-height:20px;cursor:pointer;background:#E6110E;color:#fff;border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px} +.permissions_apps .app:hover .del{display:block} + +.alert_addapps{width:340px;margin:auto} +.alert_addapps .app{width:48px;height:48px;margin:10px 10px 20px 10px;float:left;position:relative;cursor:pointer} +.alert_addapps .app img{width:48px;height:48px} +.alert_addapps .app .name{width:100%;height:24px;line-height:24px;overflow:hidden} +.alert_addapps .app .selected{display:none;position:absolute;width:16px;height:16px;right:0;bottom:0;background:url(selected.gif) no-repeat} +.alert_addapps .act .selected{display:block} + + + + + + + + + + + + + + + + diff --git a/WebRoot/js/HoorayOS_mini/img/ui/system-chart-bar.png b/WebRoot/js/HoorayOS_mini/img/ui/system-chart-bar.png new file mode 100644 index 00000000..572e0ad3 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/system-chart-bar.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/system-document-edit.png b/WebRoot/js/HoorayOS_mini/img/ui/system-document-edit.png new file mode 100644 index 00000000..5c5d6b2b Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/system-document-edit.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/system-documents.png b/WebRoot/js/HoorayOS_mini/img/ui/system-documents.png new file mode 100644 index 00000000..5c09fca6 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/system-documents.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/system-gear.png b/WebRoot/js/HoorayOS_mini/img/ui/system-gear.png new file mode 100644 index 00000000..fc96cdd8 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/system-gear.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/system-mail.png b/WebRoot/js/HoorayOS_mini/img/ui/system-mail.png new file mode 100644 index 00000000..ff05394b Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/system-mail.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/system-puzzle.png b/WebRoot/js/HoorayOS_mini/img/ui/system-puzzle.png new file mode 100644 index 00000000..1452e2bf Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/system-puzzle.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/system-shapes.png b/WebRoot/js/HoorayOS_mini/img/ui/system-shapes.png new file mode 100644 index 00000000..269372b4 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/system-shapes.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/system-star.png b/WebRoot/js/HoorayOS_mini/img/ui/system-star.png new file mode 100644 index 00000000..072c3279 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/system-star.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/system-users.png b/WebRoot/js/HoorayOS_mini/img/ui/system-users.png new file mode 100644 index 00000000..89d38727 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/system-users.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/system-wrench.png b/WebRoot/js/HoorayOS_mini/img/ui/system-wrench.png new file mode 100644 index 00000000..6f97a05e Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/system-wrench.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/task_bg1.png b/WebRoot/js/HoorayOS_mini/img/ui/task_bg1.png new file mode 100644 index 00000000..380acfae Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/task_bg1.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/task_bg2.png b/WebRoot/js/HoorayOS_mini/img/ui/task_bg2.png new file mode 100644 index 00000000..40547803 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/task_bg2.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/transparent.gif b/WebRoot/js/HoorayOS_mini/img/ui/transparent.gif new file mode 100644 index 00000000..35d42e80 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/transparent.gif differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/warning.png b/WebRoot/js/HoorayOS_mini/img/ui/warning.png new file mode 100644 index 00000000..0e3aed53 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/warning.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/widget_title_bg.png b/WebRoot/js/HoorayOS_mini/img/ui/widget_title_bg.png new file mode 100644 index 00000000..6030ff70 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/widget_title_bg.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/window_mask_bg.png b/WebRoot/js/HoorayOS_mini/img/ui/window_mask_bg.png new file mode 100644 index 00000000..01cd25ab Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/window_mask_bg.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/ui/window_mask_icon.png b/WebRoot/js/HoorayOS_mini/img/ui/window_mask_icon.png new file mode 100644 index 00000000..b6af786b Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/ui/window_mask_icon.png differ diff --git a/WebRoot/js/HoorayOS_mini/img/wallpaper/wallpaper.jpg b/WebRoot/js/HoorayOS_mini/img/wallpaper/wallpaper.jpg new file mode 100644 index 00000000..e7becba8 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/img/wallpaper/wallpaper.jpg differ diff --git a/WebRoot/js/HoorayOS_mini/index.html b/WebRoot/js/HoorayOS_mini/index.html new file mode 100644 index 00000000..e8741650 --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/index.html @@ -0,0 +1,105 @@ + + + + +HoorayOS桌面应用框架 + + + + + +
+ +
+
+
您正在使用的IE浏览器版本过低,
我们建议您升级或者更换浏览器,以便体验顺畅、兼容、安全的互联网。
+
选择一款浏览器吧
+ + +
+
+ +
+
×
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/js/HoorayLibs/ZeroClipboard.swf b/WebRoot/js/HoorayOS_mini/js/HoorayLibs/ZeroClipboard.swf new file mode 100644 index 00000000..13bf8e39 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/js/HoorayLibs/ZeroClipboard.swf differ diff --git a/WebRoot/js/HoorayOS_mini/js/HoorayLibs/gb_tip_layer.png b/WebRoot/js/HoorayOS_mini/js/HoorayLibs/gb_tip_layer.png new file mode 100644 index 00000000..74ab5f5a Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/js/HoorayLibs/gb_tip_layer.png differ diff --git a/WebRoot/js/HoorayOS_mini/js/HoorayLibs/gb_tip_layer_ie6.png b/WebRoot/js/HoorayOS_mini/js/HoorayLibs/gb_tip_layer_ie6.png new file mode 100644 index 00000000..9b4c806d Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/js/HoorayLibs/gb_tip_layer_ie6.png differ diff --git a/WebRoot/js/HoorayOS_mini/js/HoorayLibs/gb_tip_loading.gif b/WebRoot/js/HoorayOS_mini/js/HoorayLibs/gb_tip_loading.gif new file mode 100644 index 00000000..e846e1d6 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/js/HoorayLibs/gb_tip_loading.gif differ diff --git a/WebRoot/js/HoorayOS_mini/js/HoorayLibs/hooraylibs.css b/WebRoot/js/HoorayOS_mini/js/HoorayLibs/hooraylibs.css new file mode 100644 index 00000000..90664671 --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/js/HoorayLibs/hooraylibs.css @@ -0,0 +1,41 @@ +#topcontrol{z-index:999} +#topcontrol a{display:block;width:54px;height:41px;background:url(scrolltotop.gif) no-repeat 0 0} +#topcontrol a:hover{display:block;width:54px;height:41px;background:url(scrolltotop.gif) no-repeat -54px 0} + +.zeng_msgbox_layer, +.zeng_msgbox_layer .gtl_ico_succ, +.zeng_msgbox_layer .gtl_ico_fail, +.zeng_msgbox_layer .gtl_ico_hits, +.zeng_msgbox_layer .gtl_ico_clear, +.zeng_msgbox_layer .gtl_end{display:inline-block;height:54px;line-height:54px;font-weight:bold;font-size:14px;color:#606060;background-image:url(gb_tip_layer.png);_background-image:url(gb_tip_layer_ie6.png);background-repeat:no-repeat} +.zeng_msgbox_layer_wrap{width:100%;position:fixed;_position:absolute;top:46%;left:0;text-align:center;z-index:65533} +.zeng_msgbox_layer{background-position:0 -161px;background-repeat:repeat-x;padding:0 18px 0 9px;margin:0 auto;position:relative} +.zeng_msgbox_layer .gtl_ico_succ{background-position:-6px 0;left:-45px;top:0;width:45px;position:absolute} +.zeng_msgbox_layer .gtl_end{background-position:0 0;position:absolute;right:-6px;top:0;width:6px} +.zeng_msgbox_layer .gtl_ico_fail{background-position:-6px -108px;position:absolute;left:-45px;top:0;width:45px} +.zeng_msgbox_layer .gtl_ico_hits{background-position:-6px -54px;position:absolute;left:-45px;top:0;width:45px} +.zeng_msgbox_layer .gtl_ico_clear{background-position:-6px 0;left:-5px;width:5px;position:absolute;top:0} +.zeng_msgbox_layer .gtl_ico_loading{width:16px;height:16px;border:0;background-image:url(gb_tip_loading.gif);float:left;margin:19px 10px 0 5px} + +.colorTip{display:none;position:absolute;left:50%;top:-30px;padding:6px;background-color:white;font-family:Arial,Helvetica,sans-serif;font-size:11px;font-style:normal;line-height:1;text-decoration:none;text-align:center;text-shadow:0 0 1px white;white-space:nowrap;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px} +.pointyTip,.pointyTipShadow{border:6px solid transparent;bottom:-12px;height:0;left:50%;margin-left:-6px;position:absolute;width:0} +.pointyTipShadow{border-width:7px;bottom:-14px;margin-left:-7px} +.colorTipContainer{position:relative;text-decoration:none!important} +.white .pointyTip{border-top-color:white} +.white .pointyTipShadow{border-top-color:#ddd} +.white .colorTip{background-color:white;border:1px solid #ddd;color:#555} +.yellow .pointyTip{border-top-color:#f9f2ba} +.yellow .pointyTipShadow{border-top-color:#e9d315} +.yellow .colorTip{background-color:#f9f2ba;border:1px solid #e9d315;color:#5b5316} +.blue .pointyTip{border-top-color:#d9f1fb} +.blue .pointyTipShadow{border-top-color:#7fcdee} +.blue .colorTip{background-color:#d9f1fb;border:1px solid #7fcdee;color:#1b475a} +.green .pointyTip{border-top-color:#f2fdf1} +.green .pointyTipShadow{border-top-color:#b6e184} +.green .colorTip{background-color:#f2fdf1;border:1px solid #b6e184;color:#558221} +.red .pointyTip{border-top-color:#bb3b1d} +.red .pointyTipShadow{border-top-color:#8f2a0f} +.red .colorTip{background-color:#bb3b1d;border:1px solid #8f2a0f;color:#fcfcfc;text-shadow:none} +.black .pointyTip{border-top-color:#333} +.black .pointyTipShadow{border-top-color:#111} +.black .colorTip{background-color:#333;border:1px solid #111;color:#fcfcfc;text-shadow:none} \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/js/HoorayLibs/hooraylibs.js b/WebRoot/js/HoorayOS_mini/js/HoorayLibs/hooraylibs.js new file mode 100644 index 00000000..572f6ddb --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/js/HoorayLibs/hooraylibs.js @@ -0,0 +1,120 @@ +/** + * 整理:胡尐睿丶 + * 联系:hooray0905@foxmail.com + */ + + +/** + * ie6 png透明修正 + * DD_belatedPNG.fix('.png_bg'); + * DD_belatedPNG.fixPng( someNode ); + * http://www.dillerdesign.com/experiment/DD_belatedPNG/ + */ +if($.browser.msie&&($.browser.version=="6.0")&&!$.support.style){var DD_belatedPNG={ns:"DD_belatedPNG",imgSize:{},delay:10,nodesFixed:0,createVmlNameSpace:function(){if(document.namespaces&&!document.namespaces[this.ns]){document.namespaces.add(this.ns,"urn:schemas-microsoft-com:vml")}},createVmlStyleSheet:function(){var b,a;b=document.createElement("style");b.setAttribute("media","screen");document.documentElement.firstChild.insertBefore(b,document.documentElement.firstChild.firstChild);if(b.styleSheet){b=b.styleSheet;b.addRule(this.ns+"\\:*","{behavior:url(#default#VML)}");b.addRule(this.ns+"\\:shape","position:absolute;");b.addRule("img."+this.ns+"_sizeFinder","behavior:none; border:none; position:absolute; z-index:-1; top:-10000px; visibility:hidden;");this.screenStyleSheet=b;a=document.createElement("style");a.setAttribute("media","print");document.documentElement.firstChild.insertBefore(a,document.documentElement.firstChild.firstChild);a=a.styleSheet;a.addRule(this.ns+"\\:*","{display: none !important;}");a.addRule("img."+this.ns+"_sizeFinder","{display: none !important;}")}},readPropertyChange:function(){var b,c,a;b=event.srcElement;if(!b.vmlInitiated){return}if(event.propertyName.search("background")!=-1||event.propertyName.search("border")!=-1){DD_belatedPNG.applyVML(b)}if(event.propertyName=="style.display"){c=(b.currentStyle.display=="none")?"none":"block";for(a in b.vml){if(b.vml.hasOwnProperty(a)){b.vml[a].shape.style.display=c}}}if(event.propertyName.search("filter")!=-1){DD_belatedPNG.vmlOpacity(b)}},vmlOpacity:function(b){if(b.currentStyle.filter.search("lpha")!=-1){var a=b.currentStyle.filter;a=parseInt(a.substring(a.lastIndexOf("=")+1,a.lastIndexOf(")")),10)/100;b.vml.color.shape.style.filter=b.currentStyle.filter;b.vml.image.fill.opacity=a}},handlePseudoHover:function(a){setTimeout(function(){DD_belatedPNG.applyVML(a)},1)},fix:function(a){if(this.screenStyleSheet){var c,b;c=a.split(",");for(b=0;bn.H){i.B=n.H}d.vml.image.shape.style.clip="rect("+i.T+"px "+(i.R+a)+"px "+i.B+"px "+(i.L+a)+"px)"}else{d.vml.image.shape.style.clip="rect("+f.T+"px "+f.R+"px "+f.B+"px "+f.L+"px)"}},figurePercentage:function(d,c,f,a){var b,e;e=true;b=(f=="X");switch(a){case"left":case"top":d[f]=0;break;case"center":d[f]=0.5;break;case"right":case"bottom":d[f]=1;break;default:if(a.search("%")!=-1){d[f]=parseInt(a,10)/100}else{e=false}}d[f]=Math.ceil(e?((c[b?"W":"H"]*d[f])-(c[b?"w":"h"]*d[f])):parseInt(a,10));if(d[f]%2===0){d[f]++}return d[f]},fixPng:function(c){c.style.behavior="none";var g,b,f,a,d;if(c.nodeName=="BODY"||c.nodeName=="TD"||c.nodeName=="TR"){return}c.isImg=false;if(c.nodeName=="IMG"){if(c.src.toLowerCase().search(/\.png$/)!=-1){c.isImg=true;c.style.visibility="hidden"}else{return}}else{if(c.currentStyle.backgroundImage.toLowerCase().search(".png")==-1){return}}g=DD_belatedPNG;c.vml={color:{},image:{}};b={shape:{},fill:{}};for(a in c.vml){if(c.vml.hasOwnProperty(a)){for(d in b){if(b.hasOwnProperty(d)){f=g.ns+":"+d;c.vml[a][d]=document.createElement(f)}}c.vml[a].shape.stroked=false;c.vml[a].shape.appendChild(c.vml[a].fill);c.parentNode.insertBefore(c.vml[a].shape,c)}}c.vml.image.shape.fillcolor="none";c.vml.image.fill.type="tile";c.vml.color.fill.on=false;g.attachHandlers(c);g.giveLayout(c);g.giveLayout(c.offsetParent);c.vmlInitiated=true;g.applyVML(c)}};try{document.execCommand("BackgroundImageCache",false,true)}catch(r){}DD_belatedPNG.createVmlNameSpace();DD_belatedPNG.createVmlStyleSheet();} + +/** + * SWFObject v2.2 + * http://code.google.com/p/swfobject/ + * swfobject.embedSWF("test.swf", "myContent", "300", "120", "9.0.0", "expressInstall.swf"); + */ +var 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;ab500){g=g.substr(0,500)+"...\n\n("+(g.length-500)+" characters not shown)"}e.removeClass("hover");alert("Copied text to clipboard:\n\n "+g)}if(b.clickAfter){e.trigger("click")}});d.glue(e[0],e.parent()[0]);a(window).bind("load resize",function(){d.reposition()})}})}else{if(typeof c=="string"){return this.each(function(){var f=a(this);c=c.toLowerCase();var e=f.data("zclipId");var d=a("#"+e+".zclip");if(c=="remove"){d.remove();f.removeClass("active hover")}else{if(c=="hide"){d.hide();f.removeClass("active hover")}else{if(c=="show"){d.show()}}}})}}}})(jQuery);var ZeroClipboard={version:"1.0.7",clients:{},moviePath:"ZeroClipboard.swf",nextId:1,$:function(a){if(typeof(a)=="string"){a=document.getElementById(a)}if(!a.addClass){a.hide=function(){this.style.display="none"};a.show=function(){this.style.display=""};a.addClass=function(b){this.removeClass(b);this.className+=" "+b};a.removeClass=function(d){var e=this.className.split(/\s+/);var b=-1;for(var c=0;c-1){e.splice(b,1);this.className=e.join(" ")}return this};a.hasClass=function(b){return !!this.className.match(new RegExp("\\s*"+b+"\\s*"))}}return a},setMoviePath:function(a){this.moviePath=a},dispatch:function(d,b,c){var a=this.clients[d];if(a){a.receiveEvent(b,c)}},register:function(b,a){this.clients[b]=a},getDOMObjectPosition:function(c,a){var b={left:0,top:0,width:c.width?c.width:c.offsetWidth,height:c.height?c.height:c.offsetHeight};if(c&&(c!=a)){b.left+=c.offsetLeft;b.top+=c.offsetTop}return b},Client:function(a){this.handlers={};this.id=ZeroClipboard.nextId++;this.movieId="ZeroClipboardMovie_"+this.id;ZeroClipboard.register(this.id,this);if(a){this.glue(a)}}};ZeroClipboard.Client.prototype={id:0,ready:false,movie:null,clipText:"",handCursorEnabled:true,cssEffects:true,handlers:null,glue:function(d,b,e){this.domElement=ZeroClipboard.$(d);var f=99;if(this.domElement.style.zIndex){f=parseInt(this.domElement.style.zIndex,10)+1}if(typeof(b)=="string"){b=ZeroClipboard.$(b)}else{if(typeof(b)=="undefined"){b=document.getElementsByTagName("body")[0]}}var c=ZeroClipboard.getDOMObjectPosition(this.domElement,b);this.div=document.createElement("div");this.div.className="zclip";this.div.id="zclip-"+this.movieId;$(this.domElement).data("zclipId","zclip-"+this.movieId);var a=this.div.style;a.position="absolute";a.left=""+c.left+"px";a.top=""+c.top+"px";a.width=""+c.width+"px";a.height=""+c.height+"px";a.zIndex=f;if(typeof(e)=="object"){for(addedStyle in e){a[addedStyle]=e[addedStyle]}}b.appendChild(this.div);this.div.innerHTML=this.getHTML(c.width,c.height)},getHTML:function(d,a){var c="";var b="id="+this.id+"&width="+d+"&height="+a;if(navigator.userAgent.match(/MSIE/)){var e=location.href.match(/^https/i)?"https://":"http://";c+=''}else{c+=''}return c},hide:function(){if(this.div){this.div.style.left="-2000px"}},show:function(){this.reposition()},destroy:function(){if(this.domElement&&this.div){this.hide();this.div.innerHTML="";var a=document.getElementsByTagName("body")[0];try{a.removeChild(this.div)}catch(b){}this.domElement=null;this.div=null}},reposition:function(c){if(c){this.domElement=ZeroClipboard.$(c);if(!this.domElement){this.hide()}}if(this.domElement&&this.div){var b=ZeroClipboard.getDOMObjectPosition(this.domElement);var a=this.div.style;a.left=""+b.left+"px";a.top=""+b.top+"px"}},setText:function(a){this.clipText=a;if(this.ready){this.movie.setText(a)}},addEventListener:function(a,b){a=a.toString().toLowerCase().replace(/^on/,"");if(!this.handlers[a]){this.handlers[a]=[]}this.handlers[a].push(b)},setHandCursor:function(a){this.handCursorEnabled=a;if(this.ready){this.movie.setHandCursor(a)}},setCSSEffects:function(a){this.cssEffects=!!a},receiveEvent:function(d,f){d=d.toString().toLowerCase().replace(/^on/,"");switch(d){case"load":this.movie=document.getElementById(this.movieId);if(!this.movie){var c=this;setTimeout(function(){c.receiveEvent("load",null)},1);return}if(!this.ready&&navigator.userAgent.match(/Firefox/)&&navigator.userAgent.match(/Windows/)){var c=this;setTimeout(function(){c.receiveEvent("load",null)},100);this.ready=true;return}this.ready=true;try{this.movie.setText(this.clipText)}catch(h){}try{this.movie.setHandCursor(this.handCursorEnabled)}catch(h){}break;case"mouseover":if(this.domElement&&this.cssEffects){this.domElement.addClass("hover");if(this.recoverActive){this.domElement.addClass("active")}}break;case"mouseout":if(this.domElement&&this.cssEffects){this.recoverActive=false;if(this.domElement.hasClass("active")){this.domElement.removeClass("active");this.recoverActive=true}this.domElement.removeClass("hover")}break;case"mousedown":if(this.domElement&&this.cssEffects){this.domElement.addClass("active")}break;case"mouseup":if(this.domElement&&this.cssEffects){this.domElement.removeClass("active");this.recoverActive=false}break}if(this.handlers[d]){for(var b=0,a=this.handlers[d].length;bc?b=!0:m[d]=0;b||(p=!1)}function A(a,c,b,d,g){var f,e,h=[],j=b.type;if(!l[a])return[];"keyup"==j&&u(a)&&(c=[a]);for(f=0;fd||h.hasOwnProperty(d)&&(q[h[d]]=d)}b=q[a]?"keydown":"keypress"}"keypress"==b&&c.length&&(b="keydown");return b}function C(a,c,b,d,g){r[a+":"+b]=c;a=a.replace(/\s+/g," ");var f=a.split(" "),e,h,j=[];if(1":".","?":"/","|":"\\"},E={option:"alt",command:"meta","return":"enter",escape:"esc"},q,l={},r={},m={},D,x=!1,p=!1,g=1;20>g;++g)h[111+g]="f"+g;for(g=0;9>=g;++g)h[g+96]=g;s(document,"keypress",w);s(document,"keydown",w);s(document,"keyup",w);var k={bind:function(a,c,b){a=a instanceof Array?a:[a];for(var d=0;dne_half?Math.max(Math.min(current_page-ne_half,upper_limit),0):0;var end=current_page>ne_half?Math.min(current_page+ne_half+(this.opts.num_display_entries%2),np):Math.min(this.opts.num_display_entries,np);return{start:start,end:end}}});$.PaginationRenderers={};$.PaginationRenderers.defaultRenderer=function(maxentries,opts){this.maxentries=maxentries;this.opts=opts;this.pc=new $.PaginationCalculator(maxentries,opts)};$.extend($.PaginationRenderers.defaultRenderer.prototype,{createLink:function(page_id,current_page,appendopts){var lnk,np=this.pc.numPages();page_id=page_id<0?0:(page_id"+appendopts.text+"")}else{lnk=$("
  • "+appendopts.text+"
  • ")}}else{lnk=$("
  • "+appendopts.text+"
  • ")}if(appendopts.classes){lnk.addClass(appendopts.classes)}lnk.data("page_id",page_id);return lnk},appendRange:function(container,current_page,start,end,opts){var i;for(i=start;i");if(this.opts.prev_text&&(current_page>0||this.opts.prev_show_always)){fragment.append(this.createLink(current_page-1,current_page,{text:this.opts.prev_text,classes:"prev"}))}if(interval.start>0&&this.opts.num_edge_entries>0){end=Math.min(this.opts.num_edge_entries,interval.start);this.appendRange(fragment,current_page,0,end,{classes:"sp"});if(this.opts.num_edge_entries"+this.opts.ellipse_text+"").appendTo(fragment)}}this.appendRange(fragment,current_page,interval.start,interval.end);if(interval.end0){if(np-this.opts.num_edge_entries>interval.end&&this.opts.ellipse_text){$("
  • "+this.opts.ellipse_text+"
  • ").appendTo(fragment)}begin=Math.max(np-this.opts.num_edge_entries,interval.end);this.appendRange(fragment,current_page,begin,np,{classes:"ep"})}if(this.opts.next_text&&(current_page=0&&page_id0){selectPage(current_page-1)}return false});containers.off("nextPage").on("nextPage",{numPages:np},function(evt){var current_page=$(this).data("current_page");if(current_page=1?"":("alpha(opacity="+Math.round(h*100)+")")}}else{if(a=="backgroundPositionX"||a=="backgroundPositionY"){e=a.slice(-1)=="X"?"Y":"X";if(d){var i=ZENG.dom.getStyle(c,"backgroundPosition"+e);a="backgroundPosition";typeof(h)=="number"&&(h=h+"px");h=e=="Y"?(h+" "+(i||"top")):((i||"left")+" "+h)}}}}if(typeof c.style[a]!="undefined"){c.style[a]=h+(typeof h==="number"&&!f.test(a)?"px":"");b=b&&true}else{b=b&&false}}return b},getScrollTop:function(a){var b=a||document;return Math.max(b.documentElement.scrollTop,b.body.scrollTop)},getClientHeight:function(a){var b=a||document;return b.compatMode=="CSS1Compat"?b.documentElement.clientHeight:b.body.clientHeight}};ZENG.string={RegExps:{trim:/^\s+|\s+$/g,ltrim:/^\s+/,rtrim:/\s+$/,nl2br:/\n/g,s2nb:/[\x20]{2}/g,URIencode:/[\x09\x0A\x0D\x20\x21-\x29\x2B\x2C\x2F\x3A-\x3F\x5B-\x5E\x60\x7B-\x7E]/g,escHTML:{re_amp:/&/g,re_lt://g,re_apos:/\x27/g,re_quot:/\x22/g},escString:{bsls:/\\/g,sls:/\//g,nl:/\n/g,rt:/\r/g,tab:/\t/g},restXHTML:{re_amp:/&/g,re_lt://g,re_apos:/&(?:apos|#0?39);/g,re_quot:/"/g},write:/\{(\d{1,2})(?:\:([xodQqb]))?\}/g,isURL:/^(?:ht|f)tp(?:s)?\:\/\/(?:[\w\-\.]+)\.\w+/i,cut:/[\x00-\xFF]/,getRealLen:{r0:/[^\x00-\xFF]/g,r1:/[\x00-\xFF]/g},format:/\{([\d\w\.]+)\}/g},commonReplace:function(a,c,b){return a.replace(c,b)},format:function(c){var b=Array.prototype.slice.call(arguments),a;c=String(b.shift());if(b.length==1&&typeof(b[0])=="object"){b=b[0]}ZENG.string.RegExps.format.lastIndex=0;return c.replace(ZENG.string.RegExps.format,function(d,e){a=ZENG.object.route(b,e);return a===undefined?d:a})}};ZENG.object={routeRE:/([\d\w_]+)/g,route:function(d,c){d=d||{};c=String(c);var b=ZENG.object.routeRE,a;b.lastIndex=0;while((a=b.exec(c))!==null){d=d[a[0]];if(d===undefined||d===null){break}}return d}};var ua=ZENG.userAgent={},agent=navigator.userAgent;ua.ie=9-((agent.indexOf("Trident/5.0")>-1)?0:1)-(window.XDomainRequest?0:1)-(window.XMLHttpRequest?0:1);if(typeof(ZENG.msgbox)=="undefined"){ZENG.msgbox={}}ZENG.msgbox._timer=null;ZENG.msgbox.loadingAnimationPath=ZENG.msgbox.loadingAnimationPath||("gb_tip_loading.gif");ZENG.msgbox.show=function(c,g,h,a){if(typeof(a)=="number"){a={topPosition:a}}a=a||{};var j=ZENG.msgbox,i='',d='',e=[0,0,0,0,"succ","fail","clear"],b,f;j._loadCss&&j._loadCss(a.cssPath);b=ZENG.dom.get("q_Msgbox")||ZENG.dom.createElementIn("div",document.body,false,{className:"zeng_msgbox_layer_wrap"});b.id="q_Msgbox";b.style.display="";b.innerHTML=ZENG.string.format(i,{type:e[g]||"hits",msgHtml:c||"",loadIcon:g==6?d:""});j._setPosition(b,h,a.topPosition)};ZENG.msgbox._setPosition=function(a,f,d){f=f||5000;var g=ZENG.msgbox,b=ZENG.dom.getScrollTop(),e=ZENG.dom.getClientHeight(),c=Math.floor(e/2)-40;ZENG.dom.setStyle(a,"top",((document.compatMode=="BackCompat"||ZENG.userAgent.ie<7)?b:0)+((typeof(d)=="number")?d:c)+"px");clearTimeout(g._timer);a.firstChild.style.display="";f&&(g._timer=setTimeout(g.hide,f))};ZENG.msgbox.hide=function(a){var b=ZENG.msgbox;if(a){clearTimeout(b._timer);b._timer=setTimeout(b._hide,a)}else{b._hide()}};ZENG.msgbox._hide=function(){var a=ZENG.dom.get("q_Msgbox"),b=ZENG.msgbox;clearTimeout(b._timer);if(a){var c=a.firstChild;ZENG.dom.setStyle(a,"display","none")}}; + +/** + * 全屏插件 + * http://johndyer.name/native-fullscreen-javascript-api-plus-jquery-plugin/ + */ +(function(){var d={supportsFullScreen:false,isFullScreen:function(){return false;},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",prefix:""},c="webkit moz o ms khtml".split(" ");if(typeof document.cancelFullScreen!="undefined"){d.supportsFullScreen=true;}else{for(var b=0,a=c.length;b"']/g,function(a){return{"<":"<",">":">",'"':""","'":"'","&":"&"}[a]}):a},$string:function(a){return"string"==typeof a||"number"==typeof a?a:"function"==typeof a?a():""}};var b=Array.prototype.forEach||function(a,b){for(var c=this.length>>>0,d=0;c>d;d++)d in this&&a.call(b,this[d],d,this)},c=function(a,c){b.call(a,c)},d="break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield,undefined",e=/\/\*(?:.|\n)*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|'[^']*'|"[^"]*"|[\s\t\n]*\.[\s\t\n]*[$\w\.]+/g,f=/[^\w$]+/g,g=RegExp(["\\b"+d.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),h=/\b\d[^,]*/g,i=/^,+|,+$/g,j=function(a){return a=a.replace(e,"").replace(f,",").replace(g,"").replace(h,"").replace(i,""),a=a?a.split(/,+/):[]};return function(b,d){function w(b){return k+=b.split(/\n/).length-1,a.isCompress&&(b=b.replace(/[\n\r\t\s]+/g," ")),b=b.replace(/('|\\)/g,"\\$1").replace(/\r/g,"\\r").replace(/\n/g,"\\n"),b=q[1]+"'"+b+"'"+q[2],b+"\n"}function x(b){var c=k;if(g?b=g(b):d&&(b=b.replace(/\n/g,function(){return k++,"$line="+k+";"})),0===b.indexOf("=")){var e=0!==b.indexOf("==");if(b=b.replace(/^=*|[\s;]*$/g,""),e&&a.isEscape){var f=b.replace(/\s*\([^\)]+\)/,"");m.hasOwnProperty(f)||/^(include|print)$/.test(f)||(b="$escape($string("+b+"))")}else b="$string("+b+")";b=q[1]+b+q[2]}return d&&(b="$line="+c+";"+b),y(b),b+"\n"}function y(a){a=j(a),c(a,function(a){l.hasOwnProperty(a)||(z(a),l[a]=!0)})}function z(a){var b;"print"===a?b=s:"include"===a?(n.$render=m.$render,b=t):(b="$data."+a,m.hasOwnProperty(a)&&(n[a]=m[a],b=0===a.indexOf("$")?"$helpers."+a:b+"===undefined?$helpers."+a+":"+b)),o+=a+"="+b+","}var e=a.openTag,f=a.closeTag,g=a.parser,h=b,i="",k=1,l={$data:!0,$helpers:!0,$out:!0,$line:!0},m=a.prototype,n={},o="var $helpers=this,"+(d?"$line=0,":""),p="".trim,q=p?["$out='';","$out+=",";","$out"]:["$out=[];","$out.push(",");","$out.join('')"],r=p?"if(content!==undefined){$out+=content;return content}":"$out.push(content);",s="function(content){"+r+"}",t="function(id,data){if(data===undefined){data=$data}var content=$helpers.$render(id,data);"+r+"}";c(h.split(e),function(a){a=a.split(f);var c=a[0],d=a[1];1===a.length?i+=w(c):(i+=x(c),d&&(i+=w(d)))}),h=i,d&&(h="try{"+h+"}catch(e){"+"e.line=$line;"+"throw e"+"}"),h="'use strict';"+o+q[0]+h+"return new String("+q[3]+")";try{var u=Function("$data",h);return u.prototype=n,u}catch(v){throw v.temp="function anonymous($data) {"+h+"}",v}}}()})(template,this),"function"==typeof define?define(function(a,b,c){c.exports=template}):"undefined"!=typeof exports&&(module.exports=template); + +/** + * colortip-1.0 + */ +(function($){$.fn.colorTip=function(settings){var defaultSettings={color:"yellow",timeout:500};var supportedColors=["red","green","blue","white","yellow","black"];settings=$.extend(defaultSettings,settings);return this.each(function(){var elem=$(this);if(!elem.attr("title")){return true;}var scheduleEvent=new eventScheduler();var tip=new Tip(elem.attr("title"));elem.append(tip.generate()).addClass("colorTipContainer");var hasClass=false;for(var i=0;i'+this.content+''));},show:function(){if(this.shown){return;}this.tip.css("margin-left",-this.tip.outerWidth()/2).fadeIn("fast");this.shown=true;},hide:function(){this.tip.fadeOut();this.shown=false;}};})(jQuery); + +/** + * 返回顶部插件scrolltotop + * scrolltotop.controlHTML='返回顶部'; + * scrolltotop.init(); + */ +scrolltotop={setting:{startline:100,scrollto:0,scrollduration:500,fadeduration:[500,100]},controlHTML:'',controlattrs:{offsetx:5,offsety:5},anchorkeyword:'#top',state:{isvisible:false,shouldvisible:false},scrollup:function(){if(!this.cssfixedsupport){if(this.$control!=undefined)this.$control.css({opacity:0})};var A=isNaN(this.setting.scrollto)?this.setting.scrollto:parseInt(this.setting.scrollto);if(typeof A=="string"&&jQuery('#'+A).length==1){A=jQuery('#'+A).offset().top;}else {A=this.setting.scrollto;};if(this.$body!=undefined)this.$body.animate({scrollTop:A},this.setting.scrollduration);},keepfixed:function(){var $A=jQuery(A);var B=$A.scrollLeft()+$A.width()-this.$control.width()-this.controlattrs.offsetx;var C=$A.scrollTop()+$A.height()-this.$control.height()-this.controlattrs.offsety;this.$control.css({left:B+'px',top:C+'px'});},togglecontrol:function(){var A=jQuery(window).scrollTop();if(!this.cssfixedsupport){this.keepfixed();};this.state.shouldvisible=(A>=this.setting.startline)?true:false;if(this.state.shouldvisible&&!this.state.isvisible){this.$control.stop().animate({opacity:1},this.setting.fadeduration[0]);this.state.isvisible=true;}else if(this.state.shouldvisible==false&&this.state.isvisible){this.$control.stop().animate({opacity:0},this.setting.fadeduration[1]);this.state.isvisible=false;}},init:function(){jQuery(document).ready(function($){if($("body").attr('scrolltotop')!='no'){scrolltotop.cssfixedsupport=!document.all||document.all&&document.compatMode=="CSS1Compat"&&window.XMLHttpRequest;scrolltotop.$body=(window.opera)?(document.compatMode=="CSS1Compat"?$('html'):$('body')):$('html,body');scrolltotop.$control=$('
    '+scrolltotop.controlHTML+'
    ').css({position:scrolltotop.cssfixedsupport?'fixed':'absolute',bottom:scrolltotop.controlattrs.offsety,right:scrolltotop.controlattrs.offsetx,opacity:0,cursor:'pointer'}).click(function(){scrolltotop.scrollup();return false;}).appendTo('body');if(document.all&&!window.XMLHttpRequest&&scrolltotop.$control.text()!=''){scrolltotop.$control.css({width:scrolltotop.$control.width()});};scrolltotop.togglecontrol();$('a[href="'+scrolltotop.anchorkeyword+'"]').click(function(){scrolltotop.scrollup();return false;});$(window).bind('scroll resize',function(e){scrolltotop.togglecontrol();});}});}}; + +/** + * 定时器 + * $("#close-button").oneTime(1000,function(){}); + * $("#close-button").stopTime(); + * 1. everyTime(时间间隔, [计时器名称], 函式名称, [次数限制], [等待函式程序完成]) + * 2. oneTime(时间间隔, [计时器名称], 呼叫的函式) + * 3. stopTime ([计时器名称], [函式名称]) + */ +jQuery.fn.extend({everyTime:function(A,B,C,D,E){return this.each(function(){jQuery.timer.add(this,A,B,C,D,E);});},oneTime:function(A,B,C){return this.each(function(){jQuery.timer.add(this,A,B,C,1);});},stopTime:function(A,B){return this.each(function(){jQuery.timer.remove(this,A,B);});}});jQuery.extend({timer:{guid:1,global:{},regex:/^([0-9]+)\s*(.*s)?$/,powers:{'ms':1,'cs':10,'ds':100,'s':1000,'das':10000,'hs':100000,'ks':1000000},timeParse:function(A){if(A==undefined||A==null)return null;var B=this.regex.exec(jQuery.trim(A.toString()));if(B[2]){var C=parseInt(B[1],10);var D=this.powers[B[2]]||1;return C*D;}else {return A;}},add:function(A,B,C,D,E,F){var G=0;if(jQuery.isFunction(C)){if(!E)E=D;D=C;C=B;}B=jQuery.timer.timeParse(B);if(typeof B!='number'||isNaN(B)||B<=0)return;if(E&&E.constructor!=Number){F=!!E;E=0;}E=E||0;F=F||false;if(!A.$timers)A.$timers={};if(!A.$timers[C])A.$timers[C]={};D.$timerID=D.$timerID||this.guid++;var H=function(){if(F&&this.inProgress)return;this.inProgress=true;if((++G>E&&E!==0)||D.call(A,G)===false)jQuery.timer.remove(A,C,D);this.inProgress=false;};H.$timerID=D.$timerID;if(!A.$timers[C][D.$timerID])A.$timers[C][D.$timerID]=window.setInterval(H,B);if(!this.global[C])this.global[C]=[];this.global[C].push(A);},remove:function(A,B,E){var D=A.$D,ret;if(D){if(!B){for(B in D)this.remove(A,B,E);}else if(D[B]){if(E){if(E.$timerID){window.clearInterval(D[B][E.$timerID]);delete D[B][E.$timerID];}}else {for(var E in D[B]){window.clearInterval(D[B][E]);delete D[B][E];}}for(ret in D[B])break;if(!ret){ret=null;delete D[B];}}for(ret in D)break;if(!ret)A.$D=null;}}}});if(jQuery.browser.msie)jQuery(window).one("unload",function(){var A=jQuery.timer.global;for(var B in A){var C=A[B],i=C.length;while(--i)jQuery.timer.remove(C[i],B);}}); \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/js/HoorayLibs/scrolltotop.gif b/WebRoot/js/HoorayOS_mini/js/HoorayLibs/scrolltotop.gif new file mode 100644 index 00000000..f24aa216 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/js/HoorayLibs/scrolltotop.gif differ diff --git a/WebRoot/js/HoorayOS_mini/js/core.js b/WebRoot/js/HoorayOS_mini/js/core.js new file mode 100644 index 00000000..564ca88c --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/js/core.js @@ -0,0 +1,25 @@ +/* +** HoorayOS开源桌面应用框架 +** 作者:胡尐睿丶 +** 地址:http://hoorayos.com +** 我希望能将这项目继续开源下去,所以请手下留情,保留以上这段版权信息,授权用户可删除代码中任何信息 +*/ + +var TEMP = {}; +var HROS = {}; + +HROS.CONFIG = { + appButtonTop : 20, //快捷方式top初始位置 + appButtonLeft : 20, //快捷方式left初始位置 + windowIndexid : 10000, //窗口z-index初始值 + widgetIndexid : 1, //挂件z-index初始值 + windowMinWidth : 215, //窗口最小宽度 + windowMinHeight : 59, //窗口最小高度 + wallpaper : '' //壁纸 +}; + +HROS.VAR = { + zoomLevel : 1, + dock : '', + desk : '' +}; \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/js/hros.app.js b/WebRoot/js/HoorayOS_mini/js/hros.app.js new file mode 100644 index 00000000..904eaf63 --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/js/hros.app.js @@ -0,0 +1,170 @@ +/* +** 应用 +*/ +HROS.app = (function(){ + return { + /* + ** 初始化桌面应用 + */ + init : function(){ + //绑定应用打开事件 + HROS.app.click(); + //绑定滚动条拖动事件 + HROS.app.moveScrollbar(); + HROS.app.get(); + }, + get : function(){ + $.getJSON('../../app/findDesk.action', function (sc) { + HROS.VAR.dock = sc['dock']; + HROS.VAR.desk = sc['desk']; + //输出桌面应用 + HROS.app.set(); + }); + }, + /* + ** 输出应用 + */ + set : function(){ + //绘制应用表格 + var grid = HROS.grid.getAppGrid(), dockGrid = HROS.grid.getDockAppGrid(); + //加载应用码头应用 + if(HROS.VAR.dock != ''){ + var dock_append = ''; + $(HROS.VAR.dock).each(function(i){ + dock_append += appbtnTemp({ + 'top' : dockGrid[i]['startY'], + 'left' : dockGrid[i]['startX'], + 'title' : this.title, + 'type' : this.type, + 'id' : 'd_' + this.id, + 'appid' : this.id, + 'imgsrc' : this.icon + }); + }); + $('#dock-bar .dock-applist').html('').append(dock_append); + }else{ + $('#dock-bar .dock-applist').html(''); + } + //加载桌面应用 + if(HROS.VAR.desk != ''){ + var desk_append = ''; + $(HROS.VAR.desk).each(function(i){ + desk_append += appbtnTemp({ + 'top' : grid[i]['startY'] + 7, + 'left' : grid[i]['startX'] + 16, + 'title' : this.title, + 'type' : this.type, + 'id' : 'd_' + this.id, + 'appid' : this.id, + 'imgsrc' : this.icon + }); + }); + } + $('#desk-1 li').remove(); + $('#desk-1').append(desk_append); + HROS.deskTop.appresize(); + //加载滚动条 + HROS.app.getScrollbar(); + }, + /* + ** 应用打开 + */ + click : function(){ + //应用码头应用拖动 + $('#dock-bar .dock-applist').on('click', 'li', function(e){ + e.preventDefault(); + e.stopPropagation(); + switch($(this).attr('type')){ + case 'app': + HROS.window.create($(this).attr('appid')); + break; + case 'widget': + HROS.widget.create($(this).attr('appid')); + break; + } + }); + //桌面应用拖动 + $('#desktop .desktop-container').on('click', 'li:not(.add)', function(e){ + e.preventDefault(); + e.stopPropagation(); + switch($(this).attr('type')){ + case 'app': + HROS.window.create($(this).attr('appid')); + break; + case 'widget': + HROS.widget.create($(this).attr('appid')); + break; + } + }); + }, + /* + ** 加载滚动条 + */ + getScrollbar : function(){ + setTimeout(function(){ + $('#desk .desktop-container').each(function(){ + var desk = $(this), scrollbar = desk.children('.scrollbar'); + //先清空所有附加样式 + scrollbar.hide(); + desk.scrollLeft(0); + var deskW = parseInt(desk.children('.appbtn').last().css('left')) + 106; + if(desk.width() / deskW < 1){ + desk.children('.scrollbar-x').width(desk.width() / deskW * desk.width()).css('left',0).show(); + } + }); + }, 500); + }, + /* + ** 移动滚动条 + */ + moveScrollbar : function(){ + /* + ** 手动拖动 + */ + $('#desk .scrollbar').on('mousedown', function(e){ + var x, y, cx, cy, deskrealw, deskrealh, movew, moveh; + var scrollbar = $(this), desk = scrollbar.parent('.desktop-container'); + deskrealw = parseInt(desk.children('.appbtn').last().css('left')) + 106; + deskrealh = parseInt(desk.children('.appbtn').last().css('top')) + 108; + movew = desk.width() - scrollbar.width(); + moveh = desk.height() - scrollbar.height(); + if(scrollbar.hasClass('scrollbar-x')){ + x = e.clientX - scrollbar.offset().left; + }else{ + y = e.clientY - scrollbar.offset().top; + } + $(document).on('mousemove', function(e){ + if(scrollbar.hasClass('scrollbar-x')){ + cx = e.clientX - x - 73 < 0 ? 0 : e.clientX - x - 73 > movew ? movew : e.clientX - x - 73; + scrollbar.css('left', cx / desk.width() * deskrealw + cx); + desk.scrollLeft(cx / desk.width() * deskrealw); + }else{ + cy = e.clientY - y < 0 ? 0 : e.clientY - y > moveh ? moveh : e.clientY - y; + scrollbar.css('top', cy / desk.height() * deskrealh + cy); + desk.scrollTop(cy / desk.height() * deskrealh); + } + }).on('mouseup', function(){ + $(this).off('mousemove').off('mouseup'); + }); + }); + /* + ** 鼠标滚动 + */ + $('#desk .desktop-container').each(function(i){ + $('#desk-' + (i + 1)).on('mousewheel', function(event, delta){ + var desk = $(this); + var deskrealw = parseInt(desk.children('.appbtn').last().css('left')) + 106, scrollleftright; + if(delta < 0){ + scrollleftright = desk.scrollLeft() + 200 > deskrealw - desk.width() ? deskrealw - desk.width() : desk.scrollLeft() + 200; + }else{ + scrollleftright = desk.scrollLeft() - 200 < 0 ? 0 : desk.scrollLeft() - 200; + } + desk.stop(false, true).animate({scrollLeft : scrollleftright}, 300); + desk.children('.scrollbar-x').stop(false, true).animate({ + left : scrollleftright / deskrealw * desk.width() + scrollleftright + }, 300); + }); + }); + } + } +})(); \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/js/hros.base.js b/WebRoot/js/HoorayOS_mini/js/hros.base.js new file mode 100644 index 00000000..596f26e5 --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/js/hros.base.js @@ -0,0 +1,44 @@ +/* +** 一个不属于其他模块的模块 +*/ +HROS.base = (function(){ + return { + /* + ** 系统初始化 + */ + init : function(){ + //阻止弹出浏览器默认右键菜单 + $('body').on('contextmenu', function(){ + return false; + }); + //用于判断网页是否缩放 + HROS.zoom.init(); + //桌面(容器)初始化 + HROS.deskTop.init(); + //初始化壁纸 + HROS.wallpaper.init(); + //初始化任务栏 + HROS.taskbar.init(); + /* + ** 当dockPos为top时 当dockPos为left时 当dockPos为right时 + ** ----------------------- ----------------------- ----------------------- + ** | o o o dock | | o | o | | o | o | + ** ----------------------- | o | o | | o | o | + ** | o o | | o | o | | o | o | + ** | o + | | | o | | o | | + ** | o desk | | | o desk | | o desk | | + ** | o | | | + | | + | | + ** ----------------------- ----------------------- ----------------------- + ** 因为desk区域的尺寸和定位受dock位置的影响,所以加载应用前必须先定位好dock的位置 + */ + //初始化应用码头 + HROS.dock.init(); + //初始化桌面应用 + HROS.app.init(); + //初始化widget模块 + HROS.widget.init(); + //初始化窗口模块 + HROS.window.init(); + } + } +})(); \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/js/hros.desktop.js b/WebRoot/js/HoorayOS_mini/js/hros.desktop.js new file mode 100644 index 00000000..cc937304 --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/js/hros.desktop.js @@ -0,0 +1,101 @@ +/* +** 桌面 +*/ +HROS.deskTop = (function(){ + return { + init : function(){ + //绑定浏览器resize事件 + $(window).on('resize', function(){ + HROS.deskTop.resize(); + }); + $('body').on('click', '#desktop', function(){ + HROS.popupMenu.hide(); + }).on('contextmenu', '#desktop', function(e){ + HROS.popupMenu.hide(); + return false; + }); + }, + /* + ** 处理浏览器改变大小后的事件 + */ + resize : function(){ + HROS.dock.setPos(); + //更新应用定位 + HROS.deskTop.appresize(); + //更新窗口定位 + HROS.deskTop.windowresize(); + HROS.wallpaper.set(false); + }, + /* + ** 重新排列应用 + */ + appresize : function(){ + switch(HROS.CONFIG.appSize){ + case 's': + $('#desk').removeClass('smallIcon').addClass('smallIcon'); + break; + case 'm': + $('#desk').removeClass('smallIcon'); + break; + } + var grid = HROS.grid.getAppGrid(), dockGrid = HROS.grid.getDockAppGrid(); + $('#dock-bar .dock-applist li').each(function(i){ + $(this).css({ + 'left' : dockGrid[i]['startX'], + 'top' : dockGrid[i]['startY'] + }); + $(this).attr('left', $(this).offset().left).attr('top', $(this).offset().top); + }); + $('#desk-1 li').each(function(i){ + var left = grid[i]['startX'] + 16, top = grid[i]['startY'] + 7; + $(this).stop(true, false).animate({ + 'left' : left, + 'top' : top + }, 500); + switch(HROS.CONFIG.dockPos){ + case 'top': + $(this).attr('left', left).attr('top', top + 73); + break; + case 'left': + $(this).attr('left', left + 73).attr('top', top); + break; + case 'right': + $(this).attr('left', left).attr('top', top); + break; + } + }); + //更新滚动条 + HROS.app.getScrollbar(); + }, + /* + ** 重新定位窗口位置 + */ + windowresize : function(){ + $('#desk div.window-container').each(function(){ + var windowdata = $(this).data('info'); + currentW = $(window).width() - $(this).width(); + currentH = $(window).height() - $(this).height(); + var _l = windowdata['left'] / windowdata['emptyW'] * currentW >= currentW ? currentW : windowdata['left'] / windowdata['emptyW'] * currentW; + _l = _l <= 0 ? 0 : _l; + var _t = windowdata['top'] / windowdata['emptyH'] * currentH >= currentH ? currentH : windowdata['top'] / windowdata['emptyH'] * currentH; + _t = _t <= 0 ? 0 : _t; + if($(this).attr('state') != 'hide'){ + $(this).animate({ + 'left' : _l, + 'top' : _t + }, 500, function(){ + windowdata['left'] = _l; + windowdata['top'] = _t; + windowdata['emptyW'] = $(window).width() - $(this).width(); + windowdata['emptyH'] = $(window).height() - $(this).height(); + }); + }else{ + windowdata['left'] = _l; + windowdata['top'] = _t; + windowdata['emptyW'] = $(window).width() - $(this).width(); + windowdata['emptyH'] = $(window).height() - $(this).height(); + } + }); + } + } +})(); \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/js/hros.dock.js b/WebRoot/js/HoorayOS_mini/js/hros.dock.js new file mode 100644 index 00000000..1cb794b7 --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/js/hros.dock.js @@ -0,0 +1,37 @@ +/* +** 应用码头 +*/ +HROS.dock = (function(){ + return { + /* + ** 初始化 + */ + init : function(){ + $(window).resize(function(){ + HROS.dock.setPos(); + }); + HROS.dock.setPos(); + }, + setPos : function(){ + var desktop = $('#desk-1'), desktops = $('#desk .desktop-container'); + var desk_w = desktop.css('width', '100%').width(), desk_h = desktop.css('height', '100%').height(); + //清除dock位置样式 + $('#dock-container').removeClass('dock-top').removeClass('dock-left').removeClass('dock-right'); + $('#dock-bar').removeClass('top-bar').removeClass('left-bar').removeClass('right-bar').hide(); + + $('#dock-bar').addClass('left-bar').children('#dock-container').addClass('dock-left'); + desktops.css({ + 'width' : desk_w - 73, + 'height' : desk_h - 70, + 'left' : desk_w + 73, + 'top' : 0 + }); + desktop.css({ + 'left' : 73 + }); + + $('#dock-bar').show(); + HROS.taskbar.resize(); + } + } +})(); \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/js/hros.grid.js b/WebRoot/js/HoorayOS_mini/js/hros.grid.js new file mode 100644 index 00000000..a6909e65 --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/js/hros.grid.js @@ -0,0 +1,83 @@ +/* +** 应用布局格子 +** 这篇文章里有简单说明格子的作用 +** http://www.cnblogs.com/hooray/archive/2012/03/23/2414410.html +*/ +HROS.grid = (function(){ + return { + getAppGrid : function(){ + var width, height; + width = $('#desk-1').width() - HROS.CONFIG.appButtonLeft; + height = $('#desk-1').height() - HROS.CONFIG.appButtonTop; + var appGrid = [], _top = HROS.CONFIG.appButtonTop, _left = HROS.CONFIG.appButtonLeft; + for(var i = 0; i < 10000; i++){ + appGrid.push({ + startY : _top, + endY : _top + 100, + startX : _left, + endX : _left + 120 + }); + _top += 100; + if(_top + 70 > height){ + _top = HROS.CONFIG.appButtonTop; + _left += 120; + } + } + return appGrid; + }, + searchAppGrid : function(x, y){ + var grid = HROS.grid.getAppGrid(), j = grid.length; + var flags = 0, appLength = $('#desk-1 li.appbtn:not(.add)').length - 1; + for(var i = 0; i < j; i++){ + if(x >= grid[i].startX && x <= grid[i].endX){ + flags += 1; + } + if(y >= grid[i].startY && y <= grid[i].endY){ + flags += 1; + } + if(flags === 2){ + return i > appLength ? appLength : i; + }else{ + flags = 0; + } + } + return null; + }, + getDockAppGrid : function(){ + var height = $('#dock-bar .dock-applist').height(); + var dockAppGrid = [], _left = 0, _top = 0; + for(var i = 0; i < 7; i++){ + dockAppGrid.push({ + startY : _top, + endY : _top + 62, + startX : _left, + endX : _left + 62 + }); + _top += 62; + if(_top + 62 > height){ + _top = 0; + _left += 62; + } + } + return dockAppGrid; + }, + searchDockAppGrid : function(x, y){ + var grid = HROS.grid.getDockAppGrid(), j = grid.length, flags = 0, + appLength = $('#dock-bar .dock-applist li').length - 1; + for(var i = 0; i < j; i++){ + if(x >= grid[i].startX && x <= grid[i].endX){ + flags += 1; + } + if(y >= grid[i].startY && y <= grid[i].endY){ + flags += 1; + } + if(flags === 2){ + return i > appLength ? appLength : i; + }else{ + flags = 0; + } + } + return null; + } + } +})(); \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/js/hros.maskBox.js b/WebRoot/js/HoorayOS_mini/js/hros.maskBox.js new file mode 100644 index 00000000..96fab311 --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/js/hros.maskBox.js @@ -0,0 +1,16 @@ +/* +** 透明遮罩层 +** 当拖动应用、窗口等一切可拖动的对象时,会加载一个遮罩层 +** 避免拖动时触发或选中一些不必要的操作,安全第一 +*/ +HROS.maskBox = (function(){ + return { + desk : function(){ + if(!TEMP.maskBoxDesk){ + TEMP.maskBoxDesk = $('
    '); + $('body').append(TEMP.maskBoxDesk); + } + return TEMP.maskBoxDesk; + } + } +})(); \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/js/hros.popupMenu.js b/WebRoot/js/HoorayOS_mini/js/hros.popupMenu.js new file mode 100644 index 00000000..06c34d36 --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/js/hros.popupMenu.js @@ -0,0 +1,37 @@ +/* +** 右键菜单 +*/ +HROS.popupMenu = (function(){ + return { + /* + ** 任务栏右键 + */ + task : function(obj){ + HROS.window.show2under(); + if(!TEMP.popupMenuTask){ + TEMP.popupMenuTask = $(''); + $('body').append(TEMP.popupMenuTask); + $('.task-menu').on('contextmenu', function(){ + return false; + }); + } + //绑定事件 + $('.task-menu a[menu="max"]').off('click').on('click', function(){ + HROS.window.max(obj.attr('appid'), obj.attr('type')); + $('.popup-menu').hide(); + }); + $('.task-menu a[menu="hide"]').off('click').on('click', function(){ + HROS.window.hide(obj.attr('appid'), obj.attr('type')); + $('.popup-menu').hide(); + }); + $('.task-menu a[menu="close"]').off('click').on('click', function(){ + HROS.window.close(obj.attr('appid'), obj.attr('type')); + $('.popup-menu').hide(); + }); + return TEMP.popupMenuTask; + }, + hide : function(){ + $('.popup-menu').hide(); + } + } +})(); \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/js/hros.taskbar.js b/WebRoot/js/HoorayOS_mini/js/hros.taskbar.js new file mode 100644 index 00000000..847c65c3 --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/js/hros.taskbar.js @@ -0,0 +1,93 @@ +/* +** 任务栏 +*/ +HROS.taskbar = (function(){ + return { + /* + ** 初始化 + */ + init : function(){ + //当浏览器窗口改变大小时,任务栏的显示也需进行刷新 + $(window).on('resize', function(){ + HROS.taskbar.resize(); + }); + //绑定任务栏点击事件 + HROS.taskbar.click(); + //绑定任务栏前进后退按钮事件 + HROS.taskbar.pageClick(); + }, + click : function(){ + $('#task-content-inner').on('click', 'a.task-item', function(){ + if($(this).hasClass('task-item-current')){ + HROS.window.hide($(this).attr('appid')); + }else{ + HROS.window.show2top($(this).attr('appid')); + } + }).on('contextmenu', 'a.task-item', function(e){ + HROS.popupMenu.hide(); + var popupmenu = HROS.popupMenu.task($(this)); + var l = $(window).width() - e.clientX < popupmenu.width() ? e.clientX - popupmenu.width() : e.clientX; + var t = e.clientY - popupmenu.height(); + popupmenu.css({ + left : l, + top : t + }).show(); + return false; + }); + }, + pageClick : function(){ + $('#task-next-btn').on('click', function(){ + if($(this).hasClass('disable') == false){ + var w = $('#task-bar').width(), realW = $('#task-content-inner .task-item').length * 114, showW = w - 112, overW = realW - showW; + var marginL = parseInt($('#task-content-inner').css('margin-left')) - 114; + if(marginL <= overW * -1){ + marginL = overW * -1; + $('#task-next a').addClass('disable'); + } + $('#task-pre a').removeClass('disable'); + $('#task-content-inner').animate({ + marginLeft : marginL + }, 200); + } + }); + $('#task-pre-btn').on('click', function(){ + if($(this).hasClass('disable') == false){ + var marginL = parseInt($('#task-content-inner').css('margin-left')) + 114; + if(marginL >= 0){ + marginL = 0; + $('#task-pre a').addClass('disable'); + } + $('#task-next a').removeClass('disable'); + $('#task-content-inner').animate({ + marginLeft : marginL + }, 200); + } + }); + }, + resize : function(){ + $('#task-content-inner').removeClass('fl'); + $('#task-bar').css({ + 'left' : 73, + 'right' : 0 + }); + var w = $('#task-bar').width(), realW = $('#task-content-inner .task-item').length * 114, showW = w - 112; + $('#task-content-inner').css('width', realW); + if(realW >= showW){ + $('#task-next, #task-pre').show(); + $('#task-content').css('width', showW); + $('#task-content-inner').addClass('fl').stop(true, false).animate({ + marginLeft : 0 + }, 200); + $('#task-next a').removeClass('disable'); + $('#task-pre a').addClass('disable'); + }else{ + $('#task-next, #task-pre').hide(); + $('#task-content').css('width','100%'); + $('#task-content-inner').css({ + 'margin-left' : 0, + 'margin-right' : 0 + }); + } + } + } +})(); \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/js/hros.wallpaper.js b/WebRoot/js/HoorayOS_mini/js/hros.wallpaper.js new file mode 100644 index 00000000..96a78a67 --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/js/hros.wallpaper.js @@ -0,0 +1,38 @@ +/* +** 壁纸 +*/ +HROS.wallpaper = (function(){ + return { + /* + ** 初始化 + */ + init : function(){ + HROS.wallpaper.set(); + }, + /* + ** 设置壁纸 + */ + set : function(isreload){ + /* + ** 判断壁纸是否需要重新载入 + ** 比如当浏览器尺寸改变时,只需更新壁纸,而无需重新载入 + */ + var isreload = typeof(isreload) == 'undefined' ? true : isreload; + if(isreload){ + $('#zoomWallpaperGrid').remove(); + } + var w = $(window).width(), h = $(window).height(); + if(isreload){ + $('body').append('
    '); + $('#zoomWallpaper').attr('src', HROS.CONFIG.wallpaper).on('load', function(){ + $(this).show(); + }); + }else{ + $('#zoomWallpaperGrid, #zoomWallpaperGrid div, #zoomWallpaper').css({ + height : h + 'px', + width : w + 'px' + }); + } + } + } +})(); \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/js/hros.widget.js b/WebRoot/js/HoorayOS_mini/js/hros.widget.js new file mode 100644 index 00000000..ef0c763b --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/js/hros.widget.js @@ -0,0 +1,156 @@ +/* +** 小挂件 +*/ +HROS.widget = (function(){ + return { + init : function(){ + //挂件上各个按钮 + HROS.widget.handle(); + //挂件移动 + HROS.widget.move(); + }, + /* + ** 创建挂件 + ** 自定义挂件:HROS.widget.createTemp({url,width,height,left,top}); + ** 示例:HROS.widget.createTemp({url:"http://www.baidu.com",width:800,height:400,left:100,top:100}); + */ + createTemp : function(obj){ + var appid = obj.appid == null ? Date.parse(new Date()) : obj.appid; + //判断窗口是否已打开 + var iswidgetopen = false; + $('#desk .widget').each(function(){ + if($(this).attr('appid') == appid){ + iswidgetopen = true; + return false; + } + }); + //如果没有打开,则进行创建 + if(!iswidgetopen){ + function nextDo(options){ + $('#desk').append(widgetWindowTemp({ + 'width' : options.width, + 'height' : options.height, + 'type' : 'widget', + 'id' : 'w_' + options.appid, + 'appid' : options.appid, + 'top' : options.top, + 'right' : options.right, + 'url' : options.url, + 'zIndex' : HROS.CONFIG.widgetIndexid + })); + HROS.CONFIG.widgetIndexid += 1; + } + nextDo({ + appid : appid, + url : obj.url, + width : obj.width, + height : obj.height, + top : obj.top == null ? 0 : obj.top, + right : obj.right == null ? 0 : obj.right + }); + } + }, + create : function(appid){ + //判断窗口是否已打开 + var iswidgetopen = false; + $('#desk .widget').each(function(){ + if($(this).attr('appid') == appid){ + iswidgetopen = true; + return false; + } + }); + //如果没有打开,则进行创建 + if(!iswidgetopen){ + function nextDo(options){ + var widgetId = '#w_' + options.appid; + TEMP.widgetTemp = { + 'title' : options.title, + 'width' : options.width, + 'height' : options.height, + 'type' : options.type, + 'id' : 'w_' + options.appid, + 'appid' : options.appid, + 'top' : options.top, + 'right' : options.right, + 'url' : options.url, + 'zIndex' : HROS.CONFIG.widgetIndexid, + 'issetbar' : 1 + }; + $('#desk').append(widgetWindowTemp(TEMP.widgetTemp)); + $(widgetId).data('info', TEMP.widgetTemp); + HROS.CONFIG.widgetIndexid += 1; + } + $(HROS.VAR.dock).each(function(){ + if(this.id == appid){ + nextDo({ + appid : this.id, + title : this.title, + url : this.url, + type : this.type, + width : this.width, + height : this.height, + top : typeof(this.top) == 'undefined' ? 0 : this.top, + right : typeof(this.right) == 'undefined' ? 0 : this.right + }); + } + }); + $(HROS.VAR.desk).each(function(){ + if(this.id == appid){ + nextDo({ + appid : this.id, + title : this.title, + url : this.url, + type : this.type, + width : this.width, + height : this.height, + top : typeof(this.top) == 'undefined' ? 0 : this.top, + right : typeof(this.right) == 'undefined' ? 0 : this.right + }); + } + }); + } + }, + move : function(){ + $('#desk').on('mousedown', '.widget .move', function(e){ + var obj = $(this).parents('.widget'); + HROS.widget.show2top(obj.attr('appid')); + var lay, x, y; + x = e.clientX - obj.offset().left; + y = e.clientY - obj.offset().top; + //绑定鼠标移动事件 + $(document).on('mousemove', function(e){ + lay = HROS.maskBox.desk(); + lay.show(); + _r = e.clientX - x; + _t = e.clientY - y; + _t = _t < 0 ? 0 : _t; + _r = $(window).width() - obj.width() - _r; + obj.css({ + right : _r, + top : _t + }); + }).on('mouseup', function(){ + $(this).off('mousemove').off('mouseup'); + if(typeof(lay) !== 'undefined'){ + lay.hide(); + } + }); + }); + }, + close : function(appid){ + var widgetId = '#w_' + appid; + $(widgetId).html('').remove(); + }, + show2top : function(appid){ + var widgetId = '#w_' + appid; + $(widgetId).css('z-index', HROS.CONFIG.widgetIndexid); + HROS.CONFIG.widgetIndexid += 1; + }, + handle : function(){ + $('#desk').on('click', '.widget .ha-close', function(e){ + var obj = $(this).parents('.widget'); + HROS.widget.close(obj.attr('appid')); + }); + } + } +})(); \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/js/hros.window.js b/WebRoot/js/HoorayOS_mini/js/hros.window.js new file mode 100644 index 00000000..6e101678 --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/js/hros.window.js @@ -0,0 +1,608 @@ +/* +** 应用窗口 +*/ +HROS.window = (function(){ + return { + init : function(){ + //窗口上各个按钮 + HROS.window.handle(); + //窗口移动 + HROS.window.move(); + //窗口拉伸 + HROS.window.resize(); + //绑定窗口遮罩层点击事件 + $('#desk').on('click', '.window-container .window-mask', function(){ + HROS.window.show2top($(this).parents('.window-container').attr('appid'), true); + }); + //屏蔽窗口右键 + $('#desk').on('contextmenu', '.window-container', function(){ + return false; + }); + }, + /* + ** 创建窗口 + ** 自定义窗口:HROS.window.createTemp({title,url,width,height,top,left,resize,isflash}); + ** 后面参数依次为:标题、地址、宽、高、是否可拉伸、是否打开默认最大化、是否为flash + ** 示例:HROS.window.createTemp({title:"百度",url:"http://www.baidu.com",width:800,height:400,top:0,left:100,isresize:false,isopenmax:false,isflash:false}); + */ + createTemp : function(obj){ + var type = 'app', appid = obj.appid == null ? Date.parse(new Date()) : obj.appid; + //判断窗口是否已打开 + var iswindowopen = false; + $('#task-content-inner a.task-item').each(function(){ + if($(this).attr('appid') == appid){ + iswindowopen = true; + HROS.window.show2top($(this).attr('appid')); + return false; + } + }); + //如果没有打开,则进行创建 + if(!iswindowopen){ + function nextDo(options){ + var windowId = '#w_' + options.appid; + //新增任务栏 + $('#task-content-inner').prepend(taskTemp({ + 'type' : options.type, + 'id' : 't_' + options.appid, + 'appid' : options.appid, + 'title' : options.title, + 'imgsrc' : options.imgsrc + })); + HROS.taskbar.resize(); + //新增窗口 + TEMP.windowTemp = { + 'width' : options.width, + 'height' : options.height, + 'top' : options.top, + 'left' : options.left, + 'emptyW' : $(window).width() - options.width, + 'emptyH' : $(window).height() - options.height, + 'zIndex' : HROS.CONFIG.windowIndexid, + 'type' : options.type, + 'id' : 'w_' + options.appid, + 'appid' : options.appid, + 'title' : options.title, + 'url' : options.url, + 'imgsrc' : options.imgsrc, + 'isresize' : options.isresize, + 'isopenmax' : options.isopenmax, + 'istitlebar' : options.isresize, + 'istitlebarFullscreen' : options.isresize ? window.fullScreenApi.supportsFullScreen == true ? true : false : false, + 'isflash' : options.isflash + }; + $('#desk').append(windowTemp(TEMP.windowTemp)); + $(windowId).data('info', TEMP.windowTemp); + HROS.CONFIG.windowIndexid += 1; + //iframe加载完毕后,隐藏loading遮罩层 + $(windowId + ' iframe').load(function(){ + $(windowId + ' .window-frame').children('div').eq(1).fadeOut(); + }); + HROS.window.show2top(options.appid); + } + nextDo({ + type : type, + appid : appid, + imgsrc : 'img/ui/default_icon.png', + title : obj.title, + url : obj.url, + width : obj.width, + height : obj.height, + top : typeof(obj.top) == 'undefined' ? (($(window).height() - obj.height) / 2 <= 0 ? 0 : ($(window).height() - obj.height) / 2) : obj.top, + left : typeof(obj.left) == 'undefined' ? (($(window).width() - obj.width) / 2 <= 0 ? 0 : ($(window).width() - obj.width) / 2) : obj.left, + isresize : typeof(obj.isresize) == 'undefined' ? false : obj.isresize, + isopenmax : typeof(obj.isopenmax) == 'undefined' ? false : obj.isopenmax, + isflash : typeof(obj.isflash) == 'undefined' ? true : obj.isflash + }); + }else{ + //如果设置强制刷新 + if(obj.refresh){ + var windowId = '#w_' + appid; + $(windowId).find('iframe').attr('src', obj.url); + } + } + }, + /* + ** 创建窗口 + ** 系统窗口:HROS.window.create(appid); + ** 示例:HROS.window.create(12); + */ + create : function(appid){ + //判断窗口是否已打开 + var iswindowopen = false; + $('#task-content-inner a.task-item').each(function(){ + if($(this).attr('appid') == appid){ + iswindowopen = true; + HROS.window.show2top(appid); + return false; + } + }); + //如果没有打开,则进行创建 + if(!iswindowopen){ + function nextDo(options){ + var windowId = '#w_' + options.appid; + //新增任务栏 + $('#task-content-inner').prepend(taskTemp({ + 'type' : options.type, + 'id' : 't_' + options.appid, + 'appid' : options.appid, + 'title' : options.title, + 'imgsrc' : options.imgsrc + })); + HROS.taskbar.resize(); + //新增窗口 + TEMP.windowTemp = { + 'width' : options.width, + 'height' : options.height, + 'top' : options.top, + 'left' : options.left, + 'emptyW' : $(window).width() - options.width, + 'emptyH' : $(window).height() - options.height, + 'zIndex' : HROS.CONFIG.windowIndexid, + 'type' : options.type, + 'id' : 'w_' + options.appid, + 'appid' : options.appid, + 'title' : options.title, + 'url' : options.url, + 'imgsrc' : options.imgsrc, + 'isresize' : options.isresize == 1 ? true : false, + 'isopenmax' : options.isresize == 1 ? options.isopenmax == 1 ? true : false : false, + 'istitlebar' : options.isresize == 1 ? true : false, + 'istitlebarFullscreen' : options.isresize == 1 ? window.fullScreenApi.supportsFullScreen == true ? true : false : false, + 'isflash' : options.isflash == 1 ? true : false + }; + $('#desk').append(windowTemp(TEMP.windowTemp)); + $(windowId).data('info', TEMP.windowTemp); + HROS.CONFIG.windowIndexid += 1; + //iframe加载完毕后,隐藏loading遮罩层 + $(windowId + ' iframe').load(function(){ + $(windowId + ' .window-frame').children('div').eq(1).fadeOut(); + }); + HROS.window.show2top(options.appid); + } + $(HROS.VAR.dock).each(function(){ + if(this.id == appid){ + nextDo({ + type : this.type, + id : this.id, + appid : this.id, + title : this.title, + imgsrc : this.icon, + url : this.url, + width : this.width, + height : this.height, + top : typeof(this.top) == 'undefined' ? (($(window).height() - this.height) / 2 <= 0 ? 0 : ($(window).height() - this.height) / 2) : this.top, + left : typeof(this.left) == 'undefined' ? (($(window).width() - this.width) / 2 <= 0 ? 0 : ($(window).width() - this.width) / 2) : this.left, + isresize : this.isresize, + isopenmax : this.isopenmax, + isflash : this.isflash + }); + } + }); + $(HROS.VAR.desk).each(function(){ + if(this.id == appid){ + nextDo({ + type : this.type, + id : this.id, + appid : this.id, + title : this.title, + imgsrc : this.icon, + url : this.url, + width : this.width, + height : this.height, + top : typeof(this.top) == 'undefined' ? (($(window).height() - this.height) / 2 <= 0 ? 0 : ($(window).height() - this.height) / 2) : this.top, + left : typeof(this.left) == 'undefined' ? (($(window).width() - this.width) / 2 <= 0 ? 0 : ($(window).width() - this.width) / 2) : this.left, + isresize : this.isresize, + isopenmax : this.isopenmax, + isflash : this.isflash + }); + } + }); + } + }, + close : function(appid){ + var windowId = '#w_' + appid, taskId = '#t_' + appid; + $(windowId).removeData('info').html('').remove(); + $('#task-content-inner ' + taskId).html('').remove(); + $('#task-content-inner').css('width', $('#task-content-inner .task-item').length * 114); + $('#task-bar, #nav-bar').removeClass('min-zIndex'); + HROS.taskbar.resize(); + }, + closeAll : function(){ + $('#desk .window-container').each(function(){ + HROS.window.close($(this).attr('appid')); + }); + }, + hide : function(appid){ + HROS.window.show2top(appid); + var windowId = '#w_' + appid, taskId = '#t_' + appid; + $(windowId).css('left', -10000).attr('state', 'hide'); + $('#task-content-inner ' + taskId).removeClass('task-item-current'); + if($(windowId).attr('ismax') == 1){ + $('#task-bar, #nav-bar').removeClass('min-zIndex'); + } + }, + hideAll : function(){ + $('#task-content-inner a.task-item').removeClass('task-item-current'); + $('#desk-1').nextAll('div.window-container').css('left', -10000).attr('state', 'hide'); + }, + max : function(appid){ + HROS.window.show2top(appid); + var windowId = '#w_' + appid, taskId = '#t_' + appid; + $(windowId + ' .title-handle .ha-max').hide().next(".ha-revert").show(); + $(windowId).addClass('window-maximize').attr('ismax',1).animate({ + width : '100%', + height : '100%', + top : 0, + left : 0 + }, 200); + $('#task-bar, #nav-bar').addClass('min-zIndex'); + }, + revert : function(appid){ + HROS.window.show2top(appid); + var windowId = '#w_' + appid, taskId = '#t_' + appid; + $(windowId + ' .title-handle .ha-revert').hide().prev('.ha-max').show(); + var obj = $(windowId), windowdata = obj.data('info'); + obj.removeClass('window-maximize').attr('ismax',0).animate({ + width : windowdata['width'], + height : windowdata['height'], + left : windowdata['left'], + top : windowdata['top'] + }, 500); + $('#task-bar, #nav-bar').removeClass('min-zIndex'); + }, + show2top : function(appid, isanimate){ + isanimate = isanimate == null ? false : isanimate; + var windowId = '#w_' + appid, taskId = '#t_' + appid; + var windowdata = $(windowId).data('info'); + var arr = []; + function show(){ + HROS.window.show2under(); + //改变当前任务栏样式 + $('#task-content-inner ' + taskId).addClass('task-item-current'); + if($(windowId).attr('ismax') == 1){ + $('#task-bar, #nav-bar').addClass('min-zIndex'); + } + //改变当前窗口样式 + $(windowId).addClass('window-current').css({ + 'z-index' : HROS.CONFIG.windowIndexid, + 'left' : windowdata['left'], + 'top' : windowdata['top'] + }).attr('state', 'show'); + //如果窗口最小化前是最大化状态的,则坐标位置设为0 + if($(windowId).attr('ismax') == 1){ + $(windowId).css({ + 'left' : 0, + 'top' : 0 + }); + } + //改变当前窗口遮罩层样式 + $(windowId + ' .window-mask').hide(); + //改变当前iframe显示 + $(windowId + ' iframe').show(); + HROS.CONFIG.windowIndexid += 1; + } + if(isanimate){ + var baseStartX = $(windowId).offset().left, baseEndX = baseStartX + $(windowId).width(); + var baseStartY = $(windowId).offset().top, baseEndY = baseStartY + $(windowId).height(); + var baseCenterX = baseStartX + ($(windowId).width() / 2), baseCenterY = baseStartY + ($(windowId).height() / 2); + var baseZIndex = parseInt($(windowId).css('zIndex')); + $('#desk .window-container:not(' + windowId + ')').each(function(){ + var thisStartX = $(this).offset().left, thisEndX = thisStartX + $(this).width(); + var thisStartY = $(this).offset().top, thisEndY = thisStartY + $(this).height(); + var thisCenterX = thisStartX + ($(this).width() / 2), thisCenterY = thisStartY + ($(this).height() / 2); + var thisZIndex = parseInt($(this).css('zIndex')); + var flag = ''; + if(thisZIndex > baseZIndex){ + // 常规情况,只要有一个角处于区域内,则可以判断窗口有覆盖 + // _______ _______ _______ _______ + // | ___|___ ___| | ___|___ | | |___ + // | | | | | | | | | | | | + // |___| | | |_______| | |___| |_______| | + // |_______| |_______| |_______| |_______| + if( + (thisStartX >= baseStartX && thisStartX <= baseEndX && thisStartY >= baseStartY && thisStartY <= baseEndY) + || + (thisStartX >= baseStartX && thisStartX <= baseEndX && thisEndY >= baseStartY && thisEndY <= baseEndY) + || + (thisEndX >= baseStartX && thisEndX <= baseEndX && thisStartY >= baseStartY && thisStartY <= baseEndY) + || + (thisEndX >= baseStartX && thisEndX <= baseEndX && thisEndY >= baseStartY && thisEndY <= baseEndY) + ){ + flag = 'x'; + } + // 非常规情况 + // _______ _______ _____ + // ___| | | |___ _| |___ + // | | | | | | | | | | + // |___| | | |___| |_| |___| + // |_______| |_______| |_____| + if( + (thisStartX >= baseStartX && thisStartX <= baseEndX && thisStartY < baseStartY && thisEndY > baseEndY) + || + (thisEndX >= baseStartX && thisEndX <= baseEndX && thisStartY < baseStartY && thisEndY > baseEndY) + ){ + flag = 'x'; + } + // _____ ___________ _____ + // __|_____|__ | | _|_____|___ + // | | | | | | + // | | |___________| |___________| + // |___________| |_____| |_____| + if( + (thisStartY >= baseStartY && thisStartY <= baseEndY && thisStartX < baseStartX && thisEndX > baseEndX) + || + (thisEndY >= baseStartY && thisEndY <= baseEndY && thisStartX < baseStartX && thisEndX > baseEndX) + ){ + flag = 'y'; + } + // 两个角处于区域内,另外两种情况不用处理,因为这两种情况下,被移动的窗口是需要进行上下滑动,而非左右 + // _____ ___________ + // __| |__ | _____ | + // | | | | | | | | + // | |_____| | |__| |__| + // |___________| |_____| + if( + (thisStartX >= baseStartX && thisStartX <= baseEndX && thisEndY >= baseStartY && thisEndY <= baseEndY) + && + (thisEndX >= baseStartX && thisEndX <= baseEndX && thisEndY >= baseStartY && thisEndY <= baseEndY) + || + (thisStartX >= baseStartX && thisStartX <= baseEndX && thisStartY >= baseStartY && thisStartY <= baseEndY) + && + (thisEndX >= baseStartX && thisEndX <= baseEndX && thisStartY >= baseStartY && thisStartY <= baseEndY) + ){ + flag = 'y'; + } + } + if(flag != ''){ + var direction, distance; + if(flag == 'x'){ + if(thisCenterX > baseCenterX){ + direction = 'right'; + distance = baseEndX - thisStartX + 30; + }else{ + direction = 'left'; + distance = thisEndX - baseStartX + 30; + } + }else{ + if(thisCenterY > baseCenterY){ + direction = 'bottom'; + distance = baseEndY - thisStartY + 30; + }else{ + direction = 'top'; + distance = thisEndY - baseStartY + 30; + } + } + arr.push({ + id : $(this).attr('id'), + direction : direction, //移动方向 + distance : distance //移动距离 + }); + } + }); + //开始移动 + var delayTime = 0; + for(var i = 0; i < arr.length; i++){ + var baseLeft = $('#' + arr[i].id).offset().left, baseTop = $('#' + arr[i].id).offset().top; + if(arr[i].direction == 'left'){ + $('#' + arr[i].id).delay(delayTime).animate({ + left : baseLeft - arr[i].distance + }, 300).animate({ + left : baseLeft + }, 300); + }else if(arr[i].direction == 'right'){ + $('#' + arr[i].id).delay(delayTime).animate({ + left : baseLeft + arr[i].distance + }, 300).animate({ + left : baseLeft + }, 300); + }else if(arr[i].direction == 'top'){ + $('#' + arr[i].id).delay(delayTime).animate({ + top : baseTop - arr[i].distance + }, 300).animate({ + top : baseTop + }, 300); + }else if(arr[i].direction == 'bottom'){ + $('#' + arr[i].id).delay(delayTime).animate({ + top : baseTop + arr[i].distance + }, 300).animate({ + top : baseTop + }, 300); + } + delayTime += 100; + } + setTimeout(show, delayTime + 100); + }else{ + show(); + } + }, + show2under : function(){ + //改变任务栏样式 + $('#task-content-inner a.task-item').removeClass('task-item-current'); + //改变窗口样式 + $('#desk .window-container').removeClass('window-current'); + //改变窗口遮罩层样式 + $('#desk .window-container .window-mask').show(); + //改变iframe显示 + $('#desk .window-container-flash iframe').hide(); + }, + handle : function(){ + $('#desk').on('dblclick', '.window-container .title-bar', function(e){ + var obj = $(this).parents('.window-container'); + //判断当前窗口是否已经是最大化 + if(obj.find('.ha-max').is(':hidden')){ + obj.find('.ha-revert').click(); + }else{ + obj.find('.ha-max').click(); + } + }).on('click', '.window-container .ha-hide', function(){ + var obj = $(this).parents('.window-container'); + HROS.window.hide(obj.attr('appid')); + }).on('click', '.window-container .ha-max', function(){ + var obj = $(this).parents('.window-container'); + HROS.window.max(obj.attr('appid')); + }).on('click', '.window-container .ha-revert', function(){ + var obj = $(this).parents('.window-container'); + HROS.window.revert(obj.attr('appid')); + }).on('click', '.window-container .ha-fullscreen', function(){ + var obj = $(this).parents('.window-container'); + window.fullScreenApi.requestFullScreen(document.getElementById(obj.find('iframe').attr('id'))); + }).on('click', '.window-container .ha-close', function(){ + var obj = $(this).parents('.window-container'); + HROS.window.close(obj.attr('appid')); + }).on('contextmenu', '.window-container', function(){ + $('.popup-menu').hide(); + $('.quick_view_container').remove(); + return false; + }); + }, + move : function(){ + $('#desk').on('mousedown', '.window-container .title-bar', function(e){ + var obj = $(this).parents('.window-container'); + if(obj.attr('ismax') == 1){ + return false; + } + HROS.window.show2top(obj.attr('appid')); + var windowdata = obj.data('info'), lay, x, y; + x = e.clientX - obj.offset().left; + y = e.clientY - obj.offset().top; + //绑定鼠标移动事件 + $(document).on('mousemove', function(e){ + lay = HROS.maskBox.desk(); + lay.show(); + //强制把右上角还原按钮隐藏,最大化按钮显示 + obj.find('.ha-revert').hide().prev('.ha-max').show(); + _l = e.clientX - x; + _t = e.clientY - y; + _w = windowdata['width']; + _h = windowdata['height']; + //窗口贴屏幕顶部10px内 || 底部60px内 + _t = _t <= 10 ? 0 : _t >= lay.height()-30 ? lay.height()-30 : _t; + obj.css({ + width : _w, + height : _h, + left : _l, + top : _t + }); + obj.data('info').left = obj.offset().left; + obj.data('info').top = obj.offset().top; + }).on('mouseup', function(){ + $(this).off('mousemove').off('mouseup'); + if(typeof(lay) !== 'undefined'){ + lay.hide(); + } + }); + }); + }, + resize : function(obj){ + $('#desk').on('mousedown', '.window-container .window-resize', function(e){ + var obj = $(this).parents('.window-container'); + //增加背景遮罩层 + var resizeobj = $(this), lay, x = e.clientX, y = e.clientY, w = obj.width(), h = obj.height(); + $(document).on('mousemove', function(e){ + lay = HROS.maskBox.desk(); + lay.show(); + _x = e.clientX; + _y = e.clientY; + //当拖动到屏幕边缘时,自动贴屏 + _x = _x <= 10 ? 0 : _x >= (lay.width()-12) ? (lay.width()-2) : _x; + _y = _y <= 10 ? 0 : _y >= (lay.height()-12) ? lay.height() : _y; + switch(resizeobj.attr('resize')){ + case 't': + h + y - _y > HROS.CONFIG.windowMinHeight ? obj.css({ + height : h + y - _y, + top : _y + }) : obj.css({ + height : HROS.CONFIG.windowMinHeight + }); + break; + case 'r': + w - x + _x > HROS.CONFIG.windowMinWidth ? obj.css({ + width : w - x + _x + }) : obj.css({ + width : HROS.CONFIG.windowMinWidth + }); + break; + case 'b': + h - y + _y > HROS.CONFIG.windowMinHeight ? obj.css({ + height : h - y + _y + }) : obj.css({ + height : HROS.CONFIG.windowMinHeight + }); + break; + case 'l': + w + x - _x > HROS.CONFIG.windowMinWidth ? obj.css({ + width : w + x - _x, + left : _x + }) : obj.css({ + width : HROS.CONFIG.windowMinWidth + }); + break; + case 'rt': + h + y - _y > HROS.CONFIG.windowMinHeight ? obj.css({ + height : h + y - _y, + top : _y + }) : obj.css({ + height : HROS.CONFIG.windowMinHeight + }); + w - x + _x > HROS.CONFIG.windowMinWidth ? obj.css({ + width : w - x + _x + }) : obj.css({ + width : HROS.CONFIG.windowMinWidth + }); + break; + case 'rb': + w - x + _x > HROS.CONFIG.windowMinWidth ? obj.css({ + width : w - x + _x + }) : obj.css({ + width : HROS.CONFIG.windowMinWidth + }); + h - y + _y > HROS.CONFIG.windowMinHeight ? obj.css({ + height : h - y + _y + }) : obj.css({ + height : HROS.CONFIG.windowMinHeight + }); + break; + case 'lt': + w + x - _x > HROS.CONFIG.windowMinWidth ? obj.css({ + width : w + x - _x, + left : _x + }) : obj.css({ + width : HROS.CONFIG.windowMinWidth + }); + h + y - _y > HROS.CONFIG.windowMinHeight ? obj.css({ + height : h + y - _y, + top : _y + }) : obj.css({ + height : HROS.CONFIG.windowMinHeight + }); + break; + case 'lb': + w + x - _x > HROS.CONFIG.windowMinWidth ? obj.css({ + width : w + x - _x, + left : _x + }) : obj.css({ + width : HROS.CONFIG.windowMinWidth + }); + h - y + _y > HROS.CONFIG.windowMinHeight ? obj.css({ + height : h - y + _y + }) : obj.css({ + height : HROS.CONFIG.windowMinHeight + }); + break; + } + }).on('mouseup',function(){ + if(typeof(lay) !== 'undefined'){ + lay.hide(); + } + obj.data('info').width = obj.width(); + obj.data('info').height = obj.height(); + obj.data('info').left = obj.offset().left; + obj.data('info').top = obj.offset().top; + obj.data('info').emptyW = $(window).width() - obj.width(); + obj.data('info').emptyH = $(window).height() - obj.height(); + $(this).off('mousemove').off('mouseup'); + }); + }); + } + } +})(); \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/js/hros.zoom.js b/WebRoot/js/HoorayOS_mini/js/hros.zoom.js new file mode 100644 index 00000000..7f048e05 --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/js/hros.zoom.js @@ -0,0 +1,43 @@ +/* +** 该功能是从QQ空间里提取出来的 +** 用于判断页面是否处于缩放状态中,并给予提示 +** 可在浏览页时按住ctrl+鼠标滚轮进行测试预览 +*/ +HROS.zoom = (function(){ + return { + /* + ** 初始化 + ** 其实也不用初始化,可以直接把object代码写在页面上 + ** 需要注意的是onchange参数,调用的是HROS.zoom.check方法 + */ + init : function(){ + $('body').append('
    '); + /* + ** 使用SWFObject.js插入flash + ** http://www.cnblogs.com/wuxinxi007/archive/2009/10/27/1590709.html + */ + swfobject.embedSWF('js/zoom.swf?onchange=HROS.zoom.check', 'zoombox', '10', '10', '6.0.0', 'expressInstall.swf', '', {allowScriptAccess : 'always', wmode : 'transparent', scale : 'noScale'}, {id : 'accessory_zoom', name : 'zoom_detect'}); + }, + /* + ** 为什么会有个参数o?其实我也不知道 + ** o.scale的值是数字,当o.scale大于1时,页面处于放大状态,反之则为缩小状态 + */ + check : function(o){ + var s = o.scale, m = s > 1 ? '放大' : '缩小'; + if(s != 1){ + HROS.VAR.zoomLevel = s; + $('#zoom-tip').show().find('span').text('您的浏览器目前处于' + m + '状态,会导致显示不正常,您可以键盘按“ctrl+数字0”组合键恢复初始状态!'); + }else{ + if(s != HROS.VAR.zoomLevel){ + $('#zoom-tip').fadeOut(); + } + } + }, + /* + ** 关闭,其实是删除,如果想做关闭,把代码改成hide()即可 + */ + close : function(){ + $('#zoom-tip').remove(); + } + } +})(); \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/js/jquery-1.8.3.min.js b/WebRoot/js/HoorayOS_mini/js/jquery-1.8.3.min.js new file mode 100644 index 00000000..83589daa --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/js/jquery-1.8.3.min.js @@ -0,0 +1,2 @@ +/*! jQuery v1.8.3 jquery.com | jquery.org/license */ +(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else r=t}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function et(){return!1}function tt(){return!0}function ut(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t))return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return v.grep(e,function(e,r){return e===t===n});if(typeof t=="string"){var r=v.grep(e,function(e){return e.nodeType===1});if(it.test(t))return v.filter(t,r,!n);t=v.filter(t,r)}return v.grep(e,function(e,r){return v.inArray(e,t)>=0===n})}function lt(e){var t=ct.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function At(e,t){if(t.nodeType!==1||!v.hasData(e))return;var n,r,i,s=v._data(e),o=v._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r").appendTo(i.body),n=t.css("display");t.remove();if(n==="none"||n===""){Pt=i.body.appendChild(Pt||v.extend(i.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!Ht||!Pt.createElement)Ht=(Pt.contentWindow||Pt.contentDocument).document,Ht.write(""),Ht.close();t=Ht.body.appendChild(Ht.createElement(e)),n=Dt(t,"display"),i.body.removeChild(Pt)}return Wt[e]=n,n}function fn(e,t,n,r){var i;if(v.isArray(t))v.each(t,function(t,i){n||sn.test(e)?r(e,i):fn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&v.type(t)==="object")for(i in t)fn(e+"["+i+"]",t[i],n,r);else r(e,t)}function Cn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i,s,o=t.toLowerCase().split(y),u=0,a=o.length;if(v.isFunction(n))for(;u)[^>]*$|#([\w\-]*)$)/,E=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,S=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,T=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,N=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,C=/^-ms-/,k=/-([\da-z])/gi,L=function(e,t){return(t+"").toUpperCase()},A=function(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",A,!1),v.ready()):i.readyState==="complete"&&(i.detachEvent("onreadystatechange",A),v.ready())},O={};v.fn=v.prototype={constructor:v,init:function(e,n,r){var s,o,u,a;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(typeof e=="string"){e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?s=[null,e,null]:s=w.exec(e);if(s&&(s[1]||!n)){if(s[1])return n=n instanceof v?n[0]:n,a=n&&n.nodeType?n.ownerDocument||n:i,e=v.parseHTML(s[1],a,!0),E.test(s[1])&&v.isPlainObject(n)&&this.attr.call(e,n,!0),v.merge(this,e);o=i.getElementById(s[2]);if(o&&o.parentNode){if(o.id!==s[2])return r.find(e);this.length=1,this[0]=o}return this.context=i,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return v.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),v.makeArray(e,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return l.call(this)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=v.merge(this.constructor(),e);return r.prevObject=this,r.context=this.context,t==="find"?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return v.each(this,e,t)},ready:function(e){return v.ready.promise().done(e),this},eq:function(e){return e=+e,e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(l.apply(this,arguments),"slice",l.call(arguments).join(","))},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:[].sort,splice:[].splice},v.fn.init.prototype=v.fn,v.extend=v.fn.extend=function(){var e,n,r,i,s,o,u=arguments[0]||{},a=1,f=arguments.length,l=!1;typeof u=="boolean"&&(l=u,u=arguments[1]||{},a=2),typeof u!="object"&&!v.isFunction(u)&&(u={}),f===a&&(u=this,--a);for(;a0)return;r.resolveWith(i,[v]),v.fn.trigger&&v(i).trigger("ready").off("ready")},isFunction:function(e){return v.type(e)==="function"},isArray:Array.isArray||function(e){return v.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):O[h.call(e)]||"object"},isPlainObject:function(e){if(!e||v.type(e)!=="object"||e.nodeType||v.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||p.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){var r;return!e||typeof e!="string"?null:(typeof t=="boolean"&&(n=t,t=0),t=t||i,(r=E.exec(e))?[t.createElement(r[1])]:(r=v.buildFragment([e],t,n?null:[]),v.merge([],(r.cacheable?v.clone(r.fragment):r.fragment).childNodes)))},parseJSON:function(t){if(!t||typeof t!="string")return null;t=v.trim(t);if(e.JSON&&e.JSON.parse)return e.JSON.parse(t);if(S.test(t.replace(T,"@").replace(N,"]").replace(x,"")))return(new Function("return "+t))();v.error("Invalid JSON: "+t)},parseXML:function(n){var r,i;if(!n||typeof n!="string")return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(s){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&v.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&g.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(C,"ms-").replace(k,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,n,r){var i,s=0,o=e.length,u=o===t||v.isFunction(e);if(r){if(u){for(i in e)if(n.apply(e[i],r)===!1)break}else for(;s0&&e[0]&&e[a-1]||a===0||v.isArray(e));if(f)for(;u-1)a.splice(n,1),i&&(n<=o&&o--,n<=u&&u--)}),this},has:function(e){return v.inArray(e,a)>-1},empty:function(){return a=[],this},disable:function(){return a=f=n=t,this},disabled:function(){return!a},lock:function(){return f=t,n||c.disable(),this},locked:function(){return!f},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],a&&(!r||f)&&(i?f.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},v.extend({Deferred:function(e){var t=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return v.Deferred(function(n){v.each(t,function(t,r){var s=r[0],o=e[t];i[r[1]](v.isFunction(o)?function(){var e=o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===i?n:this,[e])}:n[s])}),e=null}).promise()},promise:function(e){return e!=null?v.extend(e,r):r}},i={};return r.pipe=r.then,v.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock),i[s[0]]=o.fire,i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=l.call(arguments),r=n.length,i=r!==1||e&&v.isFunction(e.promise)?r:0,s=i===1?e:v.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?l.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1){u=new Array(r),a=new Array(r),f=new Array(r);for(;t
    a",n=p.getElementsByTagName("*"),r=p.getElementsByTagName("a")[0];if(!n||!r||!n.length)return{};s=i.createElement("select"),o=s.appendChild(i.createElement("option")),u=p.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:r.getAttribute("href")==="/a",opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:u.value==="on",optSelected:o.selected,getSetAttribute:p.className!=="t",enctype:!!i.createElement("form").enctype,html5Clone:i.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",boxModel:i.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},u.checked=!0,t.noCloneChecked=u.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!o.disabled;try{delete p.test}catch(d){t.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",h=function(){t.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick"),p.detachEvent("onclick",h)),u=i.createElement("input"),u.value="t",u.setAttribute("type","radio"),t.radioValue=u.value==="t",u.setAttribute("checked","checked"),u.setAttribute("name","t"),p.appendChild(u),a=i.createDocumentFragment(),a.appendChild(p.lastChild),t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=u.checked,a.removeChild(u),a.appendChild(p);if(p.attachEvent)for(l in{submit:!0,change:!0,focusin:!0})f="on"+l,c=f in p,c||(p.setAttribute(f,"return;"),c=typeof p[f]=="function"),t[l+"Bubbles"]=c;return v(function(){var n,r,s,o,u="padding:0;margin:0;border:0;display:block;overflow:hidden;",a=i.getElementsByTagName("body")[0];if(!a)return;n=i.createElement("div"),n.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",a.insertBefore(n,a.firstChild),r=i.createElement("div"),n.appendChild(r),r.innerHTML="
    t
    ",s=r.getElementsByTagName("td"),s[0].style.cssText="padding:0;margin:0;border:0;display:none",c=s[0].offsetHeight===0,s[0].style.display="",s[1].style.display="none",t.reliableHiddenOffsets=c&&s[0].offsetHeight===0,r.innerHTML="",r.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=r.offsetWidth===4,t.doesNotIncludeMarginInBodyOffset=a.offsetTop!==1,e.getComputedStyle&&(t.pixelPosition=(e.getComputedStyle(r,null)||{}).top!=="1%",t.boxSizingReliable=(e.getComputedStyle(r,null)||{width:"4px"}).width==="4px",o=i.createElement("div"),o.style.cssText=r.style.cssText=u,o.style.marginRight=o.style.width="0",r.style.width="1px",r.appendChild(o),t.reliableMarginRight=!parseFloat((e.getComputedStyle(o,null)||{}).marginRight)),typeof r.style.zoom!="undefined"&&(r.innerHTML="",r.style.cssText=u+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=r.offsetWidth===3,r.style.display="block",r.style.overflow="visible",r.innerHTML="
    ",r.firstChild.style.width="5px",t.shrinkWrapBlocks=r.offsetWidth!==3,n.style.zoom=1),a.removeChild(n),n=r=s=o=null}),a.removeChild(p),n=r=s=o=u=a=p=null,t}();var D=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;v.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(v.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?v.cache[e[v.expando]]:e[v.expando],!!e&&!B(e)},data:function(e,n,r,i){if(!v.acceptData(e))return;var s,o,u=v.expando,a=typeof n=="string",f=e.nodeType,l=f?v.cache:e,c=f?e[u]:e[u]&&u;if((!c||!l[c]||!i&&!l[c].data)&&a&&r===t)return;c||(f?e[u]=c=v.deletedIds.pop()||v.guid++:c=u),l[c]||(l[c]={},f||(l[c].toJSON=v.noop));if(typeof n=="object"||typeof n=="function")i?l[c]=v.extend(l[c],n):l[c].data=v.extend(l[c].data,n);return s=l[c],i||(s.data||(s.data={}),s=s.data),r!==t&&(s[v.camelCase(n)]=r),a?(o=s[n],o==null&&(o=s[v.camelCase(n)])):o=s,o},removeData:function(e,t,n){if(!v.acceptData(e))return;var r,i,s,o=e.nodeType,u=o?v.cache:e,a=o?e[v.expando]:v.expando;if(!u[a])return;if(t){r=n?u[a]:u[a].data;if(r){v.isArray(t)||(t in r?t=[t]:(t=v.camelCase(t),t in r?t=[t]:t=t.split(" ")));for(i=0,s=t.length;i1,null,!1))},removeData:function(e){return this.each(function(){v.removeData(this,e)})}}),v.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=v._data(e,t),n&&(!r||v.isArray(n)?r=v._data(e,t,v.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),r=n.length,i=n.shift(),s=v._queueHooks(e,t),o=function(){v.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return v._data(e,n)||v._data(e,n,{empty:v.Callbacks("once memory").add(function(){v.removeData(e,t+"queue",!0),v.removeData(e,n,!0)})})}}),v.fn.extend({queue:function(e,n){var r=2;return typeof e!="string"&&(n=e,e="fx",r--),arguments.length1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})},prop:function(e,t){return v.access(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return e=v.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,s,o,u;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,this.className))});if(e&&typeof e=="string"){t=e.split(y);for(n=0,r=this.length;n=0)r=r.replace(" "+n[s]+" "," ");i.className=e?v.trim(r):""}}}return this},toggleClass:function(e,t){var n=typeof e,r=typeof t=="boolean";return v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var i,s=0,o=v(this),u=t,a=e.split(y);while(i=a[s++])u=r?u:!o.hasClass(i),o[u?"addClass":"removeClass"](i)}else if(n==="undefined"||n==="boolean")this.className&&v._data(this,"__className__",this.className),this.className=this.className||e===!1?"":v._data(this,"__className__")||""})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n=0)return!0;return!1},val:function(e){var n,r,i,s=this[0];if(!arguments.length){if(s)return n=v.valHooks[s.type]||v.valHooks[s.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(s,"value"))!==t?r:(r=s.value,typeof r=="string"?r.replace(R,""):r==null?"":r);return}return i=v.isFunction(e),this.each(function(r){var s,o=v(this);if(this.nodeType!==1)return;i?s=e.call(this,r,o.val()):s=e,s==null?s="":typeof s=="number"?s+="":v.isArray(s)&&(s=v.map(s,function(e){return e==null?"":e+""})),n=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()];if(!n||!("set"in n)||n.set(this,s,"value")===t)this.value=s})}}),v.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{},attr:function(e,n,r,i){var s,o,u,a=e.nodeType;if(!e||a===3||a===8||a===2)return;if(i&&v.isFunction(v.fn[n]))return v(e)[n](r);if(typeof e.getAttribute=="undefined")return v.prop(e,n,r);u=a!==1||!v.isXMLDoc(e),u&&(n=n.toLowerCase(),o=v.attrHooks[n]||(X.test(n)?F:j));if(r!==t){if(r===null){v.removeAttr(e,n);return}return o&&"set"in o&&u&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r)}return o&&"get"in o&&u&&(s=o.get(e,n))!==null?s:(s=e.getAttribute(n),s===null?t:s)},removeAttr:function(e,t){var n,r,i,s,o=0;if(t&&e.nodeType===1){r=t.split(y);for(;o=0}})});var $=/^(?:textarea|input|select)$/i,J=/^([^\.]*|)(?:\.(.+)|)$/,K=/(?:^|\s)hover(\.\S+|)\b/,Q=/^key/,G=/^(?:mouse|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,Z=function(e){return v.event.special.hover?e:e.replace(K,"mouseenter$1 mouseleave$1")};v.event={add:function(e,n,r,i,s){var o,u,a,f,l,c,h,p,d,m,g;if(e.nodeType===3||e.nodeType===8||!n||!r||!(o=v._data(e)))return;r.handler&&(d=r,r=d.handler,s=d.selector),r.guid||(r.guid=v.guid++),a=o.events,a||(o.events=a={}),u=o.handle,u||(o.handle=u=function(e){return typeof v=="undefined"||!!e&&v.event.triggered===e.type?t:v.event.dispatch.apply(u.elem,arguments)},u.elem=e),n=v.trim(Z(n)).split(" ");for(f=0;f=0&&(y=y.slice(0,-1),a=!0),y.indexOf(".")>=0&&(b=y.split("."),y=b.shift(),b.sort());if((!s||v.event.customEvent[y])&&!v.event.global[y])return;n=typeof n=="object"?n[v.expando]?n:new v.Event(y,n):new v.Event(y),n.type=y,n.isTrigger=!0,n.exclusive=a,n.namespace=b.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h=y.indexOf(":")<0?"on"+y:"";if(!s){u=v.cache;for(f in u)u[f].events&&u[f].events[y]&&v.event.trigger(n,r,u[f].handle.elem,!0);return}n.result=t,n.target||(n.target=s),r=r!=null?v.makeArray(r):[],r.unshift(n),p=v.event.special[y]||{};if(p.trigger&&p.trigger.apply(s,r)===!1)return;m=[[s,p.bindType||y]];if(!o&&!p.noBubble&&!v.isWindow(s)){g=p.delegateType||y,l=Y.test(g+y)?s:s.parentNode;for(c=s;l;l=l.parentNode)m.push([l,g]),c=l;c===(s.ownerDocument||i)&&m.push([c.defaultView||c.parentWindow||e,g])}for(f=0;f=0:v.find(h,this,null,[s]).length),u[h]&&f.push(c);f.length&&w.push({elem:s,matches:f})}d.length>m&&w.push({elem:this,matches:d.slice(m)});for(r=0;r0?this.on(t,null,e,n):this.trigger(t)},Q.test(t)&&(v.event.fixHooks[t]=v.event.keyHooks),G.test(t)&&(v.event.fixHooks[t]=v.event.mouseHooks)}),function(e,t){function nt(e,t,n,r){n=n||[],t=t||g;var i,s,a,f,l=t.nodeType;if(!e||typeof e!="string")return n;if(l!==1&&l!==9)return[];a=o(t);if(!a&&!r)if(i=R.exec(e))if(f=i[1]){if(l===9){s=t.getElementById(f);if(!s||!s.parentNode)return n;if(s.id===f)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(f))&&u(t,s)&&s.id===f)return n.push(s),n}else{if(i[2])return S.apply(n,x.call(t.getElementsByTagName(e),0)),n;if((f=i[3])&&Z&&t.getElementsByClassName)return S.apply(n,x.call(t.getElementsByClassName(f),0)),n}return vt(e.replace(j,"$1"),t,n,r,a)}function rt(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function it(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function st(e){return N(function(t){return t=+t,N(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function ot(e,t,n){if(e===t)return n;var r=e.nextSibling;while(r){if(r===t)return-1;r=r.nextSibling}return 1}function ut(e,t){var n,r,s,o,u,a,f,l=L[d][e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=i.preFilter;while(u){if(!n||(r=F.exec(u)))r&&(u=u.slice(r[0].length)||u),a.push(s=[]);n=!1;if(r=I.exec(u))s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=r[0].replace(j," ");for(o in i.filter)(r=J[o].exec(u))&&(!f[o]||(r=f[o](r)))&&(s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=o,n.matches=r);if(!n)break}return t?u.length:u?nt.error(e):L(e,a).slice(0)}function at(e,t,r){var i=t.dir,s=r&&t.dir==="parentNode",o=w++;return t.first?function(t,n,r){while(t=t[i])if(s||t.nodeType===1)return e(t,n,r)}:function(t,r,u){if(!u){var a,f=b+" "+o+" ",l=f+n;while(t=t[i])if(s||t.nodeType===1){if((a=t[d])===l)return t.sizset;if(typeof a=="string"&&a.indexOf(f)===0){if(t.sizset)return t}else{t[d]=l;if(e(t,r,u))return t.sizset=!0,t;t.sizset=!1}}}else while(t=t[i])if(s||t.nodeType===1)if(e(t,r,u))return t}}function ft(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function lt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u-1&&(s[f]=!(o[f]=c))}}else g=lt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):S.apply(o,g)})}function ht(e){var t,n,r,s=e.length,o=i.relative[e[0].type],u=o||i.relative[" "],a=o?1:0,f=at(function(e){return e===t},u,!0),l=at(function(e){return T.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==c)||((t=n).nodeType?f(e,n,r):l(e,n,r))}];for(;a1&&ft(h),a>1&&e.slice(0,a-1).join("").replace(j,"$1"),n,a0,s=e.length>0,o=function(u,a,f,l,h){var p,d,v,m=[],y=0,w="0",x=u&&[],T=h!=null,N=c,C=u||s&&i.find.TAG("*",h&&a.parentNode||a),k=b+=N==null?1:Math.E;T&&(c=a!==g&&a,n=o.el);for(;(p=C[w])!=null;w++){if(s&&p){for(d=0;v=e[d];d++)if(v(p,a,f)){l.push(p);break}T&&(b=k,n=++o.el)}r&&((p=!v&&p)&&y--,u&&x.push(p))}y+=w;if(r&&w!==y){for(d=0;v=t[d];d++)v(x,m,a,f);if(u){if(y>0)while(w--)!x[w]&&!m[w]&&(m[w]=E.call(l));m=lt(m)}S.apply(l,m),T&&!u&&m.length>0&&y+t.length>1&&nt.uniqueSort(l)}return T&&(b=k,c=N),x};return o.el=0,r?N(o):o}function dt(e,t,n){var r=0,i=t.length;for(;r2&&(f=u[0]).type==="ID"&&t.nodeType===9&&!s&&i.relative[u[1].type]){t=i.find.ID(f.matches[0].replace($,""),t,s)[0];if(!t)return n;e=e.slice(u.shift().length)}for(o=J.POS.test(e)?-1:u.length-1;o>=0;o--){f=u[o];if(i.relative[l=f.type])break;if(c=i.find[l])if(r=c(f.matches[0].replace($,""),z.test(u[0].type)&&t.parentNode||t,s)){u.splice(o,1),e=r.length&&u.join("");if(!e)return S.apply(n,x.call(r,0)),n;break}}}return a(e,h)(r,t,s,n,z.test(e)),n}function mt(){}var n,r,i,s,o,u,a,f,l,c,h=!0,p="undefined",d=("sizcache"+Math.random()).replace(".",""),m=String,g=e.document,y=g.documentElement,b=0,w=0,E=[].pop,S=[].push,x=[].slice,T=[].indexOf||function(e){var t=0,n=this.length;for(;ti.cacheLength&&delete e[t.shift()],e[n+" "]=r},e)},k=C(),L=C(),A=C(),O="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",_=M.replace("w","w#"),D="([*^$|!~]?=)",P="\\["+O+"*("+M+")"+O+"*(?:"+D+O+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+_+")|)|)"+O+"*\\]",H=":("+M+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+P+")|[^:]|\\\\.)*|.*))\\)|)",B=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)",j=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),F=new RegExp("^"+O+"*,"+O+"*"),I=new RegExp("^"+O+"*([\\x20\\t\\r\\n\\f>+~])"+O+"*"),q=new RegExp(H),R=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,U=/^:not/,z=/[\x20\t\r\n\f]*[+~]/,W=/:not\($/,X=/h\d/i,V=/input|select|textarea|button/i,$=/\\(?!\\)/g,J={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),NAME:new RegExp("^\\[name=['\"]?("+M+")['\"]?\\]"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+H),POS:new RegExp(B,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),needsContext:new RegExp("^"+O+"*[>+~]|"+B,"i")},K=function(e){var t=g.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}},Q=K(function(e){return e.appendChild(g.createComment("")),!e.getElementsByTagName("*").length}),G=K(function(e){return e.innerHTML="",e.firstChild&&typeof e.firstChild.getAttribute!==p&&e.firstChild.getAttribute("href")==="#"}),Y=K(function(e){e.innerHTML="";var t=typeof e.lastChild.getAttribute("multiple");return t!=="boolean"&&t!=="string"}),Z=K(function(e){return e.innerHTML="",!e.getElementsByClassName||!e.getElementsByClassName("e").length?!1:(e.lastChild.className="e",e.getElementsByClassName("e").length===2)}),et=K(function(e){e.id=d+0,e.innerHTML="
    ",y.insertBefore(e,y.firstChild);var t=g.getElementsByName&&g.getElementsByName(d).length===2+g.getElementsByName(d+0).length;return r=!g.getElementById(d),y.removeChild(e),t});try{x.call(y.childNodes,0)[0].nodeType}catch(tt){x=function(e){var t,n=[];for(;t=this[e];e++)n.push(t);return n}}nt.matches=function(e,t){return nt(e,null,null,t)},nt.matchesSelector=function(e,t){return nt(t,null,null,[e]).length>0},s=nt.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(i===1||i===9||i===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(i===3||i===4)return e.nodeValue}else for(;t=e[r];r++)n+=s(t);return n},o=nt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},u=nt.contains=y.contains?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&r.nodeType===1&&n.contains&&n.contains(r))}:y.compareDocumentPosition?function(e,t){return t&&!!(e.compareDocumentPosition(t)&16)}:function(e,t){while(t=t.parentNode)if(t===e)return!0;return!1},nt.attr=function(e,t){var n,r=o(e);return r||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):r||Y?e.getAttribute(t):(n=e.getAttributeNode(t),n?typeof e[t]=="boolean"?e[t]?t:null:n.specified?n.value:null:null)},i=nt.selectors={cacheLength:50,createPseudo:N,match:J,attrHandle:G?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:r?function(e,t,n){if(typeof t.getElementById!==p&&!n){var r=t.getElementById(e);return r&&r.parentNode?[r]:[]}}:function(e,n,r){if(typeof n.getElementById!==p&&!r){var i=n.getElementById(e);return i?i.id===e||typeof i.getAttributeNode!==p&&i.getAttributeNode("id").value===e?[i]:t:[]}},TAG:Q?function(e,t){if(typeof t.getElementsByTagName!==p)return t.getElementsByTagName(e)}:function(e,t){var n=t.getElementsByTagName(e);if(e==="*"){var r,i=[],s=0;for(;r=n[s];s++)r.nodeType===1&&i.push(r);return i}return n},NAME:et&&function(e,t){if(typeof t.getElementsByName!==p)return t.getElementsByName(name)},CLASS:Z&&function(e,t,n){if(typeof t.getElementsByClassName!==p&&!n)return t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($,""),e[3]=(e[4]||e[5]||"").replace($,""),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1]==="nth"?(e[2]||nt.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*(e[2]==="even"||e[2]==="odd")),e[4]=+(e[6]+e[7]||e[2]==="odd")):e[2]&&nt.error(e[0]),e},PSEUDO:function(e){var t,n;if(J.CHILD.test(e[0]))return null;if(e[3])e[2]=e[3];else if(t=e[4])q.test(t)&&(n=ut(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(t=t.slice(0,n),e[0]=e[0].slice(0,n)),e[2]=t;return e.slice(0,3)}},filter:{ID:r?function(e){return e=e.replace($,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace($,""),function(t){var n=typeof t.getAttributeNode!==p&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){return e==="*"?function(){return!0}:(e=e.replace($,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[d][e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==p&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r,i){var s=nt.attr(r,e);return s==null?t==="!=":t?(s+="",t==="="?s===n:t==="!="?s!==n:t==="^="?n&&s.indexOf(n)===0:t==="*="?n&&s.indexOf(n)>-1:t==="$="?n&&s.substr(s.length-n.length)===n:t==="~="?(" "+s+" ").indexOf(n)>-1:t==="|="?s===n||s.substr(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r){return e==="nth"?function(e){var t,i,s=e.parentNode;if(n===1&&r===0)return!0;if(s){i=0;for(t=s.firstChild;t;t=t.nextSibling)if(t.nodeType===1){i++;if(e===t)break}}return i-=r,i===n||i%n===0&&i/n>=0}:function(t){var n=t;switch(e){case"only":case"first":while(n=n.previousSibling)if(n.nodeType===1)return!1;if(e==="first")return!0;n=t;case"last":while(n=n.nextSibling)if(n.nodeType===1)return!1;return!0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||nt.error("unsupported pseudo: "+e);return r[d]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,n){var i,s=r(e,t),o=s.length;while(o--)i=T.call(e,s[o]),e[i]=!(n[i]=s[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:N(function(e){var t=[],n=[],r=a(e.replace(j,"$1"));return r[d]?N(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:N(function(e){return function(t){return nt(e,t).length>0}}),contains:N(function(e){return function(t){return(t.textContent||t.innerText||s(t)).indexOf(e)>-1}}),enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!i.pseudos.empty(e)},empty:function(e){var t;e=e.firstChild;while(e){if(e.nodeName>"@"||(t=e.nodeType)===3||t===4)return!1;e=e.nextSibling}return!0},header:function(e){return X.test(e.nodeName)},text:function(e){var t,n;return e.nodeName.toLowerCase()==="input"&&(t=e.type)==="text"&&((n=e.getAttribute("type"))==null||n.toLowerCase()===t)},radio:rt("radio"),checkbox:rt("checkbox"),file:rt("file"),password:rt("password"),image:rt("image"),submit:it("submit"),reset:it("reset"),button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},input:function(e){return V.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},active:function(e){return e===e.ownerDocument.activeElement},first:st(function(){return[0]}),last:st(function(e,t){return[t-1]}),eq:st(function(e,t,n){return[n<0?n+t:n]}),even:st(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:st(function(e,t,n){for(var r=n<0?n+t:n;++r",e.querySelectorAll("[selected]").length||i.push("\\["+O+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||i.push(":checked")}),K(function(e){e.innerHTML="

    ",e.querySelectorAll("[test^='']").length&&i.push("[*^$]="+O+"*(?:\"\"|'')"),e.innerHTML="",e.querySelectorAll(":enabled").length||i.push(":enabled",":disabled")}),i=new RegExp(i.join("|")),vt=function(e,r,s,o,u){if(!o&&!u&&!i.test(e)){var a,f,l=!0,c=d,h=r,p=r.nodeType===9&&e;if(r.nodeType===1&&r.nodeName.toLowerCase()!=="object"){a=ut(e),(l=r.getAttribute("id"))?c=l.replace(n,"\\$&"):r.setAttribute("id",c),c="[id='"+c+"'] ",f=a.length;while(f--)a[f]=c+a[f].join("");h=z.test(e)&&r.parentNode||r,p=a.join(",")}if(p)try{return S.apply(s,x.call(h.querySelectorAll(p),0)),s}catch(v){}finally{l||r.removeAttribute("id")}}return t(e,r,s,o,u)},u&&(K(function(t){e=u.call(t,"div");try{u.call(t,"[test!='']:sizzle"),s.push("!=",H)}catch(n){}}),s=new RegExp(s.join("|")),nt.matchesSelector=function(t,n){n=n.replace(r,"='$1']");if(!o(t)&&!s.test(n)&&!i.test(n))try{var a=u.call(t,n);if(a||e||t.document&&t.document.nodeType!==11)return a}catch(f){}return nt(n,null,null,[t]).length>0})}(),i.pseudos.nth=i.pseudos.eq,i.filters=mt.prototype=i.pseudos,i.setFilters=new mt,nt.attr=v.attr,v.find=nt,v.expr=nt.selectors,v.expr[":"]=v.expr.pseudos,v.unique=nt.uniqueSort,v.text=nt.getText,v.isXMLDoc=nt.isXML,v.contains=nt.contains}(e);var nt=/Until$/,rt=/^(?:parents|prev(?:Until|All))/,it=/^.[^:#\[\.,]*$/,st=v.expr.match.needsContext,ot={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({find:function(e){var t,n,r,i,s,o,u=this;if(typeof e!="string")return v(e).filter(function(){for(t=0,n=u.length;t0)for(i=r;i=0:v.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,s=[],o=st.test(e)||typeof e!="string"?v(e,t||this.context):0;for(;r-1:v.find.matchesSelector(n,e)){s.push(n);break}n=n.parentNode}}return s=s.length>1?v.unique(s):s,this.pushStack(s,"closest",e)},index:function(e){return e?typeof e=="string"?v.inArray(this[0],v(e)):v.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n=typeof e=="string"?v(e,t):v.makeArray(e&&e.nodeType?[e]:e),r=v.merge(this.get(),n);return this.pushStack(ut(n[0])||ut(r[0])?r:v.unique(r))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),v.fn.andSelf=v.fn.addBack,v.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return v.dir(e,"parentNode")},parentsUntil:function(e,t,n){return v.dir(e,"parentNode",n)},next:function(e){return at(e,"nextSibling")},prev:function(e){return at(e,"previousSibling")},nextAll:function(e){return v.dir(e,"nextSibling")},prevAll:function(e){return v.dir(e,"previousSibling")},nextUntil:function(e,t,n){return v.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return v.dir(e,"previousSibling",n)},siblings:function(e){return v.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return v.sibling(e.firstChild)},contents:function(e){return v.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:v.merge([],e.childNodes)}},function(e,t){v.fn[e]=function(n,r){var i=v.map(this,t,n);return nt.test(e)||(r=n),r&&typeof r=="string"&&(i=v.filter(r,i)),i=this.length>1&&!ot[e]?v.unique(i):i,this.length>1&&rt.test(e)&&(i=i.reverse()),this.pushStack(i,e,l.call(arguments).join(","))}}),v.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),t.length===1?v.find.matchesSelector(t[0],e)?[t[0]]:[]:v.find.matches(e,t)},dir:function(e,n,r){var i=[],s=e[n];while(s&&s.nodeType!==9&&(r===t||s.nodeType!==1||!v(s).is(r)))s.nodeType===1&&i.push(s),s=s[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}});var ct="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ht=/ jQuery\d+="(?:null|\d+)"/g,pt=/^\s+/,dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,vt=/<([\w:]+)/,mt=/]","i"),Et=/^(?:checkbox|radio)$/,St=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/\/(java|ecma)script/i,Tt=/^\s*\s*$/g,Nt={option:[1,""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]},Ct=lt(i),kt=Ct.appendChild(i.createElement("div"));Nt.optgroup=Nt.option,Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td,v.support.htmlSerialize||(Nt._default=[1,"X
    ","
    "]),v.fn.extend({text:function(e){return v.access(this,function(e){return e===t?v.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(v.isFunction(e))return this.each(function(t){v(this).wrapAll(e.call(this,t))});if(this[0]){var t=v(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){v.nodeName(this,"body")||v(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(e,this),"before",this.selector)}},after:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(this,e),"after",this.selector)}},remove:function(e,t){var n,r=0;for(;(n=this[r])!=null;r++)if(!e||v.filter(e,[n]).length)!t&&n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),v.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n);return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){e.nodeType===1&&v.cleanData(e.getElementsByTagName("*"));while(e.firstChild)e.removeChild(e.firstChild)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return v.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return n.nodeType===1?n.innerHTML.replace(ht,""):t;if(typeof e=="string"&&!yt.test(e)&&(v.support.htmlSerialize||!wt.test(e))&&(v.support.leadingWhitespace||!pt.test(e))&&!Nt[(vt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(dt,"<$1>");try{for(;r1&&typeof f=="string"&&St.test(f))return this.each(function(){v(this).domManip(e,n,r)});if(v.isFunction(f))return this.each(function(i){var s=v(this);e[0]=f.call(this,i,n?s.html():t),s.domManip(e,n,r)});if(this[0]){i=v.buildFragment(e,this,l),o=i.fragment,s=o.firstChild,o.childNodes.length===1&&(o=s);if(s){n=n&&v.nodeName(s,"tr");for(u=i.cacheable||c-1;a0?this.clone(!0):this).get(),v(o[i])[t](r),s=s.concat(r);return this.pushStack(s,e,o.selector)}}),v.extend({clone:function(e,t,n){var r,i,s,o;v.support.html5Clone||v.isXMLDoc(e)||!wt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(kt.innerHTML=e.outerHTML,kt.removeChild(o=kt.firstChild));if((!v.support.noCloneEvent||!v.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!v.isXMLDoc(e)){Ot(e,o),r=Mt(e),i=Mt(o);for(s=0;r[s];++s)i[s]&&Ot(r[s],i[s])}if(t){At(e,o);if(n){r=Mt(e),i=Mt(o);for(s=0;r[s];++s)At(r[s],i[s])}}return r=i=null,o},clean:function(e,t,n,r){var s,o,u,a,f,l,c,h,p,d,m,g,y=t===i&&Ct,b=[];if(!t||typeof t.createDocumentFragment=="undefined")t=i;for(s=0;(u=e[s])!=null;s++){typeof u=="number"&&(u+="");if(!u)continue;if(typeof u=="string")if(!gt.test(u))u=t.createTextNode(u);else{y=y||lt(t),c=t.createElement("div"),y.appendChild(c),u=u.replace(dt,"<$1>"),a=(vt.exec(u)||["",""])[1].toLowerCase(),f=Nt[a]||Nt._default,l=f[0],c.innerHTML=f[1]+u+f[2];while(l--)c=c.lastChild;if(!v.support.tbody){h=mt.test(u),p=a==="table"&&!h?c.firstChild&&c.firstChild.childNodes:f[1]===""&&!h?c.childNodes:[];for(o=p.length-1;o>=0;--o)v.nodeName(p[o],"tbody")&&!p[o].childNodes.length&&p[o].parentNode.removeChild(p[o])}!v.support.leadingWhitespace&&pt.test(u)&&c.insertBefore(t.createTextNode(pt.exec(u)[0]),c.firstChild),u=c.childNodes,c.parentNode.removeChild(c)}u.nodeType?b.push(u):v.merge(b,u)}c&&(u=c=y=null);if(!v.support.appendChecked)for(s=0;(u=b[s])!=null;s++)v.nodeName(u,"input")?_t(u):typeof u.getElementsByTagName!="undefined"&&v.grep(u.getElementsByTagName("input"),_t);if(n){m=function(e){if(!e.type||xt.test(e.type))return r?r.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)};for(s=0;(u=b[s])!=null;s++)if(!v.nodeName(u,"script")||!m(u))n.appendChild(u),typeof u.getElementsByTagName!="undefined"&&(g=v.grep(v.merge([],u.getElementsByTagName("script")),m),b.splice.apply(b,[s+1,0].concat(g)),s+=g.length)}return b},cleanData:function(e,t){var n,r,i,s,o=0,u=v.expando,a=v.cache,f=v.support.deleteExpando,l=v.event.special;for(;(i=e[o])!=null;o++)if(t||v.acceptData(i)){r=i[u],n=r&&a[r];if(n){if(n.events)for(s in n.events)l[s]?v.event.remove(i,s):v.removeEvent(i,s,n.handle);a[r]&&(delete a[r],f?delete i[u]:i.removeAttribute?i.removeAttribute(u):i[u]=null,v.deletedIds.push(r))}}}}),function(){var e,t;v.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=v.uaMatch(o.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),v.browser=t,v.sub=function(){function e(t,n){return new e.fn.init(t,n)}v.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(r,i){return i&&i instanceof v&&!(i instanceof e)&&(i=e(i)),v.fn.init.call(this,r,i,t)},e.fn.init.prototype=e.fn;var t=e(i);return e}}();var Dt,Pt,Ht,Bt=/alpha\([^)]*\)/i,jt=/opacity=([^)]*)/,Ft=/^(top|right|bottom|left)$/,It=/^(none|table(?!-c[ea]).+)/,qt=/^margin/,Rt=new RegExp("^("+m+")(.*)$","i"),Ut=new RegExp("^("+m+")(?!px)[a-z%]+$","i"),zt=new RegExp("^([-+])=("+m+")","i"),Wt={BODY:"block"},Xt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:0,fontWeight:400},$t=["Top","Right","Bottom","Left"],Jt=["Webkit","O","Moz","ms"],Kt=v.fn.toggle;v.fn.extend({css:function(e,n){return v.access(this,function(e,n,r){return r!==t?v.style(e,n,r):v.css(e,n)},e,n,arguments.length>1)},show:function(){return Yt(this,!0)},hide:function(){return Yt(this)},toggle:function(e,t){var n=typeof e=="boolean";return v.isFunction(e)&&v.isFunction(t)?Kt.apply(this,arguments):this.each(function(){(n?e:Gt(this))?v(this).show():v(this).hide()})}}),v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Dt(e,"opacity");return n===""?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":v.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var s,o,u,a=v.camelCase(n),f=e.style;n=v.cssProps[a]||(v.cssProps[a]=Qt(f,a)),u=v.cssHooks[n]||v.cssHooks[a];if(r===t)return u&&"get"in u&&(s=u.get(e,!1,i))!==t?s:f[n];o=typeof r,o==="string"&&(s=zt.exec(r))&&(r=(s[1]+1)*s[2]+parseFloat(v.css(e,n)),o="number");if(r==null||o==="number"&&isNaN(r))return;o==="number"&&!v.cssNumber[a]&&(r+="px");if(!u||!("set"in u)||(r=u.set(e,r,i))!==t)try{f[n]=r}catch(l){}},css:function(e,n,r,i){var s,o,u,a=v.camelCase(n);return n=v.cssProps[a]||(v.cssProps[a]=Qt(e.style,a)),u=v.cssHooks[n]||v.cssHooks[a],u&&"get"in u&&(s=u.get(e,!0,i)),s===t&&(s=Dt(e,n)),s==="normal"&&n in Vt&&(s=Vt[n]),r||i!==t?(o=parseFloat(s),r||v.isNumeric(o)?o||0:s):s},swap:function(e,t,n){var r,i,s={};for(i in t)s[i]=e.style[i],e.style[i]=t[i];r=n.call(e);for(i in t)e.style[i]=s[i];return r}}),e.getComputedStyle?Dt=function(t,n){var r,i,s,o,u=e.getComputedStyle(t,null),a=t.style;return u&&(r=u.getPropertyValue(n)||u[n],r===""&&!v.contains(t.ownerDocument,t)&&(r=v.style(t,n)),Ut.test(r)&&qt.test(n)&&(i=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=u.width,a.width=i,a.minWidth=s,a.maxWidth=o)),r}:i.documentElement.currentStyle&&(Dt=function(e,t){var n,r,i=e.currentStyle&&e.currentStyle[t],s=e.style;return i==null&&s&&s[t]&&(i=s[t]),Ut.test(i)&&!Ft.test(t)&&(n=s.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),s.left=t==="fontSize"?"1em":i,i=s.pixelLeft+"px",s.left=n,r&&(e.runtimeStyle.left=r)),i===""?"auto":i}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,r){if(n)return e.offsetWidth===0&&It.test(Dt(e,"display"))?v.swap(e,Xt,function(){return tn(e,t,r)}):tn(e,t,r)},set:function(e,n,r){return Zt(e,n,r?en(e,t,r,v.support.boxSizing&&v.css(e,"boxSizing")==="border-box"):0)}}}),v.support.opacity||(v.cssHooks.opacity={get:function(e,t){return jt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=v.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if(t>=1&&v.trim(s.replace(Bt,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(r&&!r.filter)return}n.filter=Bt.test(s)?s.replace(Bt,i):s+" "+i}}),v(function(){v.support.reliableMarginRight||(v.cssHooks.marginRight={get:function(e,t){return v.swap(e,{display:"inline-block"},function(){if(t)return Dt(e,"marginRight")})}}),!v.support.pixelPosition&&v.fn.position&&v.each(["top","left"],function(e,t){v.cssHooks[t]={get:function(e,n){if(n){var r=Dt(e,t);return Ut.test(r)?v(e).position()[t]+"px":r}}}})}),v.expr&&v.expr.filters&&(v.expr.filters.hidden=function(e){return e.offsetWidth===0&&e.offsetHeight===0||!v.support.reliableHiddenOffsets&&(e.style&&e.style.display||Dt(e,"display"))==="none"},v.expr.filters.visible=function(e){return!v.expr.filters.hidden(e)}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){var r,i=typeof n=="string"?n.split(" "):[n],s={};for(r=0;r<4;r++)s[e+$t[r]+t]=i[r]||i[r-2]||i[0];return s}},qt.test(e)||(v.cssHooks[e+t].set=Zt)});var rn=/%20/g,sn=/\[\]$/,on=/\r?\n/g,un=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,an=/^(?:select|textarea)/i;v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?v.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||an.test(this.nodeName)||un.test(this.type))}).map(function(e,t){var n=v(this).val();return n==null?null:v.isArray(n)?v.map(n,function(e,n){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),v.param=function(e,n){var r,i=[],s=function(e,t){t=v.isFunction(t)?t():t==null?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};n===t&&(n=v.ajaxSettings&&v.ajaxSettings.traditional);if(v.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){s(this.name,this.value)});else for(r in e)fn(r,e[r],n,s);return i.join("&").replace(rn,"+")};var ln,cn,hn=/#.*$/,pn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,dn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,vn=/^(?:GET|HEAD)$/,mn=/^\/\//,gn=/\?/,yn=/)<[^<]*)*<\/script>/gi,bn=/([?&])_=[^&]*/,wn=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,En=v.fn.load,Sn={},xn={},Tn=["*/"]+["*"];try{cn=s.href}catch(Nn){cn=i.createElement("a"),cn.href="",cn=cn.href}ln=wn.exec(cn.toLowerCase())||[],v.fn.load=function(e,n,r){if(typeof e!="string"&&En)return En.apply(this,arguments);if(!this.length)return this;var i,s,o,u=this,a=e.indexOf(" ");return a>=0&&(i=e.slice(a,e.length),e=e.slice(0,a)),v.isFunction(n)?(r=n,n=t):n&&typeof n=="object"&&(s="POST"),v.ajax({url:e,type:s,dataType:"html",data:n,complete:function(e,t){r&&u.each(r,o||[e.responseText,t,e])}}).done(function(e){o=arguments,u.html(i?v("
    ").append(e.replace(yn,"")).find(i):e)}),this},v.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.each(["get","post"],function(e,n){v[n]=function(e,r,i,s){return v.isFunction(r)&&(s=s||i,i=r,r=t),v.ajax({type:n,url:e,data:r,success:i,dataType:s})}}),v.extend({getScript:function(e,n){return v.get(e,t,n,"script")},getJSON:function(e,t,n){return v.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?Ln(e,v.ajaxSettings):(t=e,e=v.ajaxSettings),Ln(e,t),e},ajaxSettings:{url:cn,isLocal:dn.test(ln[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Tn},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Cn(Sn),ajaxTransport:Cn(xn),ajax:function(e,n){function T(e,n,s,a){var l,y,b,w,S,T=n;if(E===2)return;E=2,u&&clearTimeout(u),o=t,i=a||"",x.readyState=e>0?4:0,s&&(w=An(c,x,s));if(e>=200&&e<300||e===304)c.ifModified&&(S=x.getResponseHeader("Last-Modified"),S&&(v.lastModified[r]=S),S=x.getResponseHeader("Etag"),S&&(v.etag[r]=S)),e===304?(T="notmodified",l=!0):(l=On(c,w),T=l.state,y=l.data,b=l.error,l=!b);else{b=T;if(!T||e)T="error",e<0&&(e=0)}x.status=e,x.statusText=(n||T)+"",l?d.resolveWith(h,[y,T,x]):d.rejectWith(h,[x,T,b]),x.statusCode(g),g=t,f&&p.trigger("ajax"+(l?"Success":"Error"),[x,c,l?y:b]),m.fireWith(h,[x,T]),f&&(p.trigger("ajaxComplete",[x,c]),--v.active||v.event.trigger("ajaxStop"))}typeof e=="object"&&(n=e,e=t),n=n||{};var r,i,s,o,u,a,f,l,c=v.ajaxSetup({},n),h=c.context||c,p=h!==c&&(h.nodeType||h instanceof v)?v(h):v.event,d=v.Deferred(),m=v.Callbacks("once memory"),g=c.statusCode||{},b={},w={},E=0,S="canceled",x={readyState:0,setRequestHeader:function(e,t){if(!E){var n=e.toLowerCase();e=w[n]=w[n]||e,b[e]=t}return this},getAllResponseHeaders:function(){return E===2?i:null},getResponseHeader:function(e){var n;if(E===2){if(!s){s={};while(n=pn.exec(i))s[n[1].toLowerCase()]=n[2]}n=s[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return E||(c.mimeType=e),this},abort:function(e){return e=e||S,o&&o.abort(e),T(0,e),this}};d.promise(x),x.success=x.done,x.error=x.fail,x.complete=m.add,x.statusCode=function(e){if(e){var t;if(E<2)for(t in e)g[t]=[g[t],e[t]];else t=e[x.status],x.always(t)}return this},c.url=((e||c.url)+"").replace(hn,"").replace(mn,ln[1]+"//"),c.dataTypes=v.trim(c.dataType||"*").toLowerCase().split(y),c.crossDomain==null&&(a=wn.exec(c.url.toLowerCase()),c.crossDomain=!(!a||a[1]===ln[1]&&a[2]===ln[2]&&(a[3]||(a[1]==="http:"?80:443))==(ln[3]||(ln[1]==="http:"?80:443)))),c.data&&c.processData&&typeof c.data!="string"&&(c.data=v.param(c.data,c.traditional)),kn(Sn,c,n,x);if(E===2)return x;f=c.global,c.type=c.type.toUpperCase(),c.hasContent=!vn.test(c.type),f&&v.active++===0&&v.event.trigger("ajaxStart");if(!c.hasContent){c.data&&(c.url+=(gn.test(c.url)?"&":"?")+c.data,delete c.data),r=c.url;if(c.cache===!1){var N=v.now(),C=c.url.replace(bn,"$1_="+N);c.url=C+(C===c.url?(gn.test(c.url)?"&":"?")+"_="+N:"")}}(c.data&&c.hasContent&&c.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",c.contentType),c.ifModified&&(r=r||c.url,v.lastModified[r]&&x.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&x.setRequestHeader("If-None-Match",v.etag[r])),x.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+Tn+"; q=0.01":""):c.accepts["*"]);for(l in c.headers)x.setRequestHeader(l,c.headers[l]);if(!c.beforeSend||c.beforeSend.call(h,x,c)!==!1&&E!==2){S="abort";for(l in{success:1,error:1,complete:1})x[l](c[l]);o=kn(xn,c,n,x);if(!o)T(-1,"No Transport");else{x.readyState=1,f&&p.trigger("ajaxSend",[x,c]),c.async&&c.timeout>0&&(u=setTimeout(function(){x.abort("timeout")},c.timeout));try{E=1,o.send(b,T)}catch(k){if(!(E<2))throw k;T(-1,k)}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var Mn=[],_n=/\?/,Dn=/(=)\?(?=&|$)|\?\?/,Pn=v.now();v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Mn.pop()||v.expando+"_"+Pn++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(n,r,i){var s,o,u,a=n.data,f=n.url,l=n.jsonp!==!1,c=l&&Dn.test(f),h=l&&!c&&typeof a=="string"&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dn.test(a);if(n.dataTypes[0]==="jsonp"||c||h)return s=n.jsonpCallback=v.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,o=e[s],c?n.url=f.replace(Dn,"$1"+s):h?n.data=a.replace(Dn,"$1"+s):l&&(n.url+=(_n.test(f)?"&":"?")+n.jsonp+"="+s),n.converters["script json"]=function(){return u||v.error(s+" was not called"),u[0]},n.dataTypes[0]="json",e[s]=function(){u=arguments},i.always(function(){e[s]=o,n[s]&&(n.jsonpCallback=r.jsonpCallback,Mn.push(s)),u&&v.isFunction(o)&&o(u[0]),u=o=t}),"script"}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),v.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=i.head||i.getElementsByTagName("head")[0]||i.documentElement;return{send:function(s,o){n=i.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){if(i||!n.readyState||/loaded|complete/.test(n.readyState))n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,i||o(200,"success")},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var Hn,Bn=e.ActiveXObject?function(){for(var e in Hn)Hn[e](0,1)}:!1,jn=0;v.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&Fn()||In()}:Fn,function(e){v.extend(v.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(v.ajaxSettings.xhr()),v.support.ajax&&v.ajaxTransport(function(n){if(!n.crossDomain||v.support.cors){var r;return{send:function(i,s){var o,u,a=n.xhr();n.username?a.open(n.type,n.url,n.async,n.username,n.password):a.open(n.type,n.url,n.async);if(n.xhrFields)for(u in n.xhrFields)a[u]=n.xhrFields[u];n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType),!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(u in i)a.setRequestHeader(u,i[u])}catch(f){}a.send(n.hasContent&&n.data||null),r=function(e,i){var u,f,l,c,h;try{if(r&&(i||a.readyState===4)){r=t,o&&(a.onreadystatechange=v.noop,Bn&&delete Hn[o]);if(i)a.readyState!==4&&a.abort();else{u=a.status,l=a.getAllResponseHeaders(),c={},h=a.responseXML,h&&h.documentElement&&(c.xml=h);try{c.text=a.responseText}catch(p){}try{f=a.statusText}catch(p){f=""}!u&&n.isLocal&&!n.crossDomain?u=c.text?200:404:u===1223&&(u=204)}}}catch(d){i||s(-1,d)}c&&s(u,f,c,l)},n.async?a.readyState===4?setTimeout(r,0):(o=++jn,Bn&&(Hn||(Hn={},v(e).unload(Bn)),Hn[o]=r),a.onreadystatechange=r):r()},abort:function(){r&&r(0,1)}}}});var qn,Rn,Un=/^(?:toggle|show|hide)$/,zn=new RegExp("^(?:([-+])=|)("+m+")([a-z%]*)$","i"),Wn=/queueHooks$/,Xn=[Gn],Vn={"*":[function(e,t){var n,r,i=this.createTween(e,t),s=zn.exec(t),o=i.cur(),u=+o||0,a=1,f=20;if(s){n=+s[2],r=s[3]||(v.cssNumber[e]?"":"px");if(r!=="px"&&u){u=v.css(i.elem,e,!0)||n||1;do a=a||".5",u/=a,v.style(i.elem,e,u+r);while(a!==(a=i.cur()/o)&&a!==1&&--f)}i.unit=r,i.start=u,i.end=s[1]?u+(s[1]+1)*n:n}return i}]};v.Animation=v.extend(Kn,{tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;r-1,f={},l={},c,h;a?(l=i.position(),c=l.top,h=l.left):(c=parseFloat(o)||0,h=parseFloat(u)||0),v.isFunction(t)&&(t=t.call(e,n,s)),t.top!=null&&(f.top=t.top-s.top+c),t.left!=null&&(f.left=t.left-s.left+h),"using"in t?t.using.call(e,f):i.css(f)}},v.fn.extend({position:function(){if(!this[0])return;var e=this[0],t=this.offsetParent(),n=this.offset(),r=er.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(v.css(e,"marginTop"))||0,n.left-=parseFloat(v.css(e,"marginLeft"))||0,r.top+=parseFloat(v.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(v.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||i.body;while(e&&!er.test(e.nodeName)&&v.css(e,"position")==="static")e=e.offsetParent;return e||i.body})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);v.fn[e]=function(i){return v.access(this,function(e,i,s){var o=tr(e);if(s===t)return o?n in o?o[n]:o.document.documentElement[i]:e[i];o?o.scrollTo(r?v(o).scrollLeft():s,r?s:v(o).scrollTop()):e[i]=s},e,i,arguments.length,null)}}),v.each({Height:"height",Width:"width"},function(e,n){v.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){v.fn[i]=function(i,s){var o=arguments.length&&(r||typeof i!="boolean"),u=r||(i===!0||s===!0?"margin":"border");return v.access(this,function(n,r,i){var s;return v.isWindow(n)?n.document.documentElement["client"+e]:n.nodeType===9?(s=n.documentElement,Math.max(n.body["scroll"+e],s["scroll"+e],n.body["offset"+e],s["offset"+e],s["client"+e])):i===t?v.css(n,r,i,u):v.style(n,r,i,u)},n,o?i:t,o,null)}})}),e.jQuery=e.$=v,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return v})})(window); \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/js/templates.js b/WebRoot/js/HoorayOS_mini/js/templates.js new file mode 100644 index 00000000..8ee4f03d --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/js/templates.js @@ -0,0 +1,66 @@ +//桌面应用 +var appbtnTemp = template( + '
  • '+ + '
    <%=title%>
    '+ + '<%=title%>'+ + '
  • ' +); +//任务栏 +var taskTemp = template( + ''+ + '
    '+ + ''+ + '
    '+ + '
    <%=title%>
    '+ + '
    ' +); +//小挂件 +var widgetWindowTemp = template( + '
    '+ + '
    '+ + ''+ + '
    '+ + ''+ + '
    '+ + '
    ' +); +//应用窗口 +var windowTemp = template( + '
    '+ + '
    '+ + '
    '+ + '<%=title%>'+ + '
    '+ + '
    '+ + ''+ + '<% if(istitlebar){ %>'+ + 'style="display:none"<% } %>>'+ + 'style="display:none"<% } %>>'+ + '<% } %>'+ + '<% if(istitlebarFullscreen){ %>'+ + '+'+ + '<% } %>'+ + '×'+ + '
    '+ + '
    '+ + '<% if(isflash){ %>'+ + '
    运行中,点击恢复显示 :)
    '+ + '<% }else{ %>'+ + '
    '+ + '<% } %>'+ + '
    '+ + ''+ + '
    '+ + '
    '+ + '<% if(isresize){ %>'+ + '
    '+ + '
    '+ + '
    '+ + '
    '+ + '
    '+ + '
    '+ + '
    '+ + '
    '+ + '<% } %>'+ + '
    ' +); \ No newline at end of file diff --git a/WebRoot/js/HoorayOS_mini/js/wallpaper.jpg b/WebRoot/js/HoorayOS_mini/js/wallpaper.jpg new file mode 100644 index 00000000..e7becba8 Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/js/wallpaper.jpg differ diff --git a/WebRoot/js/HoorayOS_mini/js/zoom.swf b/WebRoot/js/HoorayOS_mini/js/zoom.swf new file mode 100644 index 00000000..188bbc0a Binary files /dev/null and b/WebRoot/js/HoorayOS_mini/js/zoom.swf differ diff --git a/WebRoot/js/HoorayOS_mini/说明.txt b/WebRoot/js/HoorayOS_mini/说明.txt new file mode 100644 index 00000000..e255451a --- /dev/null +++ b/WebRoot/js/HoorayOS_mini/说明.txt @@ -0,0 +1,57 @@ +===== 桌面应用数据 ===== +桌面通过读取data.js里的json数据显示桌面应用,其data.js可替换成后端输出,打开hros.app.js,找到17行,把data.js的路径替换成后端输出桌面json数据的地址即可。 + +===== 应用结构参数说明 ===== + +app应用 + +id : 0, //应用id,确保该id唯一不重复,因为打开、关闭等操作都是根据这个唯一id来查找应用的 +title : "我的博客", //应用名称 +type : "app", //应用类型,分别有app、widget可选,app为窗口应用,widget为挂件应用 +icon : "img/ui/system-shapes.png", //应用图标 +url : "http://www.cnblogs.com/hooray", //应用地址 +width : 1000, //应用显示宽度 +height : 500, //应用显示高度 +left : 100, //距离页面左部偏移量,不设置默认水平居中 +top : 100, //距离页面顶部偏移量,不设置默认垂直居中 +isresize : true, //应用是否可以拉伸 +isopenmax : false, //应用是否打开自动最大化状态 +isflash : false //应用是否为flash应用 + +widget应用 + +id : 0, //应用id,确保该id唯一不重复,因为打开、关闭等操作都是根据这个唯一id来查找应用的 +title : "我的博客", //应用名称 +type : "widget", //应用类型,分别有app、widget可选,app为窗口应用,widget为挂件应用 +icon : "img/ui/system-shapes.png", //应用图标 +url : "http://www.cnblogs.com/hooray", //应用地址 +width : 1000, //应用显示宽度 +height : 500, //应用显示高度 +right : 100, //距离页面右部偏移量,不设置默认为0 +top : 100 //距离页面顶部偏移量,不设置默认为0 + +===== 如何更换壁纸 ===== + +打开index.html,找到: +HROS.CONFIG.wallpaper = 'img/wallpaper/wallpaper.jpg'; +将后面的地址替换成其它壁纸图片链接即可 + +===== 如何创建临时窗口和挂件 ===== + +创建一个临时窗口,多次调用会多次创建,窗口不唯一 + +HROS.window.createTemp({title:'百度',url:'http://hoorayos.com',width:800,height:400,left:100,top:100,isresize:false,isopenmax:false,isflash:false}); + +创建一个临时挂件,多次调用会多次创建,窗口不唯一 + +HROS.widget.createTemp({url:'http://hoorayos.com',width:800,height:400,right:100,top:100}); + +创建一个临时窗口,多次调用不会重复创建,窗口唯一,需要在参数里加上appid属性,内容随便填写,但确保appid唯一,以免与系统窗口重复 +参数说明:title:标题,url:网址,width:窗口宽度,height:窗口高度,left:挂件距离页面左部偏移量(可不填,默认0),top:挂件距离页面顶部偏移量(可不填,默认0),isresize:窗口是否可以拉伸(可不填,默认false),isopenmax:窗口打开是否默认最大化(可不填,默认false),isflash:窗口内是否为flash应用(可不填,默认false) + +HROS.window.createTemp({appid:'window_baidu',title:'百度',url:'hoorayos.com',width:800,height:400,left:100,top:100,isresize:false,isopenmax:false,isflash:false}); + +创建一个临时挂件,多次调用不会重复创建,窗口唯一,需要在参数里加上appid属性,内容随便填写,但确保appid唯一,以免与系统挂件重复 +参数说明:url:网址,width:窗口宽度,height:窗口高度,right:挂件距离页面左部偏移量(可不填,默认0),top:挂件距离页面顶部偏移量(可不填,默认0) + +HROS.widget.createTemp({appid:'widget_baidu',url:'hoorayos.com',width:800,height:400,right:100,top:100}); \ No newline at end of file