add js for the widg
This commit is contained in:
parent
2f16eddcd8
commit
1b09675301
2 changed files with 38 additions and 1 deletions
37
app/scripts/main_list_item_home.js
Normal file
37
app/scripts/main_list_item_home.js
Normal 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);
|
||||
});
|
|
@ -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);
|
Loading…
Reference in a new issue