Forráskód Böngészése

add js for the widg

cri 8 éve
szülő
commit
1b09675301
2 módosított fájl, 38 hozzáadás és 1 törlés
  1. 37 0
      app/scripts/main_list_item_home.js
  2. 1 1
      app/scripts/main_list_item_id.js

+ 37 - 0
app/scripts/main_list_item_home.js

@@ -0,0 +1,37 @@
+/*------------------------------------------------------------------------------------------------------------------------
+ @package: arkiwiJsBoilerplate
+
+ @author: cek
+ @www: arkiwi.oeg
+
+ @copyright: COPYRIGHT 18 cek
+ @license: MIT
+
+ =============================================================================
+ Filename: main.js
+ =============================================================================
+ This file is the main entry point for js on the arkiwiJsBoilerplate app.
+ --------------------------------------------------------------------------------------------------------------------- */
+$(document).ready(function () {
+    var arkiwi = new ARKIWI.Arkiwi('http://www.arkiwi.org', 'http://upload.arkiwi.org');
+    $.get("templates/list_item_home.txt", function (template) {
+
+        arkiwi.path("XM24/Occupy_Mordor", function (listone) {
+            var dioporco = Mustache.render(template, listone);
+            $(".row").append(dioporco);
+        }, true);
+
+
+    });
+
+    arkiwi.search('Ampioraggio', function (result) {
+        console.log('Ricerca...');
+        console.log(result);
+
+    });
+
+    arkiwi.path('XM24/Occupy_Mordor', function (result) {
+        console.log('Lettura cartella...');
+        console.log(result);
+    }, true);
+});

+ 1 - 1
app/scripts/main.js → app/scripts/main_list_item_id.js

@@ -14,7 +14,7 @@
  --------------------------------------------------------------------------------------------------------------------- */
 $(document).ready(function () {
     var arkiwi = new ARKIWI.Arkiwi('http://www.arkiwi.org', 'http://upload.arkiwi.org');
-    $.get("templates/list.txt", function (template) {
+    $.get("templates/list_item_id.txt", function (template) {
 
         arkiwi.path("XM24/Occupy_Mordor", function (listone) {
             var dioporco = Mustache.render(template, listone);