sistemato

This commit is contained in:
cek 2015-09-12 20:32:35 +02:00
parent c79b67144a
commit f76829f2f5
3 changed files with 6 additions and 9 deletions

View file

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

View file

@ -16,7 +16,7 @@ $(document).ready(function () {
var arkiwi = new ARKIWI.Arkiwi('http://www.arkiwi.org', 'http://upload.arkiwi.org');
$.get("templates/list.txt", function (template) {
arkiwi.path("XM24/Occupy_Mordor", function (listone) {
arkiwi.path("XM24", function (listone) {
var dioporco = Mustache.render(template, listone);
$(".row").append(dioporco);
}, true);

View file

@ -1,6 +1,5 @@
{{#items}}
ciao
<!--div class="col-sm-6 col-md-4">
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<h3><a href='/hack/path64/{{item.URI}}/'>{{item.title}}</a></h3>
<h4>{{#item.creator}}</h4><small>by: <i>{{item.creator}}</i></small>{{/item.creator}}
@ -14,12 +13,10 @@ ciao
<a href='/hack/path64/{{item.URI}}/' role="button" class="btn btn-primary">
<img title="Download" alt="[Download]" src="http://arkiwi.org/arav_icons/download_icon.png">
</a>
<a href="#" >Button</a>
<a href="#" >Button</a>
<a href="#" class="btn btn-default" role="button">Button</a></p>
</div>
</div>
</div-->
</div>
{{/items}}
<!--bootstrapt solution##<div class="embed-responsive embed-responsive-4by3"><iframe class="embed-responsive-item " frameBorder='0' seamless='seamless' src='{{url}}'></iframe></div>##width='{{width}}' height='{{height}}'-->