/** * This file includes the required ext-all js and css files based upon "theme" and "rtl" * url parameters. It first searches for these parameters on the page url, and if they * are not found there, it looks for them on the script tag src query string. * For example, to include the neptune flavor of ext from an index page in a subdirectory * of extjs/examples/: * */ (function() { // load css var theme = 'metro'; var css_array = new Array(); var t= new Date().getTime(); // load cu js var js_array = new Array(); var scriptObjects = document.getElementsByTagName("script"); for(var i = 0;i < scriptObjects.length;i++) { var s = scriptObjects[i]; if(s.src && s.src.match(/include\.js(\?.*)?$/)){ var path = s.src.replace(/js\/include\.js(\?.*)?$/,''); var type = s.src.match(/\?type=([a-z,]*)/); { js_array =[ '../../../js/h5/qx/utility/json2.js', '../../../js/h5/qx/utility/easyui/jquery.min.js', '../../../js/h5/qx/utility/easyui/jquery.easyui.min.js', '../../../js/h5/qx/utility/easyui/jquery.xml2json.js', '../../../js/h5/qx/utility/easyui/locale/easyui-lang-zh_CN.js', '../../../js/h5/qx/utility/jquery.fullscreen-min.js' ]; } break; } } css_array = css_array.concat([ "../../../js/h5/qx/utility/easyui/themes/"+theme+"/easyui.css", "../../../js/h5/qx/utility/easyui/themes/icon.css", "../../../js/h5/qx/utility/easyui/themes/color.css" ]); for(var j = 0;j < css_array.length;j++) { document.write(''); }; for(var j = 0;j < js_array.length;j++) { if(js_array[j].indexOf("?") > 0){ document.write(''); }else{ document.write(''); } }; })();