copy & paste
Change configuration in config.js
const TOKEN = `xxx`;
const API_URL = 'http://localhost:3002/v1';
TOKEN
Generate from Q4U web management.
API_URL
Q4U API url.
Change Youtube ID in file service-point.html
, line 21-23
:
<iframe id="ytplayer" type="text/html"
src="https://www.youtube.com/embed/YOUTUBE_ID?playlist=YOUTUBE_ID&enablejsapi=0&controls=1&loop=1&autoplay=1&origin=http://ict.moph.go.th"
frameborder="0"></iframe>
Replace YOUTUBE_ID
with youtube id
example: https://youtube.com/watch?v=XL9HQsWFxgY
YOUTUBE_ID
is XL9HQsWFxgY
To mute youtube sound add option mute=1
in youtube url
https://www.youtube.com/embed/YOUTUBE_ID?playlist=YOUTUBE_ID&mute=1
open ./service-point.html?servicePointId=xx
xx
= service_point_id
in table q4u_service_points
Use bootstrap 4.x
: https://bootswatch.com