add js for the widg

This commit is contained in:
cri 2015-09-12 22:29:38 +02:00
parent 2f16eddcd8
commit 1b09675301
2 changed files with 38 additions and 1 deletions

View file

@ -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);
});

View file

@ -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);