// Fetc the updates from the array in updates.json
// Each element of the array is structured like this:
@ -8,7 +42,8 @@ let updates = [];
// "date": "October the 21st, 2021",
// "title": "2nd hand lifeboat script",
// "text": "Labore eiusmod labore pariatur elit nostrud ut magna cupidatat minim amet deserunt cillum id. Lorem consectetur incididunt anim sit do eu minim nisi id.",
// "media": {
// "quote": "Lorem elit magna esse reprehenderit fugiat labore est veniam ipsum labore est voluptate do."
// "media": {
// "type": "video",
// "src": "./assets/test-js.mp4",
// "alt": "An excerpt from 'When did software gone wrong?' highlighted progressively as in karaoke",
@ -16,7 +51,7 @@ let updates = [];
// }
// }
//
// Title, Text and Media are not mandatory.
// Title, Text, Quote and Media are not mandatory.
// If some are not present, the createUpdate function will skip them
//
// Note that the Date is required, but its format is up to the user
@ -40,18 +75,33 @@ function createUpdate(update) {
letcard=document.createElement("div");
card.classList.add("update");
// QUOTE
if(update.quote){
letquote=document.createElement("blockquote");
quote.innerHTML=update.quote;
quote.setAttribute("data-quote",quotes.length);
quotes.push(update.quote);
card.appendChild(quote);
observer.observe(quote);
}
// LOG
letlog=document.createElement("div");
log.classList.add("log");
// DATE
letdate=document.createElement("div");
date.classList.add("date");
date.innerHTML=update.date;
card.appendChild(date);
log.appendChild(date);
// TITLE, if present
if(update.title){
lettitle=document.createElement("h3");
title.classList.add("title");
title.innerHTML=update.title;
card.appendChild(title);
log.appendChild(title);
}
// MEDIA CONTENTS, if present
@ -92,7 +142,7 @@ function createUpdate(update) {
media.appendChild(caption);
}
}
card.appendChild(media);
log.appendChild(media);
}
// TEXT, if present
@ -100,8 +150,9 @@ function createUpdate(update) {
"quote":"To lose someone: we suffer because the departed, the absent, has become something imaginary and unreal. But our desire for him is not imaginary. We have to go down into ourselves to the abode of the desire which is not imaginary. Hunger: we imagine kinds of food, but the hunger itself is real: we have to fasten on to the hunger. The presence of the dead person is imaginary, but his absence is very real: henceforward it is his way of appearing.",
"media":{
"type":"video",
"src":"./assets/helllo_world.mp4",
@ -47,8 +48,7 @@
{
"date":"October the 23rd, 2021",
"title":"K-Scroll",
"text":"We bought green curry from HJ 😶 and developed a scroll-to-highlight script starting from the idea behind these <a href='https://hub.xpub.nl/soupboat/~kamo/09-28-2021-lifeboats/'>text lifeboats</a>. We will use it as a small interactive feature for this diary-devlog, to stay in the karaoke mood. (the scroll-to-highlight, not the curry)",
"media":null
"text":"We bought green curry from HJ 😶 and developed a scroll-to-highlight script starting from the idea behind these <a href='https://hub.xpub.nl/soupboat/~kamo/09-28-2021-lifeboats/'>text lifeboats</a>. We will use it as a small interactive feature for this diary-devlog, to stay in the karaoke mood. (the scroll-to-highlight, not the curry)"
},
{
"date":"October the 23rd, 2021",
@ -64,8 +64,8 @@
{
"date":"October the 23rd, 2021",
"title":"Graceful like a camel in a gutter",
"text":"Both Battiato and Weil's writings are often like a spell of protection, a desire for preservation in the name of a higher, so to say, grace. The kind of state of consciousness that spans from the innermost esoteric knowledge of self-care, to the irrational acceptance of an utter disclosure of one's own intimacy.\nAs the Persian mathematician, philosopher and historian al-Bīrūnī used to compare his on language to \"a camel in a gutter\" to describe its inadequacy when it come to discuss scientific topics, so the entire realm of words has something awkwardly inappropriate when it comes to deal with such a state of grace. However, there's something like a confession in both Battiato and Weil's lyrics, and perhaps it is indeed this confession that somehow manages to carry the burden of this task through the means of the diary and of the song.",
"media":null
"quote":"To ascertain exactly what the miser whosetreasure was stolen lost: thus we should learn much. Lauzun and the office of Captain of Musketeers. He preferred to be a prisoner and Captain of Musketeers rather than to go free and not be Captain. These are garments. ‘They were ashamed of their nakedness.’",
"text":"Both Battiato and Weil's writings are often like a spell of protection, a desire for preservation in the name of a higher, so to say, grace. The kind of state of consciousness that spans from the innermost esoteric knowledge of self-care, to the irrational acceptance of an utter disclosure of one's own intimacy.\nAs the Persian mathematician, philosopher and historian al-Bīrūnī used to compare his on language to \"a camel in a gutter\" to describe its inadequacy when it come to discuss scientific topics, so the entire realm of words has something awkwardly inappropriate when it comes to deal with such a state of grace. However, there's something like a confession in both Battiato and Weil's lyrics, and perhaps it is indeed this confession that somehow manages to carry the burden of this task through the means of the diary and of the song."
},
{
"date":"October the 24th, 2021",
@ -82,6 +82,7 @@
"date":"October the 24th, 2021",
"title":"No Time No Space - live slice demo",
"text":"Tried with the pitchwheel instead of the slider and it seems to work better, because it returns automatically at its default position and it's super handy: the reset smooths out the flow. Otherwise with the fader we would end up with the length of the previous selection already in place for the next one, and that could be annoying, i.e. if you need to select a long slice and then maybe a short one\n\nPS This update reminds me that we need to put some sort of controls for videos. This one has audio and cannot start by itself, try to play it",
"quote":"Man only escapes from the laws of this world in lightning flashes. Instants when everything stands still, instants of contemplation, of pure intuition, of mental void, of acceptance of the moral void. It is through such instants that he is capable of the supernatural. Whoever endures a moment of the void either receives the supernatural bread or falls. It is a terrible risk, but one that must be run—even during the instant when hope fails. But we must not throw ourselves into it.",
"media":{
"type":"video",
"src":"./assets/k-live-slice.mp4",
@ -92,8 +93,7 @@
{
"date":"October the 24th, 2021",
"title":"",
"text":"Also, these updates cover a lot of different aspects of this project and so maybe we could add some tags to filter the update? Maybe not complex as in the soup-gen or the chat-reader, but just some macro areas like Contents, Dev, Event ecc",
"media":null
"text":"Also, these updates cover a lot of different aspects of this project and so maybe we could add some tags to filter the update? Maybe not complex as in the soup-gen or the chat-reader, but just some macro areas like Contents, Dev, Event ecc"