diff --git a/Doc b/Doc index aa13e13..0478be3 100644 --- a/Doc +++ b/Doc @@ -19,3 +19,16 @@ Cose da interfacciare: - il visualizza metadati - il carica un file, scrivi i metadati online + +widget/pagine differenti + + visualizzazione lista da id(senza login) wdg_list_item_id.html + visualizzazione lista con ricerca(senza login) wdg_list_item_search.html + upload e modifica metadati + ricerca e ricerca avanzata/visualizzazione risposte + visualizzazione singola (senza login) + + +todo: +in ricerche: escludi cartelle, se medatype:null: anche folderjail se serve + diff --git a/app/index.html b/app/index.html index 2085b96..11e3657 100644 --- a/app/index.html +++ b/app/index.html @@ -36,7 +36,7 @@

App Generated with the html5 app generator

-

Now go develop

+

Example of the widget embed

@@ -49,7 +49,20 @@ - - + +
+

Iframe list items con id: +

iframe class="embed" data-arkiwi-id="title:hack" height="400px" width="99%" frameBorder='1' seamless='seamless' src="./wdg_list_item_id.html"
+

+
+ + +

Iframe list items viz Arkiwi home page: +

iframe class="embed" height="400px" width="400px" frameBorder='1' seamless='seamless' src="./wdg_list_item_home.html"
+

+ +
+ +
diff --git a/app/index.html~ b/app/index.html~ index faf768d..e45b7e0 100644 --- a/app/index.html~ +++ b/app/index.html~ @@ -22,6 +22,7 @@ + @@ -45,7 +46,7 @@

App Generated with the html5 app generator

-

Now go develop

+

Example of the widget embed

@@ -58,7 +59,20 @@ - - + +
+

Iframe list items con id: +

iframe class="embed" data-arkiwi-id="hack" height="400px" width="99%" frameBorder='1' seamless='seamless' src="./wdg_list_item_id.html"
+

+
+ + +

Iframe list items viz Arkiwi home page: +

iframe class="embed" height="400px" width="400px" frameBorder='1' seamless='seamless' src="./wdg_list_item_home.html"
+

+ +
+ +
diff --git a/app/scripts/main.js b/app/scripts/main_list_item_home.js similarity index 94% rename from app/scripts/main.js rename to app/scripts/main_list_item_home.js index 0ac98e1..fcdc817 100644 --- a/app/scripts/main.js +++ b/app/scripts/main_list_item_home.js @@ -14,7 +14,7 @@ --------------------------------------------------------------------------------------------------------------------- */ $(document).ready(function () { var arkiwi = new ARKIWI.Arkiwi('http://www.arkiwi.org', 'http://upload.arkiwi.org'); - $.get("templates/list.txt", function (template) { + $.get("templates/list_item_home.txt", function (template) { arkiwi.path("XM24/Occupy_Mordor", function (listone) { var dioporco = Mustache.render(template, listone); diff --git a/app/scripts/main_list_item_id.js b/app/scripts/main_list_item_id.js new file mode 100644 index 0000000..32b7e2b --- /dev/null +++ b/app/scripts/main_list_item_id.js @@ -0,0 +1,51 @@ +/*------------------------------------------------------------------------------------------------------------------------ + @package: arkiwiJsBoilerplate + + @author: cek + @www: arkiwi.oeg + + @copyright: COPYRIGHT 18 cek + @license: MIT + + ============================================================================= + Filename: main.js + ============================================================================= + This file is the main entry point for js on the arkiwiJsBoilerplate app. + --------------------------------------------------------------------------------------------------------------------- */ +$(document).ready(function () { + + var iframe_id = $(window.frameElement).attr("data-arkiwi-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'); + /* $.get("templates/list_item_id.txt", function (template) { + + arkiwi.path("XM24/Occupy_Mordor", function (listone) { + var dioporco = Mustache.render(template, listone); + $(".row").append(dioporco); + }, true); + + + });*/ + + arkiwi.search('Ampioraggio', function (result) { + // console.log('Ricerca...'); + // console.log(result); + + }); + + $.get("templates/list_item_id.txt", function (template) { + + arkiwi.search(iframe_id, function (result) { + console.log('Lettura cartella...'); + console.log(result); + var pappone = Mustache.render(template, result); + //console.log(pappone); + $(".row").append(pappone); + }); + }); + +}); diff --git a/app/styles/main.css b/app/styles/main.css index a64ca3c..e93aca8 100644 --- a/app/styles/main.css +++ b/app/styles/main.css @@ -19,12 +19,29 @@ http://paletton.com/#uid=70f0u0ksXsOhL-cmHuduim--whE width:100%; min-width:100%; height:auto; +resize: both; +overflow: auto; } audio { background-color: #E65116 !important; border-radius: 6px; height: 35px; - opacity: 1; - z-index: 99; + width:100%; + +} +.tools a img { + width: 30px; +} +/*correzioni alle merde di bootstrapt*/ +/*media query aggiuntive*/ +@media (max-width: 660px) { + .col-xs-6 { + width: 49.9%; +} +} +@media (max-width: 460px) { + .col-xs-6 { + width: 99%; +} } \ No newline at end of file diff --git a/app/templates/list.txt~ b/app/templates/list.txt~ index 167996a..118f207 100644 --- a/app/templates/list.txt~ +++ b/app/templates/list.txt~ @@ -1,23 +1,22 @@ {{#items}} -

{{item.title}}

{{#item.creator}}

by: {{item.creator}}{{/item.creator}} ... {{#item.player}} -

+ {{/item.player}}

{{item.description}}

-

Button Button

+

+ +[Download] + +Button +Button

- - - - - {{/items}} diff --git a/app/templates/list.txt b/app/templates/list_item_home.txt similarity index 78% rename from app/templates/list.txt rename to app/templates/list_item_home.txt index 118f207..e4771b0 100644 --- a/app/templates/list.txt +++ b/app/templates/list_item_home.txt @@ -10,11 +10,9 @@

{{item.description}}

- + [Download] -Button -Button

diff --git a/app/templates/list_item_id.txt b/app/templates/list_item_id.txt new file mode 100644 index 0000000..4737548 --- /dev/null +++ b/app/templates/list_item_id.txt @@ -0,0 +1,26 @@ +{{#items}} +
+
+

{{#item.title}}{{item.title}}

{{/item.title}} +{{#item.player}} + +{{/item.player}} + +

{{#item.creator}}

Creato da: {{item.creator}}{{/item.creator}} + +
+

{{item.description}}

+
+ +[Download] + +
+
+
+
+ +{{/items}} diff --git a/app/wdg_list_item_home.html b/app/wdg_list_item_home.html new file mode 100644 index 0000000..c4222a2 --- /dev/null +++ b/app/wdg_list_item_home.html @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + arkiwiJsBoilerplate + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ diff --git a/app/wdg_list_item_id.html b/app/wdg_list_item_id.html new file mode 100644 index 0000000..d63adb7 --- /dev/null +++ b/app/wdg_list_item_id.html @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + arkiwiJsBoilerplate + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +