From 1b09675301a9b7f5ef675dfb33a0e4af7e389275 Mon Sep 17 00:00:00 2001 From: cri Date: Sat, 12 Sep 2015 22:29:38 +0200 Subject: [PATCH] add js for the widg --- app/scripts/main_list_item_home.js | 37 +++++++++++++++++++ app/scripts/{main.js => main_list_item_id.js} | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 app/scripts/main_list_item_home.js rename app/scripts/{main.js => main_list_item_id.js} (95%) diff --git a/app/scripts/main_list_item_home.js b/app/scripts/main_list_item_home.js new file mode 100644 index 0000000..fcdc817 --- /dev/null +++ b/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); +}); diff --git a/app/scripts/main.js b/app/scripts/main_list_item_id.js similarity index 95% rename from app/scripts/main.js rename to app/scripts/main_list_item_id.js index 0ac98e1..25cebd2 100644 --- a/app/scripts/main.js +++ b/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);