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