From 41d21c5eb0f58996151fa7e5e3ff564a380e920a Mon Sep 17 00:00:00 2001 From: gine Date: Sat, 25 Mar 2017 16:32:18 +0100 Subject: [PATCH] Fix #19. Passato il codice con Jshint --- www/index.html | 105 +++++++++++----------------- www/js/crud.events.js | 20 +++--- www/js/events.js | 4 +- www/js/main.js | 158 +++++++++++++---------------------------- www/js/push.js | 2 +- www/js/query.js | 159 ++++++++++++------------------------------ www/js/share.js | 20 +++--- www/js/update.js | 117 ++++++++++++++----------------- 8 files changed, 210 insertions(+), 375 deletions(-) diff --git a/www/index.html b/www/index.html index aa82b84..696dd20 100644 --- a/www/index.html +++ b/www/index.html @@ -40,9 +40,10 @@ + - + @@ -74,7 +75,11 @@ @@ -82,9 +87,10 @@ +
-
-

About I love XM24

-
- -
- - - + +
-
+
+

Un diritto al giorno:

-

+

+ +

+

-
- -
+
@@ -191,25 +186,20 @@

-
- - + +
-
-

ultime novità

-
- -
- + +
@@ -217,15 +207,10 @@

-
-
- -
- + +
@@ -235,41 +220,35 @@

-
- -
- + +

Risultati della ricerca

-

+

Questa voce è nuova ed è disponibile online. Aggiorna ora gli articoli locali della tua app:

- +
-
- -
- + +
-
-
-

+

+ +

-
- -
- + + diff --git a/www/js/crud.events.js b/www/js/crud.events.js index 91697c4..a5319ef 100644 --- a/www/js/crud.events.js +++ b/www/js/crud.events.js @@ -3,7 +3,7 @@ var EVENTS = EVENTS || {}; EVENTS.table = { single : 'xm24_events_single', repeat : 'xm24_events_repeat', -} +}; EVENTS.dateFormat = { store : { @@ -14,7 +14,7 @@ EVENTS.dateFormat = { date: "DD-MM-YYYY", hour: "HH:mm" } -} +}; EVENTS.storeDateFormat = EVENTS.dateFormat.store.date + " " + EVENTS.dateFormat.store.hour; EVENTS.displayDateFormat = EVENTS.dateFormat.display.date + " " + EVENTS.dateFormat.display.hour; @@ -23,7 +23,7 @@ EVENTS.formatDate = function(date, format) { var mdate = moment(date); return mdate.isValid() ? mdate.format(format) : ""; -} +}; EVENTS.render = function() { var ret = checkConnection('ERR_EVENT'); @@ -34,7 +34,7 @@ EVENTS.render = function() { EVENTS.loadFromDb('#mostralista-'+ ai1ec.cats.single, ai1ec.cats.single); EVENTS.loadFromDb('#mostralista-'+ ai1ec.cats.repeat, ai1ec.cats.repeat); } -} +}; EVENTS.getDataAndLoad = function (type) { type = type || ai1ec.cats.single; @@ -107,26 +107,26 @@ EVENTS.loadFromDb = function (containerId, type) { var evFrom = "Da: " + evInitDate; var evTo = ""; - if(evEndDate != "") { + if(evEndDate !== "") { evTo = "
" + " A: " + evEndDate; } var li = "
  • " + //"" + - "" - + item.title + + "" + + item.title + "" + "
    " + evFrom + - evTo + evTo + "
  • "; items.push(li); } $(containerId).empty(); $("