Small comments and syntax changes

This commit is contained in:
gmemstr 2017-09-06 20:02:59 -07:00
parent 46bffa9ff4
commit 6916e41cfc
4 changed files with 15 additions and 3 deletions

View file

@ -14,4 +14,8 @@ install:
go get github.com/gorilla/mux go get github.com/gorilla/mux
docker: docker:
docker build . docker build .
and run:
go build src/webserver.go src/admin.go src/generate_rss.go
./webserver.exe

View file

@ -4,6 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>CMS Loading</title> <title>CMS Loading</title>
<link rel="stylesheet" href="/assets/styles.css"> <link rel="stylesheet" href="/assets/styles.css">
<!-- Custom CSS stylings from admin --> <!-- Custom CSS stylings from admin -->
<link rel="stylesheet" href="/assets/custom.css"> <link rel="stylesheet" href="/assets/custom.css">
@ -32,7 +33,7 @@ get("/json", function(data){
var div = document.createElement('div'); var div = document.createElement('div');
div.className = 'podcast'; div.className = 'podcast';
// Hacky date workaround - convert our Go date outpus to unix timestamp, // Hacky date workaround - convert our Go date output to unix timestamp,
// then convert that into a string // then convert that into a string
date = new Date(Date.parse(json.items[i].date_published)) date = new Date(Date.parse(json.items[i].date_published))
month = date.getMonth()+1; month = date.getMonth()+1;

View file

@ -1,3 +1,7 @@
body { body {
background-color:red; background-color: lightgrey;
}
.podcast {
background-color: red;
} }

View file

@ -22,3 +22,6 @@ label {
.admin { .admin {
text-align: center; text-align: center;
} }
hr {
max-width: 40%;
}