Compare commits

...

2 commits

Author SHA1 Message Date
cri
8db90782b1 aggiunti css bootstrap 2015-09-12 18:39:51 +02:00
cri
fc0c1d0298 sincro file con quelle caricate sul server 2015-09-12 18:35:18 +02:00
3 changed files with 45 additions and 36 deletions

View file

@ -22,6 +22,7 @@
<!-- endbower --> <!-- endbower -->
<!-- endbuild --> <!-- endbuild -->
<!-- build:css(.tmp) styles/main.css --> <!-- build:css(.tmp) styles/main.css -->
<link rel="stylesheet" href="/bower_components/bootstrap/dist/css/bootstrap.css">
<link rel="stylesheet" href="styles/main.css"> <link rel="stylesheet" href="styles/main.css">
<!-- endbuild --> <!-- endbuild -->

View file

@ -149,7 +149,7 @@ ARKIWI.Arkiwi.prototype.close = function (callback) {
ARKIWI.Arkiwi.prototype.path = function (path, callback, notBase64) { ARKIWI.Arkiwi.prototype.path = function (path, callback, notBase64) {
var pathType = notBase64 ? 'path' : 'path64'; var pathType = notBase64 ? 'path' : 'path64';
$.getJSON(this.endpoint + '/' + pathType + '/' + path + '/jsonml/?' + this.defaultParameters, function (result) { $.getJSON(this.endpoint + '/' + pathType + '/' + path + '/json/?' + this.defaultParameters, function (result) {
if (callback != undefined) if (callback != undefined)
callback(result); callback(result);
}).fail(function (error) { }).fail(function (error) {
@ -165,7 +165,7 @@ ARKIWI.Arkiwi.prototype.search = function (query, callback, jailFolder) {
sanitizedQuery = window.btoa(sanitizedQuery); //convert to Base64 sanitizedQuery = window.btoa(sanitizedQuery); //convert to Base64
$.getJSON(this.endpoint + '/search64/' + sanitizedQuery + '/jsonml/?' + this.defaultParameters, function (result) { $.getJSON(this.endpoint + '/search64/' + sanitizedQuery + '/json/?' + this.defaultParameters, function (result) {
if (callback != undefined) if (callback != undefined)
callback(result); callback(result);
}).fail(function (error) { }).fail(function (error) {

View file

@ -1,36 +1,44 @@
/*------------------------------------------------------------------------------------------------------------------------ /*------------------------------------------------------------------------------------------------------------------------
@package: arkiwiJsBoilerplate @package: arkiwiJsBoilerplate
@author: cek @author: cek
@www: arkiwi.oeg @www: arkiwi.oeg
@copyright: COPYRIGHT 18 cek @copyright: COPYRIGHT 18 cek
@license: MIT @license: MIT
============================================================================= =============================================================================
Filename: main.js Filename: main.js
============================================================================= =============================================================================
This file is the main entry point for js on the arkiwiJsBoilerplate app. This file is the main entry point for js on the arkiwiJsBoilerplate app.
--------------------------------------------------------------------------------------------------------------------- */ --------------------------------------------------------------------------------------------------------------------- */
$(document).ready(function () { $(document).ready(function () {
var arkiwi = new ARKIWI.Arkiwi('http://www.arkiwi.org'); var arkiwi = new ARKIWI.Arkiwi('http://www.arkiwi.org');
$.get("templates/list.txt", function (template) { $.get("templates/list.txt", function (template) {
arkiwi.path("XM24", function (listone) { arkiwi.path("XM24", function (listone) {
var dioporco = Mustache.render(template, listone); var dioporco = Mustache.render(template, listone);
$(".row").append(dioporco); $(".row").append(dioporco);
},true); },true);
});
var arkiwi = new ARKIWI.Arkiwi('http://www.arkiwi.org'); });
arkiwi.search('Ampioraggio', function (result) {
console.log('Ricerca...');
console.log(result);
});
arkiwi.path('XM24', function (result) {
console.log('Lettura cartella...');
console.log(result); arkiwi.search('Ampioraggio', function (result) {
}, true); console.log('Ricerca...');
}); console.log(result);
});
arkiwi.path('XM24', function (result) {
console.log('Lettura cartella...');
console.log(result);
}, true);
});