Compare commits
2 commits
6f1f9695de
...
8db90782b1
Author | SHA1 | Date | |
---|---|---|---|
|
8db90782b1 | ||
|
fc0c1d0298 |
3 changed files with 45 additions and 36 deletions
|
@ -22,6 +22,7 @@
|
|||
<!-- endbower -->
|
||||
<!-- endbuild -->
|
||||
<!-- build:css(.tmp) styles/main.css -->
|
||||
<link rel="stylesheet" href="/bower_components/bootstrap/dist/css/bootstrap.css">
|
||||
<link rel="stylesheet" href="styles/main.css">
|
||||
<!-- endbuild -->
|
||||
|
||||
|
|
|
@ -149,7 +149,7 @@ ARKIWI.Arkiwi.prototype.close = function (callback) {
|
|||
ARKIWI.Arkiwi.prototype.path = function (path, callback, notBase64) {
|
||||
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)
|
||||
callback(result);
|
||||
}).fail(function (error) {
|
||||
|
@ -165,7 +165,7 @@ ARKIWI.Arkiwi.prototype.search = function (query, callback, jailFolder) {
|
|||
|
||||
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)
|
||||
callback(result);
|
||||
}).fail(function (error) {
|
||||
|
|
|
@ -20,13 +20,21 @@ $(document).ready(function () {
|
|||
var dioporco = Mustache.render(template, listone);
|
||||
$(".row").append(dioporco);
|
||||
},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) {
|
||||
|
|
Loading…
Reference in a new issue