Compare commits

..

No commits in common. "666d32a63ba72891a20c5ba1085d78ee2e3ab030" and "39d5e46bbf2ea40de26239097f076dfd906ca643" have entirely different histories.

5 changed files with 11 additions and 33 deletions

View file

@ -54,12 +54,11 @@ EVENTS.getDataAndLoad = function (type) {
var evDesc = ai1ec.event.getDescription(event);
var evUrl = ai1ec.event.getUrl(event);
var evGeo = ai1ec.event.getGeo(event);
var evImg = ai1ec.event.getImage(event);
var evInitDate = EVENTS.formatDate(ai1ec.event.getInitDate(event), EVENTS.storeDateFormat);
var evEndDate = EVENTS.formatDate(ai1ec.event.getEndDate(event), EVENTS.storeDateFormat);
FONTE.dbHandler.executeSql('INSERT INTO ' + table + ' VALUES (?,?,?,?,?,?,?,?)', [evId, evTitle, evDesc, evInitDate, evEndDate, evUrl, evGeo, evImg],
FONTE.dbHandler.executeSql('INSERT INTO ' + table + ' VALUES (?,?,?,?,?,?,?)', [evId, evTitle, evDesc, evInitDate, evEndDate, evUrl, evGeo],
//onSuccess
function (resultSet) {
n_evs_ins++;

View file

@ -56,14 +56,10 @@ var ai1ec = (function(){
return event.geo || "";
},
//Regole per gli eventi ripetitivi
//Regole per gli evebti ripetitivi
getRule : function(event) {
return event.rrule || "";
},
getImage : function(event){
return event['x-wp-images-url'] || "";
},
};
var getXmlData = function(url, catId, callback) {

View file

@ -46,7 +46,7 @@ PROJECT.labs = [
"conoscenza autoproducendo dal basso strumenti alternativi ed infrastrutture "+
"autonome di comunicazione per una partecipazione politica consapevole.",
when : [
{day: "Mer", hour: ["21:00", "24:00"], title:"Hacklabbo" },
{day: "Mer", hour: ["20:00", "23:00"], title:"Hacklabbo" },
],
old_event: "", //un vecchio evento
site: "http://liste.indivia.net/listinfo/hacklabbo", //sito personale
@ -60,7 +60,7 @@ PROJECT.labs = [
"sociale, di incontro, confronto e condivisione, un veicolo sperimentale e "+
"creativo per la trasmissione della cultura e della politica.",
when : [
{day: "Giov", hour: ["20:00", "23:00"], title:"Apertura spazio Infoshock" },
{day: "Giov", hour: ["18:00", "23:00"], title:"Apertura spazio Infoshock" },
],
old_event: "", //un vecchio evento
site: "https://infoshockxm24.noblogs.org", //sito personale
@ -74,9 +74,7 @@ PROJECT.labs = [
"applicare la creazione legata al mondo del visuale. La serigrafia come "+
"tecnica di stampa manuale legata al mondo d.i.y. si pone in maniera "+
"opposta alle logiche della produzione industriale massiva e omologante.",
when : [
{day: "Mer", hour: ["19:30", "22:00"], title:"Apertura serigrafia"},
],
when : [],
old_event: "", //un vecchio evento
site: "", //sito personale
contatto : "serixm@autistici.org", //email
@ -90,15 +88,14 @@ PROJECT.labs = [
"tecnica di stampa manuale legata al mondo d.i.y. si pone in maniera "+
"opposta alle logiche della produzione industriale massiva e omologante.",
when : [
{day: "Mar", hour: ["18:30", "20:00"], title:"Hata Yoga"},
{day: "Mar", hour: ["18:30", "20:30"], title:"Hata Yoga"},
{day: "Mer", hour: ["20:30", "22:30"], title:"Hata Yoga meditativa"},
{day: "Lun", hour: ["20:30", "22:30"], title:"Hata Yoga meditativa"},
{day: "Gio", hour: ["18:30", "20:00"], title:"Hata Yoga"},
{day: "Gio", hour: ["18:30", "21:00"], title:"Hata Yoga"},
{day: "Lun", hour: ["19:00", "21:00"], title:"Tessuti aerei"},
{day: "Mer", hour: ["19:00", "21:00"], title:"Tessuti aerei"},
{day: "Ven", hour: ["19:00", "21:00"], title:"Tessuti aerei"},
{day: "Sab", hour: ["15:00", "17:00"], title:"Shiatsu"},
//{day: "Lun", hour: ["15:00", "17:00"], title:"Acrobalance"}
{day: "Lun", hour: ["15:00", "17:00"], title:"Acrobalance"}
],
old_event: "", //un vecchio evento
site: "http://liste.indivia.net/listinfo/pallestra", //sito personale

View file

@ -300,15 +300,11 @@ function drawEvent(div_title, div_content, resultSet){
var id = val.id;
var title = val.title;
var url = val.url;
var content = entityToHtml(val.description);
var content = val.description;
var geo = val.geo;
var imgUrlThumb = getImageUrl(val.img, 'thumb');
$(div_title).html(title);
var img = imgUrlThumb != "" ? "<a href='" + getImageUrl(val.img, 'large') + "'>" +
"<img src='" + imgUrlThumb + "'/>" +
"</a><br>" : "";
$(div_content).html(img + "<small>" + evInitDate +"-" + evEndDate +"</small><p>" + content + "</p>");
$(div_content).html("<small>" + evInitDate +"-" + evEndDate +"</small><p>" + content + "</p>");
renderShareButton(div_content, title, url, evInitDate + " "+ evEndDate);
}
}
@ -379,8 +375,7 @@ function createDB() {
//FONTE.dbHandler.executeSql('CREATE TABLE IF NOT EXISTS xm24_tags (id INTEGER PRIMARY KEY, title, tag)');
//FONTE.dbHandler.executeSql('CREATE TABLE IF NOT EXISTS xm24_tags_to_posts (id, tagid)');
//FONTE.dbHandler.executeSql('CREATE TABLE IF NOT EXISTS xm24_pages (id INTEGER PRIMARY KEY, title, date, page)');
FONTE.dbHandler.executeSql('DROP TABLE IF EXISTS xm24_events_single');
FONTE.dbHandler.executeSql('CREATE TABLE IF NOT EXISTS xm24_events_single (id INTEGER PRIMARY KEY, title, description, initDate, endDate, url, geo, img)');
FONTE.dbHandler.executeSql('CREATE TABLE IF NOT EXISTS xm24_events_single (id INTEGER PRIMARY KEY, title, description, initDate, endDate, url, geo)');
//FONTE.dbHandler.executeSql('CREATE TABLE IF NOT EXISTS xm24_tags_to_events (id, tagid)');
//FONTE.dbHandler.executeSql('CREATE TABLE IF NOT EXISTS xm24_events_repeat (id INTEGER PRIMARY KEY, title, description, initDate, endDate, url, geo)');
}, function () {

View file

@ -59,15 +59,6 @@ function entityToHtml(string) {
return string;
}
function getImageUrl(str, dim) {
var sstr = str.split(";");
for(var i = 0; i < sstr.length; i++) {
if(sstr[i].indexOf(dim) > -1){
return sstr[i +1];
}
}
}
var entity_table = {
// 34: "&quot;", // Quotation mark. Not required
38: "&amp;", // Ampersand. Applied before everything else in the application