diff --git a/static/allpages.css b/static/allpages.css index 66d2fc9..55bd3c0 100644 --- a/static/allpages.css +++ b/static/allpages.css @@ -1,3 +1,10 @@ +@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC&display=swap'); + +body { + font-family: "Lato", "Noto Sans TC", "Microsoft JhengHei", "sans-serif"; +} + div.col .row .col { border: 1px solid black; } @@ -99,7 +106,7 @@ input[type="checkbox"].late:checked { background: rgb(15, 184, 0); } input[type="checkbox"].late:checked:after { - content: "φ"; + content: "𝜑"; color: #fff; position: absolute; left: 50%; @@ -118,4 +125,16 @@ input[type="checkbox"].late:checked:after { button.logout { margin-left: 0 !important; +} + +div.showTime { + z-index: 1; + position:fixed; + padding: 10px; + font-size: 1.2em; + bottom:1em; + right:1em; + border:1px solid black; + color:rgb(77, 77, 77); + background:rgb(179, 255, 169); } \ No newline at end of file diff --git a/static/time.js b/static/time.js new file mode 100644 index 0000000..a4899bf --- /dev/null +++ b/static/time.js @@ -0,0 +1,20 @@ +(function () { + function checkTime(i) { + return (i < 10) ? "0" + i : i; + } + + function startTime() { + var today = new Date(), + y = today.getFullYear(), + mm = checkTime(today.getMonth() + 1), + d = checkTime(today.getDate()), + h = checkTime(today.getHours()), + m = checkTime(today.getMinutes()), + s = checkTime(today.getSeconds()); + document.getElementById('showTime').innerHTML = y + "/" + mm + "/" + d + " " + h + ":" + m + ":" + s; + t = setTimeout(function () { + startTime() + }, 500); + } + startTime(); +})(); \ No newline at end of file diff --git a/templates/admin.html b/templates/admin.html index c8576e9..4439653 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -23,6 +23,7 @@
+X
-𝜑
+ {% endif %} + {% else %} + {% if absData[currDate][j]['name'] != 'GP' %}V
-V
-