cek 8 vuotta sitten
vanhempi
commit
f76829f2f5
3 muutettua tiedostoa jossa 6 lisäystä ja 9 poistoa
  1. 2 2
      app/scripts/arkiwi.js
  2. 1 1
      app/scripts/main.js
  3. 3 6
      app/templates/list.txt

+ 2 - 2
app/scripts/arkiwi.js

@@ -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) {

+ 1 - 1
app/scripts/main.js

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

+ 3 - 6
app/templates/list.txt

@@ -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}}'-->