events.js 1005 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. App.Events = (function(lng, undefined) {
  2. lng.ready(function() {
  3. //lng.View.Aside.toggle('.onright');
  4. setTimeout(function() {
  5. lng.View.Element.progress('#progress-normal', 50, true, 'yeah');
  6. lng.View.Element.progress('#progress-big', 75, true, 'yeah');
  7. lng.View.Element.loading('#loading-code', 'white');
  8. }, 1000);
  9. });
  10. //SPECIAL
  11. $$('section#sec-1').on('load', function(event) {
  12. console.error('section#sec-1 loaded', event);
  13. });
  14. $$('section#sec-2').on('unload', function(event) {
  15. console.error('section#sec-2 unloaded', event);
  16. });
  17. $$('section#sec-2').on('load', function(event) {
  18. console.error('section#sec-2 loaded', event);
  19. });
  20. $$('article#nav-1').on('load', function(event) {
  21. console.error('article#nav-1 loaded', event);
  22. });
  23. $$('article#nav-3').on('unload', function(event) {
  24. console.error('article#nav-1 unloaded', event);
  25. });
  26. })(LUNGO);