Lungo.Constants.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. HIDE: 'hide',
  25. CURRENT: 'current',
  26. RIGHT: 'onright',
  27. LEFT: 'onleft',
  28. HORIZONTAL: 'horizontal'
  29. },
  30. TRIGGER: {
  31. LOAD: 'load',
  32. UNLOAD: 'unload'
  33. },
  34. ATTRIBUTE: {
  35. ID: 'id',
  36. HREF: 'href',
  37. TITLE: 'title',
  38. ARTICLE: 'article',
  39. CLASS: 'class',
  40. WIDTH: 'width',
  41. HEIGHT: 'height',
  42. PIXEL: 'px',
  43. TARGET: 'target',
  44. FIRST: 'first',
  45. LAST: 'last'
  46. },
  47. BINDING: {
  48. START: '{{',
  49. END: '}}',
  50. KEY: 'value',
  51. PARSER: /\{{.*?\}}/gi
  52. },
  53. ERROR: {
  54. CREATE_SCROLL: 'ERROR: Impossible to create a <scroll> without ID.',
  55. BINDING_DATA_TYPE: 'ERROR: Processing the type of binding data.',
  56. BINDING_TEMPLATE: 'ERROR: Binding Template not exists >> ',
  57. BINDING_LIST: 'ERROR: Processing parameters for list binding.',
  58. DATABASE: 'ERROR: Connecting to Data.Sql.',
  59. ROUTER: 'ERROR: The target does not exists >>'
  60. }
  61. };