From 4d35b7d5ad618338324e4f083c61c8d5c98a02cd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 11 Oct 2019 15:23:23 +0100 Subject: [PATCH] Buttons for previous and next month --- epicyon-calendar.css | 8 ++++++++ img/icons/prev.png | Bin 0 -> 3244 bytes webinterface.py | 16 ++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 img/icons/prev.png diff --git a/epicyon-calendar.css b/epicyon-calendar.css index 13052d0d..b570d4b9 100644 --- a/epicyon-calendar.css +++ b/epicyon-calendar.css @@ -139,3 +139,11 @@ tr:nth-child(even) > .calendar__day__cell:nth-child(even) { height: 5rem; text-transform: uppercase; } +.buttonprev { + width: 2%; +} +.buttonnext { + width: 2%; + -webkit-transform: scaleX(-1); + transform: scaleX(-1); +} diff --git a/img/icons/prev.png b/img/icons/prev.png new file mode 100644 index 0000000000000000000000000000000000000000..f9bbb1e7233351a316148ae44bc70c95c44bc12d GIT binary patch literal 3244 zcmV;d3{&%oP) zaB^>EX>4U6ba`-PAZ2)IW&i+q+O3&smf|oHg#YUla|ES!9Y^bXbAvhle3A_XML|P# z<1QOyYs-ktjC8B)%Av< z$#S)4hj6wJ+6~W}v%Q_;6x#jGKzW=u>ivy!4rJ0f!P$P9$jUK+?&m<|9LSn;W_SFq z=gc9ec)NwOpPuLay;uI!IyoCn@Ij*E?2L{vWWFb(UBqtP?~W#~e!gA?y8o>%j~dow zh83&#*&M61Y{6z*R{K6=Yh z(N-4}f;n&4ZzzT9^~ZMcmw~>)y0N>NIi%~%ckQ-b0X&R-fp7iI+0&fk*j;gfEr)Yc zm#yq?JXe>scCWw@bx@En@ns#EBjFYeE_K~>AVGr?mR56Ji|lFho~}vKUFj}7YJ|aH&+iZQ?t^ptgosX8 zTd^*)SjQ@~0ROu17>LL`jq107FUR-K!qtMH-)2s1u;{9eA*z=za@h^EzOv#O;*pXQoxp~aS3Zl#-U zJAT|lk3IF=%a8$;h8uo_5l0$%lnK?Qoo@OWW>hoHJj)fe6V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kZo@zf1VDl1K83G#8Ss^9Qy7|J z5!F)|@*TOW=lS~V^Zv|z-a!QRe%`?Wj6eid;94*O5msQtGJ2u;;j#I@2;0J6EU9_G}047pXfATatTL>aOQHxpk#wDQ2y9F=w^s e$ALee7k&XiO%8e|Uk@<=000012: + nextMonthNumber=1 + nextYear=year+1 + print('Calendar year='+str(year)+' month='+str(monthNumber)+ ' '+str(weekDayOfMonthStart(monthNumber,year))) nickname=getNicknameFromActor(actor) @@ -2866,7 +2878,11 @@ def htmlCalendar(translate: {}, \ calendarStr=htmlHeader(cssFilename,calendarStyle) calendarStr+='
\n' calendarStr+='\n' calendarStr+='\n' calendarStr+='\n'
\n' + calendarStr+=' ' + calendarStr+=' \n' calendarStr+='

'+monthName+'

\n' + calendarStr+=' ' + calendarStr+=' \n' calendarStr+='