initial commit
This commit is contained in:
6
views/error.pug
Normal file
6
views/error.pug
Normal file
@ -0,0 +1,6 @@
|
||||
extends layout
|
||||
|
||||
block content
|
||||
h1= message
|
||||
h2= error.status
|
||||
pre #{error.stack}
|
7
views/index.pug
Normal file
7
views/index.pug
Normal file
@ -0,0 +1,7 @@
|
||||
extends layout
|
||||
|
||||
block content
|
||||
h1 PM2.5 [<span id="pm25"></span>] & PM10 [<span id="pm10"></span>]
|
||||
p#lastStatus
|
||||
div(style="width:100%; height:75vh;")
|
||||
canvas#chart
|
10
views/layout.pug
Normal file
10
views/layout.pug
Normal file
@ -0,0 +1,10 @@
|
||||
doctype html
|
||||
html
|
||||
head
|
||||
title= title
|
||||
link(rel='stylesheet', href='/stylesheets/style.css')
|
||||
script(src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.4.0/chart.js")
|
||||
script(src="https://cdnjs.cloudflare.com/ajax/libs/chartjs-plugin-annotation/1.0.2/chartjs-plugin-annotation.js")
|
||||
body
|
||||
block content
|
||||
script(src="/javascripts/main.js")
|
Reference in New Issue
Block a user