diff --git a/templates/bg.jpg b/templates/bg.jpg new file mode 100644 index 0000000..2ca89dd Binary files /dev/null and b/templates/bg.jpg differ diff --git a/templates/table.html b/templates/table.html index f47bb0d..7440f99 100644 --- a/templates/table.html +++ b/templates/table.html @@ -3,6 +3,7 @@ {{.ClassName}} Time Table + -
- - GitHub issues +
+ + GitHub issues - - GitHub Repo stars + + GitHub Repo stars
-
-
- - {{range .Data}} - - {{range .}} - +
- {{.Course}} -
+ {{range $rowIndex, $row := .Data}} + + {{range $colIndex, $cell := $row}} + {{if eq $cell.Color "dark"}} + {{if eq $rowIndex 0}} + + {{else if eq $colIndex 0}} + + {{else}} + + {{end}} + {{else}} + {{end}} - {{end}} -
{{$cell.Course}}
{{$cell.Course}}
{{$cell.Course}}
{{$cell.Course}}
-
- - + + {{end}} + - - // Restore the original content after print - document.body.innerHTML = originalContent; - window.location.reload(); - }); - - + \ No newline at end of file