forked from tapquo/Lungo.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Lungo.Constants.js
75 lines (67 loc) · 1.73 KB
/
Lungo.Constants.js
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
/**
* Object with data-attributes (HTML5) with a special <markup>
*
* @namespace LUNGO
* @class Constants
*
* @author Javier Jimenez Villar <[email protected]> || @soyjavi
* @author Guillermo Pascual <[email protected]> || @pasku1
*/
LUNGO.Constants = {
ELEMENT: {
SECTION: 'section',
ARTICLE: 'article',
ASIDE: 'aside',
BODY: 'body',
DIV: 'div',
LIST: '<ul></ul>',
SPAN: '<span> </span>'
},
CLASS: {
ACTIVE: 'active',
ASIDE: 'aside',
SHOW: 'show',
SHOW_REVOKE: 'show-revoke',
HIDE: 'hide',
HIDE_REVOKE: 'hide-revoke',
CURRENT: 'current',
RIGHT: 'onright',
LEFT: 'onleft',
HORIZONTAL: 'horizontal',
FLOW: 'flow'
},
TRIGGER: {
LOAD: 'load',
UNLOAD: 'unload'
},
ATTRIBUTE: {
ID: 'id',
HREF: 'href',
TITLE: 'title',
ARTICLE: 'article',
CLASS: 'class',
WIDTH: 'width',
HEIGHT: 'height',
PIXEL: 'px',
PERCENT: '%',
TARGET: 'target',
FIRST: 'first',
LAST: 'last',
EMPTY: ''
},
BINDING: {
START: '{{',
END: '}}',
KEY: 'value',
PARSER: /\{{.*?\}}/gi
},
ERROR: {
CREATE_SCROLL: 'ERROR: Impossible to create a <scroll> without ID.',
BINDING_DATA_TYPE: 'ERROR: Processing the type of binding data.',
BINDING_TEMPLATE: 'ERROR: Binding Template not exists >> ',
BINDING_LIST: 'ERROR: Processing parameters for list binding.',
DATABASE: 'ERROR: Connecting to Data.Sql.',
ROUTER: 'ERROR: The target does not exists >>',
LOADING_RESOURCE: 'ERROR: Loading resource.'
}
};