From 939a3bd1690a49831b96da89261d6c4e0ec54460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20P?= Date: Thu, 18 Nov 2021 17:55:37 +0100 Subject: [PATCH] Update offline version for local video use; remove news --- credits.html | 4 +- index.html | 4 +- itinerario.html | 4 +- js/fara.js | 86 ++++++++++++------------------------- js/ui.js | 13 +++--- news.html | 112 ------------------------------------------------ progetto.html | 39 ++--------------- video.html | 14 +++--- 8 files changed, 49 insertions(+), 227 deletions(-) delete mode 100644 news.html diff --git a/credits.html b/credits.html index 5d05d38..52fbbd8 100644 --- a/credits.html +++ b/credits.html @@ -21,14 +21,14 @@ diff --git a/index.html b/index.html index 92b7e49..c6947ed 100644 --- a/index.html +++ b/index.html @@ -21,14 +21,14 @@ diff --git a/itinerario.html b/itinerario.html index 148a838..2d01cb5 100644 --- a/itinerario.html +++ b/itinerario.html @@ -21,14 +21,14 @@ diff --git a/js/fara.js b/js/fara.js index 4c16db1..3a8cf78 100644 --- a/js/fara.js +++ b/js/fara.js @@ -123,7 +123,7 @@ export function menuKeys() let menuK = { '1' : 'itinerario.html', '2' : 'progetto.html', - '3' : 'news.html', + '4': 'credits.html', }; @@ -176,63 +176,33 @@ export function mobileNav() * Get video source for given * link and open video page */ -export function openVideo(a) -{ - let aNodes = a.childNodes; - // Hacky?? - let title = a.parentElement - .nextElementSibling - .firstElementChild - .innerHTML - .trim(); - - let vStr = ''; - let vimeoVids = { - 'thumb_prologo' : '478632535', - 'thumb_viaggiatore' : '562518107', - 'thumb_faresi' : '562529310', - 'thumb_piazza' : '443587380', - 'thumb_antonio' : '606341398', - 'thumb_francesco' : '471773781', - 'thumb_nobili' : '562534835', - 'thumb_rocco' : '606346781', - 'thumb_alberto' : '606372910', - 'thumb_disputa' : '471537982', - 'thumb_duomo' : '606343917', - 'thumb_loredana' : '513080769', - 'thumb_pietro' : '455576197', - 'thumb_castello' : '562536148', - 'thumb_sabini' : '542321131', - 'thumb_monumento' : '606362546', - 'thumb_eva' : '606352547', - 'thumb_toto' : '606348670', - 'thumb_fuori' : '606358668', - 'thumb_carro' : '562262086', - }; - - let vimeoLink = 'https://player.vimeo.com/video/'; - - aNodes.forEach(n => { - if (n.src) { - vStr = n.src; - vStr = vStr.substr(vStr.lastIndexOf('/')+1, vStr.length) - .replace(/thumb_(.*)\.\w+$/, 'vid_$1.mp4'); - - vimeoLink += vimeoVids[n.src.substr(n.src.lastIndexOf('/')+1, n.src.length) - .replace(/\.(png|jpg)/, '')]; - - vimeoLink += '?autoplay=1'; - } - }); - - localStorage.setItem('vidURI', vStr); - localStorage.setItem('vimeo', vimeoLink); - localStorage.setItem('vidTitle', title); - /** - * Go to video page - */ - window.location.href = 'video.html'; -} + export function openVideo(a) + { + let aNodes = a.childNodes; + // Hacky?? + let title = a.parentElement + .nextElementSibling + .firstElementChild + .innerHTML + .trim(); + + let vStr = ''; + + aNodes.forEach(n => { + if (n.src) { + vStr = n.src; + vStr = vStr.substr(vStr.lastIndexOf('/')+1, vStr.length) + .replace(/thumb_(.*)\.\w+$/, 'vid_$1.mp4'); + } + }); + + localStorage.setItem('vidURI', vStr); + localStorage.setItem('vidTitle', title); + /** + * Go to video page + */ + window.location.href = 'video.html'; + } /** * Activate background on scroll for nav only * if not small screen diff --git a/js/ui.js b/js/ui.js index 79c0fe9..7a6725a 100644 --- a/js/ui.js +++ b/js/ui.js @@ -23,7 +23,6 @@ if (!window.location.href.includes('video')) { } /** * For itinerario.html... - * @todo What about the interactive map?!? */ if (window.location.href.includes('itinerario')) { let vidLinks = document.querySelectorAll('.open-vid'); @@ -42,9 +41,9 @@ if (window.location.href.includes('itinerario')) { /** * For videos... */ -if (window.location.href.includes('video')) { + if (window.location.href.includes('video')) { document.addEventListener('readystatechange', () => { - let vimeoLink = localStorage.getItem('vimeo'); + let vStr = localStorage.getItem('vidURI'); let vidTitle = localStorage.getItem('vidTitle'); document.querySelector('h1').innerHTML = vidTitle; @@ -57,12 +56,12 @@ if (window.location.href.includes('video')) { window.history.go(-1); }); - let iframe = document.querySelector('iframe'); - //let video = source.parentNode; + let source = document.querySelector('source'); + let video = source.parentNode; - iframe.src = vimeoLink; + source.src = `assets/video/${vStr}`; - //video.load(); + video.load(); }); } /** diff --git a/news.html b/news.html deleted file mode 100644 index a1a21db..0000000 --- a/news.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - - - - News & Eventi | Nel cielo di Fara - - -
- -
-

News & Eventi

-
-
-
-
-
-
-
-

-

Prima proiezione pubblica nel borgo, Fara Sabina, 3 settembre 2021

-

- La sera del 3 settembre abbiamo proiettato il docufilm "Nel Cielo di Fara, pietre e ali d'angelo" - in piazza Duomo, alla presenza di tutta la popolazione del borgo e del Sindaco. - È stato un bellissimo momento. Grazie al teatro Potlach. -

-
-
-

-

Simulazione interattiva 360° del projection mapping

-

- È stata realizzata - - una simulazione 360° interattiva del Video Projection Mapping - - "I Sabini Ieri e Oggi". Grazie ad Enzo d'Annibale. -

-
-
-

-

Fara Film Festival, Fara Sabina, 25 luglio 2021

-

- Al Fara Film Festival 2021, il 25 luglio alle ore 21:00, è stato fatto il lancio del film "Nel Cielo di Fara, pietre e ali d'angelo" - ed è stato mostrato un breve estratto.
- (Video su Vimeo). -

-
-
-
-
-

-

Conferenza 15th International Technology, Education and Development Conference INTED2021, Valencia 7-8 marzo 2021

-

- Contributo di Eva Pietroni (CNR ISPC), - A new narrative approach to valorize historical villages, - between dramaturgy and mixed reality. The “Innova Patrimonio” project. -
- Published by IATED Academy, pp: 8386-8395. ISBN: 978-84-09-27666-0 -

-
-
-

-

Volume “Il digital storytelling come strumento di marketing culturale e turistico” a cura di Elisa Bonacini, Dario Flaccovio Editore, 2021

-

- Contributo di Eva Pietroni (CNR ISPC), - Una nuova forma narrativa per i borghi storici, tra drammaturgia e mixed reality. Il progetto “Innova Patrimonio” -

-
-
-

-

Virtual Reality Experience Festival, Roma, 16 ottobre 2020

-

- Partecipazione all’iniziativa con una presentazione del progetto e del trailer. - A cura di Eva Pietroni (CNR ISPC) e Pino di Buduo (Teatro Potlach) -

-
-
-
-
-
- - - \ No newline at end of file diff --git a/progetto.html b/progetto.html index f9e0b97..9cdf148 100644 --- a/progetto.html +++ b/progetto.html @@ -21,14 +21,14 @@ @@ -43,7 +43,7 @@
-
@@ -86,43 +86,12 @@
-
-<<<<<<< HEAD -======= - -
-
-
-
-

Output tecnologici (a cura di Orpheo)

-
-
-

Sito web

- - Sito di InnovaPatrimonio - -
-
-

Piattaforma web

- - Piattaforma InnovaPatrimonio - -
-
-

Web app

- - Web App InnovaPatrimonio - -
-
-
- ->>>>>>> 975bfd2756d7370dfe5e3f98c410d3363bd4d890
diff --git a/video.html b/video.html index 8129174..df4afcc 100644 --- a/video.html +++ b/video.html @@ -20,16 +20,12 @@
-<<<<<<< HEAD - -======= -
- +
+
->>>>>>> 975bfd2756d7370dfe5e3f98c410d3363bd4d890