12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <!DOCTYPE HTML>
- <html manifest="">
- <head>
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=10, user-scalable=yes">
- <title>uas</title>
- <link rel="icon" href="./resources/images/favicon.png" type="image/x-icon">
- <!-- The line below must be kept intact for Sencha Cmd to build your application -->
- <script type="text/javascript">
- /**
- * [setCookie 设置cookie]
- */
- function setCookie(key,value,t){
- var oDate=new Date();
- oDate.setDate(oDate.getDate()+t);
- document.cookie=key+"="+value+"; expires="+oDate.toDateString();
- }
- /**
- * [getCookie 获取cookie]
- */
- function getCookie(key){
- var arr1=document.cookie.split("; ");//由于cookie是通过一个分号+空格的形式串联起来的,所以这里需要先按分号空格截断,变成[name=Jack,pwd=123456,age=22]数组类型;
- for(var i=0;i<arr1.length;i++){
- var arr2=arr1[i].split("=");//通过=截断,把name=Jack截断成[name,Jack]数组;
- if(arr2[0]==key){
- return decodeURI(arr2[1]);
- }
- }
- }
- /**
- * [removeCookie 移除cookie]
- */
- function removeCookie(key){
- setCookie(key,"",-1); // 把cookie设置为过期
- };
- </script>
- <script type=text/javascript>
- var Ext = Ext || {};
- Ext.beforeLoad = function(tags) {
- var theme = getCookie('theme');
- if(!theme){
- setCookie('theme',"triton",0);
- theme = 'triton';
- }
- console.log('加载系统主题方案:' + theme);
- var locale = getCookie('locale');
- if(!locale){
- setCookie('locale',"zh_CN",0);
- locale = 'zh_CN';
- }
- console.log('加载语言包:' + locale);
- Ext.manifest = theme + '-' + locale + '.json'; };
- </script>
- <script id="microloader" data-app="87100719-3701-4a39-9b0f-ed5f99833426" type="text/javascript" src="bootstrap.js"></script>
-
- </head>
- <body></body>
- </html>
|