-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
152 lines (136 loc) · 7.82 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
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>Index</title>
<!--
By default, your project will use the latest JS and CSS resources version provided in the Convertigo server where it is deployed.
If you want to use a specific version, use the version option. Be sure to use the same version for all the links to the resources.
C8O minifier merges several CSS files or JS files in one resource. It is used in the link and script inclusion tags.
These inclusion tags must be declared following a specific syntax, described here after:
* Include a file that does not exist in your project, .css or .js extension (name of the file regrouping all resources in one).
* For example js/all.js, js/common.js, other/file.js, allstyles.css …
* Add a JSON object as query string to configure options and the list of resources to merge.
* For example js/all.js?{json options}
* {json options} can be an array of resources to merge:
* Resource names that start with a '!' are ignored/not merged.
* File names can end without '.js' or '.css' extension: it uses the extension of the file regrouping all resources.
* Each resource can include dedicated options in a JSON structure {json resource options}.
* For example: js/all.js?['res1', '!res2', {res3 json resource options} …]
* {json options} can be a JSON structure with the following keys:
* files (mandatory): array of resources to merge:
* Resource names that start with a '!' are ignored/not merged.
* File names can end without '.js' or '.css' extension: it uses the extension of the file regrouping all resources.
* Each resource can include dedicated options in a JSON structure {json resource options}.
* For example: 'files':['res1', 'res2', {res3 json resource options} …]
* minification (optional): minification level for all 'files', except for resources that define their own 'minification' or files that end with '.min'.
Possible values:
* common: (default) uses the minification level defined in the Convertigo Server Engine (strong by default)
* none : no minification at all
* lines : no minification + add the original file's line numbers (ideal for debug)
* light : fast and efficient resource minification
* strong: heavy and more efficient minification (can modify some code, should be strongly tested)
* stats (optional): true/false. Overwrites the default value set in Convertigo Server Engine (default to true).
* When activated, it adds a comment at the end of the minified file with the size saved by the minification.
* filenames (optional): true/false. Overwrites the default value set in Convertigo Server Engine (default to true).
* When activated, it adds comments with the original filenames before and after their content in the merged resource file.
* version (optional): Allows to define a specific/previous Convertigo version to use this version's resources.
* '': (default) uses the latest version's resources
* '7.3.0' or '7.4.0': Used to load common resources from a specific/previous Convertigo release
* ignored if it contains a value that does not match a released Convertigo version.
* For example js/all.js?{'files':['/c8o.core'], 'minification':'light', 'stats':'false', 'filenames':'true', 'version':'7.3.0'}
* {json resource option} configures one resource dedicated options. It can be a json structure with the following keys:
* file (mandatory): the name of the resource
* Is ignored/not merged if starts with '!'.
* Can end without '.js' or '.css' extension: it uses the extension of the file regrouping all resources.
* Can start with '/': it uses a common resource of Convertigo Server.
* If does not start with '/' or '!': it uses a file relative to the file regrouping all resources:
* js/all.js?['custom'] will load js/custom.js as the file regrouping all resources is declared as being in 'js' folder.
* common.js?['file1.js','script/file2'] will load file1.js and script/files2.js.
* minification (optional): forces the minification level (even for files that end with '.min')
Possible values:
* common: (default) uses the minification level defined in the Convertigo Server Engine (strong by default)
* none : no minification at all
* lines : no minification + add the original file's line numbers (ideal for debug)
* light : fast and efficient resource minification
* strong: heavy and more efficient minification (can modify some code, should be strongly tested)
* encoding: sets the encoding used to read the resources, default is 'utf-8'
* For example: js/all.js?['res1', {'file':'res2', 'minification':'strong','encoding':'ISO-8859-1'}]
-->
<!-- CSS inclusions -->
<!--
/c8o.desktop.css:
* Convertigo c8o CSS
* Provides the application default CSS.
custom.css:
* Local project custom css
* will hold all your custom CSS styles
-->
<link type="text/css" rel="stylesheet" href="css/all.css?[
'/c8o.desktop',
{'file': 'custom', 'minification': 'common'}
]"/>
<!-- Following commented line is the same inclusion but referencing the original Convertigo version number -->
<!--
<link type="text/css" rel="stylesheet" href="css/all.css?{
'files': [
'/c8o.desktop',
{'file': 'custom', 'minification': 'common'}
],
'version':'7.3.0'
}"/>
-->
<!-- Scripts inclusions -->
<!--
/jquery(.min).js:
* jQuery library (1.x)
* Convertigo applications are based on JQuery. the following links will reference the current jQuery library.
/c8o.core.js, /c8o.desktop, /ctf.core.js, /c8o.fullsync.js & /pouchdb.min.js:
* Convertigo jQuery c8o lib
* The following links will reference the Convertigo libraries: Convertigo core library, Convertigo desktop dedicated library,
Convertigo Templating Framework library.
They provide your application's access to the Convertigo Server, automatic call of Convertigo Server and response management.
Be sure all the links remain placed in the original inclusion order.
The Convertigo Templating Framework library inclusion is commented but you can comment it out as soon as you need to use the CTF.
You can find documentation about Convertigo Templating Framework here:
http://www.convertigo.com/document/latest/reference-manual/convertigo-templating-framework/
You can find documentation about Convertigo Internationalization Framework here:
http://www.convertigo.com/document/latest/reference-manual/internationalization-framework/
You can find documentation about Convertigo FullSync Framework here:
http://www.convertigo.com/document/latest/reference-manual/convertigo-full-sync-architecture/interacting-locally-with-the-data/
custom.js:
* Local project custom script
* will hold all your custom logic and controller.
-->
<script src="js/all.js?[
'/jquery.min',
'/c8o.core',
'/c8o.desktop',
'!/ctf.core.js',
'!/pouchdb.min.js',
'!/c8o.fullsync.js',
{'file': 'custom', 'minification': 'common'}
]"></script>
<!-- Following commented line is the same inclusion but referencing the original Convertigo version number -->
<!--
<script src="js/all.js?{
'files': [
'/jquery.min',
'/c8o.core',
'/c8o.desktop',
'!/ctf.core.js',
'!/pouchdb.min.js',
'!/c8o.fullsync.js',
{'file': 'custom', 'minification': 'common'}
],
'version':'7.3.0'
}"></script>
-->
</head>
<body>
<div id="wait_div">
<div></div>
<img src="../../images/loading.gif"/>
</div>
</body>
</html>