events.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <<<<<<< HEAD
  2. LUNGO.Events.init({
  3. 'section#sec-1 header #btn-toggle-loading tap': App.View.toggleLoading,
  4. 'section#sec-2 load': funtion(event) {
  5. };
  6. 'a': App.View.toggleLoading
  7. });
  8. /*
  9. App.Events = (function(lng, undefined) {
  10. lng.ready(function() {
  11. //lng.View.Aside.toggle('.onright');
  12. setTimeout(function() {
  13. lng.View.Element.progress('#progress-normal', 50, true, 'yeah');
  14. lng.View.Element.progress('#progress-big', 75, true, 'yeah');
  15. lng.View.Element.loading('#loading-code', 'white');
  16. }, 1000);
  17. });
  18. $$('section#sec-1 header #btn-toggle-loading').tap(function(event) {
  19. var el = lng.dom(this);
  20. if (el.children('.loading').length > 0) {
  21. el.children('.icon').show();
  22. lng.View.Element.loading(this);
  23. } else {
  24. el.children('.icon').hide();
  25. lng.View.Element.loading(this, 'white');
  26. }
  27. });
  28. //SPECIAL
  29. $$('section#sec-1').on('load', function(event) {
  30. console.error('section#sec-1 loaded', event);
  31. console.error('current section', lng.Element.Current.section);
  32. lng.Router.article('sec-1', 'nav-2');
  33. });
  34. $$('section#sec-2').on('unload', function(event) {
  35. console.error('section#sec-2 unloaded', event);
  36. });
  37. $$('section#sec-2').on('load', function(event) {
  38. console.error('section#sec-2 loaded', event);
  39. });
  40. $$('article#nav-1').on('load', function(event) {
  41. console.error('article#nav-1 loaded', event);
  42. });
  43. $$('article#nav-3').on('unload', function(event) {
  44. console.error('article#nav-1 unloaded', event);
  45. });
  46. return {
  47. a: a
  48. };
  49. })(LUNGO);
  50. */
  51. =======
  52. // Generated by CoffeeScript 1.3.3
  53. (function() {
  54. LUNGO.Events.init({
  55. "section#a article a tap": App.View.notify
  56. /*
  57. ,
  58. "section#sec-1 header #btn-toggle-loading tap": App.View.toggleLoading,
  59. "section#sec-1 load": function(event) {
  60. console.error("section#sec-1 loaded", event);
  61. console.error("current section", lng.Element.Current.section);
  62. return LUNGO.Router.article("sec-1", "nav-2");
  63. }
  64. */
  65. });
  66. }).call(this);
  67. >>>>>>> New themes