From 75a2a95ff01d2f5aed1d0e7dbe3853150ec80bdd Mon Sep 17 00:00:00 2001 From: bnu Date: Sun, 24 Nov 2013 01:52:23 +0900 Subject: [PATCH] minify js, css --- common/js/common.min.js | 1 - modules/editor/skins/xpresseditor/css/default.min.css | 2 +- modules/poll/skins/default/css/poll.min.css | 2 +- modules/poll/skins/simple/css/poll.min.css | 2 +- modules/poll/tpl/css/poll.min.css | 2 +- modules/poll/tpl/js/poll.min.js | 3 +-- modules/poll/tpl/js/poll_admin.min.js | 2 +- 7 files changed, 6 insertions(+), 8 deletions(-) delete mode 100644 common/js/common.min.js diff --git a/common/js/common.min.js b/common/js/common.min.js deleted file mode 100644 index 8a3dd079a..000000000 --- a/common/js/common.min.js +++ /dev/null @@ -1 +0,0 @@ -if(jQuery){jQuery.noConflict()}(function(b){var a=navigator.userAgent.toLowerCase();b.os={Linux:/linux/.test(a),Unix:/x11/.test(a),Mac:/mac/.test(a),Windows:/win/.test(a)};b.os.name=(b.os.Windows)?"Windows":(b.os.Linux)?"Linux":(b.os.Unix)?"Unix":(b.os.Mac)?"Mac":"";window.XE={loaded_popup_menus:new Array(),addedDocument:new Array(),checkboxToggleAll:function(d){if(!is_def(d)){d="cart"}var c={wrap:null,checked:"toggle",doClick:false};switch(arguments.length){case 1:if(typeof(arguments[0])=="string"){d=arguments[0]}else{b.extend(c,arguments[0]||{});d="cart"}break;case 2:d=arguments[0];b.extend(c,arguments[1]||{})}if(c.doClick==true){c.checked=null}if(typeof(c.wrap)=="string"){c.wrap="#"+c.wrap}if(c.wrap){var e=b(c.wrap).find("input[name="+d+"]:checkbox")}else{var e=b("input[name="+d+"]:checkbox")}if(c.checked=="toggle"){e.each(function(){b(this).attr("checked",(b(this).attr("checked"))?false:true)})}else{(c.doClick==true)?e.click():e.attr("checked",c.checked)}},displayPopupMenu:function(k,e,h){var s=h.target_srl;var r=h.menu_id;var j=k.menus;var n="";if(this.loaded_popup_menus[r]){n=this.loaded_popup_menus[r]}else{if(j){var t=j.item;if(typeof(t.length)=="undefined"||t.length<1){t=new Array(t)}if(t.length){for(var l=0;l"+p+" "}}}this.loaded_popup_menus[r]=n}if(n){var f=b("#popup_menu_area").html("");var g={top:h.page_y,left:h.page_x};if(f.outerHeight()+g.top>b(window).height()+b(window).scrollTop()){g.top=b(window).height()-f.outerHeight()+b(window).scrollTop()}if(f.outerWidth()+g.left>b(window).width()+b(window).scrollLeft()){g.left=b(window).width()-f.outerWidth()+b(window).scrollLeft()}f.css({top:g.top,left:g.left}).show().focus()}}}})(jQuery);jQuery(function(c){c('a[href^="#"]').click(function(){c(c(this).attr("href")).attr("tabindex","0").focus()});if(c.browser.msie){c("select").each(function(g,d){var f=false;var h=new Array();for(var e=0;e-1)?h[g]:e}}if(!f){return}d.oldonchange=d.onchange;d.onchange=function(){if(this.options[this.selectedIndex].disabled){this.selectedIndex=h[g]}else{if(this.oldonchange){this.oldonchange()}}};if(d.selectedIndex>=0&&d.options[d.selectedIndex].disabled){d.onchange()}})}var a=c(".xe_content .fold_button");if(a.size()){var b=c("div.fold_container",a);c("button.more",a).click(function(){c(this).hide().next("button").show().parent().next(b).show()});c("button.less",a).click(function(){c(this).hide().prev("button").show().parent().next(b).hide()})}jQuery('input[type="submit"],button[type="submit"]').click(function(e){var d=jQuery(e.currentTarget);setTimeout(function(){return function(){d.attr("disabled","disabled")}}(),0);setTimeout(function(){return function(){d.removeAttr("disabled")}}(),3000)})});(function(){function a(d,c){return(d.replace(/#.*$/,"")===c.replace(/#.*$/,""))}var b=Array.isArray||function(c){return Object.prototype.toString.call(c)=="[object Array]"};String.prototype.getQuery=function(e){var h=a(this,window.location.href)?current_url:this;var c=h.indexOf("?");if(c==-1){return null}var g=h.substr(c+1,this.length),d={};g.replace(/([^=]+)=([^&]*)(&|$)/g,function(){d[arguments[1]]=arguments[2]});var f=d[e];if(typeof(f)=="undefined"){f=""}return f};String.prototype.setQuery=function(p,e){var j=a(this,window.location.href)?current_url:this;var o=j.indexOf("?");var f=j.replace(/#$/,"");var k,r,q;if(typeof(e)=="undefined"){e=""}if(o!=-1){var h=f.substr(o+1,j.length),l={},t=[];f=j.substr(0,o);h.replace(/([^=]+)=([^&]*)(&|$)/g,function(i,c,u){l[c]=u});l[p]=e;for(var d in l){if(!l.hasOwnProperty(d)){continue}if(!(q=String(l[d]).trim())){continue}t.push(d+"="+decodeURI(q))}h=t.join("&");f=f+(h?"?"+h:"")}else{if(String(e).trim()){f=f+"?"+p+"="+e}}r=/^https:\/\/([^:\/]+)(:\d+|)/i;if(r.test(f)){var s="http://"+RegExp.$1;if(window.http_port&&http_port!=80){s+=":"+http_port}f=f.replace(r,s)}var n=!!window.enforce_ssl;if(!n&&b(window.ssl_actions)&&(k=f.getQuery("act"))){for(var g=0,m=ssl_actions.length;g-1&&!a.getQuery("vid")){a=a.setQuery("vid",xeVid)}try{if(f!="_blank"&&winopen_list[f]){winopen_list[f].close();winopen_list[f]=null}}catch(d){}if(typeof(f)=="undefined"){f="_blank"}if(typeof(b)=="undefined"){b=""}var c=window.open(a,f,b);c.focus();if(f!="_blank"){winopen_list[f]=c}}function popopen(a,b){if(typeof(b)=="undefined"){b="_blank"}if(typeof(xeVid)!="undefined"&&a.indexOf(request_uri)>-1&&!a.getQuery("vid")){a=a.setQuery("vid",xeVid)}winopen(a,b,"width=800,height=600,scrollbars=yes,resizable=yes,toolbars=no")}function sendMailTo(a){location.href="mailto:"+a}function move_url(a,b){if(!a){return false}if(typeof(b)=="undefined"){b="N"}if(b=="N"){b=false}else{b=true}if(/^\./.test(a)){a=request_uri+a}if(b){winopen(a)}else{location.href=a}return false}function displayMultimedia(e,d,a,b){var c=_displayMultimedia(e,d,a,b);if(c){document.writeln(c)}}function _displayMultimedia(a,c,i,k){if(a.indexOf("files")==0){a=request_uri+a}var e={wmode:"transparent",allowScriptAccess:"sameDomain",quality:"high",flashvars:"",autostart:false};var d=jQuery.extend(e,k||{});var j=(d.autostart&&d.autostart!="false")?"true":"false";delete (d.autostart);var f="";var g="";var h="";if(/\.(gif|jpg|jpeg|bmp|png)$/i.test(a)){h=''}else{if(/\.flv$/i.test(a)||/\.mov$/i.test(a)||/\.moov$/i.test(a)||/\.m4v$/i.test(a)){h=''}else{if(/\.swf/i.test(a)){f="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";if(typeof(enforce_ssl)!="undefined"&&enforce_ssl){g="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"}else{g="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"}h='';h+='';for(var b in d){if(d[b]!="undefined"&&d[b]!=""){h+=''}}h+=''}else{if(jQuery.browser.mozilla||jQuery.browser.opera){j=(d.autostart&&d.autostart!="false")?"1":"0"}h='.popup"),a,d,c,e,g;g=b.css({overflow:"scroll"}).offset();a=b.width(10).height(10000).get(0).scrollWidth+g.left*2;d=b.height(10).width(10000).get(0).scrollHeight+g.top*2;if(a<800){a=800+g.left*2}c=i.width();e=i.height();if(a!=c){window.resizeBy(a-c,0)}if(d!=e){window.resizeBy(0,d-e)}b.width(a-g.left*2).css({overflow:"",height:""})}function doCallModuleAction(a,c,b){var d={target_srl:b,cur_mid:current_mid,mid:current_mid};exec_xml(a,c,d,completeCallModuleAction)}function completeCallModuleAction(a,b){if(a.message!="success"){alert(a.message)}location.reload()}function completeMessage(a){alert(a.message);location.reload()}function doChangeLangType(a){if(typeof(a)=="string"){setLangType(a)}else{var b=a.options[a.selectedIndex].value;setLangType(b)}location.href=location.href.setQuery("l","")}function setLangType(b){var a=new Date();a.setTime(a.getTime()+(7000*24*3600000));setCookie("lang_type",b,a,"/")}function doDocumentPreview(e){var a=e;while(a.nodeName!="FORM"){a=a.parentNode}if(a.nodeName!="FORM"){return}var b=a.getAttribute("editor_sequence");var c=editorGetContent(b);var d=window.open("","previewDocument","toolbars=no,width=700px;height=800px,scrollbars=yes,resizable=yes");var f=jQuery("#previewDocument");if(!f.length){jQuery('
').appendTo(document.body);f=jQuery("#previewDocument")[0]}else{f=f[0]}if(f){f.content.value=c;f.submit()}}function doDocumentSave(f){var b=f.form.getAttribute("editor_sequence");var h=editorRelKeys[b]["content"].value;if(typeof(b)!="undefined"&&b&&typeof(editorRelKeys)!="undefined"&&typeof(editorGetContent)=="function"){var c=editorGetContent(b);editorRelKeys[b]["content"].value=c}var g={},e=["error","message","document_srl"],a=f.form.elements,d=jQuery(f.form).serializeArray();jQuery.each(d,function(j,k){var l=jQuery.trim(k.value);if(!l){return true}if(/\[\]$/.test(k.name)){k.name=k.name.replace(/\[\]$/,"")}if(g[k.name]){g[k.name]+="|@|"+l}else{g[k.name]=k.value}});exec_xml("document","procDocumentTempSave",g,completeDocumentSave,e,g,f.form);editorRelKeys[b]["content"].value=h;return false}function completeDocumentSave(a){jQuery("input[name=document_srl]").eq(0).val(a.document_srl);alert(a.message)}var objForSavedDoc=null;function doDocumentLoad(a){objForSavedDoc=a.form;popopen(request_uri.setQuery("module","document").setQuery("act","dispTempSavedList"))}function doDocumentSelect(a){if(!opener||!opener.objForSavedDoc){window.close();return}opener.location.href=opener.current_url.setQuery("document_srl",a).setQuery("act","dispBoardWrite");window.close()}function viewSkinInfo(a,b){popopen("./?module=module&act=dispModuleSkinInfo&selected_module="+a+"&skin="+b,"SkinInfo")}var addedDocument=new Array();function doAddDocumentCart(b){var a=b.value;addedDocument[addedDocument.length]=a;setTimeout(function(){callAddDocumentCart(addedDocument.length)},100)}function callAddDocumentCart(a){if(addedDocument.length<1||a!=addedDocument.length){return}var b=new Array();b.srls=addedDocument.join(",");exec_xml("document","procDocumentAddCart",b,null);addedDocument=new Array()}function transRGB2Hex(d){if(!d){return d}if(d.indexOf("#")>-1){return d.replace(/^#/,"")}if(d.toLowerCase().indexOf("rgb")<0){return d}d=d.replace(/^rgb\(/i,"").replace(/\)$/,"");value_list=d.split(",");var c="";for(var b=0;b>2;g=((k&3)<<4)|(h>>4);e=((h&15)<<2)|(f>>6);d=f&63;if(isNaN(h)){e=d=64}else{if(isNaN(f)){d=64}}a=a+this._keyStr.charAt(j)+this._keyStr.charAt(g)+this._keyStr.charAt(e)+this._keyStr.charAt(d)}return a},decode:function(c){var a="";var k,h,f;var j,g,e,d;var b=0;c=c.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(b>4);h=((g&15)<<4)|(e>>2);f=((e&3)<<6)|d;a=a+String.fromCharCode(k);if(e!=64){a=a+String.fromCharCode(h)}if(d!=64){a=a+String.fromCharCode(f)}}a=Base64._utf8_decode(a);return a},_utf8_encode:function(b){b=b.replace(/\r\n/g,"\n");var a="";for(var e=0;e127)&&(d<2048)){a+=String.fromCharCode((d>>6)|192);a+=String.fromCharCode((d&63)|128)}else{a+=String.fromCharCode((d>>12)|224);a+=String.fromCharCode(((d>>6)&63)|128);a+=String.fromCharCode((d&63)|128)}}}return a},_utf8_decode:function(a){var b="";var d=0;var e=c1=c2=0;while(d191)&&(e<224)){c2=a.charCodeAt(d+1);b+=String.fromCharCode(((e&31)<<6)|(c2&63));d+=2}else{c2=a.charCodeAt(d+1);c3=a.charCodeAt(d+2);b+=String.fromCharCode(((e&15)<<12)|((c2&63)<<6)|(c3&63));d+=3}}}return b}};if(typeof(resizeImageContents)=="undefined"){function resizeImageContents(){}}if(typeof(activateOptionDisabled)=="undefined"){function activateOptionDisabled(){}}objectExtend=jQuery.extend;function toggleDisplay(a){jQuery("#"+a).toggle()}function svc_folder_open(a){jQuery("#_folder_open_"+a).hide();jQuery("#_folder_close_"+a).show();jQuery("#_folder_"+a).show()}function svc_folder_close(a){jQuery("#_folder_open_"+a).show();jQuery("#_folder_close_"+a).hide();jQuery("#_folder_"+a).hide()}function open_calendar(c,d,b){if(typeof(d)=="undefined"){d=""}var a="./common/tpl/calendar.php?";if(c){a+="fo_id="+c}if(d){a+="&day_str="+d}if(b){a+="&callback_func="+b}popopen(a,"Calendar")}var loaded_popup_menus=XE.loaded_popup_menus;function createPopupMenu(){}function chkPopupMenu(){}function displayPopupMenu(a,b,c){XE.displayPopupMenu(a,b,c)}function GetObjLeft(a){return jQuery(a).offset().left}function GetObjTop(a){return jQuery(a).offset().top}function replaceOuterHTML(b,a){jQuery(b).replaceWith(a)}function getOuterHTML(a){return jQuery(a).html().trim()}function setCookie(b,c,a,e){var d=b+"="+escape(c)+((!a)?"":("; expires="+a.toGMTString()))+"; path="+((!e)?"/":e);document.cookie=d}function getCookie(b){var a=document.cookie.match(new RegExp(b+"=(.*?)(?:;|$)"));if(a){return unescape(a[1])}}function is_def(a){return(typeof(a)!="undefined")}function ucfirst(a){return a.charAt(0).toUpperCase()+a.slice(1)}function get_by_id(a){return document.getElementById(a)}jQuery(function(a){a(document).click(function(d){var e=a("#popup_menu_area");if(!e.length){e=a('