Lungo.Constants.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /**
  2. * Object with data-attributes (HTML5) with a special <markup>
  3. *
  4. * @namespace LUNGO
  5. * @class Constants
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. * @author Guillermo Pascual <pasku@tapquo.com> || @pasku1
  9. */
  10. LUNGO.Constants = {
  11. ELEMENT: {
  12. SECTION: 'section',
  13. ARTICLE: 'article',
  14. ASIDE: 'aside',
  15. BODY: 'body',
  16. DIV: 'div',
  17. LIST: '<ul></ul>',
  18. SPAN: '<span>&nbsp;</span>'
  19. },
  20. CLASS: {
  21. ACTIVE: 'active',
  22. ASIDE: 'aside',
  23. SHOW: 'show',
  24. SHOW_REVOKE: 'show-revoke',
  25. HIDE: 'hide',
  26. HIDE_REVOKE: 'hide-revoke',
  27. CURRENT: 'current',
  28. RIGHT: 'onright',
  29. LEFT: 'onleft',
  30. HORIZONTAL: 'horizontal',
  31. FLOW: 'flow'
  32. },
  33. TRIGGER: {
  34. LOAD: 'load',
  35. UNLOAD: 'unload'
  36. },
  37. ATTRIBUTE: {
  38. ID: 'id',
  39. HREF: 'href',
  40. TITLE: 'title',
  41. ARTICLE: 'article',
  42. CLASS: 'class',
  43. WIDTH: 'width',
  44. HEIGHT: 'height',
  45. PIXEL: 'px',
  46. PERCENT: '%',
  47. TARGET: 'target',
  48. FIRST: 'first',
  49. LAST: 'last'
  50. },
  51. BINDING: {
  52. START: '{{',
  53. END: '}}',
  54. KEY: 'value',
  55. PARSER: /\{{.*?\}}/gi
  56. },
  57. ERROR: {
  58. CREATE_SCROLL: 'ERROR: Impossible to create a <scroll> without ID.',
  59. BINDING_DATA_TYPE: 'ERROR: Processing the type of binding data.',
  60. BINDING_TEMPLATE: 'ERROR: Binding Template not exists >> ',
  61. BINDING_LIST: 'ERROR: Processing parameters for list binding.',
  62. DATABASE: 'ERROR: Connecting to Data.Sql.',
  63. ROUTER: 'ERROR: The target does not exists >>',
  64. LOADING_RESOURCE: 'ERROR: Loading resource.'
  65. }
  66. };