Jelajahi Sumber

New BUILD.sh

soyjavi 14 tahun lalu
induk
melakukan
233443be1b
2 mengubah file dengan 95 tambahan dan 1 penghapusan
  1. 74 0
      examples/test/app/events-oldschool.js
  2. 21 1
      examples/test/app/events.js

+ 74 - 0
examples/test/app/events-oldschool.js

@@ -0,0 +1,74 @@
+LUNGO.Events.init({
+    'section#sec-1 header #btn-toggle-loading tap': App.View.toggleLoading,
+    'section#sec-1 load': function(event) {
+                            console.error('section#sec-1 loaded', event);
+
+        console.error('current section', lng.Element.Current.section);
+                            LUNGO.Router.article('sec-1', 'nav-2');
+                        },
+
+    'a': App.View.toggleLoading
+});
+
+/*
+App.Events = (function(lng, undefined) {
+
+    lng.ready(function() {
+        //lng.View.Aside.toggle('.onright');
+
+        setTimeout(function() {
+            lng.View.Element.progress('#progress-normal', 50, true, 'yeah');
+            lng.View.Element.progress('#progress-big', 75, true, 'yeah');
+
+            lng.View.Element.loading('#loading-code', 'white');
+        }, 1000);
+
+    });
+
+
+
+    $$('section#sec-1 header #btn-toggle-loading').tap(function(event) {
+        var el = lng.dom(this);
+
+        if (el.children('.loading').length > 0) {
+            el.children('.icon').show();
+            lng.View.Element.loading(this);
+        } else {
+            el.children('.icon').hide();
+            lng.View.Element.loading(this, 'white');
+        }
+
+    });
+
+    //SPECIAL
+    $$('section#sec-1').on('load', function(event) {
+        console.error('section#sec-1 loaded', event);
+
+        console.error('current section', lng.Element.Current.section);
+        lng.Router.article('sec-1', 'nav-2');
+    });
+
+
+    $$('section#sec-2').on('unload', function(event) {
+        console.error('section#sec-2 unloaded', event);
+    });
+
+    $$('section#sec-2').on('load', function(event) {
+        console.error('section#sec-2 loaded', event);
+    });
+
+    $$('article#nav-1').on('load', function(event) {
+        console.error('article#nav-1 loaded', event);
+    });
+
+    $$('article#nav-3').on('unload', function(event) {
+        console.error('article#nav-1 unloaded', event);
+    });
+
+
+    return {
+        a: a
+    };
+
+})(LUNGO);
+*/

+ 21 - 1
examples/test/app/events.js

@@ -1,3 +1,4 @@
+<<<<<<< HEAD
 LUNGO.Events.init({
     'section#sec-1 header #btn-toggle-loading tap': App.View.toggleLoading,
     'section#sec-2 load': funtion(event) {
@@ -68,4 +69,23 @@ App.Events = (function(lng, undefined) {
     };
 
 })(LUNGO);
-*/
+*/
+=======
+// Generated by CoffeeScript 1.3.3
+(function() {
+
+  LUNGO.Events.init({
+    "section#a article a tap": App.View.notify
+    /*
+    ,
+    "section#sec-1 header #btn-toggle-loading tap": App.View.toggleLoading,
+    "section#sec-1 load": function(event) {
+      console.error("section#sec-1 loaded", event);
+      console.error("current section", lng.Element.Current.section);
+      return LUNGO.Router.article("sec-1", "nav-2");
+    }
+    */
+  });
+
+}).call(this);
+>>>>>>> New themes