Browse Source

use config data for link build

develop
Rob Colbert 2 years ago
parent
commit
6213099d80
  1. 2
      app/views/countdown/created.pug

2
app/views/countdown/created.pug

@ -4,7 +4,7 @@ block content
//- pre= JSON.stringify(params, null, 2)
p Your show countdown timer has been created. Copy this URL and paste it into an OBS Browser source's URL. It will load a fullscreen countdown timer with a transparent background into your OBS scene.
- var timerUrl = `http://localhost:8000/timer?title=${encodeURIComponent(params.show.title)}&url=${encodeURIComponent(params.show.url)}&year=${params.year}&month=${params.month}&date=${params.date}&hours=${params.hours}&minutes=${params.minutes}`;
- var timerUrl = `https://${site.domain}/timer?title=${encodeURIComponent(params.show.title)}&url=${encodeURIComponent(params.show.url)}&year=${params.year}&month=${params.month}&date=${params.date}&hours=${params.hours}&minutes=${params.minutes}`;
pre#link-render(disabled)= timerUrl

Loading…
Cancel
Save