extjs-gpl
Version:
GPL licensed version of Sencha Ext JS
85 lines (70 loc) • 2.88 kB
HTML
<html manifest="">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="google" content="notranslate" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=10, user-scalable=yes">
<title>Ext JS Kitchen Sink</title>
<link rel="apple-touch-icon" href="resources/images/apple-touch-icon.png"/>
<!-- The line below must be kept intact for Sencha Command to build your application -->
<script type="text/javascript">
var Ext = Ext || {};
var KitchenSink = KitchenSink || {};
Ext.beforeLoad = function (tags) {
var query = location.search.substring(1),
values = {
'false': false,
'true': true,
'null': null
},
paramRe = /([^&=]+)(=([^&]*))?/g,
plusRe = /\+/g, // Regex for replacing addition symbol with a space
params = {},
match, key, val;
while (match = paramRe.exec(query)) {
key = decodeURIComponent(match[1].replace(plusRe, ' '));
if (match[2]) {
val = decodeURIComponent(match[3].replace(plusRe, ' '));
if (val in values) {
val = values[val];
} else if (!isNaN(+val)) {
val = +val;
}
} else {
val = true;
}
params[key] = val;
}
var profile = params.profile,
locale = params.locale;
if (!profile) {
if (!params.classic && !tags.desktop && tags.ios){
profile = 'ios';
} else if (!params.classic && (params.modern || tags.phone)) {
profile = 'material';
} else {
profile = 'triton';
}
}
match = profile.match(/^(.+?)(?:-(en|he))$/);
if (match) { // "profile=triton-en"
profile = match[1];
locale = locale || match[2];
} else {
locale = locale || 'en';
}
// TODO: EXTJS-21544 - set platformTags based upon locale's text direction.
Ext.platformTags.rtl = locale === 'he';
KitchenSink.profileName = profile;
KitchenSink.locale = locale;
Ext.manifest = profile + "-" + locale;
tags.test = !!params.testMode;
Ext.microloaderTags = tags;
};
</script>
<script id="microloader" type="text/javascript" src="bootstrap.js"></script>
</head>
<body></body>
</html>