X-Git-Url: https://code.delx.au/comingnext/blobdiff_plain/3038ef977c0f2363bebeb7cb75fffb4210af5ed8..a4b0671b585a25871fac3f23b69b2fbe1ad3b7fa:/comingNext/index.html diff --git a/comingNext/index.html b/comingNext/index.html index ccb19f6..5f84537 100644 --- a/comingNext/index.html +++ b/comingNext/index.html @@ -32,6 +32,7 @@ // valid types for the config object are 'Int', 'Bool', 'String', 'Enum', 'UID', 'Array' var config = { fontsize: { Type: 'Enum', Default: 'auto', Value: 'auto', ValidValues: ['auto', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28'],}, + eventsPerWidget: { Type: 'Int', Default: 4, Value: 4,}, monthRange: { Type: 'Int', Default: 2, Value: 2,}, includeTodos: { Type: 'Bool', Default: true, Value: true,}, useBackgroundImage: { Type: 'Bool', Default: true, Value: true,}, @@ -51,7 +52,6 @@ var config = { weekDayLength: { Type: 'Int', Default: 2, Value: 2,}, updateDataInterval: { Type: 'Int', Default: 5, Value: 5,}, calendarApp: { Type: 'UID', Default: 0x10005901, Value: 0x10005901,}, - eventsPerWidget: { Type: 'Int', Default: 4, Value: 4,}, showNothingText: { Type: 'Bool', Default: true, Value: true,}, nothingText: { Type: 'String', Default: getLocalizedText('settings.default.nothingText'), Value: getLocalizedText('settings.default.nothingText'),}, enableDaylightSaving: { Type: 'Bool', Default: true, Value: true,}, @@ -741,14 +741,14 @@ function updateData() if (mode == 0) { if (config['fontsize'].Value == config['fontsize'].ValidValues[0]) { fontsize = parseInt(72 / config['eventsPerWidget'].Value) + 'px'; - lineheight = parseInt(82 / config['eventsPerWidget'].Value) + 'px'; + lineheight = parseInt(72 / config['eventsPerWidget'].Value) + 'px'; } } if (config['fontsize'].Value != config['fontsize'].ValidValues[0]) { fontsize = config['fontsize'].Value + 'px'; lineheight = fontsize; } - changeCssClass('.icon', config['cssStyle_icon'].Value + '; width:' + lineheight + '; height:' + lineheight + ';'); + changeCssClass('.icon', config['cssStyle_icon'].Value + '; width:' + fontsize + '; height:' + fontsize + ';'); var entriesHtml = ''; if (mode == 0) entriesHtml = '
'; if (config['showCalendarIndicator'].Value && calendarList.length - config['excludedCalendars'].Value.length > 1) { - entriesHtml += ''; + entriesHtml += ''; } if (config['showIcons'].Value) entriesHtml += ''; @@ -1757,7 +1757,7 @@ function getDefaultFontSize()
' + entriesHtml; // this is needed to center the actual content vertically @@ -893,7 +893,7 @@ function updateData() // generate html output entriesHtml += '