Lungo.Attributes.Data.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * Object with data-attributes (HTML5) with a special <markup>
  3. *
  4. * @namespace LUNGO.Attributes
  5. * @class Data
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. * @author Guillermo Pascual <pasku@tapquo.com> || @pasku1
  9. */
  10. LUNGO.Attributes.Data = {
  11. search: {
  12. tag: 'search',
  13. selector: '.list',
  14. html: '<li class="search {{value}}"><input type="search" placeholder="Search..."><a href="#" class="button" data-icon="search"></a></li>'
  15. },
  16. icon: {
  17. tag: 'icon',
  18. selector: '*',
  19. html: '<span class="icon {{value}}"></span>'
  20. },
  21. image: {
  22. tag: 'image',
  23. selector: '*',
  24. html: '<img src="{{value}}" class="icon" />'
  25. },
  26. title: {
  27. tag: 'title',
  28. selector: 'header, footer',
  29. html: '<h1 class="title">{{value}}</h1>'
  30. },
  31. back: {
  32. tag: 'back',
  33. selector: 'header, footer',
  34. html: '<a href="#back" data-target="section" class="back onleft button icon {{value}}"></a>'
  35. }
  36. };