-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathindex-phonegap.html
230 lines (212 loc) · 9.53 KB
/
index-phonegap.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<!DOCTYPE html>
<!--[if IE 9 ]> <html lang="en" class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html lang="en" class="gtie9 modern">
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no,email=no,address=no" />
<meta name="msapplication-tap-highlight" content="no" />
<title>Infor CRM SLX</title>
<link rel="icon" type="image/png" href="content/images/icon.png" />
<link rel="apple-touch-icon" href="content/images/touch-icon-iphone.png" />
<link rel="apple-touch-icon" sizes="72x72" href="content/images/72x72.png" />
<link rel="apple-touch-icon" sizes="76x76" href="content/images/touch-icon-ipad.png" />
<link rel="apple-touch-icon" sizes="114x114" href="content/images/114x114.png" />
<link rel="apple-touch-icon" sizes="120x120" href="content/images/touch-icon-iphone-retina.png" />
<link rel="apple-touch-icon" sizes="144x144" href="content/images/144x144.png" />
<link rel="apple-touch-icon" sizes="152x152" href="content/images/touch-icon-ipad-retina.png" />
<!-- Startup images -->
<!-- iOS 6 & 7 iPad (retina, portrait) -->
<link href="content/images/apple-touch-startup-image-1536x2008.png"
media="(device-width: 768px) and (device-height: 1024px)
and (orientation: portrait)
and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image">
<!-- iOS 6 & 7 iPad (retina, landscape) -->
<link href="content/images/apple-touch-startup-image-1496x2048.png"
media="(device-width: 768px) and (device-height: 1024px)
and (orientation: landscape)
and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image">
<!-- iOS 6 iPad (portrait) -->
<link href="content/images/apple-touch-startup-image-768x1004.png"
media="(device-width: 768px) and (device-height: 1024px)
and (orientation: portrait)
and (-webkit-device-pixel-ratio: 1)"
rel="apple-touch-startup-image">
<!-- iOS 6 iPad (landscape) -->
<link href="content/images/apple-touch-startup-image-748x1024.png"
media="(device-width: 768px) and (device-height: 1024px)
and (orientation: landscape)
and (-webkit-device-pixel-ratio: 1)"
rel="apple-touch-startup-image">
<!-- iOS 6 & 7 iPhone 5 -->
<link href="content/images/apple-touch-startup-image-640x1096.png"
media="(device-width: 320px) and (device-height: 568px)
and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image">
<!-- iOS 6 & 7 iPhone (retina) -->
<link href="content/images/apple-touch-startup-image-640x920.png"
media="(device-width: 320px) and (device-height: 480px)
and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image">
<!-- iOS 6 iPhone -->
<link href="content/images/apple-touch-startup-image-320x480.png"
media="(device-width: 320px) and (device-height: 480px)
and (-webkit-device-pixel-ratio: 1)"
rel="apple-touch-startup-image">
<link type="text/css" rel="stylesheet" id="sohoxi-stylesheet" href="content/css/theme-soho-light.min.css" />
<link type="text/css" rel="stylesheet" href="content/css/themes/crm/sdk.min.crm.css" />
<link type="text/css" rel="stylesheet" href="content/css/app.min.css" />
<!-- cordovaApp -->
<script type="text/javascript" src="cordova.js"></script>
<!-- Provide an empty resource expected by l20n lib. Argos loads l20n files during bootstrap -->
<script type="application/l20n">{}</script>
<!-- Soho Configuration -->
<script type="application/javascript">
var SohoConfig = {
culturesPath: 'content/javascript/cultures/',
minifyCultures: true,
personalize: {
noInit: true
}
};
</script>
<!-- Global (window) dependencies. Load these before the AMD loader -->
<script type="text/javascript" src="content/javascript/argos-dependencies.js"></script>
<!-- Dojo -->
<script pin="pin" type="text/javascript">
var language, regionLocale;
if (window.localStorage) {
language = window.localStorage.getItem('language');
regionLocale = window.localStorage.getItem('region');
}
var dojoConfig = {
parseOnLoad:false,
async:true,
blankGif:'content/images/blank.gif',
locale: language || 'en',
extraLocale: [regionLocale || 'en-us']
};
</script>
<script type="text/javascript" src="content/dojo/dojo/dojo.js" data-dojo-config="parseOnLoad:false, async:true, blankGif:'content/images/blank.gif'"></script>
<script type="text/javascript">
require({
baseUrl: "./",
packages: [
{ name: 'dojo', location: 'content/dojo/dojo' },
{ name: 'dijit', location: 'content/dojo/dijit' },
{ name: 'configuration', location: 'configuration' },
{ name: 'localization', location: 'localization' }
],
map: {
'*': {
'Sage/Platform/Mobile': 'argos',
'Mobile/SalesLogix': 'crm',
'icboe': 'crm/Integrations/BOE'
}
}
});
window.pdfjsLib.GlobalWorkerOptions.workerSrc = "content/javascript/pdf.worker.min.js";
</script>
<script type="text/javascript" src="content/dojo/dojo-dependencies.js"></script>
<script type="text/javascript" src="content/javascript/argos-amd-dependencies.js"></script>
<script type="text/javascript" src="content/javascript/argos-sdk.js"></script>
<!-- Application -->
<script type="text/javascript" src="content/javascript/argos-saleslogix.js"></script>
<body>
<div id="rootNode"></div>
<script type="text/javascript">
var languages = {"de":"Deutsch (Deutschland)","en":"English (United States)","en-GB":"English (United Kingdom)","es":"Español (internacional)","fr":"français (France)","it":"italiano (Italia)","ja":"日本語 (日本)","nl":"Nederlands (Nederland)","pt-BR":"Português (Brasil)","ru":"Русский (Россия)","th":"ไทย (ประเทศไทย)","zh-CN":"简体中文","zh-TW":"繁體中文"};
var supportedLocales = [
'en',
'en-GB',
'de',
'fr',
'it',
'ru',
'zh-CN',
'zh-TW',
'es',
'pt-BR',
'ja',
'nl',
'th'
],
defaultLocale = 'en',
currentLocale = language || 'en',
parentLocale = language || 'en',
defaultRegionLocale = 'en',
currentRegionLocale = regionLocale || 'en',
parentRegionLocale = regionLocale || 'en';
var cordovaApp = {
// Application Constructor
initialize: function() {
this.bindEvents();
},
// Bind Event Listeners
//
// Bind any events that are required on startup. Common events are:
// 'load', 'deviceready', 'offline', and 'online'.
bindEvents: function() {
document.addEventListener('deviceready', this.onDeviceReady, false);
},
// deviceready Event Handler
//
// The scope of 'this' is the event. In order to call the 'receivedEvent'
// function, we must explicity call 'app.receivedEvent(...);'
onDeviceReady: function() {
cordovaApp.receivedEvent('deviceready');
},
// Update DOM on a Received Event
receivedEvent: function(id) {
// Shim, sohoxi will use define.amd and require it.
define('jquery', function () {
return window.$;
});
require(['crm/polyfills/index', 'crm/Bootstrap'], function(polyfills, bootstrap) {
bootstrap({
supportedLocales: supportedLocales,
defaultLocale: defaultLocale,
currentLocale: currentLocale,
parentLocale: parentLocale,
defaultRegionLocale: defaultRegionLocale,
currentRegionLocale: currentRegionLocale,
parentRegionLocale: parentRegionLocale,
isRegionMetric: false,
configuration: [
'configuration/production'
],
application: 'crm/Application',
legacyLocalization: [
'localization/en',
'localization/saleslogix/en'
],
legacyLocalizationFallback: [
'localization/en',
'localization/saleslogix/en'
],
localeFiles: [
'./localization/locales/crm/en/strings.l20n',
'./localization/locales/crm/en/regional.l20n',
'./localization/locales/argos/en/strings.l20n',
'./localization/locales/argos/en/regional.l20n',
],
regionalFiles: [
'./localization/locales/crm/en/regional.l20n',
'./localization/locales/icboe/en/regional.l20n',
'./localization/locales/argos/en/regional.l20n',
],
rootElement: document.getElementById('rootNode')
});
});
}
};
cordovaApp.initialize();
</script>
</body>
</html>