50 lines
1.5 KiB
JavaScript
50 lines
1.5 KiB
JavaScript
/*------------------------------------------------------------------------------------------------------------------------
|
|
@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 iframe_id = $(window.frameElement).attr("data-arkiwi-id");
|
|
//console.log(iframe_id);
|
|
|
|
|
|
|
|
var arkiwi = new ARKIWI.Arkiwi('http://www.arkiwi.org', 'http://upload.arkiwi.org');
|
|
/* $.get("templates/list_item_id.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);
|
|
|
|
});
|
|
|
|
$.get("templates/list_item_id.txt", function (template) {
|
|
|
|
arkiwi.search(iframe_id, function (result) {
|
|
console.log('Lettura cartella...');
|
|
console.log(result);
|
|
var pappone = Mustache.render(template, result);
|
|
//console.log(pappone);
|
|
$(".row").append(pappone);
|
|
});
|
|
});
|
|
|
|
});
|