Skip to content

Commit

Permalink
fix colloquium asset and display version number
Browse files Browse the repository at this point in the history
  • Loading branch information
paolini committed May 18, 2024
1 parent 6fcf9a2 commit 26031b2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ npm run dev

```
npm run build
npm run preview
```
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
</div>

<div id="clock"><!-- Orologio in alto a dx --></div>
<div id="version">loading...</div>
<div id="bullets">•••</div>

<div class="lauree">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dm-monitor",
"type": "module",
"version": "1.0.0",
"version": "2.0.0",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
11 changes: 8 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import { version as VERSION } from '../package.json'
import { TEST } from './constants'

import { EmbedPage } from './pages/embedPage'
import { EventsAndVisitorsPage } from './pages/eventsAndVisitorsPage'
import { FractalXmasPage } from './pages/fractalXmasPage'
import { FullScreenImagePage } from './pages/fullscreenImagePage'
import { setupInterval } from './utils'

import colloquium_img from '../images/colloquium_huisken.png'

const pages = [
new FullScreenImagePage({
imageUrl: "images/colloquium_huisken.png?d=20231213x",
imageUrl: colloquium_img,
start: "2024-05-23 06:00",
end: "2024-05-23 18:44",
test: TEST, // mostra sempre in modalità test
Expand Down Expand Up @@ -37,8 +39,8 @@ const pages = [
url: 'https://montblanc.panomax.com/',
duration: 60000,
priority: () => {
// if (TEST) return 1 // mostra sempre in modalità test
return 0 // disabled
// if (TEST) return 1 // mostra sempre in modalità test
// show only in minute 42
const date = moment().tz('Europe/Rome').format('mm')
if (date === '42') return 3
Expand Down Expand Up @@ -79,6 +81,9 @@ const pages = [
]

function startLoop() {

document.getElementById('version').textContent = `dm-monitor v${VERSION}`

// Routine that updates the clock
setupInterval(updateClock, 1)

Expand Down

0 comments on commit 26031b2

Please sign in to comment.