Show line of code according to the date

0

I have a static page that will work offline with the proposal to be a control panel that will have the "schedule of the day" for a church. In one of the columns (as shown in the image) one of the videos will be changed daily and the rest will remain intact. The question is: is it possible to leave all the tags of the videos that I will use already listed (but hidden) and only show the video that I need for that day, predefined by a command that takes the date into account?

Current line of code:

<video class="borda-player" src="videos/1.mp4" controls="true"></video>

    
asked by anonymous 26.12.2017 / 19:06

1 answer

0

Good afternoon, Talles,

You can do it in two ways:

In the code itself you put an IF clause with Now () to check the date and display the video it.

Or make a database for and in the database (can be a simple mysql) and register which path of the video you want for that day.

I hope I have helped.

    
26.12.2017 / 19:11