Lungo.Attributes.Data.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. Count: {
  17. tag: 'count',
  18. selector: '*',
  19. html: '<span class="bubble count">{{value}}</span>'
  20. },
  21. Search: {
  22. tag: 'search',
  23. selector: '*',
  24. html: '<input type="search" placeholder="{{value}}"/><a href="#" class="button" data-icon="search"></a>'
  25. },
  26. Icon: {
  27. tag: 'icon',
  28. selector: '*',
  29. html: '<span class="icon {{value}}"></span>'
  30. },
  31. Image: {
  32. tag: 'image',
  33. selector: '*',
  34. html: '<img src="{{value}}" class="icon" />'
  35. },
  36. Title: {
  37. tag: 'title',
  38. selector: 'header, footer, article',
  39. html: '<h1 class="title">{{value}}</h1>'
  40. },
  41. Back: {
  42. tag: 'back',
  43. selector: 'header, footer',
  44. html: '<a href="#back" data-target="section" class="onleft button"><span class="icon {{value}}"></span></a>'
  45. }
  46. };