sean@16: sean@16: sean@16: <% sean@21: import math, os, sys, subprocess, html.parser sean@21: from datetime import date sean@16: sean@21: PATH = os.path.abspath(os.path.dirname(sys.argv[0])) sean@21: sys.path.append(PATH + "/modules") sean@21: import web_view sean@16: sean@21: ################# sean@21: # settings # sean@21: ################# sean@16: sean@21: show_top_bar = settings["show_top_bar"] sean@16: sean@21: ################# sean@21: # date and time # sean@21: ################# sean@16: sean@21: today = date.today() sean@21: weekday = ("Montag", "Dienstag", "Mittwoch", "Donnerstag", sean@21: "Freitag", "Samstag", "Sonntag")[today.weekday()] sean@21: month_name = ("Januar", "Februar", "März", "Aprill", "Mai", sean@21: "Juni", "Juli", "August", "September", "Oktober", sean@21: "November", "Dezember")[today.month-1] sean@21: sean@28: number_of_rows = settings["rows"] sean@21: sean@21: ################# sean@21: # viewport size # sean@21: ################# sean@28: vp_size = "4vw" sean@28: sean@21: #if len(tiles) <= 2: sean@21: # vp_size = "6vw" sean@21: #elif len(tiles) >2 and len(tiles) <=4 : sean@21: # vp_size = "5vw" sean@21: #elif len(tiles) >4 and len(tiles) <=6 : sean@21: # vp_size = "4vw" sean@21: #elif len(tiles) >6 and len(tiles) <=8 : sean@21: # vp_size = "3vw" sean@21: #end sean@21: %> sean@21: sean@21: sean@21:
sean@21: sean@21: sean@21: sean@21: sean@21: sean@21: sean@16: sean@21: sean@21: sean@21: