-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
102 lines (90 loc) · 3.24 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE HTML>
<html>
<head>
<title>SAPUI5 Shell boilerplate</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script src="/sap/ui5/latest/resources/sap-ui-core.js"
type="text/javascript"
id="sap-ui-bootstrap"
data-sap-ui-libs="sap.ui.ux3, sap.ui.commons"
data-sap-ui-theme="sap_goldreflection"
></script>
<style type="text/css">
.sapUiUx3ShellCanvas{
bottom:6px; /* utilize the entire space of the shell's content */
}
.sapUiUx3ShellContent{
height: 90%;
/*overflow-y: hidden;*/
}
</style>
<!--
data-sap-ui-theme="sap_goldreflection"
data-sap-ui-theme-roots='{
"theme1" : "themes/theme1",
"theme2" : "themes/theme2"
}'
></script>
-->
<!--<link rel="stylesheet" href="styles/theme-mod.css"/>-->
<!--<script> jQuery.sap.registerModulePath('app','app'); </script>-->
<!--<script> sap.ui.localResources("app"); </script>-->
<script type="text/javascript" src="libs/misc/LAB.min.js"></script>
<script type="text/javascript">
// minification
$.urlParam = function(name){
var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href);
if(results===null) {
return null;
}else{
return results[1] || 0;
}
};
if($.urlParam('debug')==='true'){
$LAB
.script("libs/misc/underscore.js")
.script("libs/misc/funcjs.js")
.script("libs/misc//mock.js")
.script("libs/sapui/sui_workarounds.js")
.script("libs/sapui/sui.js")
.script("libs/sapui/sui5ext.js")
.script("libs/sapui/app.js")
.wait(function(){
initApp();
});
}else{
$LAB
.script("libs/misc/underscore.js")
.script("dist/js/app.min.js")
.wait(function(){
initApp();
});
}
// set logging level
//jQuery.sap.log.setLevel(jQuery.sap.log.LogLevel['ERROR']);
function initApp(){
// load locale resource
appText = sui.localeTextGetter('resources/i18n/i18n.properties');
// load custom theme css
if(sui.isCustomTheme()){
$.sap.includeStyleSheet(sui.getThemePath()+'/custom.css');
}
// The strings are dictionary keys
var navItems = [
'ui_shell_tab-home',
{title: 'ui_shell_tab-tab_with_subtabs', items:['ui_shell_tab-tab1', 'ui_shell_tab-tab2']}
];
// this wrapper is backwards function is backwards compatible with "new sap.ui.ux3.Shell(sId, mSettings)"
sui.UX3Shell({
appTitle: "SAPUI Shell Boilerplate",
navItems:navItems,
placeAt: "content"/*,
loadTabsFrom: "app/tabs"*/ // this is default as configured in the boilerplate
});
}
</script>
</head>
<body class="sapUiBody" role="application">
<div id="content"></div>
</body>
</html>