Compare commits

..

No commits in common. "b93523d9a5c6e49fa89c730ac1292ada6d10e971" and "a40ac5ca4ccc879dba230efe2a66d68f5d561d46" have entirely different histories.

5 changed files with 11 additions and 14 deletions

2
Doc
View file

@ -30,5 +30,5 @@ widget/pagine differenti
todo: todo:
in ricerche: escludi cartelle, se medatype:null: anche folderjail se serve in ricerche: escludi cartelle, se medatype:null

View file

@ -62,7 +62,7 @@
</body><div class="container"> </body><div class="container">
<p>Iframe list items con id: <p>Iframe list items con id:
<pre>iframe class="embed" data-arkiwi-id="title:hack" height="400px" width="99%" frameBorder='1' seamless='seamless' src="./wdg_list_item_id.html"</pre> <pre>iframe class="embed" data-arkiwi-id="hack" height="400px" width="99%" frameBorder='1' seamless='seamless' src="./wdg_list_item_id.html"</pre>
</p> </p>
<iframe class="embed" name="arkiwi" data-arkiwi-id="title:hack" height="400px" width="99%" frameBorder='1' seamless='seamless' src="./wdg_list_item_id.html"></iframe> <iframe class="embed" name="arkiwi" data-arkiwi-id="title:hack" height="400px" width="99%" frameBorder='1' seamless='seamless' src="./wdg_list_item_id.html"></iframe>
<div class="container-fluid" id="list" ><div class="row"></div></div> <div class="container-fluid" id="list" ><div class="row"></div></div>

View file

@ -64,7 +64,7 @@
<p>Iframe list items con id: <p>Iframe list items con id:
<pre>iframe class="embed" data-arkiwi-id="hack" height="400px" width="99%" frameBorder='1' seamless='seamless' src="./wdg_list_item_id.html"</pre> <pre>iframe class="embed" data-arkiwi-id="hack" height="400px" width="99%" frameBorder='1' seamless='seamless' src="./wdg_list_item_id.html"</pre>
</p> </p>
<iframe class="embed" name="arkiwi" data-arkiwi-id="title:hack" height="400px" width="99%" frameBorder='1' seamless='seamless' src="./wdg_list_item_id.html"></iframe> <iframe class="embed" name="arkiwi" data-id="title:hack" height="400px" width="99%" frameBorder='1' seamless='seamless' src="./wdg_list_item_id.html"></iframe>
<div class="container-fluid" id="list" ><div class="row"></div></div> <div class="container-fluid" id="list" ><div class="row"></div></div>

View file

@ -15,10 +15,9 @@
$(document).ready(function () { $(document).ready(function () {
var iframe_id = $(window.frameElement).attr("data-arkiwi-id"); var iframe_id = $(window.frameElement).attr("data-arkiwi-id");
//console.log(iframe_id); console.log(iframe_id);
var iframe_type = "audio"
var iframe_type = $(window.frameElement).attr("data-arkiwi-type");
console.log(iframe_type);
var arkiwi = new ARKIWI.Arkiwi('http://www.arkiwi.org', 'http://upload.arkiwi.org'); var arkiwi = new ARKIWI.Arkiwi('http://www.arkiwi.org', 'http://upload.arkiwi.org');
/* $.get("templates/list_item_id.txt", function (template) { /* $.get("templates/list_item_id.txt", function (template) {
@ -32,8 +31,8 @@ $(document).ready(function () {
});*/ });*/
arkiwi.search('Ampioraggio', function (result) { arkiwi.search('Ampioraggio', function (result) {
// console.log('Ricerca...'); console.log('Ricerca...');
// console.log(result); console.log(result);
}); });
@ -43,7 +42,7 @@ $(document).ready(function () {
console.log('Lettura cartella...'); console.log('Lettura cartella...');
console.log(result); console.log(result);
var pappone = Mustache.render(template, result); var pappone = Mustache.render(template, result);
//console.log(pappone); console.log(pappone);
$(".row").append(pappone); $(".row").append(pappone);
}); });
}); });

View file

@ -1,17 +1,15 @@
{{#items}} {{#items}}
<div class="col-xs-6 col-sm-3"> <div class="col-xs-6 col-sm-3">
<div class="thumbnail"> <div class="thumbnail">
<h4>{{#item.title}}<small><b>{{item.title}}</b></small></h4>{{/item.title}} <h3>{{#item.title}}<small><b>{{item.title}}</b></small></h3>{{/item.title}}
{{#item.player}} {{#item.player}}
<audio controls> <audio controls>
<source src="http://storage.arkiwi.org/{{item.identifier}}" type="audio/ogg"> <source src="http://storage.arkiwi.org/{{item.identifier}}" type="audio/ogg">
<source src="#" type="audio/mpeg"> <source src="#" type="audio/mpeg">
Your browser does not support the audio element. Your browser does not support the audio element.
</audio> </audio>
{{/item.player}}
<h4>{{#item.creator}}</h4><small>Creato da: <i>{{item.creator}}</i></small>{{/item.creator}} <h4>{{#item.creator}}</h4><small>Creato da: <i>{{item.creator}}</i></small>{{/item.creator}}
{{/item.player}}
<div class="caption"> <div class="caption">
<p><i>{{item.description}}</i></p> <p><i>{{item.description}}</i></p>
<div class="tools"> <div class="tools">